コード例 #1
0
 private void populateGraph()
 {
     graph.addEdge(vertices[6], vertices[0]);
     graph.addEdge(vertices[1], vertices[0]);
     graph.addEdge(vertices[0], vertices[5]);
     graph.addEdge(vertices[0], vertices[4]);
     graph.addEdge(vertices[5], vertices[4]);
     graph.addEdge(vertices[3], vertices[5]);
     graph.addEdge(vertices[5], vertices[3]);
     graph.addEdge(vertices[1], vertices[2]);
     graph.addEdge(vertices[6], vertices[1]);
     graph.addEdge(vertices[1], vertices[5]);
     graph.addEdge(vertices[4], vertices[3]);
     graph.printEdges();
 }