forked from networkx/networkx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH, BUG]: added
colliders
and v_structures
and deprecated `comp…
…ute_v_structures` in `dag.py` (networkx#7398) Deprecates `compute_v_structures` in favor of two newly added generators in the `dag` module: `colliders` and `v_structures` Resolves an issue with `compute_v_structures` which incorrectly included all colliders, as opposed to only the subset of colliders with no edge between the parents. This PR fixes that bug, improves the terminology/documentation, and improves the interface via deprecating the buggy compute_v_structures. --------- Co-authored-by: Dan Schult <[email protected]> Co-authored-by: Ross Barnowski <[email protected]>
- Loading branch information
1 parent
4e2e68b
commit fe5e260
Showing
5 changed files
with
236 additions
and
21 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
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 |
---|---|---|
|
@@ -22,3 +22,5 @@ Directed Acyclic Graphs | |
dag_longest_path_length | ||
dag_to_branching | ||
compute_v_structures | ||
colliders | ||
v_structures |
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