recomputeRoute() DANGER- this allows the use of the underlying Graph methods;
then call recomputeRoute() to compute the route from
the available graph.
public void addGraphByNodes(Vector newnodes)(Code)
Sets the route to the nodes in the vector newnodes.
Also sets the source and destination to be the first and last
nodes in the vector, respectively.
Parameters: newnodes - Vector of nodes that mark the route
DANGER- this allows the use of the underlying Graph methods;
then call recomputeRoute() to compute the route from
the available graph.
We avoid cycles and other nastiness by assuming that the route
is to be followed in the order that the NODES are stored in the VECTOR.