summaryrefslogtreecommitdiff
path: root/networkx/classes
diff options
context:
space:
mode:
authorSultan Orazbayev <contact@econpoint.com>2022-03-19 07:02:26 +0600
committerGitHub <noreply@github.com>2022-03-18 21:02:26 -0400
commiteb22e121816896ec0664c41a0232e2f80a259b96 (patch)
tree42f6ccc1f8b0fdf4e80c149f31ddcfbfc68a6a67 /networkx/classes
parentc6e9065e7c0f3a8b1f58a2ffdd5ea041a33f0b94 (diff)
downloadnetworkx-eb22e121816896ec0664c41a0232e2f80a259b96.tar.gz
Correct typo in docstring (int -> float) (#5398)
* Correct typo in docstring (int -> float) This is based on https://stackoverflow.com/q/71494698/10693596 * Update function.py * Update function.py
Diffstat (limited to 'networkx/classes')
-rw-r--r--networkx/classes/function.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/classes/function.py b/networkx/classes/function.py
index 61cead31..6b9027fc 100644
--- a/networkx/classes/function.py
+++ b/networkx/classes/function.py
@@ -1288,8 +1288,8 @@ def path_weight(G, path, weight):
Returns
-------
- cost: int
- A integer representing the total cost with respect to the
+ cost: int or float
+ An integer or a float representing the total cost with respect to the
specified weight of the specified path
Raises