(as-svg graph)
Return graph
as a string containing an SVG document depicting the graph.
Return `graph` as a string containing an SVG document depicting the graph.
(as-swing-component graph)
Return a Swing component suitable for use in a GUI.
Return a Swing component suitable for use in a GUI.
(create-graph)
Return a new empty graph.
Return a new empty graph.
(create-viewer graph)
Create a new Swing GUI viewer showing graph
.
Create a new Swing GUI viewer showing `graph`.
(insert-edge! v1 v2 & options)
Inserts an edge into graph between v1
and v2
with optional edge-label
.
Inserts an edge into *graph* between `v1` and `v2` with optional `edge-label`.
(insert-vertex! v & options)
Inserts vertex v
into graph. The string representation of v
is used both for its label and as its identity.
Inserts vertex `v` into *graph*. The string representation of `v` is used both for its label and as its identity.
(view viewer graph)
Request viewer
to show a layout of graph
.
Request `viewer` to show a layout of `graph`.
(with-graph graph & body)
Evaluates body
in a context within which graph is bound to graph
, returning graph
.
Evaluates `body` in a context within which *graph* is bound to `graph`, returning `graph`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close