Skip to content

Instantly share code, notes, and snippets.

@maxgutman
Created April 19, 2018 16:31
Show Gist options
  • Save maxgutman/7b0f94f45bc6f946557b7d9a0d527736 to your computer and use it in GitHub Desktop.
Save maxgutman/7b0f94f45bc6f946557b7d9a0d527736 to your computer and use it in GitHub Desktop.
def paths_from_to(graph, source, dest):
"Find paths in graph from vertex source to vertex dest."
a = graph.get_adjlist()
n = source.index
m = dest.index
return adjlist_find_paths(a, n, m)
@maxgutman
Copy link
Author

maxgutman commented Apr 19, 2018

def paths_from_to(graph, source, dest):
    "Find paths in graph from vertex source to vertex dest."
    a = graph.get_adjlist()
    n = source.index
    m = dest.index
    return adjlist_find_paths(a, n, m)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment