Liking cljdoc? Tell your friends :D

clojurewerkz.archimedes.edge


assoc!clj

(assoc! elem & kvs)
source

clear!clj

(clear! elem)
source

connect!clj

(connect! g v1 label v2)
(connect! g v1 label v2 data)

Connects two vertices with the given label, and, optionally, with the given properties.

Connects two vertices with the given label, and, optionally, with the given properties.
sourceraw docstring

connect-with-id!clj

(connect-with-id! g id v1 label v2)
(connect-with-id! g id v1 label v2 data)

Connects two vertices with the given label, and, optionally, with the given properties.

Connects two vertices with the given label, and, optionally, with the given properties.
sourceraw docstring

connected?clj

(connected? v1 v2)
(connected? v1 label v2)

Returns whether or not two vertices are connected. Optional third arguement specifying the label of the edge.

Returns whether or not two vertices are connected. Optional third
arguement specifying the label of the edge.
sourceraw docstring

dissoc!clj

(dissoc! elem & keys)
source

edges-betweenclj

(edges-between v1 v2)
(edges-between v1 label v2)

Returns a set of the edges between two vertices, direction considered.

Returns a set of the edges between two vertices, direction considered.
sourceraw docstring

endpointsclj

(endpoints edge)

Returns the endpoints of the edge in array with the order [starting-node,ending-node].

Returns the endpoints of the edge in array with the order [starting-node,ending-node].
sourceraw docstring

find-by-idclj

(find-by-id g & ids)

Retrieves edges by id from the graph.

Retrieves edges by id from the graph.
sourceraw docstring

getclj

(get elem key)
(get elem key not-found)
source

get-all-edgesclj

(get-all-edges g)

Returns all edges.

Returns all edges.
sourceraw docstring

get-vertexclj

(get-vertex e direction)

Get the vertex of the edge in a certain direction.

Get the vertex of the edge in a certain direction.
sourceraw docstring

head-vertexclj

(head-vertex e)

Get the head vertex of the edge.

Get the head vertex of the edge.
sourceraw docstring

id-ofclj

(id-of elem)
source

keysclj

(keys elem)
source

label-ofclj

(label-of edge)

Get the label of the edge

Get the label of the edge
sourceraw docstring

merge!clj

(merge! elem & maps)
source

refreshclj

(refresh g edge)

Goes and grabs the edge from the graph again. Useful for "refreshing" stale edges.

Goes and grabs the edge from the graph again. Useful for "refreshing" stale edges.
sourceraw docstring

remove!clj

(remove! g edge)

Remove an edge.

Remove an edge.
sourceraw docstring

tail-vertexclj

(tail-vertex e)

Get the tail vertex of the edge.

Get the tail vertex of the edge.
sourceraw docstring

to-mapclj

(to-map edge)

Returns a persisten map representing the edge.

Returns a persisten map representing the edge.
sourceraw docstring

unique-upconnect!clj

(unique-upconnect! & args)

Like upconnect!, but throws an error when more than element is returned.

Like upconnect!, but throws an error when more than element is returned.
sourceraw docstring

unique-upconnect-with-id!clj

(unique-upconnect-with-id! & args)

Like upconnect!, but throws an error when more than element is returned.

Like upconnect!, but throws an error when more than element is returned.
sourceraw docstring

upconnect!clj

(upconnect! g v1 label v2)
(upconnect! g v1 label v2 data)

Upconnect takes all the edges between the given vertices with the given label and, if the data is provided, merges the data with the current properties of the edge. If no such edge exists, then an edge is created with the given data.

Upconnect takes all the edges between the given vertices with the
given label and, if the data is provided, merges the data with the
current properties of the edge. If no such edge exists, then an
edge is created with the given data.
sourceraw docstring

upconnect-with-id!clj

(upconnect-with-id! g id v1 label v2)
(upconnect-with-id! g id v1 label v2 data)

Upconnect takes all the edges between the given vertices with the given label and, if the data is provided, merges the data with the current properties of the edge. If no such edge exists, then an edge is created with the given data.

Upconnect takes all the edges between the given vertices with the
given label and, if the data is provided, merges the data with the
current properties of the edge. If no such edge exists, then an
edge is created with the given data.
sourceraw docstring

update!clj

(update! elem key f & args)
source

valsclj

(vals elem)
source

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

× close