simplify-dag (npm): given a directed acyclic graph, contract straight-line runs to single vertices
Keywords: graph-theory|graph|contract|edges|simplify