net.sourceforge.combean.interfaces.graph.containers
Interface FixedPath
- All Known Subinterfaces:
- Path
- All Known Implementing Classes:
- ListAsPath
public interface FixedPath
This class models a (not necessarily simple) directed path
in a graph, i.e., a sequence of nodes and edges.
getNumNodes
int getNumNodes()
- Returns:
- the number of nodes in the path
getFirstNode
Node getFirstNode()
- Returns:
- the first node in the path
getLastNode
Node getLastNode()
- Returns:
- the last node in the path
getNodeIterator
NodeIterator getNodeIterator()
- Returns:
- an iterator which traverses all nodes in the path in the
ordering defined by the path.
getEdgeIterator
EdgeIterator getEdgeIterator()
- Returns:
- an iterator which traverses all edges in the path in the
ordering defined by the path.