Liking cljdoc? Tell your friends :D

blossom.graph


compute-endpoint

(compute-endpoint edges)
source

compute-neighbend

(compute-neighbend edges)
source

edges-with-weights

(edges-with-weights g)
source

initialize

(initialize edges)
source

integer-weights?

(integer-weights? edges)
source

max-vertex-id

(max-vertex-id edges)
source

max-weight

(max-weight edges)
source

no-edge?

source

no-node?

source

PGraphprotocol

edge
(edge g k)
source

PWeightedEdgeprotocol

dest
(dest edge)

Returns the dest node of the edge

Returns the dest node of the edge

src
(src edge)

Returns the source node of the edge

Returns the source node of the edge

weight
(weight edge)

Returns the weight of the edge

Returns the weight of the edge

source

some-edge?

source

some-node?

source

star-graph

(star-graph n)

Return the star graph

The star graph consists of one center node connected to n outer nodes.

Parameters

n : int node labels are 0 to n with center 0.

Notes

The graph has n+1 nodes for integer n.

Return the star graph

The star graph consists of one center node connected to n outer nodes.

Parameters
----------
n : int
    node labels are 0 to n with center 0.

Notes
-----
The graph has n+1 nodes for integer n.
sourceraw docstring

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

× close