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

Merging columns

In certain cases, it is quite possible that the information from two columns can be merged into one column without losing any information about the network and its components. In this recipe, we will learn how to carry out this operation in the Data Laboratory mode.

Getting ready

Download the Hero Social Network Data from http://exposedata.com/marvel. Open the dataset file and insert a new row in the beginning of the file. In the first column of this row, insert the text Source and insert the text Target in the second column. These labels will act as headers while reading the file. Now, read this file in Gephi using the steps described in the first recipe of this chapter, Importing a spreadsheet.

How to do it…

The following steps

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