From dc4589e9adffd2040bc3b2f66d714edd63def4e5 Mon Sep 17 00:00:00 2001 From: Nobuhiko Otoba Date: Sun, 29 Oct 2023 23:48:19 +0900 Subject: [PATCH] DEBUG: Properly update _greatest_backbone_count --- grandiso/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/grandiso/__init__.py b/grandiso/__init__.py index 63c798b..808e9f0 100644 --- a/grandiso/__init__.py +++ b/grandiso/__init__.py @@ -200,6 +200,7 @@ def get_next_backbone_candidates( # set it as the next node to explore: if motif_backbone_connections_count > _greatest_backbone_count: _nodes_with_greatest_backbone_count.append(motif_node_id) + _greatest_backbone_count = motif_backbone_connections_count # Now we have _node_with_greatest_backbone_count as the best candidate # for `next_node`. next_node = max(