(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.
(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.
(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.
(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.
(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].
(find-by-id g & ids)
Retrieves edges by id from the graph.
Retrieves edges by id from the graph.
(get-vertex e direction)
Get the vertex of the edge in a certain direction.
Get the vertex of the edge in a certain direction.
(head-vertex e)
Get the head vertex of the edge.
Get the head vertex of the edge.
(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.
(tail-vertex e)
Get the tail vertex of the edge.
Get the tail vertex of the edge.
(to-map edge)
Returns a persisten map representing the edge.
Returns a persisten map representing the edge.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close