Assortativity and reciprocity
Another two key components of understanding our graphs are reciprocity and degree assort~ativity. Recall that reciprocity is the number of vertices that have connections going in each direction. Therefore, in the retweet graph, reciprocity is measuring the overall amount of nodes that retweet each other. In the mention graph, it will tell us how many nodes are conversing back and forth.
Assortitivity is a bit less obvious. Values greater than 0 indicate that vertices with high degrees tend to be connected to each other. However, values less than zero indicate a more degree disassortative graph. If you visualize the graph and see a hub and spoke type pattern, this is likely to be disassortative.
Cet exercice fait partie du cours
Case Studies: Network Analysis in R
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Find the reciprocity of the retweet graph
___
# Find the reciprocity of the mention graph
___