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

Filtering, searching, and modifying data based on particular attributes


In Chapter 5, Running Metrics, Filters, and Timelines, we learned how to filter the nodes and edges in a graph, based on certain criteria. Those filters were based on the nodes/edges attributes and properties. The same filtering on node/edge attributes can also be accomplished in the Data Laboratory mode. In this recipe, you will learn how to filter the nodes and edges by employing filters on their various attributes.

Getting ready

Download and open the Hero Social Network Data in Gephi using the steps described in the first recipe of this chapter, Importing a spreadsheet.

How to do it…

The following steps illustrate the process of filtering out the edges based on their weight:

  1. Click on the Edges node, located in the top panel.

  2. From the drop-down menu next to the Filter textbox in the top panel, select Weight:

  3. In the Filter textbox, enter ^5$, which is the regular expression for selecting weights that are equal to five. This...