Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 140dc53d authored by BOULLE Olivier's avatar BOULLE Olivier
Browse files

petite correction d'une erreur causée parce que la fonction...

petite correction d'une erreur causée parce que la fonction nx.connected_component_subgraphs(G) n'est plus supporté dans les dernières versions de la librairie networkx
parent 4a41f599
No related branches found
No related tags found
No related merge requests found
......@@ -461,7 +461,7 @@ while True:
GRAPH.add_edge(node_name1,node_name2,weight=k)
G = GRAPH.to_undirected()
GC = max(nx.connected_component_subgraphs(G), key=len)
GC = max((G.subgraph(c) for c in nx.connected_components(G)), key=len)
if START_KMER in GC and END_KMER in GC:
list_nodes = list(GRAPH.nodes)
for n in list_nodes:
......
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