Пример #1
0
 /**
  * Return the intersections, which are the vertices in this graph.
  *
  * @return The vertices in this graph as GeographicPoints
  */
 public Set<GeographicPoint> getVertices() {
   Set<GeographicPoint> result = new HashSet<GeographicPoint>();
   // TODO: Implement this method in WEEK 2
   for (RoadNode node : nodes.values()) {
     result.add(node.getLocation());
   }
   return result;
 }