Assign colors to communities in igraph
问题 I am using the fastgreedy.community detection algorithm in igraph to produce communities in R. The code returns 12 communities, however they are difficult to indentify when plotting because it returns a plot with a limited number of colours. How can I plot this graph with tweleve distinct colours? l2 <- layout.fruchterman.reingold(largest.component) ebc.g05 <- fastgreedy.community(largest.component) plot(largest.component, layout=l2, vertex.color=membership(ebc.g05), vertex.size=2, vertex