igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Examples about layouts


From: Tamas Nepusz
Subject: Re: [igraph] Examples about layouts
Date: Wed, 15 Oct 2008 15:29:00 +0100

essentially it is no big deal, you just supply a matrix with 2 (plot,
tkplot) or 3 (rglplot) columns as the 'layout' parameter.
The same applies for Python (but you only have "plot" there):

g = Graph.Lattice([3,3])
layout = [[x/3, x%3] for x in xrange(g.vcount())]
plot(g, layout=layout)

--
T.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]