Class GraphNode
java.lang.Object
|
+--GraphNode
- public class GraphNode
- extends Object
Linked list data structure. Has a unique key and a link to another graph node.
Field Summary |
double |
cost
the cost of this GraphNode |
GraphNode |
next
a link to another GraphNode |
int |
v
unique key for this GraphNode |
Constructor Summary |
GraphNode(int v,
GraphNode next)
Constructs a new graph node with the specified key and link to the next graph
node |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
v
public int v
- unique key for this GraphNode
cost
public double cost
- the cost of this GraphNode
next
public GraphNode next
- a link to another GraphNode
GraphNode
public GraphNode(int v,
GraphNode next)
- Constructs a new graph node with the specified key and link to the next graph
node
- Parameters:
v
- unique key for the nodenext
- link to next node
Visualization of Graph Algorithms
Author: Paul Simbi
Started by: Kevin Wayne
2002