(Shortest import: from brian2.utils.topsort import topsort)
from brian2.utils.topsort import topsort)
Topologically sort a graph
The graph should be of the form {node: [list of nodes], ...}.
{node: [list of nodes], ...}
Uses graphlib.TopologicalSorter.
graphlib.TopologicalSorter