print out dependency graph in graph format