public class ArrayListPath extends AbstractPath
Constructor and Description |
---|
ArrayListPath() |
Modifier and Type | Method and Description |
---|---|
ArrayListPath |
clone() |
boolean |
containsVertex(int someVertex) |
boolean |
equals(ArrayListPath p) |
boolean |
equals(java.lang.Object o) |
void |
extend(int thoughLink,
int v) |
int |
getDestination()
The last vertex in the path
|
int |
getEdgeHeadingToVertexAt(int i) |
int |
getNumberOfVertices() |
int |
getSource()
The first vertex in the path
|
int |
getVertexAt(int i) |
int |
indexOfVertex(int v) |
static void |
main(java.lang.String[] args) |
void |
reverse() |
void |
setSource(int v) |
int[] |
toVertexArray()
Computes the sequence of vertices as an array of ints.
|
equals, extend, getLength, getVertexSet, hashCode, hasLoop, isApplicable, isCycle, isElementary, isHamiltonian, isShortestPath, permitsSameTrip, setColor, toString, toVertexSet, whyNotApplicable
public int getSource()
Path
public int getDestination()
Path
public int getNumberOfVertices()
public int[] toVertexArray()
Path
public void reverse()
public boolean containsVertex(int someVertex)
public void setSource(int v)
public int getVertexAt(int i)
public int indexOfVertex(int v)
public void extend(int thoughLink, int v)
public boolean equals(java.lang.Object o)
equals
in class AbstractPath
public boolean equals(ArrayListPath p)
public ArrayListPath clone()
clone
in interface Path
clone
in class AbstractPath
public int getEdgeHeadingToVertexAt(int i)
public static void main(java.lang.String[] args)