开发者

Graph library in Lua

开发者 https://www.devze.com 2023-01-07 23:58 出处:网络
Is there a Lua library (or 开发者_C百科with Lua bindings) to build graphs (directed/undirected), with traversal algorithms, connectivity tests, and other basic graph operations?The LuaGRAPH library is

Is there a Lua library (or 开发者_C百科with Lua bindings) to build graphs (directed/undirected), with traversal algorithms, connectivity tests, and other basic graph operations?


The LuaGRAPH library is a Lua binding to GraphViz that might suit your needs.

Features

  • Define graphs using Lua syntax elements (tables, functions)
  • Layout and render graphs
  • Iterators for subgraphs, nodes and edges
  • Set and get for all graphviz attributes for graphs, nodes and edges
  • Set and get user defined properties (even methods) to any graph object
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号