[Top][All Lists]

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

Re: [igraph] Assortativity measures

From: Gábor Csárdi
Subject: Re: [igraph] Assortativity measures
Date: Mon, 6 Jan 2014 21:14:11 -0500

On Mon, Jan 6, 2014 at 5:48 PM, Merton Lister <address@hidden> wrote:
Hi Csardi,

Thanks for your suggestion. I looked at the formula on page 19 of the manual, and it seems that the based on that formula the assortativity should be 1 if all the edges in a (undirected) graph connect vertices of the same type.

So why it is returning 'NaN' in my case? Or is my understanding wrong? Thanks.

If there is only one vertex type, then there is zero in the denominator, for both formulas. That's why you get NaNs. 

If there is only one vertex type, the question "do vertices connect preferentially to the same type?" does not make sense.


Best regards,


reply via email to

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