serialize ocamldep output to a DependencyGraph object