Skip to content
Prev 172430 / 398502 Next

save the layout using igraph

Shukai,

the layout functions return a matrix that you can supply as the
'layout' argument of the plotting functions, e.g.

g1 <- erdos.renyi.game(50,2/50)
lay <- layout.fruchterman.reingold(g1)
g2 <- delete.edges(g1, sample(ecount(g1), 30)-1)
plot(g1, layout=lay, vertex.size=10)
plot(g2, layout=lay, vertex.size=10)

Best,
Gabor
On Tue, Mar 3, 2009 at 8:37 PM, kevinchang <shukai at seas.upenn.edu> wrote: