File tree 7 files changed +11
-11
lines changed
7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ function betweenness_centrality(
4
4
distmx:: AbstractMatrix = weights (g);
5
5
normalize= true ,
6
6
endpoints= false ,
7
- parallel= :distributed ,
7
+ parallel= :threads ,
8
8
)
9
9
return if parallel == :distributed
10
10
distr_betweenness_centrality (
@@ -23,7 +23,7 @@ function betweenness_centrality(
23
23
distmx:: AbstractMatrix = weights (g);
24
24
normalize= true ,
25
25
endpoints= false ,
26
- parallel= :distributed ,
26
+ parallel= :threads ,
27
27
rng:: Union{Nothing,AbstractRNG} = nothing ,
28
28
seed:: Union{Nothing,Integer} = nothing ,
29
29
)
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ function closeness_centrality(
2
2
g:: AbstractGraph ,
3
3
distmx:: AbstractMatrix = weights (g);
4
4
normalize= true ,
5
- parallel= :distributed ,
5
+ parallel= :threads ,
6
6
)
7
7
return if parallel == :distributed
8
8
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 )
2
2
return if parallel == :distributed
3
3
distr_radiality_centrality (g)
4
4
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 )
2
2
return if parallel == :distributed
3
3
distr_stress_centrality (g, vs)
4
4
else
9
9
function stress_centrality (
10
10
g:: AbstractGraph ,
11
11
k:: Integer ;
12
- parallel= :distributed ,
12
+ parallel= :threads ,
13
13
rng:: Union{Nothing,AbstractRNG} = nothing ,
14
14
seed:: Union{Nothing,Integer} = nothing ,
15
15
)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ function eccentricity(
4
4
g:: AbstractGraph ,
5
5
vs= vertices (g),
6
6
distmx:: AbstractMatrix{T} = weights (g);
7
- parallel= :distributed ,
7
+ parallel= :threads ,
8
8
) where {T<: Number }
9
9
return if parallel === :threads
10
10
threaded_eccentricity (g, vs, distmx)
@@ -36,7 +36,7 @@ function threaded_eccentricity(
36
36
return eccs
37
37
end
38
38
39
- function eccentricity (g:: AbstractGraph , distmx:: AbstractMatrix ; parallel= :distributed )
39
+ function eccentricity (g:: AbstractGraph , distmx:: AbstractMatrix ; parallel= :threads )
40
40
return eccentricity (g, vertices (g), distmx; parallel)
41
41
end
42
42
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function dijkstra_shortest_paths(
20
20
g:: AbstractGraph{U} ,
21
21
sources= vertices (g),
22
22
distmx:: AbstractMatrix{T} = weights (g);
23
- parallel= :distributed ,
23
+ parallel= :threads ,
24
24
) where {T<: Number } where {U}
25
25
return if parallel === :threads
26
26
threaded_dijkstra_shortest_paths (g, sources, distmx)
Original file line number Diff line number Diff line change 1
1
function random_greedy_color (
2
- g:: AbstractGraph{T} , reps:: Integer ; parallel= :distributed
2
+ g:: AbstractGraph{T} , reps:: Integer ; parallel= :threads
3
3
) where {T<: Integer }
4
4
return if parallel === :threads
5
5
threaded_random_greedy_color (g, reps)
@@ -30,7 +30,7 @@ function distr_random_greedy_color(args...; kwargs...)
30
30
end
31
31
32
32
function 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
34
34
) where {U<: Integer }
35
35
return if sort_degree
36
36
Graphs. degree_greedy_color (g)
You can’t perform that action at this time.
0 commit comments