rm CondaPkg environment

This commit is contained in:
ton
2023-04-06 13:53:47 +07:00
parent 0a57ed7884
commit c43d949309
3329 changed files with 5725 additions and 447022 deletions

View File

@@ -1253,10 +1253,7 @@ def is_path(G, path):
True if `path` is a valid path in `G`
"""
for node, nbr in nx.utils.pairwise(path):
if (node not in G) or (nbr not in G[node]):
return False
return True
return all((node in G and nbr in G[node]) for node, nbr in nx.utils.pairwise(path))
def path_weight(G, path, weight):