Skip to content

Node incorrect Degree #379

@pappel-ig

Description

@pappel-ig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions