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

Adding and deleting edges in a graph

Apart from adding nodes to, and deleting them from, the graph, the other operation that is often carried out is the addition and deletion of edges. This recipe teaches you how to carry out this operation in Gephi.

Getting ready

An edge exists between two nodes and hence, before starting to add an edge(s), you will need to make sure that the nodes for this edge exist. So, before we move forward with the recipe, open a new project in Gephi and then, in the Data Laboratory mode, add two nodes: Node_1 and Node_2.

How to do it…

With two nodes, Node_1 and Node_2, already existing in our network, follow these steps to add a new edge between these two nodes:

  1. Click on the Edges button in the top panel.
  2. Click on the Add edge ...

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