Liking cljdoc? Tell your friends :D

algotools.data.union-find


findrootclj

(findroot uf v)

Given a UnionFind record and a vertex(node) find the root-vertex of the component for that vertex and update the path to it for the given vertex

Given a UnionFind record and a vertex(node) find the root-vertex of the 
component for that vertex and update the path to it for the given vertex
sourceraw docstring

make-union-findclj

(make-union-find V)

Given a set of vertices(nodes) create and initialize a Union-Find datastructure

Given a set of vertices(nodes) create and initialize a Union-Find datastructure
sourceraw docstring

same-comp?clj

(same-comp? uf u v)

Determine if u and v belong to the same component.

Determine if u and v belong to the same component.
sourceraw docstring

unionclj

(union uf u v)

Given a UnionFind record and a pair of vertices(u and v) merge the two components that u and v belong to.

Given a UnionFind record and a pair of vertices(u and v) merge the two
components that u and v belong to.
sourceraw docstring

UnionFindclj

source

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

× close