O'Reilly logo

Gephi Cookbook by Devangana Khokhar

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

Using the Contraction layout algorithm

There might be instances where nodes are placed too far apart from each other, thereby making the graph appear too sparse. This may lead to difficulty in visualizing the whole network as a single entity. In the simplest case, it may just not be possible to visualize the entire graph on a single window. This is when the Contraction layout algorithm comes into play. Using this algorithm, one can scale down the network and make it appear denser. This recipe takes you through the process of applying this algorithm on a network.

How to do it…

Let us consider Les Misérables network as a way to explain the process of applying the Contraction layout algorithm. The steps remain same for any other network too.

  1. Load the ...

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