public interface MutablePath extends Path
Modifier and Type | Method and Description |
---|---|
void |
appendEdge(Edge edge)
Appends the given edge to the end of the path.
|
void |
insertEdge(Edge edge)
Inserts the given edge to the start of the path.
|
void |
removeEdge(Edge edge)
Removes the given edge from the path.
|
void |
setCost(double cost)
Sets the new path cost.
|
void setCost(double cost)
cost
- new path costvoid appendEdge(Edge edge)
edge
- edge to be appendedvoid insertEdge(Edge edge)
edge
- edge to be insertedvoid removeEdge(Edge edge)
edge
- edge to be removedCopyright © 2015. All Rights Reserved.