Computing indegrees based on outdegrees