Update graph vertices and edges
This commit is contained in:
parent
0788a72179
commit
6b4f3a446b
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue