Graph label protocol and implementations for records from loom.graph
Graph label protocol and implementations for records from loom.graph
(add-labeled-edges g & edges+labels)
Adds edges and respective labels to graph g: (add-labeled-edges [n1 n2] "label 1" [n2 n3] "label 2")
Adds edges and respective labels to graph g: (add-labeled-edges [n1 n2] "label 1" [n2 n3] "label 2")
(add-labeled-nodes g & nodes+labels)
Adds nodes and respective labels to graph g: (add-labeled-nodes n1 "n1 label" n2 "n2 label")
Adds nodes and respective labels to graph g: (add-labeled-nodes n1 "n1 label" n2 "n2 label")
(labeled? g)
Returns true if g satisfies LabeledGraph
Returns true if g satisfies LabeledGraph
(add-label g node label)
(add-label g n1 n2 label)
Add a label to node or edge
Add a label to node or edge
(label g node)
(label g n1 n2)
Return the label on a node or edge
Return the label on a node or edge
(remove-label g node)
(remove-label g n1 n2)
Remove a label from a node or edge
Remove a label from a node or edge
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close