Skip to content
Snippets Groups Projects
Commit 5ac94643 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Bug fix: extend `inst_eddies` of predecessor

Bug fix: extend `inst_eddies` of predecessor with `inst_edddies` of
circumvented node, instead of just name of circumvented node. The bug
is demonstrated in test `Edgelist_Isic_2` where segment 10 missed eddy
12 and segment 13 missed eddy 15.
parent 9dc646dc
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,10 @@ for v in g.vertices():
g.remove_edge(g.edge(v, v3))
g.add_edge(v2, v3)
g.vp.inst_eddies[v2].append(int(g.vp.name[v]))
# Add the segments represented by v to the segments
# represented by v2:
g.vp.inst_eddies[v2].extend(g.vp.inst_eddies[v])
verts_to_del.append(v)
t1 = time.perf_counter()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment