Skip to content

Instantly share code, notes, and snippets.

@maxgutman
Created April 19, 2018 16:31
Show Gist options
  • Select an option

  • Save maxgutman/7b0f94f45bc6f946557b7d9a0d527736 to your computer and use it in GitHub Desktop.

Select an option

Save maxgutman/7b0f94f45bc6f946557b7d9a0d527736 to your computer and use it in GitHub Desktop.

Revisions

  1. maxgutman created this gist Apr 19, 2018.
    6 changes: 6 additions & 0 deletions test.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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)