示例#1
0
 public void testEdgeAnnotations() {
   Graph<String, String> graph = new LinkedUndirectedGraph<String, String>();
   graph.createNode("1");
   graph.createNode("2");
   graph.createNode("3");
   graph.connect("1", "a", "2");
   graph.connect("2", "b", "3");
   GraphEdge<String, String> a = graph.getEdges("1", "2").get(0);
   GraphEdge<String, String> b = graph.getEdges("2", "3").get(0);
   checkAnnotations(graph, a, b);
 }