From 08823b2770e7d8f493f7a37caaec969ba09d36e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Wed, 2 Oct 2024 16:02:41 +0200 Subject: [PATCH] Fixed "-c" switch --- src/SOCgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, \