O'Reilly logo

Complex Network Analysis in Python by Dmitry Zinoviev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Explore the Network

The following figure is a Gephi rendering of G. The “Complex Network” node is barely visible right in the middle of the image denoted with a darker color. Node and label font sizes represent the indegrees. The most in-connected, most significant nodes are in the upper-left corner of the network. What are they?

images/cna.png

The last code fragment of the exercise efficiently calculates the answer by calling the method G.in_degree. The method (and its sister method G.out_degree) are very similar to G.degree except that they report different edge counts in the form of objects InDegreeView and OutDegreeView, respectively.

 top_indegree ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required