24 Sep
2018
24 Sep
'18
10:09 p.m.
Very nice! This is a working example: f = Graph(directed=True) f.add_edge_list([[0, 1], [0, 2], [1, 2]]) partition = f.new_vertex_property('int') blocks = [0, 0, 1] for i in range(0, 3): partition[f.vertex(i)] = blocks[i] epartition = edge_endpoint_property(f, partition, 'target') graph_draw(f, vertex_fill_color=partition, edge_color=epartition) Thx Haiko