|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.digraph.AbstractHashGEDigraph | +--net.walend.digraph.HashGEDigraph
This class implements the GEDigraph interface using two HashMaps. It's great for sparse graphs.
Nested Class Summary |
Nested classes inherited from class net.walend.digraph.AbstractHashGEDigraph |
AbstractHashGEDigraph.HashEdgeIterator, AbstractHashGEDigraph.NodeIterator, AbstractHashGEDigraph.NodePair |
Field Summary |
Fields inherited from class net.walend.digraph.AbstractHashGEDigraph |
|
Fields inherited from interface net.walend.digraph.GEDigraph |
EMPTY |
Constructor Summary | |
HashGEDigraph(CEDigraph digraph)
|
|
HashGEDigraph(GEDigraph digraph)
|
|
HashGEDigraph(UEDigraph digraph)
|
Method Summary | |
EdgeNodeIterator |
edgeNodeIterator()
Since HashGEDigraph is immutable, edgeIterator()'s remove() method throws an UnsupportedOperationException. |
java.util.Iterator |
nodeIterator()
Since HashGEDigraph is immutable, nodeIterator()'s remove() method throws an UnsupportedOperationException. |
Methods inherited from class net.walend.digraph.AbstractHashGEDigraph |
addEdge, addNode, addNodes, clear, clearEdges, containsEdge, containsGEDigraph, containsNode, containsNodes, countInboundEdges, countOutboundEdges, edgeCount, getFromNodes, getNodes, getPrincipleInterface, getToNodes, intersectWithGEDigraph, isEdgeFree, isEmpty, nodeCount, removeEdge, removeGEDigraph, removeNode, removeNodes, retainNodes, sameGEDigraphAs, sameStateAs, toString, unionGEDigraph |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HashGEDigraph(GEDigraph digraph)
public HashGEDigraph(CEDigraph digraph)
public HashGEDigraph(UEDigraph digraph)
Method Detail |
public java.util.Iterator nodeIterator()
nodeIterator
in interface Digraph
nodeIterator
in class AbstractHashGEDigraph
public EdgeNodeIterator edgeNodeIterator()
edgeNodeIterator
in interface Digraph
edgeNodeIterator
in class AbstractHashGEDigraph
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |