turn an arbitrary weighted digraph into a weighted dag
dagify src
1 file