(remove-all graph)
(remove-all graph x)
(remove-all graph x & more)
Removes all references to x in the dependency graph.
Source
(defn remove-all
"Removes all references to x in the dependency graph."
([graph] graph)
([graph x]
(assoc graph
:dependencies (remove-from-map (:dependencies graph) x)
:dependents (remove-from-map (:dependents graph) x)))
([graph x & more]
(reduce remove-all
graph (cons x more))))