-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return adjacent nodes in both directions in
PyDiGraph.adj
(#437)
* Return adjacent nodes in both directions in `PyDiGraph.adj` Documentation of `PyDiGraph.adj` states that the ouput dictionary contains adjacent nodes in either direction. But previously, only outbound neighbors were included. This has been fixed. At the same time, this commit simplifies the source code of `PyDiGraph.adj_direction` and `PyGraph.adj`. * cargo fmt
- Loading branch information
1 parent
a0e38ef
commit f2f3a09
Showing
4 changed files
with
37 additions
and
52 deletions.
There are no files selected for viewing
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,7 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes the output of :meth:`~retworkx.PyDiGraph.adj` to include | ||
neighbors that have an edge between them and the specified node, | ||
in either direction. Previously, only outbound nodes were included. | ||
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