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 <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
