Liking cljdoc? Tell your friends :D

loom.label

Graph label protocol and implementations for records from loom.graph

Graph label protocol and implementations for records from loom.graph
raw docstring

add-labeled-edgesclj/s

(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")
sourceraw docstring

add-labeled-nodesclj/s

(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")
sourceraw docstring

default-labeled-graph-implclj

source

labeled?clj/s

(labeled? g)

Returns true if g satisfies LabeledGraph

Returns true if g satisfies LabeledGraph
sourceraw docstring

LabeledGraphclj/sprotocol

add-labelclj/s

(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

labelclj/s

(label g node)
(label g n1 n2)

Return the label on a node or edge

Return the label on a node or edge

remove-labelclj/s

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

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

× close