diff --git a/src/SOCgen.c b/src/SOCgen.c index 0632671..8559178 100644 --- a/src/SOCgen.c +++ b/src/SOCgen.c @@ -592,7 +592,7 @@ int main(int argc, char *argv[]) { const int num_cycles = find_cycles(cycles, cyclescnt, n, children, \ childrenlen); // If enabled, ignore DAGs - if (NONDAGONLY && num_cycles > 0) continue; + if (NONDAGONLY && num_cycles == 0) continue; // Test the Siblings-On-Cycles property // A DAG is trivially a SOC if (num_cycles > 0 && !gissoc(n, parents, parentslen, children, \