summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Korbonits <alexkorbonits@gmail.com>2021-06-28 13:48:09 -0700
committerGitHub <noreply@github.com>2021-06-28 16:48:09 -0400
commit232decb41a1bda1c70d37dbb1f3541dcca104ab6 (patch)
treeea2598c3efa598a2f592e3c8f9ef4caa97ea1b58
parent3146c56f0fe942f71784d5ee03aa65aec845859e (diff)
downloadnetworkx-232decb41a1bda1c70d37dbb1f3541dcca104ab6.tar.gz
Fixes #4275 - Add comment to parallel betweenness example (#4926)
* Add comment about single core CI/CD showing slower parallel output in example script. * less specific estimate of speedup Co-authored-by: Dan Schult <dschult@colgate.edu>
-rw-r--r--examples/algorithms/plot_parallel_betweenness.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/algorithms/plot_parallel_betweenness.py b/examples/algorithms/plot_parallel_betweenness.py
index 7a27abaa..aa88652b 100644
--- a/examples/algorithms/plot_parallel_betweenness.py
+++ b/examples/algorithms/plot_parallel_betweenness.py
@@ -10,8 +10,12 @@ The function betweenness centrality accepts a bunch of nodes and computes
the contribution of those nodes to the betweenness centrality of the whole
network. Here we divide the network in chunks of nodes and we compute their
contribution to the betweenness centrality of the whole network.
-"""
+Note: The example output below shows that the non-parallel implementation is
+faster. This is a limitation of our CI/CD pipeline running on a single core.
+
+Depending on your setup, you will likely observe a speedup.
+"""
from multiprocessing import Pool
import time
import itertools