-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add tmp_remove_nodes method to graph #17
base: release1_1
Are you sure you want to change the base?
Conversation
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
a918336
to
45780e7
Compare
Co-authored-by: Vincent Koppen <[email protected]> Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
3a10746
to
e0fbce0
Compare
@@ -63,6 +73,14 @@ def has_node(self, node_id: int) -> bool: | |||
|
|||
return self._has_node(node_id=internal_node_id) | |||
|
|||
def in_edges(self, node_id: int) -> Generator[tuple[int, int], None, None]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps it is better to call it in_branches
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think in_branches
is better. More consistent with the other public functions.
Signed-off-by: Thijs Baaijen <[email protected]>
a960d8d
to
369498b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some small points.
@@ -63,6 +73,14 @@ def has_node(self, node_id: int) -> bool: | |||
|
|||
return self._has_node(node_id=internal_node_id) | |||
|
|||
def in_edges(self, node_id: int) -> Generator[tuple[int, int], None, None]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think in_branches
is better. More consistent with the other public functions.
e70bae8
to
39730c0
Compare
Signed-off-by: Thijs Baaijen <[email protected]>
39730c0
to
e81346f
Compare
Signed-off-by: Thijs Baaijen <[email protected]>
…odel-ds into feat/tmp-remove-nodes
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
676fd30
to
c93cd2f
Compare
Quality Gate passedIssues Measures |
Adds a context manager for temporarily removing nodes from the graph.
This can for instance be useful when trying to calculate the shortest path between two nodes without considering certain nodes in the graph.