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

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 ...

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