N
- The class representing the nodes of the graphE
- The class representing the edges of the graphpublic class GraphPath<N,E> extends java.util.ArrayList<Graph.Segment<N,E>>
Constructor and Description |
---|
GraphPath() |
Modifier and Type | Method and Description |
---|---|
java.util.List<E> |
getEdgesInPath()
Get the sequence of edges in this path.
|
N |
getEndNode()
Get the ending node of this path
|
java.util.List<N> |
getNodesInPath()
Get the list of all nodes in this path.
|
N |
getStartNode()
Get the starting node of this path
|
java.util.List<N> |
getValidPathNodes()
Return the sequence of nodes as the path traverses them.
|
boolean |
isPathValid()
Return whether the path is valid or not.
|
void |
setEndNode(N node)
Set the ending node for this path.
|
void |
setStartNode(N node)
Set the start node for this path.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public java.util.List<E> getEdgesInPath()
public N getEndNode()
public java.util.List<N> getNodesInPath()
public N getStartNode()
public java.util.List<N> getValidPathNodes()
public boolean isPathValid()
public void setEndNode(N node)
node
- the ending node of the pathpublic void setStartNode(N node)
node
- the starting node of the path