diff options
author | Michael Dorner <mail@michaeldorner.de> | 2021-07-07 15:28:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 09:28:27 -0400 |
commit | cabf22e98d06d6c34ff88515f339b515695a7455 (patch) | |
tree | 347a3305a1fe66552fa6ee6059b228fb17080e5d | |
parent | 9cef29e09e23fa6667a143a55d128822e4e8a43d (diff) | |
download | networkx-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.py | 4 |
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` |