mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Fix find_vertices_in_cycles(): don't check self-loop in SCC.
This commit is contained in:
parent
83d03e97c5
commit
f5657ef7b7
@ -170,6 +170,7 @@ find_vertices_in_cycles(const Graph &g) {
|
|||||||
assert(!comp.empty());
|
assert(!comp.empty());
|
||||||
if (comp.size() > 1) {
|
if (comp.size() > 1) {
|
||||||
insert(&rv, comp);
|
insert(&rv, comp);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
vertex_descriptor v = *comp.begin();
|
vertex_descriptor v = *comp.begin();
|
||||||
if (hasSelfLoop(v, g)) {
|
if (hasSelfLoop(v, g)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user