24 Sep
2018
24 Sep
'18
10:03 p.m.
Am 24.09.18 um 23:57 schrieb Lietz, Haiko:
Today I need to know how, in a directed graph, I can color a directed edge by the color of the target node.
You can propagate vertex properties to edges with the function edge_endpoint_property(), e.g. epartition = edge_endpoint_property(g, partition, "target") This will propagate the partition value of the target node to the edge, as an edge property map. You then can pass this to "edge_color" in graph_draw(). Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>