Back

view (clj)

(source)

function

(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.

Examples