calculating node with highest out degree