Update graph vertices and edges

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-04 00:12:21 -03:00
commit 6b4f3a446b

View file

@ -296,6 +296,8 @@ class Graph:
for vertex_id in new_vertex_ids:
new_vertex = other.get_vertex(vertex_id)
self._update_edges(new_vertex)
# Graph is set at the end because the edges come from the graph
# and the other graph is where the new edges and vertices come from
new_vertex.graph = self
# Update existing vertices that have changed