Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 701 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 701 Bytes

graphviz-lua

Lua binding to graphviz, an open source graph visualization software.

Installation

luarocks install graphviz-lua GRAPHVIZ_INCDIR=/usr/include/graphviz

Usage/Docs

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")

License

This work is released under the Apache-2.0 license. A copy of the license is provided in the LICENSE file.