-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Improve directional diagram algo (#113)
* Changes directional diagram algorithm to use depth-first-search (i.e. `nx.dfs_tree`) to create the directional diagrams. Also uses the `nx.DiGraph.reverse` method to build the directional diagram with reversed edges and changes directional diagram return type for `return_edges=False` to a `nx.DiGraph`. * Removes private functions `diagrams._collect_sources` and `diagrams.get_directional_path_edges` * Move array-based edge flipping code into the `return_edges=True` code path * Addresses the directional diagram algo improvement portion of #22
- Loading branch information
Showing
1 changed file
with
28 additions
and
76 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