def _rec_degree_list(g, v, i, degs):
 degs[i] = max(degs[i], dmp_degree(g, v))
 if (v > 0):
  (v, i) = ((v - 1), (i + 1))
  for c in g:
   _rec_degree_list(c, v, i, degs)

def _rec_degree_list ( g , v , i , degs ) : degs [ i ] = max ( degs [ i ] , dmp_degree ( g , v ) ) if ( v > 0 ) : ( v , i ) = ( ( v - 1 ) , ( i + 1 ) ) for c in g : _rec_degree_list ( c , v , i , degs )
recursive helper for :func:dmp_degree_list .