assortativity_attributes

bandicoot.network.assortativity_attributes(user)

Computes the assortativity of the nominal attributes.

This indicator measures the homophily of the current user with his correspondants, for each attributes. It returns a value between 0 (no assortativity) and 1 (all the contacts share the same value): the percentage of contacts sharing the same value.