Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gephi Cookbook

You're reading from   Gephi Cookbook Over 90 hands-on recipes to master the art of network analysis and visualization with Gephi

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781783987405
Length 296 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Getting Started with Gephi 2. Basic Graph Manipulations FREE CHAPTER 3. Using Graph Layout Algorithms 4. Working with Partition and Ranking Algorithms 5. Running Metrics, Filters, and Timelines 6. Working in the Data Laboratory Mode 7. Getting Graphs and Networks Ready for Preview 8. Exploring Dynamic and Multilevel Graphs 9. Getting Real-world Graph Datasets 10. Exploring Some Useful Gephi Plugins Index

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 button in the top panel. This opens a new window, as shown in the following screenshot:

  3. Choose between Directed and Undirected, depending on which type of edge you want to add.

  4. Select the source node and target node.

  5. Hit Ok once this has been done...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime