ng_violet: fix non-determinism in deanchorIfNeeded

This commit is contained in:
Justin Viiret 2016-07-27 10:23:42 +10:00 committed by Matthew Barr
parent a8cceeeddc
commit f3ccbf19b8

View File

@ -1333,7 +1333,10 @@ bool deanchorIfNeeded(NGHolder &g) {
if (succ_v == succ_g) { if (succ_v == succ_g) {
DEBUG_PRINTF("found ^.*\n"); DEBUG_PRINTF("found ^.*\n");
for (auto succ : succ_g) { for (auto succ : adjacent_vertices_range(g.start, g)) {
if (succ == g.startDs) {
continue;
}
add_edge(g.startDs, succ, g); add_edge(g.startDs, succ, g);
} }
clear_vertex(v, g); clear_vertex(v, g);