Liking cljdoc? Tell your friends :D

com.yetanalytics.pan.graph


add-edgesclj/s

(add-edges graph edges)

Add a list or vector of directed edges to graph, where each node has the form [src dest attr-map].

Add a list or vector of directed edges to `graph`, where each node has the
form [src dest attr-map].
sourceraw docstring

add-nodesclj/s

(add-nodes graph nodes)

Add a list or vector of nodes to graph, where each node has the form [node attr-map].

Add a list or vector of nodes to `graph`, where each node has the form
[node attr-map].
sourceraw docstring

attrclj/s

(attr g node-or-edge attr)

Return the attribute of a particular node or edge in graph.

Return the attribute of a particular node or edge in `graph`.
sourceraw docstring

collect-edgesclj/s

(collect-edges attr-edges)

Flatten a collection of edges (ie. vectors of form [src dest attrs] such that it is a 1D vector of vectors.

Flatten a collection of edges (ie. vectors of form [src dest attrs] such
that it is a 1D vector of vectors.
sourceraw docstring

create-graphclj/s

(create-graph node-objs edge-objs)

Create a graph with node-objs and edge-objs, which should be coerceable by node-with-attrs and edges-with-attrs, respectively.

Create a graph with `node-objs` and `edge-objs`, which should be
coerceable by `node-with-attrs` and `edges-with-attrs`,
respectively.
sourceraw docstring

create-graph*clj/s

(create-graph* nodes edges)

Create a graph with nodes and edges.

Create a graph with `nodes` and `edges`.
sourceraw docstring

destclj/s

(dest edge)

Return the destination node of a directed edge.

Return the destination node of a directed edge.
sourceraw docstring

edge-obj-specclj/s

source

edge-or-map-specclj/s

source

edge-specclj/s

source

edgesclj/s

(edges graph)

Given graph, return a lazy seq of its edges.

Given `graph`, return a lazy seq of its edges.
sourceraw docstring

edges-with-attrsclj/smultimethod

source

graph-specclj/s

source

in-degreeclj/s

(in-degree g node)

Return the in-degree of node in graph.

Return the in-degree of `node` in `graph`.
sourceraw docstring

new-digraphclj/s

(new-digraph)

Init a new, empty directed graph.

Init a new, empty directed graph.
sourceraw docstring

node-obj-specclj/s

source

node-specclj/s

source

node-with-attrsclj/smultimethod

source

nodesclj/s

(nodes graph)

Given graph, return a set of its nodes.

Given `graph`, return a set of its nodes.
sourceraw docstring

out-degreeclj/s

(out-degree g node)

Return the out-degree of node in graph.

Return the out-degree of `node` in `graph`.
sourceraw docstring

sccclj/s

(scc graph)

Return the strongly connected components of graph as a vector of vectors. Uses Kosaraju's algorithm.

Return the strongly connected components of `graph` as a vector of
vectors. Uses Kosaraju's algorithm.
sourceraw docstring

srcclj/s

(src edge)

Return the source node of a directed edge.

Return the source node of a directed edge.
sourceraw docstring

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

× close