Liking cljdoc? Tell your friends :D

cnuernber.depsviz.graph


add-edgeclj

(add-edge graph parent-id child-id)
source

add-nodeclj

(add-node graph node)

Add a node to the graph with a list of predecessors. If the node has no id one will be generated; if it does and it is not unique and exception will be thrown. If any of the predecessors does not exist an error will be thrown. Returns a pair of [graph node-id]

Add a node to the graph with a list of predecessors.  If the node has no id one will
be generated; if it does and it is not unique and exception will be thrown.
If any of the predecessors does not exist an error will be thrown.  Returns a pair
of [graph node-id]
sourceraw docstring

child->parent-mapclj

(child->parent-map graph)
source

child-seqclj

(child-seq graph)
source

child-setclj

(child-set graph)
source

dfs-seqclj

(dfs-seq graph)

Get a sequence of ids in dfs order.

Get a sequence of ids in dfs order.
sourceraw docstring

edgesclj

(edges graph)
source

edges->mapclj

(edges->map graph key-fn val-fn)
source

empty-graphclj

(empty-graph)

Create an empty graph, which is stored as a map of: {:edges [] adjacency list of [id id] :id->node-map {} each node has an id and a type }

Create an empty graph, which is stored as a map of:
{:edges [] adjacency list of [id id]
 :id->node-map {} each node has an id and a type
 }
sourceraw docstring

get-nodeclj

(get-node graph node-id)
source

leavesclj

(leaves graph)
source

node-exists?clj

(node-exists? graph node-id)
source

parent->child-mapclj

(parent->child-map graph)
source

parent-seqclj

(parent-seq graph)
source

parent-setclj

(parent-set graph)
source

relative-dfs-seqclj

(relative-dfs-seq graph node-id)
source

rootsclj

(roots graph)
source

set->ordered-vecclj

(set->ordered-vec item-set item-seq)
source

single-islandsclj

(single-islands graph)

Things that have no connections at all. Can be interpreted as either root or leaf.

Things that have no connections at all.  Can be interpreted as either
root or leaf.
sourceraw docstring

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

× close