MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Case Studies: Network Analysis in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Find the reciprocity of the retweet graph
___

# Find the reciprocity of the mention graph
___
Edit dan Jalankan Kode