by Sara Jakša
The dataset of all the tags and works on the AO3 fanfiction archive site as of March 2021
Can be found on: https://archiveofourown.org/admin_posts/18804
import networkx
G = networkx.Graph()
for node1, node2, weight in edges_list:
G.add_edge(node1, node2, weight=weight)
G.nodes()
G.edges()
len(G_characters.edges())/len(G_characters.nodes())
networkx.density(G)
networkx.average_shortest_path_length(G)
networkx.diameter(G)
networkx.connected_components(G)
networkx.degree_centrality(G)
networkx.betweenness_centrality(G, weight='weight')
networkx.pagerank(G, weight='weight')
measure 1 | measure 2 | corr |
---|---|---|
degree | betweeness | 0.68 |
degree | page rank | 0.89 |
page rank | betweeness | 0.82 |
from networkx.algorithms import community
groups = community.louvain_communities(G)
Contact: sarajaksa@sarajaksa.eu or approach me during this conference
Presentation is available on https://sarajaksa.eu/content/presentations/2022/pycon-italy-network-analysis