diff options
Diffstat (limited to 'networkx/algorithms/threshold.py')
-rw-r--r-- | networkx/algorithms/threshold.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/algorithms/threshold.py b/networkx/algorithms/threshold.py index 5370d987..0d37c906 100644 --- a/networkx/algorithms/threshold.py +++ b/networkx/algorithms/threshold.py @@ -674,7 +674,7 @@ def betweenness_sequence(creation_sequence, normalized=True): dlast = 0.0 # betweenness of last d for i, c in enumerate(cs): if c == "d": # cs[i]=="d": - # betweennees = amt shared with eariler d's and i's + # betweennees = amt shared with earlier d's and i's # + new isolated nodes covered # + new paths to all previous nodes b = dlast + (irun - 1) * irun / dr + 2 * irun * (i - drun - irun) / dr @@ -825,7 +825,7 @@ def random_threshold_sequence(n, p, seed=None): """ Create a random threshold sequence of size n. A creation sequence is built by randomly choosing d's with - probabiliy p and i's with probability 1-p. + probability p and i's with probability 1-p. s=nx.random_threshold_sequence(10,0.5) |