Printing outdegree of vertices