Module depgraph

DepGraph module.

Library for constructing dependency graphs.

Example:

local dg = DepGraph:new{}
dg:addNode('a1', {'a2', 'b1'})
dg:addNode('b1', {'a2', 'c1'})
dg:addNode('c1')
-- The return value of dg:serialize() will be:
-- {'a2', 'c1', 'b1', 'a1'}

NOTE: Insertion order is preserved, duplicates are automatically prevented (both as main nodes and as deps).



generated by LDoc 1.4.6 Last updated 2020-09-25 18:17:05