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 Fruchterman Reingold layout algorithm

The Fruchterman Reingold layout algorithm belongs to the class of force-directed algorithms. It is one of the standard algorithms in Gephi and is made use of quite often.

How to do it…

We will begin with the Les Misérables network and explain how to use the Fruchterman Reingold layout 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 Fruchterman Reingold.
  4. Hit Run. The chosen graph with the new layout appears in the Graph panel.

The following screenshot shows how the Les Misérables graph will look with the new layout: ...

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