[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] keeping the graph's characteristics
From: |
Tamás Nepusz |
Subject: |
Re: [igraph] keeping the graph's characteristics |
Date: |
Fri, 13 Jul 2012 14:03:14 +0200 |
> I need to generate random graphs with a determined number of nodes with
> different sizes. I just noticed that the only way to have the graph plotted
> with the same characteristics (nodes size, position and edges) is through
> the function plot. If, then, I just make plot() with the graph name as the
> only argument I get a different graph each time.
plot() has a parameter called layout which lets you specify the positions of
the nodes in an Nx2 matrix. So, generate the layout first either manually or
using one of the layout functions, and then feed this matrix into the layout
argument of plot().
Best,
T.