Skip to content

Commit 92d99df

Browse files
committed
Fix warning from DataStructures.jl
1 parent 9a7a6df commit 92d99df

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ GraphsSharedArraysExt = "SharedArrays"
2222
[compat]
2323
ArnoldiMethod = "0.4"
2424
Distributed = "1"
25-
DataStructures = "0.18, 0.19"
25+
DataStructures = "0.19"
2626
Inflate = "0.1.3"
2727
LinearAlgebra = "1"
2828
Random = "1"

src/Graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using Statistics: mean
88

99
using Inflate: InflateGzipStream
1010
using DataStructures:
11-
IntDisjointSets,
11+
IntDisjointSet,
1212
PriorityQueue,
1313
dequeue!,
1414
dequeue_pair!,

src/graphcut/karger_min_cut.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)))

src/spanningtrees/boruvka.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/spanningtrees/kruskal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/traversals/maxadjvisit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)