Printing indegree of vertices