[Top][All Lists]

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

Re: [igraph] Solved erdos_renyi vs from file

From: simone gabbriellini
Subject: Re: [igraph] Solved erdos_renyi vs from file
Date: Thu, 25 Jun 2009 19:17:01 +0200

Hi Tamas,

Of course you're right! :)
Can you please also help me translate this r sintax?

g.sw=rewire.edges(graph.lattice(vcount(g), nei=mean(degree(g)), dir=TRUE, mutual=TRUE), p=0.25)

Many thanks,

Inviato da iPhone

Il giorno 25/giu/2009, alle ore 18.45, Tamas Nepusz <address@hidden> ha scritto:

Got my answer
I did this:
G = igraph.GraphBase.Erdos_Renyi()
Instead of:
G = igraph.Graph.Erdos_Renyi()
A simple rule of thumb is: don't use GraphBase unless you really know what you're doing ;) igraph.Graph is derived from igraph.GraphBase. igraph.GraphBase is a simpler class that does not contain many convenience functions that igraph.Graph does.


igraph-help mailing list

reply via email to

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