net.sourceforge.combean.interfaces.graph.containers
Interface FixedPath

Package class diagram package 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.


Method Summary
 EdgeIterator getEdgeIterator()
           
 Node getFirstNode()
           
 Node getLastNode()
           
 NodeIterator getNodeIterator()
           
 int getNumNodes()
           
 

Method Detail

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.