Multigraphs.jl icon indicating copy to clipboard operation
Multigraphs.jl copied to clipboard

Loop multiplicity incorrect

Open scheinerman opened this issue 1 year ago • 0 comments

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

scheinerman avatar Jan 30 '25 20:01 scheinerman