parse, merge and draw dependency graph