Functions for manipulation of undirected graphs. Since this is intended for study of the mathematical objects rather than graph-like data, the vertex set is restricted to (range n).
Functions for manipulation of undirected graphs. Since this is intended for study of the mathematical objects rather than graph-like data, the vertex set is restricted to (range n).
(edges _)
Returns a list of vertex pairs. Should be considered unordered.
Returns a list of vertex pairs. Should be considered unordered.
(rand-graph n)
(rand-graph n p)
(rand-graph n p r)
Returns a random graph of the given order where each edge exists with probability p (default 0.5).
Returns a random graph of the given order where each edge exists with probability p (default 0.5).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close