Liking cljdoc? Tell your friends :D

loom.io

Output and view graphs in various formats

Output and view graphs in various formats
raw docstring

dotclj

(dot g f & args)

Writes graph g to f (string or File) in DOT format. args passed to dot-str

Writes graph g to f (string or File) in DOT format. args passed to dot-str
sourceraw docstring

dot-strclj

(dot-str
  g
  &
  {:keys [graph-name node-label edge-label] :or {graph-name "graph"} :as opts})

Renders graph g as a DOT-format string. Calls (node-label node) and (edge-label n1 n2) to determine what labels to use for nodes and edges, if any. Weights become edge labels unless a label is specified. Labels also include attributes when the graph satisfies AttrGraph.

Renders graph g as a DOT-format string. Calls (node-label node) and
(edge-label n1 n2) to determine what labels to use for nodes and edges,
if any. Weights become edge labels unless a label is specified.
Labels also include attributes when the graph satisfies AttrGraph.
sourceraw docstring

render-to-bytesclj

(render-to-bytes g & {:keys [alg fmt] :or {alg "dot" fmt :png} :as opts})

Renders the graph g in the image format using GraphViz and returns data as a byte array. Requires GraphViz's 'dot' (or a specified algorithm) to be installed in the shell's path. Possible algorithms include :dot, :neato, :fdp, :sfdp, :twopi, and :circo. Possible formats include :png, :ps, :pdf, and :svg.

Renders the graph g in the image format using GraphViz and returns data
as a byte array.
Requires GraphViz's 'dot' (or a specified algorithm) to be installed in
the shell's path. Possible algorithms include :dot, :neato, :fdp, :sfdp,
:twopi, and :circo. Possible formats include :png, :ps, :pdf, and :svg.
sourceraw docstring

viewclj

(view g & {:keys [fmt] :or {fmt :png} :as opts})

Converts graph g to a temporary image file using GraphViz and opens it in the current desktop environment's default viewer for said files. Requires GraphViz's 'dot' (or a specified algorithm) to be installed in the shell's path. Possible algorithms include :dot, :neato, :fdp, :sfdp, :twopi, and :circo. Possible formats include :png, :ps, :pdf, and :svg.

Converts graph g to a temporary image file using GraphViz and opens it
in the current desktop environment's default viewer for said files.
Requires GraphViz's 'dot' (or a specified algorithm) to be installed in
the shell's path. Possible algorithms include :dot, :neato, :fdp, :sfdp,
:twopi, and :circo. Possible formats include :png, :ps, :pdf, and :svg.
sourceraw docstring

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

× close