Liking cljdoc? Tell your friends :D

loom.attr

Graph attribute protocol and implementations for records from loom.graph. Common uses for attributes include labels and styling (color, thickness, etc).

Graph attribute protocol and implementations for records from
loom.graph. Common uses for attributes include labels and styling (color,
thickness, etc).
raw docstring

add-attr-to-allclj/s

(add-attr-to-all g k v)

Adds an attribute to all nodes and edges

Adds an attribute to all nodes and edges
sourceraw docstring

add-attr-to-edgesclj/s

(add-attr-to-edges g k v edges)

Adds an attribute to the given edges

Adds an attribute to the given edges
sourceraw docstring

add-attr-to-nodesclj/s

(add-attr-to-nodes g k v nodes)

Adds an attribute to the given nodes

Adds an attribute to the given nodes
sourceraw docstring

add-attrs-to-allclj/s

(add-attrs-to-all g & kvs)

Adds attributes to all nodes and edges

Adds attributes to all nodes and edges
sourceraw docstring

attr?clj/s

(attr? g)

Returns true if g satisfies AttrGraph

Returns true if g satisfies AttrGraph
sourceraw docstring

AttrGraphclj/sprotocol

add-attrclj/s

(add-attr g node-or-edge k v)
(add-attr g n1 n2 k v)

Add an attribute to node or edge

Add an attribute to node or edge

attrclj/s

(attr g node-or-edge k)
(attr g n1 n2 k)

Return the attribute on a node or edge

Return the attribute on a node or edge

attrsclj/s

(attrs g node-or-edge)
(attrs g n1 n2)

Return all attributes on a node or edge

Return all attributes on a node or edge

remove-attrclj/s

(remove-attr g node-or-edge k)
(remove-attr g n1 n2 k)

Remove an attribute from a node or edge

Remove an attribute from a node or edge
source

default-attr-graph-implclj

source

hiliteclj/s

(hilite g node)
(hilite g n1 n2)

Adds a red :color attribute to a node or edge

Adds a red :color attribute to a node or edge
sourceraw docstring

hilite-pathclj/s

(hilite-path g path)

Hilites nodes and edges along a path

Hilites nodes and edges along a path
sourceraw docstring

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

× close