Book Image

Gephi Cookbook

Book Image

Gephi Cookbook

Overview of this book

Table of Contents (18 chapters)
Gephi Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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:

How it works…

In the Fruchterman Reingold layout algorithm, the nodes are assumed to be entities made of steel and the edges are assumed to be springs. The attractive force between the nodes mimics the spring force, whereas the repulsive force between...