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 Multilevel layout algorithm


The Yifan Hu Multilevel layout algorithm is an algorithm that brings together the good parts of force-directed algorithms and a multilevel algorithm to reduce algorithm complexity. This is one of the algorithms that works really well with large networks. In this recipe, we will see how this algorithm can be used to restructure the graphs.

How to do it…

In this recipe, we will learn how to use Yifan Hu Multilevel layout algorithm to obtain a restructured network on the Les Misérables network. 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 Multilevel.

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

The following screenshot shows how the Les Misérables graph will look after the execution of the Yifan Hu Multilevel layout algorithm:

How it works…

The Yifan...