R code for producing a network graph in Gephi