Rendering Graphviz output


The graphviz.render vocabulary provides words for converting graph objects into equivalent Graphviz output. This is done by using the graphviz.dot vocabulary to convert the Factor objects into equivalent DOT code, then invoking Graphviz upon the result.

The most general words in this vocabulary will have you manually specify the desired layout engine and/or output format, along with a file to which Graphviz should save its output:
graphviz ( graph path format layout -- )

graphviz* ( graph path format -- )


If the graph is small enough, it may be convenient to see an image of it using Factor's UI listener:
preview ( graph -- )

preview-window ( graph -- )


A few global variables are used to control the above words:
default-layout

graph-encoding

preview-format


Shortcut words are also defined to save on extra typing:
Rendering graphs by layout engine
Rendering graphs by output format