-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added networkx export functionality (#6046)
* Added networkx export functionality Apologies for delay but finally got around to updating the latest version of model_graph.py to include networkx export function as discussed in #5677 * Update model_graph.py restoring whitespace #5677 (comment) * Corrected cluster(subgraph) behaviour subgraph(cluster) attributes are now stored on each node that is a member of that subgraph(cluster). * Update pymc/model_graph.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Correcting docstring spacing * Updated to include new function model_to_networkx * linted and checked by pre-commit * added test for model_to_networkx function * added function import * added model_to_networkx * corrected formatting * more linting * Update test_model_graph.py * Update __init__.py * Redid changes * added function to models.rst * corrected indent issue indent issue cause by merge resolution * corrected spelling error * added networkx to requirements * redid pre-commit and ran it twice * Update pymc/model_graph.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Update pymc/model_graph.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Update pymc/model_graph.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Update pymc/model_graph.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Update pymc/model_graph.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Removed trailing whitespace Removed trailing whitespace from lines 312, 314, * removing more trailing whitespace Co-authored-by: Oriol Abril-Pla <[email protected]> Co-authored-by: Joni Pelham <[email protected]>
- Loading branch information
1 parent
906fcdc
commit 9883915
Showing
9 changed files
with
200 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ Model creation and inspection | |
|
||
Model | ||
model_to_graphviz | ||
model_to_networkx | ||
modelcontext | ||
|
||
Others | ||
|
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
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ | |
"mkl-service", | ||
"numba", | ||
"python-graphviz", | ||
"networkx", | ||
"blas", | ||
"jax", | ||
} | ||
|