Cyclic redundancy: change DFS termination condition into successors of cyclic vertex

This commit is contained in:
Hong, Yang A 2020-01-06 15:32:37 +00:00
parent 17de350599
commit 6f6e2744df

View File

@ -205,7 +205,7 @@ bool removeCyclicPathRedundancy(Graph &g, typename Graph::vertex_descriptor v,
DEBUG_PRINTF(" - checking w %zu\n", g[w].index);
if (!searchForward(g, reach, colours, s, w)) {
if (!searchForward(g, reach, colours, succ_v, w)) {
continue;
}