Use shortcuts for table.insert, table.remove and table.concat.
More shortcuts.
Remove the stack class.
find_output_order() is mostly done for 2-partite graphs.
Fill output order.
Pass order to chm_graphviz object.