From 96a2614a9f77009d02a3648b08fe209b5a0195df Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Thu, 29 Oct 2026 16:55:51 +0200 Subject: [PATCH] improve efficiency --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 446e5b7..583d11e 100644 --- a/main.py +++ b/main.py @@ -161,8 +161,8 @@ def build_network(l_n): join_nodes(g, nn(x, y, 'll'), nn((x + round(n//3)) % n, (y + round(n//3)) % n, 'll')) join_nodes(g, nn(x, y, 'rr'), nn((x + round(n//2)) % n, (y + round(n//2)) % n, 'rr')) - join_nodes(g, nn(x, y, 'lr'), nn((x + round(n//3)) % n, (y - round(n//3)) % n, 'lr')) - join_nodes(g, nn(x, y, 'rl'), nn((x + round(n//2)) % n, (y - round(n//2)) % n, 'rl')) + join_nodes(g, nn(x, y, 'lr'), nn((x + round(n//5)) % n, (y - round(n//5)) % n, 'lr')) + join_nodes(g, nn(x, y, 'rl'), nn((x + round(n//6)) % n, (y - round(n//6)) % n, 'rl')) return g