Finding who is talking to whom
Recall from the first lesson that cliques are complete subgraphs within a larger undirected graph. When we look at the clique structure of a conversational graph in Twitter, it tells us who is talking to whom. One way we can use this information is to see who might be interested in talking to other people. It's easy to see how this basic information could be used to construct models of suggested users to follow or interact with.
This exercise is part of the course
Case Studies: Network Analysis in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Get size 3 cliques
list_of_clique_vertices <- cliques(___, min = ___, max = ___)
# Loop over cliques, getting IDs
clique_ids <- lapply(___, as_ids)
# See the result
clique_ids