File tree Expand file tree Collapse file tree 7 files changed +11
-14
lines changed Expand file tree Collapse file tree 7 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ function betweenness_centrality(
44 distmx:: AbstractMatrix = weights (g);
55 normalize= true ,
66 endpoints= false ,
7- parallel= :distributed ,
7+ parallel= :threads ,
88)
99 return if parallel == :distributed
1010 distr_betweenness_centrality (
@@ -23,7 +23,7 @@ function betweenness_centrality(
2323 distmx:: AbstractMatrix = weights (g);
2424 normalize= true ,
2525 endpoints= false ,
26- parallel= :distributed ,
26+ parallel= :threads ,
2727 rng:: Union{Nothing,AbstractRNG} = nothing ,
2828 seed:: Union{Nothing,Integer} = nothing ,
2929)
Original file line number Diff line number Diff line change 11function closeness_centrality (
2- g:: AbstractGraph ,
3- distmx:: AbstractMatrix = weights (g);
4- normalize= true ,
5- parallel= :distributed ,
2+ g:: AbstractGraph , distmx:: AbstractMatrix = weights (g); normalize= true , parallel= :threads
63)
74 return if parallel == :distributed
85 distr_closeness_centrality (g, distmx; normalize= normalize)
Original file line number Diff line number Diff line change 1- function radiality_centrality (g:: AbstractGraph ; parallel= :distributed )
1+ function radiality_centrality (g:: AbstractGraph ; parallel= :threads )
22 return if parallel == :distributed
33 distr_radiality_centrality (g)
44 else
Original file line number Diff line number Diff line change 1- function stress_centrality (g:: AbstractGraph , vs= vertices (g); parallel= :distributed )
1+ function stress_centrality (g:: AbstractGraph , vs= vertices (g); parallel= :threads )
22 return if parallel == :distributed
33 distr_stress_centrality (g, vs)
44 else
99function stress_centrality (
1010 g:: AbstractGraph ,
1111 k:: Integer ;
12- parallel= :distributed ,
12+ parallel= :threads ,
1313 rng:: Union{Nothing,AbstractRNG} = nothing ,
1414 seed:: Union{Nothing,Integer} = nothing ,
1515)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ function eccentricity(
44 g:: AbstractGraph ,
55 vs= vertices (g),
66 distmx:: AbstractMatrix{T} = weights (g);
7- parallel= :distributed ,
7+ parallel= :threads ,
88) where {T<: Number }
99 return if parallel === :threads
1010 threaded_eccentricity (g, vs, distmx)
@@ -36,7 +36,7 @@ function threaded_eccentricity(
3636 return eccs
3737end
3838
39- function eccentricity (g:: AbstractGraph , distmx:: AbstractMatrix ; parallel= :distributed )
39+ function eccentricity (g:: AbstractGraph , distmx:: AbstractMatrix ; parallel= :threads )
4040 return eccentricity (g, vertices (g), distmx; parallel)
4141end
4242
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function dijkstra_shortest_paths(
2020 g:: AbstractGraph{U} ,
2121 sources= vertices (g),
2222 distmx:: AbstractMatrix{T} = weights (g);
23- parallel= :distributed ,
23+ parallel= :threads ,
2424) where {T<: Number } where {U}
2525 return if parallel === :threads
2626 threaded_dijkstra_shortest_paths (g, sources, distmx)
Original file line number Diff line number Diff line change 11function random_greedy_color (
2- g:: AbstractGraph{T} , reps:: Integer ; parallel= :distributed
2+ g:: AbstractGraph{T} , reps:: Integer ; parallel= :threads
33) where {T<: Integer }
44 return if parallel === :threads
55 threaded_random_greedy_color (g, reps)
@@ -30,7 +30,7 @@ function distr_random_greedy_color(args...; kwargs...)
3030end
3131
3232function greedy_color (
33- g:: AbstractGraph{U} ; sort_degree:: Bool = false , reps:: Integer = 1 , parallel= :distributed
33+ g:: AbstractGraph{U} ; sort_degree:: Bool = false , reps:: Integer = 1 , parallel= :threads
3434) where {U<: Integer }
3535 return if sort_degree
3636 Graphs. degree_greedy_color (g)
You can’t perform that action at this time.
0 commit comments