From b806fe88f0bff0b5a8d3511c07a58e7be00b1899 Mon Sep 17 00:00:00 2001 From: Akhilesh Halageri Date: Wed, 11 Oct 2023 23:02:01 +0000 Subject: [PATCH] fix(edits): ignore new ids in neighbor update --- pychunkedgraph/graph/edits.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pychunkedgraph/graph/edits.py b/pychunkedgraph/graph/edits.py index 870fed8bb..5c2217818 100644 --- a/pychunkedgraph/graph/edits.py +++ b/pychunkedgraph/graph/edits.py @@ -600,6 +600,9 @@ def _update_skipped_neighbors(self, node, layer, parent_layer): layer_edges = cx_edges_d.get(l, types.empty_2d) neighbors = layer_edges[:, 1] for n in neighbors: + if n in self._new_old_id_d: + # ignore new ids + continue res = self._update_neighbor_parents(n, parent_layer, updated_parents) updated_parents.update(res)