From 4f8b5f59bdc388bbcb49bbb00a432ef564eb8993 Mon Sep 17 00:00:00 2001 From: Tomasz Olczak Date: Tue, 20 Jul 2021 19:56:42 +0200 Subject: [PATCH] fix Issue #1577 in src/SimpleGraphs/generators/randgraphs.jl _try_creation() --- src/SimpleGraphs/generators/randgraphs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SimpleGraphs/generators/randgraphs.jl b/src/SimpleGraphs/generators/randgraphs.jl index 716940376..f6c4a4705 100644 --- a/src/SimpleGraphs/generators/randgraphs.jl +++ b/src/SimpleGraphs/generators/randgraphs.jl @@ -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