Skip to content

Commit

Permalink
update wording based on conversation in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dschult committed Sep 25, 2023
1 parent 46e9a7c commit d49ea2e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions networkx/algorithms/centrality/betweenness.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ def betweenness_centrality(
then we are only counting the paths in one direction. They are
undirected paths but we are counting them in a directed way.
To count them as undirected paths, each should count as half a path.
This algorithm is not guaranteed to work if edge weights or demands
are floating point numbers (overflows and roundoff errors can
cause problems). As a workaround you can use integer numbers by
multiplying the relevant edge attributes by a convenient
This algorithm is not guaranteed to be correct if edge weights
are floating point numbers. As a workaround you can use integer
numbers by multiplying the relevant edge attributes by a convenient
constant factor (eg 100) and converting to integers.
References
Expand Down

0 comments on commit d49ea2e

Please sign in to comment.