Generating an Edgelist
Posted: 05 May 2017 21:33
I am very new to Gephi and I've done a lot of searching for this question but have so far found one result that may not be the most appropriate.
I am trying to do a "co-author" network analysis. My data looks like this:
DocNo. Author
1 Smith
1 Jones
2 Smith
2 Davis
2 Johnson
3 Davis
4 Martin
.
.
.
The structure is one line for each author. The goal being to automatically generate an EDGELIST from this (for instance Smith-->Jones, Smith-->Davis, etc.)
Is there a clean, "easy" way to do this in Gephi or does anyone know of a method for generating this?
So far what I've been doing is using R and making a matrix with the xtabs(~Author+DocNo, data) command and then doing a tcrossprod of that matrix to get to an adjacency matrix and then using igraph package in R to get the edgelist. But I want to make sure that there isn't a simpler way.
Thanks,
-Chris
I am trying to do a "co-author" network analysis. My data looks like this:
DocNo. Author
1 Smith
1 Jones
2 Smith
2 Davis
2 Johnson
3 Davis
4 Martin
.
.
.
The structure is one line for each author. The goal being to automatically generate an EDGELIST from this (for instance Smith-->Jones, Smith-->Davis, etc.)
Is there a clean, "easy" way to do this in Gephi or does anyone know of a method for generating this?
So far what I've been doing is using R and making a matrix with the xtabs(~Author+DocNo, data) command and then doing a tcrossprod of that matrix to get to an adjacency matrix and then using igraph package in R to get the edgelist. But I want to make sure that there isn't a simpler way.
Thanks,
-Chris