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

Adding and deleting nodes in a graph


Manipulating the nodes in a graph is one of the fundamental operations of a graph. One such operation is adding a new node to the existing graph. In this recipe, we will learn how to carry out this operation in Gephi.

Getting ready

In order to understand how to add a new node to the existing graph, we will start with an empty new project and then progressively add nodes to the new network. So, start Gephi and load a new project from the welcome screen.

How to do it…

To add a new node to a new or an existing network, follow these steps:

  1. Go to the Data Laboratory mode in Gephi.

  2. Click on the Add Node button in the top panel. This opens the Add node dialog window, as shown in the following screenshot:

  3. In the Label textbox, enter the name that you want to give to the new node. Once entered, hit OK. This creates a new node in the network with a user-specified label. The following screenshot shows the spreadsheet view of the network in Gephi with the new node labeled...