How to assign different images to different vertices in an igraph?
问题 I've looked at this question which seems similar but I am having difficulty getting it to work with my data. Let's say my edgelist consists of the following: P1 P2 weight a b 1 a c 3 a d 2 b c 8 I use read.csv to collect the data, and then I convert it to a matrix. Then I graph it using the following: g=graph.edgelist(x[,1:2],directed=F) E(g)$weight=as.numeric(x[,3]) tkplot(g,layout=layout.fruchterman.reingold,edge.width=E(g)$weight) And this returns a network with vertices and edges. I would