graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
402 stars 109 forks source link

Node incorrect Degree #379

Open pappel-ig opened 10 months ago

pappel-ig commented 10 months ago

A Multigraph with a loop should count 2 in the degree, but is counted as if it was 1.

Graph graph = new MultiGraph("graph");
graph.addNode("A");
graph.addEdge("A-A", "A", "A", false);
System.out.println(graph.getNode("A").getDegree());

returns 1, not 2.