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:
anovazzi1 2024-07-22 13:04:50 -03:00 committed by GitHub
commit 3c1cacbf9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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