EDU.auburn.VGJ.graph
Class NodeList
java.lang.Object
|
+--EDU.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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeList
public NodeList()
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
- Overrides:
clone
in class java.lang.Object