diff --git a/networkx/classes/function.py b/networkx/classes/function.py index 61cead315f7..6b9027fcfc9 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