public class PathExtender extends AbstractPath
Constructor and Description |
---|
PathExtender(Path p,
int extensionEdge,
int extensionVertex) |
Modifier and Type | Method and Description |
---|---|
PathExtender |
clone() |
PathExtender |
clone(boolean deep) |
boolean |
containsVertex(int v) |
boolean |
equals(java.lang.Object obj) |
void |
extend(int e,
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) |
java.lang.String |
toString() |
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, toVertexSet, whyNotApplicable
public PathExtender(Path p, int extensionEdge, int extensionVertex)
public boolean equals(java.lang.Object obj)
equals
in class AbstractPath
public PathExtender clone()
clone
in interface Path
clone
in class AbstractPath
public PathExtender clone(boolean deep)
public int[] toVertexArray()
Path
public java.lang.String toString()
toString
in class AbstractPath
public int getDestination()
Path
public void extend(int e, int v)
public int getSource()
Path
public void setSource(int v)
public int getVertexAt(int i)
public boolean containsVertex(int v)
public int indexOfVertex(int v)
public void reverse()
public int getEdgeHeadingToVertexAt(int i)
public int getNumberOfVertices()
public static void main(java.lang.String[] args)