igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Obtain Average nearest neighbor OUTdegree and INdegree


From: Gábor Csárdi
Subject: Re: [igraph] Obtain Average nearest neighbor OUTdegree and INdegree
Date: Mon, 14 Jul 2014 09:28:46 -0400

Hi,

collect the neighbors with neighbors() and then calculate their
degrees. If you do this for many (or all) vertices, then pre-calculate
all in- and out-degrees.

Gabor

On Mon, Jul 14, 2014 at 3:16 AM,  <address@hidden> wrote:
> Hi,
> The function graph.knn() ignores direction of edges. How could I get instead
> for each vertex two averages: the outdegree and indegree for the
> neighbourhood?
>
> Thanks
>
>
> _______________________________________________
> 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]