Can i change the colour of edges containing specific vertices in IGraph-Python
问题 I have created a directed graph and through a program i am finding out all the cycles it contains. After creating the graph i want to change the colour of the edges which contain the vertices involved in the cycle. I am using python igraph. Please Help 回答1: Something like this: vertex_set = set(vertices_in_cycle) g.es["color"] = "black" red_edges = g.es.select(_source_in=vertex_set, _target_in=vertex_set) red_edges["color"] = "red" Explanation: g.es represents the set of all edges in the