Lua binding to graphviz, an open source graph visualization software.
luarocks install graphviz-lua GRAPHVIZ_INCDIR=/usr/include/graphviz
local gv = require"graphviz"
----------------------------------------
-- Render dot graph to bytes of determined format
-- @param string dot graph
-- @param string output format. Default: png
-- @return string|nil bytes
-- @return string|nil error mensage|n
local bytes, err = gv.render("digraph G{A -> B}", "png")
This work is released under the Apache-2.0 license. A copy of the license is provided in the LICENSE file.