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,  <[email protected]> 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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to