Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def module_dependency(self, path='.'):
  2. edges = ModuleDependencies().get_relation_names(path)
  3. print('edges' + str(edges))
  4. graph = Digraph('graph3', format='png', filename='graph2',
  5. node_attr={'color': 'khaki', 'style': 'filled', 'shape': 'doublecircle'})
  6.  
  7. for i in edges:
  8. graph.edge(i[1][0], i[1][1], label=str(i[0]))
  9.  
  10. # graph.attr(label='Commit hash: \n' + git_commit_hash.get_git_commit_hash(path))
  11. graph.view()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement