JGraphT JGraphTã¯ãJavaã®ã°ã©ãã©ã¤ãã©ãªã§ããã°ã©ãã®æç»ã§ã¯ãªããã°ã©ãçè«ã®ã¢ãã«ã¨ã¢ã«ã´ãªãºã ã®æ¹ã«ãã©ã¼ã«ã¹ãã¦ãã¾ããã¨ã¦ã使ããããã£ãã®ã§ãç´¹ä»ãã¦ã¿ã¾ãã ç¡åã°ã©ã UndirectedGraph<String, DefaultEdge> g = new SimpleGraph<String, DefaultEdge>( DefaultEdge.class); g.addVertex("a"); g.addVertex("b"); g.addVertex("c"); g.addEdge("a", "b"); g.addEdge("b", "c"); System.out.println(g.vertexSet()); System.out.println(g.edgeSet()); System.out.println(g.edgesOf("c"));
{{#tags}}- {{label}}
{{/tags}}