EDU.auburn.VGJ.graph
Class NodeList

java.lang.Object
  extended byEDU.auburn.VGJ.graph.NodeList
All Implemented Interfaces:
java.lang.Cloneable

public class NodeList
extends java.lang.Object
implements java.lang.Cloneable

A NodeList class for use in a Graph.

Here is the source.

Author:
Larry Barowski

Constructor Summary
NodeList()
           
 
Method Summary
 void addNode(Node new_node)
           
 void addNodeAt(Node new_node, int index)
           
 java.lang.Object clone()
           
 int count()
           
 Node firstNode()
           
 int firstNodeIndex()
           
 int getFirstAvailable()
           
 int highestIndex()
          Return the largest node index.
 Node nextNode(Node prev_node)
           
 int nextNodeIndex(int prev_index)
           
 Node nodeFromIndex(int index)
           
 void removeNode(Node node)
           
 void removeNodeAt(int index)
           
 void updateFirstAvailable(int start)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList()
Method Detail

count

public int count()

highestIndex

public int highestIndex()
Return the largest node index.


getFirstAvailable

public int getFirstAvailable()

addNodeAt

public void addNodeAt(Node new_node,
                      int index)

addNode

public void addNode(Node new_node)

updateFirstAvailable

public void updateFirstAvailable(int start)

removeNodeAt

public void removeNodeAt(int index)

removeNode

public void removeNode(Node node)

firstNode

public Node firstNode()

nextNode

public Node nextNode(Node prev_node)

firstNodeIndex

public int firstNodeIndex()

nextNodeIndex

public int nextNodeIndex(int prev_index)

nodeFromIndex

public Node nodeFromIndex(int index)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException