igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] assortativity for small world graph


From: Tamas Nepusz
Subject: Re: [igraph] assortativity for small world graph
Date: Tue, 25 Aug 2009 18:29:18 +0100

gSW= Graph.Watts_Strogatz(dim=1,size=g.vcount(), nei=1,p=0.05)

but can I specify the mean size of the neighborhood? it looks like it is fixed on 2, is it?
You mean you'd like to connect vertex i on the ring with vertex i+2 and i-2 besides vertex i+1 and i-1? You can use nei=2 for that -- nei=2 is supported for Graph.Watts_Strogatz but not for Graph.Lattice.

Thanks,
--
Tamas





reply via email to

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