net.sourceforge.combean.samples.simplegraphs
Class SimpleNumberGraph

Package class diagram package SimpleNumberGraph
java.lang.Object
  extended by net.sourceforge.combean.samples.simplegraphs.NumberGraph
      extended by net.sourceforge.combean.samples.simplegraphs.SimpleNumberGraph
All Implemented Interfaces:
Graph, GlobalIndexedNodesGraphProp, GlobalNodesGraphProp, GlobalNumberedNodesGraphProp, NeighborhoodGraphProp, OutgoingEdgeNeighborhoodGraphProp
Direct Known Subclasses:
Clique, DirectedCircle, DirectedPath, IsolatedNodes, Path

public abstract class SimpleNumberGraph
extends NumberGraph


Field Summary
 
Fields inherited from class net.sourceforge.combean.samples.simplegraphs.NumberGraph
FIRSTNODE, NOSUCHNODE
 
Fields inherited from interface net.sourceforge.combean.interfaces.graph.prop.GlobalIndexedNodesGraphProp
UNDEFINED_NODE
 
Constructor Summary
SimpleNumberGraph(int size)
           
 
Method Summary
 int getNumNodes()
          Return number of nodes in the graph.
 
Methods inherited from class net.sourceforge.combean.samples.simplegraphs.NumberGraph
calcNextNode, contains, convertNumToNode, empty, getAllNodesIterator, getEdgeClass, getFirstNode, getIncidentEdges, getNode, getNodeClass, getNodeNumber, getOtherNode, getOutgoingEdges, getSecondNode, nextNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNumberGraph

public SimpleNumberGraph(int size)
Parameters:
size - the number of nodes in the graph
Method Detail

getNumNodes

public final int getNumNodes()
Description copied from interface: GlobalNodesGraphProp
Return number of nodes in the graph.

Returns:
number of nodes
See Also:
GlobalNodesGraphProp.getNumNodes()