clojure.tools.namespace.dependency
Bidirectional graphs of dependencies and dependent objects.
(depend graph node dep)
Returns a new graph with a dependency from node to dep ("node depends
on dep"). Forbids circular dependencies.
(graph)
Returns a new, empty, dependency graph.
(remove-node graph node)
Removes the node from the dependency graph without removing it as a
dependency of other nodes. That is, removes all outgoing edges from
node.
(topo-comparator graph)
Returns a comparator fn which produces a topological sort based on
the dependencies in graph. Nodes not present in the graph will sort
after nodes in the graph.