@Deprecated public final class Path extends Object
| Constructor and Description |
|---|
Path(List<Node> nodes,
List<Edge> edges)
Deprecated.
Parametrized constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Deprecated.
|
Node |
firstNode()
Deprecated.
Returns the first node in the path.
|
Edge |
getEdge(int index)
Deprecated.
Returns an edge with specified index in the path.
|
List<Edge> |
getEdges()
Deprecated.
Returns the edges of the path.
|
Node |
getNode(int index)
Deprecated.
Returns a node with specified index in the path.
|
List<Node> |
getNodes()
Deprecated.
Returns the nodes of the path.
|
int |
hashCode()
Deprecated.
|
Node |
lastNode()
Deprecated.
Returns the last node in the path.
|
int |
length()
Deprecated.
Returns the length of the path - number of edges.
|
int |
nodeCount()
Deprecated.
Return the number of nodes in the path.
|
String |
toString()
Deprecated.
|
public List<Node> getNodes()
public List<Edge> getEdges()
public int length()
public int nodeCount()
public Node firstNode()
IndexOutOfBoundsException - if the path is empty.public Node lastNode()
IndexOutOfBoundsException - if the path is empty.public Node getNode(int index)
IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= nodesCount())public Edge getEdge(int index)
IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= length())Copyright © 2024. All rights reserved.