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

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 illustrate how to merge two columns into a single column in the Nodes table:

  1. Click on the Nodes button in the top panel of the Data Laboratory window.

  2. Create a new column titled Gender in the Nodes table by using the previous recipe, Adding/deleting columns...