If you are up for some good reading the best description is in
Newman's paper "Mixing patterns in networks"
http://arxiv.org/abs/cond-mat/0209450 10.1103/PhysRevE.67.026126
Attribute assortativity implements equation (2) and numeric
assortativity implements equation (21) (the later is the standard
Pearson correlation coefficient).
If all of the values (numeric or categorical) are the same then
neither of these metrics will return meaningful answers - they are
undefined/infinite/zero depending on how you feel about definitions
and dividing by zero. The error messages in that case are not very
clear as you pointed out. We could consider fixing that if it helps
make things clearer.
Aric
> --
> You received this message because you are subscribed to the Google Groups
> "networkx-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
networkx-discu...@googlegroups.com.
> To post to this group, send email to
networkx...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/networkx-discuss.
> For more options, visit
https://groups.google.com/groups/opt_out.