N
- Type of nodepublic interface GraphPath<N>
extends java.lang.Iterable<N>
GraphPath
represents a path in a Graph
. Note that a path can be defined in terms of nodes or
connections
so that multiple edges between the same pair of nodes can be discriminated.Modifier and Type | Method and Description |
---|---|
void |
add(N node)
Adds an item at the end of this path.
|
void |
clear()
Clears this path.
|
N |
get(int index)
Returns the item of this path at the given index.
|
int |
getCount()
Returns the number of items of this path.
|
void |
reverse()
Reverses this path.
|