Liking cljdoc? Tell your friends :D

com.gfredericks.graphs.algorithms


all-pairsclj

(all-pairs order)
source

all-pairs-distancesclj

(all-pairs-distances g)
source

automorphismsclj

(automorphisms x)
source

connected-componentsclj

(connected-components g)
source

connected?clj

(connected? g)
source

connectivityclj

(connectivity g)

Measures vertex-connectivity.

Measures vertex-connectivity.
sourceraw docstring

degreesclj

(degrees g)

Given a graph, returns a map from vertex numbers to their degree.

Given a graph, returns a map from vertex numbers to their degree.
sourceraw docstring

disconnected-subgraphsclj

(disconnected-subgraphs g order)
source

distanceclj

(distance g v1 v2)

Returns an integer distance, or nil if the vertices are not in the same connected component

Returns an integer distance, or nil if the vertices are not in the
same connected component
sourceraw docstring

distances-per-nodeclj

(distances-per-node g)

Returns a map from each node to the sum of its distances to all other nodes.

Returns a map from each node to the sum of its
distances to all other nodes.
sourceraw docstring

distances-throughclj

(distances-through ds node)
source

edge-connectivityclj

(edge-connectivity g)
source

induced-subgraphclj

(induced-subgraph g coll)

g is a graph, coll is a collection of vertices. Returns the induced subgraph with vertices labeled 0 to n-1 (as normal) corresponding to the supplied vertices in sorted order.

g is a graph, coll is a collection of vertices. Returns the induced subgraph with vertices
labeled 0 to n-1 (as normal) corresponding to the supplied vertices in sorted order.
sourceraw docstring

isomorphic?clj

(isomorphic? g1 g2)
source

isomorphismsclj

(isomorphisms g1 g2)
(isomorphisms g1-edges g2-edges mapping tos-left)

Returns a lazy seq of all permutations that transform g1 into g2.

Returns a lazy seq of all permutations that transform g1 into g2.
sourceraw docstring

permuteclj

(permute g p)

Given a graph and a permutation (which is some sort of (vec (shuffle (range order)))), returns a new graph with the vertices permuted according to the permutation.

Given a graph and a permutation (which is some sort
of (vec (shuffle (range order)))), returns a new graph with the
vertices permuted according to the permutation.
sourceraw docstring

shortest-pathclj

(shortest-path g start end)

Returns a sequence of vertices starting with start and ending with end, or nil if the two vertices are not connected.

Returns a sequence of vertices starting with `start` and ending
with `end`, or nil if the two vertices are not connected.
sourceraw docstring

unfairnessclj

(unfairness g)
source

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

× close