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

Partitioning the graph based on node attributes


In this recipe, we will learn how to partition the graph based on node attributes, which can be selected from the readily available Gephi GUI, and then assign the desired colors to the nodes to clearly visualize these partitions.

Getting ready

To get started, load the Les Misérables network in Gephi.

How to do it…

The following steps describe the process of partitioning the Les Misérables network, based on modularity class and then assigning colors to the nodes of each of the partitions, accordingly. The process remains the same for any other graph as well.

  1. With the Les Misérables graph open in Gephi, click on the Nodes tab under the Partition panel, which is located on the upper-left side of the Gephi window.

  2. Click on the refresh button with two encircling green arrows, which is located just below the Nodes tab marker.

  3. This populates the drop-down menu with a list of available partitioning parameters:

  4. From the drop-down menu, select Modularity Class...