igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] how to generate directed small world networks


From: Gábor Csárdi
Subject: Re: [igraph] how to generate directed small world networks
Date: Sun, 15 Mar 2009 11:09:23 +0100

Simone, you mean Watts-Strogatz type? Create a lattice first, and then
call rewire. edges on it. E.g.

g2 <- rewire.edges(graph.lattice(100, nei=2, dir=TRUE, mutual=TRUE), p=2/100)
plot(g2, layout=layout.circle, vertex.label=NA, vertex.size=3,
edge.arrow.size=0.4)

Best,
Gabor

On Sat, Mar 14, 2009 at 3:17 PM, Simone Gabbriellini
<address@hidden> wrote:
> Dear List,
>
> is it possible to generate directed small world in the igraph R package?
>
> thanks,
> simone
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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