Considering the degree correlation coefficient, which is defined as $r = \sum_{jk} \frac{jk(e_{jk}-q_jq_k)}{\sigma^2}$ with $\sigma^2=\sum_k k^2q_k-\left[ \sum_k kq_k \right]^2$. And considering Net A and Net B in the figures below.
Which topology do the Net A and B present?
- Net A is disassortative and Net B is assortative;
- Net A is neutral and Net B is disassortative;
- Net A is assortative and Net B is neutral;
- Net A is assortative and Net B is disassortative;
- None of the above;


Good questin, but I need to confirm the r's of both networks.
ResponderExcluirI confirmed the values with this code in Python:
ExcluirNetA = nx.Graph([(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 0), (1, 4), (2, 5), (0, 3), (3, 6)])
r = nx.degree_assortativity_coefficient(NetA)
print(f"Net A, r = {r:3.3f}")
NetB = nx.Graph([(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 0), (1, 4), (2, 5), (0, 3), (3, 6), (6, 7)])
r = nx.degree_assortativity_coefficient(NetB)
print(f"Net B, r = {r:3.3f}")