-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GraphNode interface abstraction & Graph refactorings (#919)
* Better impl of ordered_subnodes_hier; make it fun, not method * Remove dupl of node depth omputation * abstrat desriptive_id, introdue repr(node) * WIP introdue interfae for GraphNode * WIP fix str/repr/desriptive_id logic for tests * WIP simplify disonnet nodes * WIP minor fixes * Introduce abstract GraphNode interface * WIP refator delete_subtree & delete_node * Revert "WIP refator delete_subtree & delete_node" This reverts commit 4febfad00e52ec23a6524cc7cfac5c17710103dd. * Fix graph_id test * WIP upd usages of GraphNode type to DAGNode where needed * fixup! WIP simplify disonnet nodes * fixup! Fix graph_id test * Add backward compatibility mapping for moved/renamed classes in serializer.py * Make get_nodes_degrees a funtion, not a method * Make distane_to_primary_level a funtion, not a method * Make nodes_from_layer a funtion, not a method * Move graph utils methods to graph_utils.py * WIP fix doc comments in graph_utils.py * Modify dos for GraphNode * Mode reursive_desriptive_id * Make GraphNode Hashable * Rename DAGNode to LinkedGraphNode * Move LinkedGraphNode to its own file * Drop usages of `distane_to_primary_level` in favor of node_depth * Revert "Drop usages of `distane_to_primary_level` in favor of node_depth" This reverts commit 3bbf80e. * Revert making graph node Hashable * Rename GraphOperator to LinkedGraph * Revert moving reursive_desription_id * Move distane_to_primary_level * fixup! Rename GraphOperator to LinkedGraph * fixup! Revert moving reursive_desription_id * fix serialize of renamed GraphOperator/LinkedGraph * fixup! disonnet nodes * fix type import from typing module * Drop pipeline.__eq__ that aused failure in hte ase of multiple root_nodes * review fixes * review fixes for type in tests * WIP rebase fixes * WIP rebase fixes for node desription * Raise error when Node has no content in `description` * fix descriptive_id in the case of default graph node (don't print {}) * Add expliit super() to linked_graph_node.py
- Loading branch information
Showing
34 changed files
with
376 additions
and
358 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
Oops, something went wrong.