| Modifier and Type | Method and Description | 
|---|---|
void | 
appendEdge(E edge)
Appends a new edge at the end of the this path. 
 | 
void | 
insertEdge(E edge)
Inserts a new edge at the beginning of this path. 
 | 
void | 
removeEdge(E edge)
Removes the specified edge. 
 | 
void | 
setCost(Weight cost)
Sets the total path cost as a weight object. 
 | 
Path<V,E> | 
toImmutable()
Returns an immutable copy of this path. 
 | 
void insertEdge(E edge)
edge - edge to be insertedvoid appendEdge(E edge)
edge - edge to be insertedvoid removeEdge(E edge)
edge - edge to be removedvoid setCost(Weight cost)
cost - new path cost