From c1ff66265d4372c49c5841e7b4ca8687802cea50 Mon Sep 17 00:00:00 2001 From: Michael Winter Date: Tue, 24 Mar 2026 11:57:04 +0100 Subject: [PATCH] Fix max-path to represent total chord count instead of edge count --- src/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.py b/src/io.py index 997e749..40e846e 100644 --- a/src/io.py +++ b/src/io.py @@ -604,7 +604,7 @@ def main(): weights_config["max_path"] = args.max_path path_obj = path_finder.find_stochastic_path( - max_length=args.max_path, weights_config=weights_config + max_length=args.max_path - 1, weights_config=weights_config ) print(f"Path length: {len(path_obj)}")