I would like to create a histogram of the node degree distribution of a social network. I have file called socialNetwork.csv
with two columns representing edges between userA and userB.
Here is how I load the data into igraph
:
library(igraph)
g = read.graph("c:\\Network.csv", format="ncol")
What is the best way to export only the degree value column of degree(d)
to a csv file?