Fixed "-c" switch

This commit is contained in:
Ämin Baumeler 2024-10-02 16:02:41 +02:00
parent 7fe558fe83
commit 08823b2770

View File

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