diff --git a/src/outils_graph.py b/src/outils_graph.py index 3d75e09020ae5876817f23252eef7f2a02fb5dcb..4ea75d9f0ce554c987971fa514d7d3212f02de7a 100644 --- a/src/outils_graph.py +++ b/src/outils_graph.py @@ -583,13 +583,15 @@ def get_names_tab(dico, tab): def get_name_new_node(new_nodes, relevant_modules): for r in relevant_modules: - if([r] in new_nodes): - return r + for new in new_nodes: + if(r in new): + return r #Arbitrary choice of choosing the name with the longest name longest_name = new_nodes[0][0] for name in new_nodes: if(len(longest_name)<len(name[0])): longest_name = name[0] + return longest_name def check_same_elements(list1, list2):