Constructor and Description |
---|
PathImpl()
To instantiate an empty path.
|
Modifier and Type | Method and Description |
---|---|
Path |
clone()
To clone the path
|
void |
concat(Arc arc)
To add an arc to the path
|
boolean |
contains(Arc arc)
To test whether an arc is contained in the path.
|
boolean |
contains(Vertex vertex)
To test whether a vertex is contained in the path.
|
java.util.Set<Arc> |
getArcSet()
To get the set of arcs in the path
|
Vertex |
getFirstVertex()
To get the starting vertex of the path
|
Vertex |
getLastVertex()
To get the last vertex of the path
|
java.util.Set<Vertex> |
getVertexSet()
To get the set of vertices in the path including the first and the last.
|
java.lang.String |
toString()
Give the list of vertex name
|
@API public PathImpl()
@API public void concat(Arc arc) throws NotAPathException
Path
concat
in interface Path
arc
- the next arcNotAPathException
@API public java.util.Set<Arc> getArcSet()
Path
@API public java.util.Set<Vertex> getVertexSet()
Path
getVertexSet
in interface Path
@API public Vertex getFirstVertex()
Path
getFirstVertex
in interface Path
@API public Vertex getLastVertex()
Path
getLastVertex
in interface Path
@API public boolean contains(Vertex vertex)
Path
@API public boolean contains(Arc arc)
Path
@API public java.lang.String toString()
toString
in class java.lang.Object