-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
PyDiGraph.neighbors_undirected
(#1254)
* Add `PyDiGraph.neighbors_undirected` * Add reno * add stub * review comments - additional test comparing w/ to_undirected - example in docstring * Apply suggestions from code review --------- Co-authored-by: Ivan Carvalho <[email protected]>
- Loading branch information
1 parent
b6f0ff5
commit 8b5d38b
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/neighbors-undirected-087b032745ec002d.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new method :meth:`~rustworkx.PyDiGraph.neighbors_undirected` to | ||
obtain the neighbors of a node in a directed graph, irrespective of the | ||
edge directionality. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters