mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
ng_violet: fix non-determinism in deanchorIfNeeded
This commit is contained in:
parent
a8cceeeddc
commit
f3ccbf19b8
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user