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

Expanding and contracting subgraphs in metanodes

In the previous recipe, you learned how to select nodes in graphs and group them together to build up hierarchical relationships. In this recipe, we will learn more about the grouping of related nodes into a node referred to as the metanode and degrouping/expanding nodes from the metanode.

Getting ready

To get started with this recipe, first open the Les Misérables graph in Gephi.

How to do it…

The following steps illustrate how nodes in Gephi can be grouped as metanodes and conversely, how metanodes can be expanded into their individual nodes:

  1. Group together a bunch of nodes using the previous recipe, Working with multilevel graphs.
  2. Repeat this process multiple times for different groups.
  3. To expand the ...

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