Topological sort in Python
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md

README.md

Topological sort in Python.

Usage:

from toposort import toposorted
for vertex in toposorted(vertices, lambda v: v.parents()):
    do_stuff(vertex)