changing the color of a subgraph in igraph plot
问题 I have the following code to plot the minimum spanning tree of a graph ## g is an igraph graph mst = minimum.spanning.tree(g) E(g)$color <- "SkyBlue2" ## how to I make mst a different color E(g)[E(mst)]$color = "red" ### <---- I WANT TO DO ESSENTIALLY THIS plot(g, edge.label=E(g)$weight) That is, for a simple graph, I find the mst. I want to change the mst to red and plot the mst as part of the main graph. To do this, I want to select the edges of g that are also in mst . How do I do this?