summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Dorner <mail@michaeldorner.de>2021-07-07 15:28:27 +0200
committerGitHub <noreply@github.com>2021-07-07 09:28:27 -0400
commitcabf22e98d06d6c34ff88515f339b515695a7455 (patch)
tree347a3305a1fe66552fa6ee6059b228fb17080e5d
parent9cef29e09e23fa6667a143a55d128822e4e8a43d (diff)
downloadnetworkx-cabf22e98d06d6c34ff88515f339b515695a7455.tar.gz
`descendants_at_distance` also for non-DiGraphs (#4952)
* updated documentation on `descendants_at_distance` updated documentation only * Update networkx/algorithms/traversal/breadth_first_search.py Co-authored-by: Dan Schult <dschult@colgate.edu> Co-authored-by: Dan Schult <dschult@colgate.edu>
-rw-r--r--networkx/algorithms/traversal/breadth_first_search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/algorithms/traversal/breadth_first_search.py b/networkx/algorithms/traversal/breadth_first_search.py
index 39d6c00d..1ec1d6d7 100644
--- a/networkx/algorithms/traversal/breadth_first_search.py
+++ b/networkx/algorithms/traversal/breadth_first_search.py
@@ -374,8 +374,8 @@ def descendants_at_distance(G, source, distance):
Parameters
----------
- G : NetworkX DiGraph
- A directed graph
+ G : NetworkX graph
+ A graph
source : node in `G`
distance : the distance of the wanted nodes from `source`