javatools.datatypes
Class UndirectedGraph<E extends java.lang.Comparable<E>>

java.lang.Object
  extended by javatools.datatypes.DirectedGraph<E>
      extended by javatools.datatypes.UndirectedGraph<E>

public class UndirectedGraph<E extends java.lang.Comparable<E>>
extends DirectedGraph<E>

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). This class implements an undirected graph.


Nested Class Summary
 
Nested classes/interfaces inherited from class javatools.datatypes.DirectedGraph
DirectedGraph.Node<E extends java.lang.Comparable<E>>
 
Constructor Summary
UndirectedGraph()
           
 
Method Summary
 DirectedGraph.Node<E> getOrMake(E label)
          Returns a node or creates it
 
Methods inherited from class javatools.datatypes.DirectedGraph
addLink, contains, create, get, labels, leaves, makeClosure, nodes, numNodes, roots, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndirectedGraph

public UndirectedGraph()
Method Detail

getOrMake

public DirectedGraph.Node<E> getOrMake(E label)
Returns a node or creates it

Overrides:
getOrMake in class DirectedGraph<E extends java.lang.Comparable<E>>