igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Small-World Network


From: Ragia Ibrahim
Subject: Re: [igraph] Small-World Network
Date: Sun, 26 Jan 2014 07:34:11 +0200

many thanks Gábor 
Ragia



Date: Sat, 25 Jan 2014 23:20:26 -0500
From: address@hidden
To: address@hidden
Subject: Re: [igraph] Small-World Network

On Sat, Jan 25, 2014 at 6:51 AM, Tamás Nepusz <address@hidden> wrote:
> thanks for replying
> is this true for the first graph
> watts.strogatz.game(5242 ,5242 ,2,0) ?

No. Use graph.ring to generate a ring graph. Use graph.erdos.renyi to create a graph that contains randomly selected edges. Use graph.union to create the union of them.

You need to use watts.strogatz.game() because the nodes connect to the second neighbors on the ring must be connected. So use watts.strogatz.game() with zero rewiring probability for this. 

Then you can create the union of this and an E-R network, the only (slight) problem is that you might end up with some multiple edges.

G.
 

T.

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


_______________________________________________ igraph-help mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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