igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Assortativity in igraph-6.0 under R


From: Gábor Csárdi
Subject: Re: [igraph] Assortativity in igraph-6.0 under R
Date: Wed, 19 May 2010 16:47:28 +0200

I think what you want to compare is

> assortativity(g1,degree(g1, mode="out")-1, degree(g1, mode="in")-1, 
> directed=TRUE)
[1] -0.3131201
> assortativity.degree(g1, directed=TRUE)
[1] -0.3131201

because this is how assortativity.degree() works if directed=TRUE.

Best,
Gabor

On Wed, May 19, 2010 at 4:36 PM, Przemek Grabowicz
<address@hidden> wrote:
> Thank you for implementing assortativity in igraph-0.6, it's nice addition.
>
> However there is something there what I don't understand.
> Assortativity.degree gives different results than assortativity itself. If I
> understand manual properly it should give the same values.
>
>> assortativity(g1,degree(g1)-1,directed=TRUE)
> [1] 0.1368699
>> assortativity.degree(g1,directed=TRUE)
> [1] 0.1546312
>
> It works fine when directed=FALSE. I'm using
> igraph_nightly_0.6-1899-20100505 under R-2.8.1 .
>
> _______________________________________________
> 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]