I just completed a new version of the Python version of T2G which adds a few new features. Most prominent among these is the ability to extract only retweets or only mentions for visualization in Gephi. Recent research has shown substantive differences between networks based on these behaviors, so it is important for researchers to be able to distinguish between them. The new version also fixes a bug that halted processing whenever two @s appeared adjacent to one another in a tweet (i.e. “@@”).
T2G 0.3 features four extraction modes, each of which yields different sets of network edges:
- Extracts all edges, does not differentiate between retweets and mentions, and includes singletons (users who are mentioned by no one and mention no one)
- Extracts all edges, does not differentiate between retweets and mentions, and excludes singletons
- Extracts retweets only and excludes singletons
- Extracts mentions only (i.e. non-retweets) and excludes singletons
To try the different modes, change the value of the variable ‘extmode’ on line 16 to a number from 1 to 4 corresponding to the numbered modes above. Easy!