Liking cljdoc? Tell your friends :D

lambdaisland.tools.namespace.dependency

Bidirectional graphs of dependencies and dependent objects.

Bidirectional graphs of dependencies and dependent objects.
raw docstring

DependencyGraphclj/s≠protocol

immediate-dependenciesclj/s

(immediate-dependencies graph node)

Returns the set of immediate dependencies of node.

Returns the set of immediate dependencies of node.

immediate-dependentsclj/s

(immediate-dependents graph node)

Returns the set of immediate dependents of node.

Returns the set of immediate dependents of node.

nodesclj/s

(nodes graph)

Returns the set of all nodes in graph.

Returns the set of all nodes in graph.

transitive-dependenciesclj/s

(transitive-dependencies graph node)

Returns the set of all things which node depends on, directly or transitively.

Returns the set of all things which node depends on, directly or
transitively.

transitive-dependencies-setclj/s

(transitive-dependencies-set graph node-set)

Returns the set of all things which any node in node-set depends on, directly or transitively.

Returns the set of all things which any node in node-set depends
on, directly or transitively.

transitive-dependentsclj/s

(transitive-dependents graph node)

Returns the set of all things which depend upon node, directly or transitively.

Returns the set of all things which depend upon node, directly or
transitively.

transitive-dependents-setclj/s

(transitive-dependents-set graph node-set)

Returns the set of all things which depend upon any node in node-set, directly or transitively.

Returns the set of all things which depend upon any node in
node-set, directly or transitively.
source

DependencyGraphUpdateclj/s≠protocol

remove-edgeclj/s

(remove-edge graph node dep)

Returns a new graph with the dependency from node to dep removed.

Returns a new graph with the dependency from node to dep removed.

dependclj/s

(depend graph node dep)

Returns a new graph with a dependency from node to dep ("node depends on dep"). Forbids circular dependencies.

Returns a new graph with a dependency from node to dep ("node depends
on dep"). Forbids circular dependencies.

remove-nodeclj/s

(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.

Removes the node from the dependency graph without removing it as a
dependency of other nodes. That is, removes all outgoing edges from
node.

remove-allclj/s

(remove-all graph node)

Returns a new dependency graph with all references to node removed.

Returns a new dependency graph with all references to node removed.
source

dependent?clj/s

(dependent? graph x y)

True if y is a dependent of x.

True if y is a dependent of x.
sourceraw docstring

depends?clj/s

(depends? graph x y)

True if x is directly or transitively dependent on y.

True if x is directly or transitively dependent on y.
sourceraw docstring

graphclj/s

(graph)

Returns a new, empty, dependency graph.

Returns a new, empty, dependency graph.
sourceraw docstring

MapDependencyGraphcljs

source

set-conjclj/s

source

topo-comparatorclj/s

(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.

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.
sourceraw docstring

topo-sortclj/s

(topo-sort graph)

Returns a topologically-sorted list of nodes in graph.

Returns a topologically-sorted list of nodes in graph.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close