File tree Expand file tree Collapse file tree 7 files changed +11
-19
lines changed Expand file tree Collapse file tree 7 files changed +11
-19
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 1
1
function 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
6
3
)
7
4
return if parallel == :distributed
8
5
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:: Symbol = :distributed ,
7
+ parallel:: Symbol = :threads ,
8
8
) where {T<: Number }
9
9
return if parallel === :threads
10
10
threaded_eccentricity (g, vs, distmx)
@@ -38,9 +38,7 @@ function threaded_eccentricity(
38
38
return eccs
39
39
end
40
40
41
- function eccentricity (
42
- g:: AbstractGraph , distmx:: AbstractMatrix ; parallel:: Symbol = :distributed
43
- )
41
+ function eccentricity (g:: AbstractGraph , distmx:: AbstractMatrix ; parallel:: Symbol = :threads )
44
42
return eccentricity (g, vertices (g), distmx; parallel)
45
43
end
46
44
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function dijkstra_shortest_paths(
21
21
g:: AbstractGraph{U} ,
22
22
sources= vertices (g),
23
23
distmx:: AbstractMatrix{T} = weights (g);
24
- parallel:: Symbol = :distributed ,
24
+ parallel:: Symbol = :threads ,
25
25
) where {T<: Number } where {U}
26
26
return if parallel === :threads
27
27
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:: Symbol = :distributed
2
+ g:: AbstractGraph{T} , reps:: Integer ; parallel:: Symbol = :threads
3
3
) where {T<: Integer }
4
4
return if parallel === :threads
5
5
threaded_random_greedy_color (g, reps)
@@ -32,10 +32,7 @@ function distr_random_greedy_color(args...; kwargs...)
32
32
end
33
33
34
34
function greedy_color (
35
- g:: AbstractGraph{U} ;
36
- sort_degree:: Bool = false ,
37
- reps:: Integer = 1 ,
38
- parallel:: Symbol = :distributed ,
35
+ g:: AbstractGraph{U} ; sort_degree:: Bool = false , reps:: Integer = 1 , parallel:: Symbol = :threads
39
36
) where {U<: Integer }
40
37
return if sort_degree
41
38
Graphs. degree_greedy_color (g)
You can’t perform that action at this time.
0 commit comments