Here is my code:
g = new SparseMultigraph<String, Double>();
g.addVertex("A");
g.addVertex("B");
g.addVertex("C");
g.addEdge(0.5, "A", "B");
g.addEdge(0.5, "B", "C");
g.addEdge(0.3, "A", "C");
System.out.println("The graph g = " + g.toString());
When I run I have this error:
edge 0.5 already exists in this graph with endpoints <A, B> and cannot be added with endpoints <B, C>
Is it possible to have two arcs with the same weight?