НачатьНачать бесплатно

Calculate the betweenness scores

Betweenness centrality represents the degree to which nodes stand between each other.

In a retweet network, a user with a high betweenness centrality score would have more control over the network because more information will pass through the user.

Can you identify users who are central to people who retweet the most and those whose tweets are retweeted frequently?

The retweet network on #travel has been pre-loaded as nw_rtweet.

The library igraph has been pre-loaded for this exercise.

Это упражнение является частью курса

Analyzing Social Media Data in R

Посмотреть курс

Инструкции к упражнению

  • Calculate betweenness scores from the retweet network.
  • Sort the betweenness scores in decreasing order and round the values.
  • View users with the top 10 betweenness scores.

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

# Calculate the betweenness scores from the retweet network
betwn_nw <- ___(___, directed = ___)

# Sort betweenness scores in decreasing order and round the values
betwn_nw_sort <- ___ %>%
                    sort(decreasing = ___) %>%
                    ___()

# View users with the top 10 betweenness scores 
betwn_nw_sort[1:10]
Редактировать и запускать код