|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Path is an interface for representing paths through Digraphs. A Path is expressly a subgraph of a specific Digraph.
Method Summary | |
java.lang.Object |
getHead()
|
int |
getIndexOfNode(java.lang.Object node)
|
int |
getLastIndexOfNode(java.lang.Object node)
|
java.lang.Object |
getNodeAtIndex(int index)
|
java.util.List |
getNodeList()
Returns an immutable list of the nodes. |
java.lang.Object |
getTail()
|
int |
pathEdgeCount()
Returns the number of edges in the path, including repeates. |
EdgeNodeIterator |
pathEdgeNodeIterator()
Iterate through the edges in path order. |
int |
pathNodeCount()
Returns the number of nodes in the path, including repeates. |
java.util.Iterator |
pathNodeIterator()
Implementations should explicitly state how they interpret nodeIterator()'s remove method. |
boolean |
valid()
Returns true if this path is still a subgraph of its supergraph |
Methods inherited from interface net.walend.digraph.Digraph |
containsEdge, containsNode, containsNodes, countInboundEdges, countOutboundEdges, edgeCount, edgeNodeIterator, getFromNodes, getNodes, getToNodes, isEdgeFree, isEmpty, nodeCount, nodeIterator |
Methods inherited from interface net.walend.collection.HasState |
getPrincipleInterface, sameStateAs |
Method Detail |
public boolean valid()
public int pathNodeCount()
public int pathEdgeCount()
public java.lang.Object getHead()
public java.lang.Object getTail()
public java.lang.Object getNodeAtIndex(int index)
public int getIndexOfNode(java.lang.Object node)
public int getLastIndexOfNode(java.lang.Object node)
public java.util.List getNodeList()
public java.util.Iterator pathNodeIterator()
The Iterator should start at the beginning of the path and iterate to the end.
public EdgeNodeIterator pathEdgeNodeIterator()
If Path is immutable, edgeIterator()'s remove() method throws an UnsupportedOperationException.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |