Skip to content

Loop multiplicity incorrect #20

@scheinerman

Description

@scheinerman

When adding a single loop to a Multigraph, its multiplicity ought to be one, not two:

julia> using Graphs, Multigraphs

julia> g = Multigraph(4)
{4, 0} undirected Int64 multigraph

julia> add_edge!(g,1,1)
true

julia> collect(edges(g))
1-element Vector{Any}:
 Multiple edge 1 => 1 with multiplicity 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions