(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]
(dfs-seq graph)
Get a sequence of ids in dfs order.
Get a sequence of ids in dfs order.
(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 }
(find-nodes graph node-name)
Find nodes that match or partially match string. Return sequence of node-ids
Find nodes that match or partially match string. Return sequence of node-ids
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close