On 17.12.2014 23:10, marklasta wrote: > Hi there, > > I'm working with the "graph_tool.generation.lattice" on a 2D lattice > visualization. > > Can you help me to draw a lattice graph, as in the documentation, but not > rotated ?
g = lattice([50, 50]) idx = g.vertex_index.copy() x = g.new_vertex_property("double") y = g.new_vertex_property("double") x.a = idx.a % 50 y.a = idx.a // 50 pos = group_vector_property([x,y]) graph_draw(g, pos) Best, Tiago -- Tiago de Paula Peixoto <ti...@skewed.de>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool