Skip to content
Snippets Groups Projects
Commit a5259676 authored by Rayan Chikhi's avatar Rayan Chikhi
Browse files

allow deeper recursions and fixed min_mol_idx init

parent b15e9b3c
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
import sys
sys.setrecursionlimit(10000)
import argparse
from termcolor import colored
import networkx as nx
......@@ -318,7 +319,7 @@ def recursive_longest_path(current_node, current_molecule, next_nodes, longest_p
longest = 0
longest_next = None
min_mol_idx = current_molecule + 10000
min_mol_idx = float('inf')
# Recursively compute the longest path
for mol_idx, node in next_nodes[current_node][current_molecule]:
size, _, _ = recursive_longest_path(node, mol_idx, next_nodes, longest_paths)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment