com.phoenixst.plexus.examples
public class CompleteGraph extends AbstractIntegerNodeGraph
Graph containing a set of Integer
nodes where there is an edge between every pair of nodes.
Since: 1.0
Version: $Revision: 1.29 $
| Constructor Summary | |
|---|---|
| CompleteGraph(int n)
Creates a new CompleteGraph. | |
| 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() |
CompleteGraph.node, defined as the number
of edges incident on node.