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

Creating columns with dynamic regular expression filtering


One complex yet elegant operation that often comes in handy while working with large and complex graphs is filtering the graph according to specific criteria. One of the effective ways of doing so is by creating filters for a specific column using dynamic regular expressions. In this recipe, we will learn how to create new columns in the Data Laboratory mode by filtering values from existing columns, using filters derived from regular expressions.

Getting ready

Load the Les Misérables network in Gephi directly from the Gephi welcome screen and go to the Data Laboratory mode.

How to do it…

In this recipe, we will create a new column for edge data that holds Boolean values, specifying whether or not the edge ID is more than 100. The following steps describe the process of creating this column:

  1. Click on the Edges tab.

  2. Click on Create a Boolean column from regex match, which is located at the bottom of the screen.

  3. Select Id from the drop-down...