fix: change logical operator in Graph class improving API usage (#2838)
refactor: fix logical operator in Graph class Fixes a logical operator in the Graph class that was causing incorrect filtering of vertices based on input components. The operator was changed from "or" to "and" to ensure that both conditions are met before skipping the vertex. This resolves an issue where certain vertices were being skipped incorrectly. Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
This commit is contained in:
parent
4b9dc47021
commit
3c1cacbf9a
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ class Graph:
|
|||
vertex = self.get_vertex(vertex_id)
|
||||
# If the vertex is not in the input_components list
|
||||
if input_components and (
|
||||
vertex_id not in input_components or vertex.display_name not in input_components
|
||||
vertex_id not in input_components and vertex.display_name not in input_components
|
||||
):
|
||||
continue
|
||||
# If the input_type is not any and the input_type is not in the vertex id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue