title: Constructing a dependency graph in python
body: <p>I am trying to construct a python call graph as below,I have a change which has internal and external dependencies and these dependencies need to be 
  recursivley into until each leaf gets a change which is closed...i have the logic to get the internal and external dependency ,I need some inputs  or a 
  body how to construct a graph as below..</p>
  
  <pre><code>                 change
               /    \
              /      \
             /        \
  internal dependency   external dependency
           / \                      /\   
          /   \                    /  \
     /     \                  /    \
    /       \                /      \
  </code></pre>
  
  <p>internal dep  external dep  internal dep external dep (repeat this until the dependency change is in closed state)</p>