-
Notifications
You must be signed in to change notification settings - Fork 183
Assortativity extended to graphs with attributes #1547
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1547 +/- ##
=======================================
Coverage 99.44% 99.44%
=======================================
Files 106 106
Lines 5551 5564 +13
=======================================
+ Hits 5520 5533 +13
Misses 31 31 |
Thanks for these PRs, @vboussange ! In order for us to merge them, they will need comprehensive tests. Also, a formal review is forthcoming, but why are you using a |
@sbromberger Thanks for your comments. I was using |
sorry for the delay in review - I should be able to get to this this week. |
Best of intentions, etc. Sorry for the delay. Reviewing now. |
Hi there, I propose an extension of method
assortativity
to account for scalar properties of vertices.This is also done in networkX (python).
"""
assortativity(g,labels)
Similar to
assortativity(g)
except that Pearson correlation is calculated between some values associated to each node and stored inlabels
.Arguments
labels
is a dictionary that associates to each vertex index a scalar valueExamples
"""