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

Package class diagram package Path
All Superinterfaces:
FixedPath
All Known Implementing Classes:
ListAsPath

public interface Path
extends FixedPath

This class models a (not necessarily simple) modifiable directed path in a graph, i.e., a sequence of nodes and edges.


Method Summary
 void appendEdge(Edge e)
          Add an edge to the end of the path.
 void init(NeighborhoodGraphProp g)
          This method must be called before nodes and edges are added to the path.
 void prependEdge(Edge e)
          Add an edge to the beginning of the path
 void setInitialNode(Node v)
          Sets a single first node of the path.
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.containers.FixedPath
getEdgeIterator, getFirstNode, getLastNode, getNodeIterator, getNumNodes
 

Method Detail

init

void init(NeighborhoodGraphProp g)
This method must be called before nodes and edges are added to the path. After the call to this method the path is empty. Only nodes and edges belonging to the given graph may be added to the path.

Parameters:
g - the graph which contains the path to be constructed

setInitialNode

void setInitialNode(Node v)
Sets a single first node of the path. This method must be called before edges are added to the path. After calling this method the path consists of a single node.

Parameters:
v - the node which shall be added to the path.

appendEdge

void appendEdge(Edge e)
Add an edge to the end of the path.

Parameters:
e - the edge to be added

prependEdge

void prependEdge(Edge e)
Add an edge to the beginning of the path

Parameters:
e - the edge to be added