Skip to content

Commit

Permalink
Update prim.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Aravena committed Feb 5, 2018
1 parent 4577920 commit 2d43a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spanningtrees/prim.jl
@@ -1,5 +1,5 @@
struct PrimHeapEntry{T<:Real}
edge::Edge
edge::AbstractEdge
dist::T
end

Expand All @@ -18,7 +18,7 @@ function prim_mst end
distmx::AbstractMatrix = weights(g)
)
pq = Vector{PrimHeapEntry}()
mst = Vector{Edge}()
mst = Vector{AbstractEdge}()
marked = zeros(Bool, nv(g))

sizehint!(pq, ne(g))
Expand Down

0 comments on commit 2d43a60

Please sign in to comment.