1: // @author Frank M. Carrano, Timothy M. Henry 2: // @version 5.0 3: protected void resetVertices() 4: { 5: Iterator<VertexInterface<T>> vertexIterator = vertices.getValueIterator(); 6: while (vertexIterator.hasNext()) 7: { 8: VertexInterface<T> nextVertex = VertexIterator.next(); 9: nextVertex.unvisit(); 10: nextVertex.setCost(0); 11: nextVertex.setPredecessor(null); 12: } // end while 13: } // end resetVertices