Source of 29.21.java


  1: protected void resetVertices()
  2: {
  3:    Iterator<VertexInterface<T>> vertexIterator = vertices.getValueIterator();
  4:    while (vertexIterator.hasNext())
  5:    {
  6:       VertexInterface<T> nextVertex = VertexIterator.next();
  7:       nextVertex.unvisit();
  8:       nextVertex.setCost(0);
  9:       nextVertex.setPredecessor(null);
 10:    } // end while
 11: } // end resetVertices
 12: // Version 4.0