File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ GraphsSharedArraysExt = "SharedArrays"
2222[compat ]
2323ArnoldiMethod = " 0.4"
2424Distributed = " 1"
25- DataStructures = " 0.18, 0. 19"
25+ DataStructures = " 0.19"
2626Inflate = " 0.1.3"
2727LinearAlgebra = " 1"
2828Random = " 1"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ using Statistics: mean
88
99using Inflate: InflateGzipStream
1010using DataStructures:
11- IntDisjointSets ,
11+ IntDisjointSet ,
1212 PriorityQueue,
1313 dequeue!,
1414 dequeue_pair!,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function karger_min_cut(g::AbstractGraph{T}) where {T<:Integer}
2323 nvg < 2 && return zeros (Int, nvg)
2424 nvg == 2 && return [1 , 2 ]
2525
26- connected_vs = IntDisjointSets (nvg)
26+ connected_vs = IntDisjointSet (nvg)
2727 num_components = nvg
2828
2929 for e in shuffle (collect (edges (g)))
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function boruvka_mst end
1515@traitfn function boruvka_mst (
1616 g:: AG :: (!IsDirected) , distmx:: AbstractMatrix{T} = weights (g); minimize= true
1717) where {T<: Number ,U,AG<: AbstractGraph{U} }
18- djset = IntDisjointSets (nv (g))
18+ djset = IntDisjointSet (nv (g))
1919 # maximizing Z is the same as minimizing -Z
2020 # mode will indicate the need for the -1 multiplication
2121 mode = minimize ? 1 : - 1
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function kruskal_mst end
1212@traitfn function kruskal_mst (
1313 g:: AG :: (!IsDirected) , distmx:: AbstractMatrix{T} = weights (g); minimize= true
1414) where {T<: Number ,U,AG<: AbstractGraph{U} }
15- connected_vs = IntDisjointSets (nv (g))
15+ connected_vs = IntDisjointSet (nv (g))
1616
1717 mst = Vector {edgetype(g)} ()
1818 nv (g) <= 1 && return mst
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ assumed to be 1.
3030 # still appearing in fadjlist. When iterating neighbors, is_merged makes sure we
3131 # don't consider them
3232 is_merged = falses (nvg)
33- merged_vertices = IntDisjointSets (U (nvg))
33+ merged_vertices = IntDisjointSet (U (nvg))
3434 graph_size = nvg
3535 # We need to mutate the weight matrix,
3636 # and we need it clean (0 for non edges)
You can’t perform that action at this time.
0 commit comments