public interface GraphNode
Graph
,
GraphEdge
,
GraphUtilities
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
The index of this node in its graph.
|
Enumeration<GraphNode> |
inNodes()
Get an enumeration of all the edges at which edges that point
to this node are sourced.
|
Enumeration<GraphNode> |
outNodes()
Get an enumeration of all the edges to which edges sourced at
this node point.
|
void |
setIndex(int i) |
Enumeration<GraphNode> outNodes()
Enumeration<GraphNode> inNodes()
int getIndex()
Graph.compactNodeNumbering
the nodes of a graph should be
numbered 0 thru (# of nodes in graph - 1).void setIndex(int i)