@Test public void testGetDiameter() throws Exception { assertEquals(2, GraphMetrics.getDiameter(QUERY_HANDLER)); }
public static int getDiameter(QueryHandler graph) { return Collections.max(getEccentricity(graph).values()); }
GraphMetrics { public static int getDiameter(QueryHandler graph) { return Collections.max(getEccentricity(graph).values()); } }
GraphMetrics { public static int getDiameter(QueryHandler graph) { return Collections.max(getEccentricity(graph).values()); }  }
GraphMetrics { public static int getDiameter(QueryHandler graph) { return Collections.max(getEccentricity(graph).values()); }  static int getDiameter(QueryHandler graph); static int getRadius(QueryHandler graph); static Map<Long, Integer> getEccentricity(QueryHandler graph); static Integer getEccentricity(QueryHandler graph, Vertex v); static Map<Integer, Set<String>> getComponents(QueryHandler graph); }
GraphMetrics { public static int getDiameter(QueryHandler graph) { return Collections.max(getEccentricity(graph).values()); }  static int getDiameter(QueryHandler graph); static int getRadius(QueryHandler graph); static Map<Long, Integer> getEccentricity(QueryHandler graph); static Integer getEccentricity(QueryHandler graph, Vertex v); static Map<Integer, Set<String>> getComponents(QueryHandler graph);  }