(build-graph g & inits)
Builds up a graph (i.e. adds edges and nodes) from any combination of adjacency maps, edges, or nodes.
Builds up a graph (i.e. adds edges and nodes) from any combination of adjacency maps, edges, or nodes.
(digraph? g)
(distinct-edges g)
The distinct edges in the graph. eliminates mirrored edges.
The distinct edges in the graph. eliminates mirrored edges.
(edge-equiv? this other)
Does this edge have the same src and dest as the other?
Does this edge have the same src and dest as the other?
(edges-between* g n1 n2)
(id this)
Returns the id of this.
Returns the id of this.
(mirrored? this)
Returns true if this is a mirrored edge.
Returns true if this is a mirrored edge.
(make-edge src dest)
(make-edge src dest mirrored?)
Returns a new UniqueEdge instance from src and dest.
Returns a new UniqueEdge instance from src and dest.
(merge-graphs & gs)
Merges multigraphs or multidigraphs.
Merges multigraphs or multidigraphs.
(multidigraph & inits)
(multigraph & inits)
(edges-between g n1 n2)
Returns the edges in g between two nodes.
Returns the edges in g between two nodes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close