I am trying to reproduce the following plot using igraph
in R.
I have the following code:
library(igraph)
edges <- c(1,2, 2,3, 6,8, 6,7, 4,5, 9,10)
g<-graph(edges, n=max(edges), directed=F)
vcount(g)
plot(g, layout = layout.fruchterman.reingold,vertex.label=V(g)$number,
edge.arrow.size=0.5)
I am not sure how to create the topology of the graph and produce the exact same graph.