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 Yifan Hu Proportional layout algorithm

This Yifan Hu Proportional layout algorithm is very much similar to the Yifan Hu layout algorithm, except that it uses a proportional displacement strategy for node placement in the graphical space. The accuracy and speed are almost comparable to that of Yifan Hu's.

How to do it…

We will begin with the Les Misérables network and explain how to use the Yifan Hu Proportional algorithm on it. The steps remain the same for any other network too. So let's get started:

  1. Load the Les Misérables graph in Gephi.
  2. In the Layout panel, click on the drop-down menu that says ---Choose a layout.
  3. From the drop-down menu, select Yifan Hu Proportional.
  4. Hit Run.

The following screenshot shows how the Les Misérables graph ...

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