Skip to content

Commit

Permalink
fix Issue sbromberger#1577 in src/SimpleGraphs/generators/randgraphs.…
Browse files Browse the repository at this point in the history
…jl _try_creation()
  • Loading branch information
tlcz committed Jul 20, 2021
1 parent ca41a2e commit 4f8b5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleGraphs/generators/randgraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ function _try_creation(n::T, k::Vector{T}, rng::AbstractRNG) where T <: Integer
return Set{SimpleEdge{T}}()
end

stubs = Vector{Int}()
stubs = Vector{T}()
for (e, ct) in potential_edges
append!(stubs, fill(e, ct))
end
Expand Down

0 comments on commit 4f8b5f5

Please sign in to comment.