def _rec_degree_in(g, v, i, j):
 if (i == j):
  return dmp_degree(g, v)
 (v, i) = ((v - 1), (i + 1))
 return max([_rec_degree_in(c, v, i, j) for c in g])

def _rec_degree_in ( g , v , i , j ) : if ( i == j ) : return dmp_degree ( g , v ) ( v , i ) = ( ( v - 1 ) , ( i + 1 ) ) return max ( [ _rec_degree_in ( c , v , i , j ) for c in g ] )
recursive helper function for :func:dmp_degree_in .