I have loaded txt file (com-dblp.ungraph.txt) which includes DBLP collaboration network to a COLAB notebook. I found 317080 nodes & 1049866 edges in the network by reading the txt manually.

Trying to Compute the degree of every node in the network but failing...

Also try to list the IDs of the five nodes (authors) with the highest degree accordingly.

The above claulation required to plot the "degree distribution" of the graph.

Any advices?

Head of txt file – DBLP Nodes: 317080 Edges: 1049866 FromNodeId ToNodeId 0 1 0 2 0 4519 0 23073 0 33043 0 33971 0 75503

  • $\begingroup$ Could you add more information like code, links, or more details? $\endgroup$ Jun 28 at 15:23


Browse other questions tagged or ask your own question.