title: Does networkx keep track of node depths?
body: <p>Does anyone know if python networkx pre-computes node depths for a tree created using a Networkx DiGraph?</p>
  
  <p>Since I have not seen a way to define trees in networkx, maybe it would be necessary to just  compute the node depths using an external data structure.</p>