com.phoenixst.plexus.examples
public class Path extends AbstractIntegerNodeGraph
Graph
containing a set of Integer
nodes connected by a path of edges from the first node to the last
one.
Since: 1.0
Version: $Revision: 1.29 $
Constructor Summary | |
---|---|
Path(int n)
Creates a new Path . |
Method Summary | |
---|---|
protected Graph.Edge | createEdge(int tailIndex, int headIndex) |
protected Collection | createEdgeCollection() |
protected Traverser | createTraverser(int nodeIndex) |
int | degree(Object node)
Returns the degree of node , defined as the number
of edges incident on node . |
String | toString() |
Path
.node
, defined as the number
of edges incident on node
.