|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.digraph.AbstractMatrixGEDigraph | +--net.walend.digraph.MatrixGEDigraph
This class implements the GEDigraph interface using an ArrayList and a boolean matrix. It's great for dense graphs.
Nested Class Summary |
Nested classes inherited from class net.walend.digraph.AbstractMatrixGEDigraph |
AbstractMatrixGEDigraph.MatrixEdgeIterator, AbstractMatrixGEDigraph.NodeIterator |
Field Summary |
Fields inherited from class net.walend.digraph.AbstractMatrixGEDigraph |
|
Fields inherited from interface net.walend.digraph.GEDigraph |
EMPTY |
Constructor Summary | |
MatrixGEDigraph(CEDigraph digraph)
|
|
MatrixGEDigraph(GEDigraph digraph)
|
|
MatrixGEDigraph(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MatrixGEDigraph(GEDigraph digraph)
public MatrixGEDigraph(CEDigraph digraph)
public MatrixGEDigraph(UEDigraph digraph)
Method Detail |
public java.util.Iterator nodeIterator()
nodeIterator
in interface Digraph
nodeIterator
in class AbstractMatrixGEDigraph
public EdgeNodeIterator edgeNodeIterator()
edgeNodeIterator
in interface Digraph
edgeNodeIterator
in class AbstractMatrixGEDigraph
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |