The LuaGRAPH library is a Lua binding to GraphViz that can meet your needs.
Features
- Define graphs using Lua syntax elements (tables, functions)
- Layout and rendering graphs
- Iterators for subgraphs, nodes, and edges
- Set and get for all graphviz attributes for graphs, nodes and edges
- ( )