public class SingletonPath extends AbstractPath
Constructor and Description |
---|
SingletonPath(int v) |
Modifier and Type | Method and Description |
---|---|
AbstractPath |
clone() |
boolean |
containsVertex(int someVertex) |
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) |
void |
reverse() |
void |
setSource(int v) |
java.lang.String |
toString() |
int[] |
toVertexArray()
Computes the sequence of vertices as an array of ints.
|
equals, equals, extend, getLength, getVertexSet, hashCode, hasLoop, isApplicable, isCycle, isElementary, isHamiltonian, isShortestPath, permitsSameTrip, setColor, toVertexSet, whyNotApplicable
public java.lang.String toString()
toString
in class AbstractPath
public int getSource()
Path
public void setSource(int v)
public int getVertexAt(int i)
public AbstractPath clone()
clone
in interface Path
clone
in class AbstractPath
public int getDestination()
Path
public int[] toVertexArray()
Path
public boolean containsVertex(int someVertex)
public int indexOfVertex(int v)
public void extend(int e, int v)
public void reverse()
public int getEdgeHeadingToVertexAt(int i)
public int getNumberOfVertices()