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


The Yifan Hu layout algorithm belongs to the category of force-directed algorithms, which includes the Force Atlas and Fruchterman Reingold algorithms. This algorithm is faster than the Force Atlas algorithm because of the way it optimizes the overall internode repulsions in the network. The details of this algorithm will be discussed in the How it works… section of this recipe.

How to do it…

We will begin with the Les Misérables network and explain how to use the Yifan Hu layout algorithm to obtain a restructured network. 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.

  4. Hit Run. The restructured graph will appear in the Graph panel.

The following screenshot shows the Les Misérables graph after it has been restructured by using the Yifan Hu layout algorithm:

How it works…

The Yifan Hu layout algorithm uses the same concept as Force...