igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Igraph, how to get a scale free network with a given vertex


From: Tamas Nepusz
Subject: Re: [igraph] Igraph, how to get a scale free network with a given vertex average degree
Date: Fri, 31 Mar 2017 09:32:10 +0200

Hi,

If the average degree is k and k is even, you can use sample_pa(n=..., m=k, directed=FALSE). If the average degree is not even, you can use sample_fitness_pl() instead, e.g.:

N <- 10000
k <- 5
g <- sample_fitness_pl(N, k*N/2, 2)


T.

On Thu, Mar 30, 2017 at 10:21 PM, giorgio delzeri <address@hidden> wrote:
Hi guys of the (R) igraph community.
I have a question for you, I already read several manuals but I still don't understand how to give, on igraph, an Undirected scale free network with n vertices and a givenĀ  average degree (for example, average degree of all vertexes = 8).
Do you have any suggestions?
Thank you, and sorry for my bad english, I am from Italy.


_______________________________________________
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]