"in-out" correlations in graph-tool

Dear all,

I want to calculate the "in-out" and "out-in" degree correlations in
directed networks. However, I don't see any function in graph-tool that
would do this for me. The usual "gt.scalar_assortativity" can do this only
for "in-in" or "out-out" correlations. Can somebody please point out to me
if there is any way around?

Thank you
Snehal

attachment.html (681 Bytes)

scalar_assortativity() does not yet support this, but it is easy to modify
it (just open a ticket in the website, and it will be done when I get around
to it).

But you con obtain this type of correlation using, e.g.
avg_neighbour_corr(g, "out", "in").

Best,
Tiago