Network graphs consisting of nodes and edges and be used to visualize the relationships between people. The results can inform a viewer of groups of relationships. This abbreviated example demonstrates how to crawl Wiki articles and represent the links between these articles as a graph.
In [ ]:
!pip install git+https://github.com/jchuahtacc/WikiNetworking.git
In [6]:
import wikinetworking as wn
import networkx as nx
from pyquery import PyQuery
%matplotlib inline
print "OK"
OK
In this crawl, we will create a network of all characters in the Marvel Cinematic Universe. The general strategy is:
https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_
https://en.wikipedia.org/wiki/List_of_Marvel_Cinematic_Universe_film_actors
In [7]:
sections = [letter for letter in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ']
sections.append('0-9')
urls = ["https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_" + section for section in sections]
character_links = wn.retrieve_multipage(urls, ".hatnote", True)
wn.write_list(character_links, "marvel_character_links.txt")
print len(character_links), " Marvel Comics Character links retrieved"
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_A
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_B
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_C
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_D
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_E
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_F
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_G
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_H
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_I
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_J
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_K
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_L
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_M
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_N
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_O
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_P
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_Q
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_R
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_S
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_T
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_U
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_V
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_W
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_X
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_Y
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_Z
Retrieving https://en.wikipedia.org/wiki/List_of_Marvel_Comics_characters:_0-9
2061 Marvel Comics Character links retrieved
In [8]:
mcu_page = PyQuery(url="https://en.wikipedia.org/wiki/List_of_Marvel_Cinematic_Universe_film_actors")
mcu_links = wn.filter_links(mcu_page)
wn.write_list(mcu_links, "mcu_links.txt")
print len(mcu_links), " Marvel Cinamtic Universe links retrieved"
834 Marvel Cinamtic Universe links retrieved
In [9]:
mcu_characters = wn.intersection(character_links, mcu_links)
wn.write_list(mcu_characters, "mcu_characters.txt")
print len(mcu_characters), " Marvel Cinematic Universe Characters found"
118 Marvel Cinematic Universe Characters found
In [11]:
mcu_crawl_data = wn.crawl("/wiki/Iron_Man", accept=mcu_characters, reject=["/wiki/Marvel_Comics", "/wiki/Marvel_Cinematic_Universe"])
mcu_undirected_graph = wn.undirected_graph(mcu_crawl_data)
wn.save_dict(mcu_undirected_graph, "mcu_network.json")
print wn.load_dict("mcu_network.json")
1: Retrieving /wiki/Iron_Man, (0 left in queue)
2: Retrieving /wiki/War_Machine, (54 left in queue)
3: Retrieving /wiki/Pepper_Potts, (55 left in queue)
4: Retrieving /wiki/Captain_America, (56 left in queue)
5: Retrieving /wiki/Hawkeye_(comics), (61 left in queue)
6: Retrieving /wiki/Ho_Yinsen, (64 left in queue)
7: Retrieving /wiki/Thanos, (63 left in queue)
8: Retrieving /wiki/Justin_Hammer, (78 left in queue)
9: Retrieving /wiki/Howard_Stark, (78 left in queue)
10: Retrieving /wiki/Maria_Stark, (77 left in queue)
11: Retrieving /wiki/Crimson_Dynamo, (76 left in queue)
12: Retrieving /wiki/Happy_Hogan_(comics), (79 left in queue)
13: Retrieving /wiki/Iron_Monger, (80 left in queue)
14: Retrieving /wiki/Quicksilver_(comics), (79 left in queue)
15: Retrieving /wiki/Scarlet_Witch, (80 left in queue)
16: Retrieving /wiki/Black_Panther_(comics), (82 left in queue)
17: Retrieving /wiki/Doctor_Strange, (87 left in queue)
18: Retrieving /wiki/Hank_Pym, (86 left in queue)
19: Retrieving /wiki/Ultron, (85 left in queue)
20: Retrieving /wiki/Thor_(Marvel_Comics), (84 left in queue)
21: Retrieving /wiki/Maria_Hill, (83 left in queue)
22: Retrieving /wiki/Friday_(comics), (82 left in queue)
23: Retrieving /wiki/Hulk_(comics), (81 left in queue)
24: Retrieving /wiki/Whiplash_(comics), (84 left in queue)
25: Retrieving /wiki/Wasp_(comics), (83 left in queue)
26: Retrieving /wiki/Helmut_Zemo, (82 left in queue)
27: Retrieving /wiki/Collector_(comics), (81 left in queue)
28: Retrieving /wiki/Grandmaster_(Marvel_Comics), (81 left in queue)
29: Retrieving /wiki/Loki_(comics), (80 left in queue)
30: Retrieving /wiki/Red_Skull, (80 left in queue)
31: Retrieving /wiki/Spider-Man, (79 left in queue)
32: Retrieving /wiki/Black_Widow_(Natasha_Romanova), (80 left in queue)
33: Retrieving /wiki/Carol_Danvers, (79 left in queue)
34: Retrieving /wiki/Vision_(Marvel_Comics), (78 left in queue)
35: Retrieving /wiki/Sharon_Carter, (77 left in queue)
36: Retrieving /wiki/Nick_Fury, (76 left in queue)
37: Retrieving /wiki/Jasper_Sitwell, (75 left in queue)
38: Retrieving /wiki/Alexander_Goodwin_Pierce, (74 left in queue)
39: Retrieving /wiki/Phil_Coulson, (73 left in queue)
40: Retrieving /wiki/Crossbones_(comics), (73 left in queue)
41: Retrieving /wiki/Peggy_Carter, (72 left in queue)
42: Retrieving /wiki/Gabe_Jones, (71 left in queue)
43: Retrieving /wiki/Jane_Foster_(comics), (70 left in queue)
44: Retrieving /wiki/Heimdall_(comics), (69 left in queue)
45: Retrieving /wiki/Sif_(comics), (68 left in queue)
46: Retrieving /wiki/Tyr_(Marvel_Comics), (67 left in queue)
47: Retrieving /wiki/Valkyrie_(Marvel_Comics), (66 left in queue)
48: Retrieving /wiki/Fandral, (65 left in queue)
49: Retrieving /wiki/Hogun, (64 left in queue)
50: Retrieving /wiki/Volstagg, (63 left in queue)
51: Retrieving /wiki/Ego_the_Living_Planet, (62 left in queue)
52: Retrieving /wiki/Executioner_(comics), (61 left in queue)
53: Retrieving /wiki/Hela_(comics), (60 left in queue)
54: Retrieving /wiki/Kurse, (59 left in queue)
55: Retrieving /wiki/Laufey_(comics), (58 left in queue)
56: Retrieving /wiki/Malekith_the_Accursed, (57 left in queue)
57: Retrieving /wiki/Bucky_Barnes, (56 left in queue)
58: Retrieving /wiki/Falcon_(comics), (55 left in queue)
59: Retrieving /wiki/Maya_Hansen, (54 left in queue)
60: Retrieving /wiki/Aldrich_Killian, (53 left in queue)
61: Retrieving /wiki/Klaw_(Marvel_Comics), (52 left in queue)
62: Retrieving /wiki/Erik_Selvig, (51 left in queue)
63: Retrieving /wiki/Arnim_Zola, (50 left in queue)
64: Retrieving /wiki/Baron_Strucker, (49 left in queue)
65: Retrieving /wiki/Batroc_the_Leaper, (48 left in queue)
66: Retrieving /wiki/Jim_Morita, (47 left in queue)
67: Retrieving /wiki/Ant-Man_(Scott_Lang), (46 left in queue)
68: Retrieving /wiki/Yellowjacket_(Marvel_Comics), (45 left in queue)
69: Retrieving /wiki/Darren_Cross, (44 left in queue)
70: Retrieving /wiki/Hope_Pym, (43 left in queue)
71: Retrieving /wiki/Drax_the_Destroyer, (42 left in queue)
72: Retrieving /wiki/Mantis_(Marvel_Comics), (41 left in queue)
73: Retrieving /wiki/Star-Lord, (40 left in queue)
74: Retrieving /wiki/Ronan_the_Accuser, (39 left in queue)
75: Retrieving /wiki/Gamora, (38 left in queue)
76: Retrieving /wiki/Nebula_(comics), (37 left in queue)
77: Retrieving /wiki/Martinex, (36 left in queue)
78: Retrieving /wiki/Starhawk_(comics), (35 left in queue)
79: Retrieving /wiki/Yondu, (34 left in queue)
80: Retrieving /wiki/Cosmo_the_Spacedog, (33 left in queue)
81: Retrieving /wiki/Groot, (33 left in queue)
82: Retrieving /wiki/Rocket_Raccoon, (32 left in queue)
83: Retrieving /wiki/Kismet_(Marvel_Comics), (31 left in queue)
84: Retrieving /wiki/Howard_the_Duck, (30 left in queue)
85: Retrieving /wiki/Supernova_(Marvel_Comics), (30 left in queue)
86: Retrieving /wiki/Rhomann_Dey, (29 left in queue)
87: Retrieving /wiki/Trevor_Slattery, (28 left in queue)
88: Retrieving /wiki/Tinkerer, (27 left in queue)
89: Retrieving /wiki/Doc_Samson, (26 left in queue)
90: Retrieving /wiki/Abomination_(comics), (25 left in queue)
91: Retrieving /wiki/Thunderbolt_Ross, (24 left in queue)
92: Retrieving /wiki/Coldblood, (23 left in queue)
93: Retrieving /wiki/Vulture_(Marvel_Comics), (22 left in queue)
94: Retrieving /wiki/Liz_Allan, (21 left in queue)
95: Retrieving /wiki/Baron_Mordo, (20 left in queue)
96: Retrieving /wiki/Dormammu, (19 left in queue)
97: Retrieving /wiki/Ancient_One, (18 left in queue)
98: Retrieving /wiki/Wong_(comics), (17 left in queue)
99: Retrieving /wiki/Erik_Killmonger, (16 left in queue)
100: Retrieving /wiki/T%27Chaka, (15 left in queue)
101: Retrieving /wiki/Man-Ape, (14 left in queue)
102: Retrieving /wiki/Shuri_(comics), (13 left in queue)
103: Retrieving /wiki/W%27Kabi, (12 left in queue)
104: Retrieving /wiki/Zuri_(comics), (11 left in queue)
105: Retrieving /wiki/Betty_Ross, (10 left in queue)
106: Retrieving /wiki/Leader_(comics), (9 left in queue)
107: Retrieving /wiki/Daniel_Drumm, (8 left in queue)
108: Retrieving /wiki/Korg_(comics), (7 left in queue)
109: Retrieving /wiki/Aunt_May, (6 left in queue)
110: Retrieving /wiki/Aleta_Ogord, (5 left in queue)
111: Retrieving /wiki/Flash_Thompson, (4 left in queue)
112: Retrieving /wiki/Shocker_(comics), (3 left in queue)
113: Retrieving /wiki/Claire_Temple_(Marvel_Cinematic_Universe), (2 left in queue)
114: Retrieving /wiki/Korath_the_Pursuer, (1 left in queue)
115: Retrieving /wiki/Bereet, (0 left in queue)
{u'Iron Man': {u'url': u'/wiki/Iron_Man', u'edges': {u'Laufey (comics)': 2, u'Sharon Carter': 4, u'Helmut Zemo': 4, u'Iron Monger': 8, u'Ultron': 5, u'Tyr (Marvel Comics)': 2, u'Loki (comics)': 7, u'Volstagg': 2, u'Maria Stark': 5, u'Friday (comics)': 6, u'Justin Hammer': 10, u'Gabe Jones': 4, u'Scarlet Witch': 1, u'War Machine': 17, u'Crossbones (comics)': 5, u'Thor (Marvel Comics)': 14, u'Vision (Marvel Comics)': 3, u'Collector (comics)': 3, u'Thanos': 6, u'Sif (comics)': 2, u'Maria Hill': 8, u'Ego the Living Planet': 3, u'Alexander Goodwin Pierce': 2, u'Captain America': 18, u'Phil Coulson': 3, u'Grandmaster (Marvel Comics)': 3, u'Fandral': 2}}, u'Hank Pym': {u'url': u'/wiki/Hank_Pym', u'edges': {u'Hope Pym': 5, u'Iron Man': 7, u'Quicksilver (comics)': 3, u'Sharon Carter': 2, u'Darren Cross': 6, u'Helmut Zemo': 2, u'Red Skull': 3, u'Ultron': 13, u'Jasper Sitwell': 2, u'Loki (comics)': 3, u'Vulture (Marvel Comics)': 1, u'War Machine': 3, u'Gabe Jones': 2, u'Captain America': 5, u'Thor (Marvel Comics)': 6, u'Vision (Marvel Comics)': 2, u'Collector (comics)': 2, u'Doctor Strange': 2, u'Grandmaster (Marvel Comics)': 2, u'Yellowjacket (Marvel Comics)': 13, u'Ant-Man (Scott Lang)': 7, u'Nick Fury': 2, u'Hulk (comics)': 5, u'Wasp (comics)': 17, u'Crossbones (comics)': 2, u'Thanos': 2}}, u'Helmut Zemo': {u'url': u'/wiki/Helmut_Zemo', u'edges': {u'Sharon Carter': 2, u'Justin Hammer': 2, u'Hawkeye (comics)': 3, u'Black Panther (comics)': 1, u'Loki (comics)': 4, u'Spider-Man': 1, u'Captain America': 7, u'Thor (Marvel Comics)': 3, u'Thanos': 2, u'Maria Hill': 1, u'Erik Selvig': 1, u'Collector (comics)': 2, u'Crossbones (comics)': 3, u'Ultron': 3, u'Grandmaster (Marvel Comics)': 5, u'Bucky Barnes': 6, u'Klaw (Marvel Comics)': 2}}, u'Drax the Destroyer': {u'url': u'/wiki/Drax_the_Destroyer', u'edges': {u'Yondu': 2, u'Cosmo the Spacedog': 6, u'Starhawk (comics)': 2, u'Howard the Duck': 2, u'Rhomann Dey': 3, u'Martinex': 2, u'Supernova (Marvel Comics)': 2, u'Iron Man': 6, u'Thor (Marvel Comics)': 6, u'Rocket Raccoon': 4, u'Groot': 6, u'Kismet (Marvel Comics)': 2, u'Gamora': 10, u'Collector (comics)': 2, u'Thanos': 17, u'Nebula (comics)': 8, u'Grandmaster (Marvel Comics)': 2, u'Ultron': 1, u'Ego the Living Planet': 4, u'Ronan the Accuser': 5, u'Star-Lord': 6}}, u'Vulture (Marvel Comics)': {u'url': u'/wiki/Vulture_(Marvel_Comics)', u'edges': {u'Captain America': 1}}, u'Thunderbolt Ross': {u'url': u'/wiki/Thunderbolt_Ross', u'edges': {u'Iron Man': 4, u'Black Widow (Natasha Romanova)': 1, u'Baron Mordo': 1, u'Thor (Marvel Comics)': 2, u'Spider-Man': 2, u'Captain America': 3, u'Ultron': 1, u'Grandmaster (Marvel Comics)': 2, u'Nick Fury': 1}}, u'Kurse': {u'url': u'/wiki/Kurse', u'edges': {u'Tyr (Marvel Comics)': 2, u'Executioner (comics)': 2, u'Hela (comics)': 3, u'Loki (comics)': 3, u'Iron Man': 2, u'Malekith the Accursed': 7, u'Laufey (comics)': 2, u'Thor (Marvel Comics)': 6, u'Hogun': 2, u'Volstagg': 3, u'Jane Foster (comics)': 2, u'Valkyrie (Marvel Comics)': 2, u'Captain America': 2, u'Sif (comics)': 2, u'Ego the Living Planet': 2, u'Fandral': 2}}, u'Aunt May': {u'url': u'/wiki/Aunt_May', u'edges': {u'Iron Man': 1, u'Liz Allan': 5, u'Nick Fury': 1, u'Flash Thompson': 7, u'Vulture (Marvel Comics)': 6, u'Phil Coulson': 1}}, u'Justin Hammer': {u'url': u'/wiki/Justin_Hammer', u'edges': {u'Trevor Slattery': 1, u'Maria Hill': 2, u'Spider-Man': 1, u'Captain America': 4, u'Friday (comics)': 2, u'Red Skull': 1, u'Ultron': 1, u'Falcon (comics)': 1, u'Hawkeye (comics)': 1}}, u'Scarlet Witch': {u'url': u'/wiki/Scarlet_Witch', u'edges': {u'Loki (comics)': 6, u'Baron Mordo': 2, u'Thor (Marvel Comics)': 2, u'Vision (Marvel Comics)': 7, u'Captain America': 7, u'Ultron': 4}}, u'Yellowjacket (Marvel Comics)': {u'url': u'/wiki/Yellowjacket_(Marvel_Comics)', u'edges': {u'Hope Pym': 2, u'Ultron': 5}}, u'Hela (comics)': {u'url': u'/wiki/Hela_(comics)', u'edges': {u'Tyr (Marvel Comics)': 4, u'Executioner (comics)': 3, u'Thor (Marvel Comics)': 5, u'Loki (comics)': 9, u'Hulk (comics)': 1, u'Dormammu': 1, u'Iron Man': 2, u'Malekith the Accursed': 4, u'Laufey (comics)': 2, u'Hogun': 2, u'Volstagg': 2, u'Jane Foster (comics)': 2, u'Valkyrie (Marvel Comics)': 5, u'Collector (comics)': 1, u'Captain America': 2, u'Sif (comics)': 3, u'Thanos': 2, u'Ego the Living Planet': 2, u'Fandral': 2}}, u'Heimdall (comics)': {u'url': u'/wiki/Heimdall_(comics)', u'edges': {u'Tyr (Marvel Comics)': 2, u'Executioner (comics)': 4, u'Hela (comics)': 2, u'Loki (comics)': 5, u'Kurse': 2, u'Hulk (comics)': 1, u'Iron Man': 2, u'Malekith the Accursed': 3, u'Laufey (comics)': 2, u'Thor (Marvel Comics)': 5, u'Hogun': 2, u'Volstagg': 2, u'Jane Foster (comics)': 2, u'Valkyrie (Marvel Comics)': 2, u'Captain America': 2, u'Sif (comics)': 4, u'Ego the Living Planet': 2, u'Fandral': 2}}, u'Malekith the Accursed': {u'url': u'/wiki/Malekith_the_Accursed', u'edges': {u'Tyr (Marvel Comics)': 2, u'Laufey (comics)': 6, u'Loki (comics)': 4, u'Executioner (comics)': 3, u'Thor (Marvel Comics)': 5, u'Iron Man': 2, u'Volstagg': 2, u'Captain America': 2, u'Sif (comics)': 2, u'Ego the Living Planet': 2, u'Fandral': 3}}, u'Hawkeye (comics)': {u'url': u'/wiki/Hawkeye_(comics)', u'edges': {u'Hope Pym': 2, u'Iron Man': 7, u'Quicksilver (comics)': 2, u'Black Widow (Natasha Romanova)': 12, u'Hank Pym': 5, u'Sharon Carter': 4, u'Darren Cross': 3, u'Peggy Carter': 2, u'Ultron': 3, u'Falcon (comics)': 4, u'Crimson Dynamo': 2, u'Jasper Sitwell': 2, u'War Machine': 4, u'Bucky Barnes': 5, u'Ant-Man (Scott Lang)': 4, u'Scarlet Witch': 7, u'Captain America': 12, u'Thor (Marvel Comics)': 1, u'Collector (comics)': 1, u'Doctor Strange': 2, u'Maria Hill': 4, u'Yellowjacket (Marvel Comics)': 2, u'Nick Fury': 4, u'Hulk (comics)': 2, u'Alexander Goodwin Pierce': 2, u'Wasp (comics)': 5, u'Crossbones (comics)': 2, u'Phil Coulson': 2}}, u'Cosmo the Spacedog': {u'url': u'/wiki/Cosmo_the_Spacedog', u'edges': {u'Grandmaster (Marvel Comics)': 3, u'Spider-Man': 1, u'Korath the Pursuer': 1}}, u'Maria Hill': {u'url': u'/wiki/Maria_Hill', u'edges': {u'Vision (Marvel Comics)': 1, u'Spider-Man': 3, u'Bucky Barnes': 3, u'Crossbones (comics)': 2}}, u'Valkyrie (Marvel Comics)': {u'url': u'/wiki/Valkyrie_(Marvel_Comics)', u'edges': {u'Iron Man': 3, u'Dormammu': 3, u'Hank Pym': 1, u'Sharon Carter': 2, u'Laufey (comics)': 2, u'Tyr (Marvel Comics)': 2, u'Loki (comics)': 4, u'Jane Foster (comics)': 2, u'War Machine': 3, u'Ego the Living Planet': 2, u'Executioner (comics)': 2, u'Ancient One': 1, u'Thor (Marvel Comics)': 8, u'Abomination (comics)': 1, u'Sif (comics)': 4, u'Malekith the Accursed': 2, u'Hawkeye (comics)': 1, u'Hulk (comics)': 5, u'Hogun': 2, u'Captain America': 5, u'Volstagg': 2, u'Fandral': 2}}, u'Betty Ross': {u'url': u'/wiki/Betty_Ross', u'edges': {u'Iron Man': 3, u'Sharon Carter': 1, u'Hawkeye (comics)': 1, u'Loki (comics)': 1, u'Black Widow (Natasha Romanova)': 1, u'Nick Fury': 1, u'Captain America': 1, u'Alexander Goodwin Pierce': 1, u'Peggy Carter': 1, u'Thunderbolt Ross': 9, u'Crossbones (comics)': 1, u'Phil Coulson': 1, u'Jasper Sitwell': 1, u'Maria Hill': 1}}, u'Quicksilver (comics)': {u'url': u'/wiki/Quicksilver_(comics)', u'edges': {u'Vision (Marvel Comics)': 3, u'Iron Man': 4, u'Black Panther (comics)': 1, u'Loki (comics)': 2, u'Liz Allan': 2, u'Baron Mordo': 1, u'Sharon Carter': 1, u'Hulk (comics)': 1, u'Scarlet Witch': 14, u'Thor (Marvel Comics)': 1, u'Nick Fury': 1, u'Wasp (comics)': 1, u'Peggy Carter': 1, u'Captain America': 2, u'Ultron': 5, u'Thanos': 2, u'Gabe Jones': 1, u'Jasper Sitwell': 1, u'Ronan the Accuser': 2}}, u'Baron Mordo': {u'url': u'/wiki/Baron_Mordo', u'edges': {u'Iron Man': 1, u'Loki (comics)': 1, u'Hulk (comics)': 1, u'Thor (Marvel Comics)': 1, u'Abomination (comics)': 1, u'Valkyrie (Marvel Comics)': 1, u'War Machine': 1, u'Ultron': 1, u'Falcon (comics)': 1}}, u'Darren Cross': {u'url': u'/wiki/Darren_Cross', u'edges': {u'Hope Pym': 5, u'Iron Man': 1, u'Yellowjacket (Marvel Comics)': 9, u'Spider-Man': 1, u'Helmut Zemo': 1, u'Vision (Marvel Comics)': 1, u'Captain America': 1, u'Ultron': 4}}, u'Peggy Carter': {u'url': u'/wiki/Peggy_Carter', u'edges': {u'Iron Man': 4, u'Black Widow (Natasha Romanova)': 4, u'Hank Pym': 3, u'Sharon Carter': 12, u'Helmut Zemo': 2, u'Baron Strucker': 2, u'Red Skull': 3, u'Jasper Sitwell': 4, u'Falcon (comics)': 3, u'Jim Morita': 2, u'Bucky Barnes': 2, u'Gabe Jones': 3, u'Scarlet Witch': 1, u'Batroc the Leaper': 2, u'Captain America': 13, u'Thor (Marvel Comics)': 3, u'Howard Stark': 4, u'Maria Hill': 2, u'Nick Fury': 4, u'Hulk (comics)': 3, u'Alexander Goodwin Pierce': 2, u'Wasp (comics)': 2, u'Crossbones (comics)': 4, u'Phil Coulson': 2, u'Arnim Zola': 2}}, u'Rhomann Dey': {u'url': u'/wiki/Rhomann_Dey', u'edges': {u'Yondu': 1, u'Cosmo the Spacedog': 4, u'Howard the Duck': 2, u'Star-Lord': 3, u'Rocket Raccoon': 3, u'Groot': 3, u'Nebula (comics)': 2, u'Collector (comics)': 2, u'Thanos': 3, u'Grandmaster (Marvel Comics)': 3, u'Ego the Living Planet': 2, u'Ronan the Accuser': 4}}, u'Ronan the Accuser': {u'url': u'/wiki/Ronan_the_Accuser', u'edges': {u'Cosmo the Spacedog': 4, u'Starhawk (comics)': 2, u'Star-Lord': 6, u'Thor (Marvel Comics)': 1, u'Loki (comics)': 1, u'Hank Pym': 1, u'Iron Man': 2, u'Hulk (comics)': 2, u'Helmut Zemo': 1, u'Thanos': 14, u'Red Skull': 1, u'Wasp (comics)': 1, u'Groot': 5, u'Nebula (comics)': 6, u'Collector (comics)': 4, u'Captain America': 1, u'Ultron': 3, u'Grandmaster (Marvel Comics)': 4, u'Ego the Living Planet': 3, u'Spider-Man': 1, u'Klaw (Marvel Comics)': 2}}, u'Whiplash (comics)': {u'url': u'/wiki/Whiplash_(comics)', u'edges': {u'Iron Man': 6, u'War Machine': 4, u'Maria Hill': 2, u'Spider-Man': 2, u'Iron Monger': 3, u'Maria Stark': 2, u'Friday (comics)': 2, u'Justin Hammer': 7, u'Captain America': 5}}, u'Hogun': {u'url': u'/wiki/Hogun', u'edges': {u'Tyr (Marvel Comics)': 2, u'Executioner (comics)': 3, u'Thor (Marvel Comics)': 5, u'Loki (comics)': 3, u'Nick Fury': 1, u'Hulk (comics)': 2, u'Iron Man': 2, u'Malekith the Accursed': 2, u'Laufey (comics)': 2, u'Volstagg': 5, u'Jane Foster (comics)': 3, u'Captain America': 2, u'Sif (comics)': 3, u'Ego the Living Planet': 3, u'Fandral': 6}}, u'Jane Foster (comics)': {u'url': u'/wiki/Jane_Foster_(comics)', u'edges': {u'Tyr (Marvel Comics)': 2, u'Executioner (comics)': 4, u'Thor (Marvel Comics)': 8, u'Loki (comics)': 4, u'Nick Fury': 1, u'Captain America': 4, u'Iron Man': 3, u'Malekith the Accursed': 4, u'Fandral': 3, u'Laufey (comics)': 2, u'Erik Selvig': 2, u'Volstagg': 2, u'Spider-Man': 1, u'Doctor Strange': 2, u'Phil Coulson': 1, u'Sif (comics)': 4, u'Ego the Living Planet': 2, u'Falcon (comics)': 1}}, u'Gabe Jones': {u'url': u'/wiki/Gabe_Jones', u'edges': {u'Maria Hill': 1, u'Thunderbolt Ross': 1, u'Captain America': 8, u'Thor (Marvel Comics)': 3, u'Alexander Goodwin Pierce': 1, u'Crossbones (comics)': 1, u'Phil Coulson': 1, u'Thanos': 1, u'Bucky Barnes': 2, u'Hawkeye (comics)': 1}}, u'Executioner (comics)': {u'url': u'/wiki/Executioner_(comics)', u'edges': {u'Tyr (Marvel Comics)': 2, u'Iron Man': 2, u'Loki (comics)': 4, u'Hulk (comics)': 1, u'Laufey (comics)': 2, u'Sif (comics)': 2, u'Thor (Marvel Comics)': 6, u'Volstagg': 3, u'Scarlet Witch': 1, u'Collector (comics)': 1, u'Captain America': 3, u'Grandmaster (Marvel Comics)': 2, u'Ego the Living Planet': 2, u'Fandral': 3}}, u'Starhawk (comics)': {u'url': u'/wiki/Starhawk_(comics)', u'edges': {u'Cosmo the Spacedog': 2, u'Iron Man': 1, u'Hawkeye (comics)': 1, u'Thor (Marvel Comics)': 2, u'Captain America': 1}}, u'Liz Allan': {u'url': u'/wiki/Liz_Allan', u'edges': {u'Hulk (comics)': 1, u'Scarlet Witch': 2, u'Flash Thompson': 10, u'Vulture (Marvel Comics)': 4}}, u'Vision (Marvel Comics)': {u'url': u'/wiki/Vision_(Marvel_Comics)', u'edges': {u'Hawkeye (comics)': 1, u'Nick Fury': 1, u'Hulk (comics)': 2, u'War Machine': 1, u'Red Skull': 1, u'Ultron': 7, u'Grandmaster (Marvel Comics)': 1, u'Ant-Man (Scott Lang)': 1, u'Spider-Man': 1}}, u'Groot': {u'url': u'/wiki/Groot', u'edges': {u'Cosmo the Spacedog': 4, u'Starhawk (comics)': 2, u'Spider-Man': 2, u'Hulk (comics)': 1, u'Aunt May': 1, u'Collector (comics)': 3, u'Ultron': 1, u'Grandmaster (Marvel Comics)': 2, u'Ego the Living Planet': 3}}, u'Yondu': {u'url': u'/wiki/Yondu', u'edges': {u'Cosmo the Spacedog': 3, u'Starhawk (comics)': 6, u'Star-Lord': 6, u'Sharon Carter': 1, u'Aleta Ogord': 4, u'Thor (Marvel Comics)': 1, u'Rocket Raccoon': 2, u'Groot': 2, u'Kismet (Marvel Comics)': 2, u'Captain America': 1, u'Nebula (comics)': 2, u'Thanos': 2, u'Ronan the Accuser': 3}}, u'Thanos': {u'url': u'/wiki/Thanos', u'edges': {u'Cosmo the Spacedog': 5, u'Starhawk (comics)': 2, u'Loki (comics)': 3, u'Spider-Man': 1, u'Captain America': 2, u'Groot': 5, u'Collector (comics)': 7, u'Doctor Strange': 1, u'Ultron': 5, u'Grandmaster (Marvel Comics)': 6, u'Ego the Living Planet': 6}}, u'Bereet': {u'url': u'/wiki/Bereet', u'edges': {u'Betty Ross': 2, u'Star-Lord': 1, u'Doc Samson': 1, u'Leader (comics)': 1, u'Thunderbolt Ross': 1, u'Hulk (comics)': 3, u'Abomination (comics)': 1, u'Korg (comics)': 1, u'Ego the Living Planet': 1}}, u'Howard Stark': {u'url': u'/wiki/Howard_Stark', u'edges': {u'Iron Man': 11, u'Black Widow (Natasha Romanova)': 1, u'Hank Pym': 1, u'Sharon Carter': 3, u'Baron Strucker': 1, u'Iron Monger': 8, u'Red Skull': 1, u'Happy Hogan (comics)': 2, u'Jasper Sitwell': 1, u'Whiplash (comics)': 2, u'Bucky Barnes': 2, u'Jim Morita': 2, u'Maria Stark': 7, u'Friday (comics)': 2, u'Justin Hammer': 2, u'War Machine': 3, u'Crossbones (comics)': 1, u'Maria Hill': 3, u'Hawkeye (comics)': 1, u'Alexander Goodwin Pierce': 1, u'Captain America': 10, u'Phil Coulson': 1}}, u'Laufey (comics)': {u'url': u'/wiki/Laufey_(comics)', u'edges': {u'Leader (comics)': 1, u'Loki (comics)': 7}}, u'Dormammu': {u'url': u'/wiki/Dormammu', u'edges': {u'Scarlet Witch': 4, u'Loki (comics)': 2, u'Baron Mordo': 8, u'Thor (Marvel Comics)': 3, u'Vision (Marvel Comics)': 1, u'Spider-Man': 1, u'Phil Coulson': 1, u'Nick Fury': 1}}, u'Wasp (comics)': {u'url': u'/wiki/Wasp_(comics)', u'edges': {u'Hope Pym': 5, u'Betty Ross': 1, u'Iron Man': 9, u'Spider-Man': 2, u'Sharon Carter': 2, u'Darren Cross': 3, u'Helmut Zemo': 2, u'Red Skull': 3, u'Ultron': 7, u'Jasper Sitwell': 2, u'Carol Danvers': 3, u'Loki (comics)': 4, u'Gabe Jones': 2, u'Scarlet Witch': 4, u'Thor (Marvel Comics)': 6, u'Vision (Marvel Comics)': 5, u'Collector (comics)': 3, u'Grandmaster (Marvel Comics)': 2, u'Yellowjacket (Marvel Comics)': 2, u'Ant-Man (Scott Lang)': 3, u'Nick Fury': 2, u'Hulk (comics)': 6, u'Captain America': 7, u'Thanos': 2}}, u'Zuri (comics)': {u'url': u'/wiki/Zuri_(comics)', u'edges': {}}, u'Captain America': {u'url': u'/wiki/Captain_America', u'edges': {u'Vision (Marvel Comics)': 4, u'Laufey (comics)': 2, u'Maria Hill': 7, u'Loki (comics)': 7, u'Sif (comics)': 2, u'Alexander Goodwin Pierce': 3, u'Jim Morita': 2, u'Erik Selvig': 2, u'Collector (comics)': 2, u'Crossbones (comics)': 11, u'Ultron': 3, u'Grandmaster (Marvel Comics)': 5, u'Ego the Living Planet': 2, u'Bucky Barnes': 22, u'Klaw (Marvel Comics)': 3}}, u'Batroc the Leaper': {u'url': u'/wiki/Batroc_the_Leaper', u'edges': {u'Sharon Carter': 4, u'Hawkeye (comics)': 3, u'Nick Fury': 1, u'Captain America': 5, u'Helmut Zemo': 3, u'Baron Strucker': 3, u'Iron Monger': 1, u'Spider-Man': 2, u'Crossbones (comics)': 3, u'Alexander Goodwin Pierce': 1, u'Bucky Barnes': 3, u'Klaw (Marvel Comics)': 4}}, u'Ho Yinsen': {u'url': u'/wiki/Ho_Yinsen', u'edges': {u'Whiplash (comics)': 2, u'Iron Man': 9, u'War Machine': 3, u'Crimson Dynamo': 2, u'Pepper Potts': 2, u'Nick Fury': 1, u'Iron Monger': 2, u'Maria Stark': 2, u'Friday (comics)': 2, u'Justin Hammer': 2, u'Captain America': 2, u'Ultron': 1, u'Howard Stark': 3, u'Happy Hogan (comics)': 2, u'Maria Hill': 2}}, u'Fandral': {u'url': u'/wiki/Fandral', u'edges': {u'Laufey (comics)': 2, u'Loki (comics)': 3, u'Nick Fury': 1, u'Hulk (comics)': 2, u'Captain America': 2, u'Sif (comics)': 2, u'Ego the Living Planet': 3}}, u'Hope Pym': {u'url': u'/wiki/Hope_Pym', u'edges': {u'Ultron': 2}}, u'Trevor Slattery': {u'url': u'/wiki/Trevor_Slattery', u'edges': {u'Aldrich Killian': 2, u'Phil Coulson': 2, u'Erik Selvig': 2, u'Iron Man': 2, u'Claire Temple (Marvel Cinematic Universe)': 2}}, u'Crimson Dynamo': {u'url': u'/wiki/Crimson_Dynamo', u'edges': {u'Whiplash (comics)': 5, u'Iron Man': 9, u'War Machine': 4, u'Maria Hill': 4, u'Pepper Potts': 2, u'Doc Samson': 1, u'Black Widow (Natasha Romanova)': 3, u'Nick Fury': 3, u'Loki (comics)': 1, u'Hulk (comics)': 2, u'Abomination (comics)': 1, u'Iron Monger': 4, u'Maria Stark': 2, u'Friday (comics)': 2, u'Tinkerer': 1, u'Justin Hammer': 3, u'Captain America': 5, u'Howard Stark': 4, u'Happy Hogan (comics)': 2, u'Bucky Barnes': 2, u'Thunderbolt Ross': 2}}, u'Wong (comics)': {u'url': u'/wiki/Wong_(comics)', u'edges': {u'Baron Mordo': 6, u'Dormammu': 5, u'Scarlet Witch': 2}}, u'Baron Strucker': {u'url': u'/wiki/Baron_Strucker', u'edges': {u'Doctor Strange': 1, u'Sharon Carter': 2, u'Maria Hill': 2, u'Thor (Marvel Comics)': 2, u'Loki (comics)': 1, u'Hulk (comics)': 1, u'Hank Pym': 1, u'Captain America': 9, u'Dormammu': 1, u'Helmut Zemo': 3, u'Alexander Goodwin Pierce': 1, u'Ultron': 1, u'Iron Man': 2, u'Scarlet Witch': 2, u'Crossbones (comics)': 2, u'Phil Coulson': 1, u'Gabe Jones': 4, u'Bucky Barnes': 4, u'Quicksilver (comics)': 1}}, u'Nebula (comics)': {u'url': u'/wiki/Nebula_(comics)', u'edges': {u'Cosmo the Spacedog': 4, u'Starhawk (comics)': 2, u'Star-Lord': 4, u'Thor (Marvel Comics)': 4, u'Iron Man': 2, u'Hank Pym': 1, u'Captain America': 2, u'Hulk (comics)': 2, u'Helmut Zemo': 1, u'Thanos': 11, u'Red Skull': 1, u'Loki (comics)': 1, u'Groot': 4, u'Collector (comics)': 3, u'Doctor Strange': 1, u'Ultron': 1, u'Grandmaster (Marvel Comics)': 3, u'Ego the Living Planet': 4, u'Spider-Man': 1, u'Wasp (comics)': 1}}, u'Claire Temple (Marvel Cinematic Universe)': {u'url': u'/wiki/Claire_Temple_(Marvel_Cinematic_Universe)', u'edges': {u'Phil Coulson': 2, u'Erik Selvig': 2, u'Nick Fury': 1}}, u'Red Skull': {u'url': u'/wiki/Red_Skull', u'edges': {u'Iron Man': 3, u'Quicksilver (comics)': 3, u'Black Panther (comics)': 1, u'Dormammu': 1, u'Spider-Man': 1, u'Sharon Carter': 7, u'Helmut Zemo': 6, u'Baron Strucker': 7, u'Ultron': 3, u'Jasper Sitwell': 2, u'Loki (comics)': 3, u'Thunderbolt Ross': 1, u'Bucky Barnes': 10, u'Gabe Jones': 2, u'Scarlet Witch': 3, u'Batroc the Leaper': 3, u'Doc Samson': 1, u'Leader (comics)': 1, u'Captain America': 23, u'Thor (Marvel Comics)': 5, u'Collector (comics)': 2, u'Thanos': 3, u'Hulk (comics)': 3, u'Crossbones (comics)': 8, u'Grandmaster (Marvel Comics)': 3, u'Arnim Zola': 14}}, u'Happy Hogan (comics)': {u'url': u'/wiki/Happy_Hogan_(comics)', u'edges': {u'Whiplash (comics)': 2, u'Iron Man': 8, u'War Machine': 4, u'Justin Hammer': 2, u'Doc Samson': 1, u'Abomination (comics)': 1, u'Iron Monger': 3, u'Maria Stark': 2, u'Friday (comics)': 2, u'Vulture (Marvel Comics)': 1, u'Collector (comics)': 1, u'Captain America': 2, u'Maria Hill': 2}}, u'Falcon (comics)': {u'url': u'/wiki/Falcon_(comics)', u'edges': {u'Vision (Marvel Comics)': 2, u'Iron Man': 1, u'Sharon Carter': 3, u'Batroc the Leaper': 4, u'Nick Fury': 1, u'Captain America': 14, u'Hulk (comics)': 1, u'Helmut Zemo': 4, u'Vulture (Marvel Comics)': 1, u'Baron Strucker': 3, u'Red Skull': 11, u'Scarlet Witch': 2, u'War Machine': 3, u'Crossbones (comics)': 7, u'Bucky Barnes': 14, u'Arnim Zola': 3}}, u"W'Kabi": {u'url': u'/wiki/W%27Kabi', u'edges': {u'Erik Killmonger': 2, u'Man-Ape': 2, u'Shuri (comics)': 3, u"T'Chaka": 2, u'Zuri (comics)': 4, u'Klaw (Marvel Comics)': 2}}, u'Loki (comics)': {u'url': u'/wiki/Loki_(comics)', u'edges': {u'Hawkeye (comics)': 1, u'Black Widow (Natasha Romanova)': 1, u'Spider-Man': 3, u'Aleta Ogord': 1, u'Vision (Marvel Comics)': 2, u'Falcon (comics)': 1, u'Carol Danvers': 1}}, u'Flash Thompson': {u'url': u'/wiki/Flash_Thompson', u'edges': {u'Executioner (comics)': 1, u'Star-Lord': 1, u'Loki (comics)': 1, u'Thunderbolt Ross': 2, u'Hulk (comics)': 1, u'Iron Man': 2, u'Vulture (Marvel Comics)': 6, u'Thor (Marvel Comics)': 1, u'Gamora': 1, u'Collector (comics)': 1, u'Captain America': 2, u'Phil Coulson': 1, u'Grandmaster (Marvel Comics)': 1, u'Valkyrie (Marvel Comics)': 1}}, u'Jim Morita': {u'url': u'/wiki/Jim_Morita', u'edges': {u'Nick Fury': 1}}, u'Erik Selvig': {u'url': u'/wiki/Erik_Selvig', u'edges': {u'Phil Coulson': 2, u'Ultron': 1, u'Maria Hill': 1, u'Thor (Marvel Comics)': 2, u'Loki (comics)': 1}}, u'Friday (comics)': {u'url': u'/wiki/Friday_(comics)', u'edges': {u'Maria Hill': 2, u'Captain America': 2}}, u'Gamora': {u'url': u'/wiki/Gamora', u'edges': {u'Yondu': 3, u'Cosmo the Spacedog': 5, u'Starhawk (comics)': 2, u'Howard the Duck': 3, u'Rhomann Dey': 3, u'Supernova (Marvel Comics)': 3, u'Martinex': 2, u'Thanos': 13, u'Rocket Raccoon': 4, u'Groot': 5, u'Kismet (Marvel Comics)': 2, u'Collector (comics)': 4, u'Doctor Strange': 2, u'Nebula (comics)': 7, u'Grandmaster (Marvel Comics)': 2, u'Ego the Living Planet': 3, u'Ronan the Accuser': 9, u'Star-Lord': 5}}, u'War Machine': {u'url': u'/wiki/War_Machine', u'edges': {u'Black Panther (comics)': 1, u'Sharon Carter': 2, u'Helmut Zemo': 1, u'Iron Monger': 7, u'Red Skull': 1, u'Ultron': 1, u'Bucky Barnes': 2, u'Carol Danvers': 1, u'Loki (comics)': 1, u'Maria Stark': 2, u'Friday (comics)': 2, u'Justin Hammer': 4, u'Thor (Marvel Comics)': 2, u'Collector (comics)': 1, u'Grandmaster (Marvel Comics)': 1, u'Maria Hill': 2, u'Nick Fury': 1, u'Hulk (comics)': 1, u'Wasp (comics)': 1, u'Captain America': 8, u'Phil Coulson': 1, u'Thanos': 2}}, u'Aldrich Killian': {u'url': u'/wiki/Aldrich_Killian', u'edges': {u'Whiplash (comics)': 1, u'Iron Man': 3, u'War Machine': 1, u'Crimson Dynamo': 1, u'Iron Monger': 1, u'Maria Stark': 1, u'Friday (comics)': 1, u'Justin Hammer': 1, u'Captain America': 2, u'Howard Stark': 1, u'Happy Hogan (comics)': 1, u'Ho Yinsen': 1, u'Maria Hill': 1}}, u'Ego the Living Planet': {u'url': u'/wiki/Ego_the_Living_Planet', u'edges': {u'Laufey (comics)': 2, u'Loki (comics)': 2, u'Cosmo the Spacedog': 2, u'Wasp (comics)': 1, u'Scarlet Witch': 1, u'Collector (comics)': 3, u'Sif (comics)': 2, u'Grandmaster (Marvel Comics)': 2, u'Falcon (comics)': 1}}, u'Spider-Man': {u'url': u'/wiki/Spider-Man', u'edges': {u'Iron Man': 4, u'Carol Danvers': 5, u'Liz Allan': 10, u'Flash Thompson': 17, u'Captain America': 6, u'Hulk (comics)': 2, u'Shocker (comics)': 11, u'Vulture (Marvel Comics)': 13, u'Thor (Marvel Comics)': 1, u'Aunt May': 14, u'Tinkerer': 9, u'Doctor Strange': 4}}, u'Howard the Duck': {u'url': u'/wiki/Howard_the_Duck', u'edges': {u'Cosmo the Spacedog': 5, u'Starhawk (comics)': 2, u'Hawkeye (comics)': 1, u'Star-Lord': 2, u'Spider-Man': 7, u'Iron Man': 1, u'Vulture (Marvel Comics)': 2, u'Thanos': 4, u'Thor (Marvel Comics)': 1, u'Groot': 3, u'Aunt May': 1, u'Scarlet Witch': 1, u'Collector (comics)': 5, u'Doctor Strange': 3, u'Nebula (comics)': 2, u'Bereet': 1, u'Ego the Living Planet': 2, u'Ronan the Accuser': 2, u'Grandmaster (Marvel Comics)': 2}}, u'Star-Lord': {u'url': u'/wiki/Star-Lord', u'edges': {u'Cosmo the Spacedog': 4, u'Starhawk (comics)': 3, u'Hank Pym': 1, u'Thanos': 9, u'Groot': 9, u'Collector (comics)': 2, u'Doctor Strange': 1, u'Ultron': 1, u'Grandmaster (Marvel Comics)': 2, u'Ego the Living Planet': 3}}, u'Leader (comics)': {u'url': u'/wiki/Leader_(comics)', u'edges': {u'Betty Ross': 8, u'Iron Man': 1, u'Thunderbolt Ross': 6, u'Spider-Man': 1, u'Arnim Zola': 1}}, u'Thor (Marvel Comics)': {u'url': u'/wiki/Thor_(Marvel_Comics)', u'edges': {u'Whiplash (comics)': 1, u'Laufey (comics)': 6, u'Justin Hammer': 1, u'Crimson Dynamo': 1, u'Loki (comics)': 10, u'Howard Stark': 1, u'Happy Hogan (comics)': 1, u'Captain America': 14, u'Sif (comics)': 4, u'Thanos': 8, u'Iron Monger': 1, u'Maria Stark': 1, u'Friday (comics)': 1, u'Collector (comics)': 3, u'Doctor Strange': 2, u'Ultron': 2, u'Grandmaster (Marvel Comics)': 3, u'Ho Yinsen': 1, u'Ego the Living Planet': 9, u'Fandral': 5, u'Maria Hill': 2}}, u'Abomination (comics)': {u'url': u'/wiki/Abomination_(comics)', u'edges': {u'Betty Ross': 6, u'Executioner (comics)': 2, u'Hawkeye (comics)': 1, u'Thor (Marvel Comics)': 3, u'Doc Samson': 3, u'Leader (comics)': 8, u'Spider-Man': 2, u'Hulk (comics)': 8, u'Iron Man': 1, u'Korg (comics)': 3, u'Collector (comics)': 1, u'Doctor Strange': 1, u'Grandmaster (Marvel Comics)': 1, u'Thunderbolt Ross': 6}}, u'Korg (comics)': {u'url': u'/wiki/Korg_(comics)', u'edges': {u'Betty Ross': 3, u'Iron Man': 1, u'Doc Samson': 2, u'Leader (comics)': 3, u'Thunderbolt Ross': 2, u'Hulk (comics)': 4, u'Thor (Marvel Comics)': 2, u'Doctor Strange': 1, u'Grandmaster (Marvel Comics)': 1}}, u'Collector (comics)': {u'url': u'/wiki/Collector_(comics)', u'edges': {u'Cosmo the Spacedog': 5, u'Volstagg': 1, u'Loki (comics)': 2, u'Baron Mordo': 1, u'Sif (comics)': 1, u'Aunt May': 1, u'Doctor Strange': 1, u'Ultron': 2, u'Grandmaster (Marvel Comics)': 11, u'Spider-Man': 2, u'Thunderbolt Ross': 3}}, u'Doctor Strange': {u'url': u'/wiki/Doctor_Strange', u'edges': {u'Iron Man': 3, u'Black Panther (comics)': 1, u'Loki (comics)': 3, u'Dormammu': 12, u'Baron Mordo': 8, u'Wong (comics)': 10, u'Hulk (comics)': 2, u'Scarlet Witch': 4, u'Valkyrie (Marvel Comics)': 5, u'Captain America': 1}}, u'Sif (comics)': {u'url': u'/wiki/Sif_(comics)', u'edges': {u'Laufey (comics)': 2, u'Loki (comics)': 5}}, u'Shocker (comics)': {u'url': u'/wiki/Shocker_(comics)', u'edges': {u'Iron Man': 2, u'War Machine': 1, u'Carol Danvers': 1, u'Liz Allan': 4, u'Hank Pym': 1, u'Justin Hammer': 2, u'Flash Thompson': 5, u'Vulture (Marvel Comics)': 8, u'Aunt May': 5, u'Tinkerer': 4, u'Collector (comics)': 1, u'Captain America': 2, u'Heimdall (comics)': 1, u'Grandmaster (Marvel Comics)': 1}}, u'Nick Fury': {u'url': u'/wiki/Nick_Fury', u'edges': {u'Doctor Strange': 2, u'Sharon Carter': 8, u'Maria Hill': 6, u'Thor (Marvel Comics)': 5, u'Doc Samson': 1, u'Jasper Sitwell': 8, u'Spider-Man': 2, u'Captain America': 17, u'Hulk (comics)': 3, u'Iron Man': 5, u'Baron Strucker': 7, u'Red Skull': 5, u'Crossbones (comics)': 2, u'Phil Coulson': 4, u'Howard Stark': 3, u'Alexander Goodwin Pierce': 4, u'Gabe Jones': 10, u'Bucky Barnes': 11}}, u'Hulk (comics)': {u'url': u'/wiki/Hulk_(comics)', u'edges': {u'Betty Ross': 13, u'Iron Man': 9, u'Sharon Carter': 3, u'Daniel Drumm': 3, u'Maria Hill': 1, u'Thor (Marvel Comics)': 9, u'Doc Samson': 12, u'Leader (comics)': 6, u'Thunderbolt Ross': 14, u'Loki (comics)': 4, u'Dormammu': 3, u'Helmut Zemo': 2, u'Thanos': 5, u'Scarlet Witch': 1, u'Collector (comics)': 3, u'Captain America': 6, u'Ultron': 3, u'Grandmaster (Marvel Comics)': 2, u'Gabe Jones': 3, u'Jasper Sitwell': 3}}, u'Korath the Pursuer': {u'url': u'/wiki/Korath_the_Pursuer', u'edges': {u'Scarlet Witch': 1, u'Star-Lord': 1, u'Drax the Destroyer': 1, u'Kismet (Marvel Comics)': 1, u'Captain America': 1, u'Ultron': 1, u'Thanos': 1, u'Ronan the Accuser': 2}}, u'Alexander Goodwin Pierce': {u'url': u'/wiki/Alexander_Goodwin_Pierce', u'edges': {u'Maria Hill': 2, u'Falcon (comics)': 1, u'Bucky Barnes': 1, u'Crossbones (comics)': 3}}, u"T'Chaka": {u'url': u'/wiki/T%27Chaka', u'edges': {u'Nick Fury': 1, u'Red Skull': 1, u'Helmut Zemo': 1, u'Baron Strucker': 1, u'Zuri (comics)': 2, u'Captain America': 1, u'Howard Stark': 1, u'Bucky Barnes': 1}}, u'Martinex': {u'url': u'/wiki/Martinex', u'edges': {u'Cosmo the Spacedog': 2, u'Starhawk (comics)': 8, u'Star-Lord': 3, u'Sharon Carter': 1, u'Aleta Ogord': 3, u'Thor (Marvel Comics)': 2, u'Vision (Marvel Comics)': 1, u'Rocket Raccoon': 2, u'Groot': 2, u'Kismet (Marvel Comics)': 2, u'Yondu': 7, u'Captain America': 2, u'Nebula (comics)': 2, u'Thanos': 2, u'Ronan the Accuser': 2}}, u'Kismet (Marvel Comics)': {u'url': u'/wiki/Kismet_(Marvel_Comics)', u'edges': {u'Cosmo the Spacedog': 2, u'Starhawk (comics)': 5, u'Star-Lord': 2, u'Doc Samson': 1, u'Hulk (comics)': 1, u'Rocket Raccoon': 3, u'Groot': 2, u'Nebula (comics)': 3, u'Thanos': 2, u'Ego the Living Planet': 1, u'Ronan the Accuser': 2}}, u'Phil Coulson': {u'url': u'/wiki/Phil_Coulson', u'edges': {u'Sharon Carter': 2, u'Maria Hill': 2, u'Loki (comics)': 1, u'Spider-Man': 1, u'Captain America': 3, u'Thor (Marvel Comics)': 1, u'Abomination (comics)': 1, u'Alexander Goodwin Pierce': 2, u'Iron Monger': 2, u'Crossbones (comics)': 2}}, u'Grandmaster (Marvel Comics)': {u'url': u'/wiki/Grandmaster_(Marvel_Comics)', u'edges': {u'Hawkeye (comics)': 1, u'Loki (comics)': 2, u'Baron Mordo': 1, u'Doctor Strange': 1, u'Ultron': 2, u'Spider-Man': 1}}, u'Arnim Zola': {u'url': u'/wiki/Arnim_Zola', u'edges': {u'Executioner (comics)': 1, u'Sharon Carter': 4, u'Batroc the Leaper': 2, u'Spider-Man': 1, u'Crossbones (comics)': 5, u'Flash Thompson': 2, u'Helmut Zemo': 3, u'Baron Strucker': 4, u'Aunt May': 1, u'Captain America': 9, u'Alexander Goodwin Pierce': 2, u'Bucky Barnes': 5}}, u'Maya Hansen': {u'url': u'/wiki/Maya_Hansen', u'edges': {u'Whiplash (comics)': 1, u'Iron Man': 2, u'War Machine': 1, u'Crimson Dynamo': 1, u'Iron Monger': 1, u'Maria Stark': 1, u'Friday (comics)': 1, u'Justin Hammer': 1, u'Captain America': 1, u'Aldrich Killian': 2, u'Ho Yinsen': 1, u'Happy Hogan (comics)': 1, u'Howard Stark': 1, u'Maria Hill': 1}}, u'Black Panther (comics)': {u'url': u'/wiki/Black_Panther_(comics)', u'edges': {u'Iron Man': 3, u'Crimson Dynamo': 1, u'Hank Pym': 3, u'Sharon Carter': 2, u'Peggy Carter': 2, u'Howard the Duck': 1, u'Jasper Sitwell': 2, u"W'Kabi": 4, u'Erik Killmonger': 5, u'Carol Danvers': 2, u'Wasp (comics)': 3, u'Thunderbolt Ross': 1, u'Shuri (comics)': 10, u'Falcon (comics)': 4, u'Jane Foster (comics)': 1, u'Gabe Jones': 3, u'Spider-Man': 2, u'Batroc the Leaper': 4, u'Star-Lord': 1, u'Crossbones (comics)': 2, u'Thor (Marvel Comics)': 3, u'Vision (Marvel Comics)': 1, u'Howard Stark': 1, u'Maria Hill': 1, u'Man-Ape': 6, u'Nick Fury': 3, u'Hulk (comics)': 4, u"T'Chaka": 7, u'Zuri (comics)': 4, u'Captain America': 3, u'Thanos': 2, u'Klaw (Marvel Comics)': 9}}, u'Black Widow (Natasha Romanova)': {u'url': u'/wiki/Black_Widow_(Natasha_Romanova)', u'edges': {u'Iron Man': 7, u'Spider-Man': 1, u'Sharon Carter': 8, u'Helmut Zemo': 3, u'Baron Strucker': 6, u'Red Skull': 3, u'Ultron': 1, u'Jasper Sitwell': 2, u'Carol Danvers': 2, u'Falcon (comics)': 4, u'War Machine': 3, u'Bucky Barnes': 12, u'Gabe Jones': 3, u'Batroc the Leaper': 2, u'Doc Samson': 1, u'Captain America': 18, u'Vision (Marvel Comics)': 2, u'Maria Hill': 5, u'Nick Fury': 10, u'Alexander Goodwin Pierce': 3, u'Wasp (comics)': 2, u'Valkyrie (Marvel Comics)': 4, u'Crossbones (comics)': 5, u'Phil Coulson': 2, u'Arnim Zola': 3}}, u'Sharon Carter': {u'url': u'/wiki/Sharon_Carter', u'edges': {u'Carol Danvers': 1, u'Captain America': 17, u'Thor (Marvel Comics)': 3, u'Alexander Goodwin Pierce': 2, u'Jim Morita': 2, u'Crossbones (comics)': 7, u'Gabe Jones': 3, u'Bucky Barnes': 3, u'Maria Hill': 3}}, u'Iron Monger': {u'url': u'/wiki/Iron_Monger', u'edges': {u'Red Skull': 1, u'Friday (comics)': 2, u'Maria Hill': 2, u'Justin Hammer': 4, u'Captain America': 2}}, u'Ultron': {u'url': u'/wiki/Ultron', u'edges': {u'Spider-Man': 1, u'Black Panther (comics)': 1, u'Loki (comics)': 3}}, u'Daniel Drumm': {u'url': u'/wiki/Daniel_Drumm', u'edges': {u'Baron Mordo': 1, u'Scarlet Witch': 1, u'Doctor Strange': 2}}, u'Bucky Barnes': {u'url': u'/wiki/Bucky_Barnes', u'edges': {u'Iron Man': 3, u'Doc Samson': 1, u'Hank Pym': 1, u'Thor (Marvel Comics)': 1, u'Vision (Marvel Comics)': 1, u'Gamora': 1, u'Thanos': 1, u'Grandmaster (Marvel Comics)': 1, u'Ant-Man (Scott Lang)': 1, u'Thunderbolt Ross': 1}}, u'Coldblood': {u'url': u'/wiki/Coldblood', u'edges': {u'Iron Man': 1, u'Trevor Slattery': 1, u'Pepper Potts': 1, u'War Machine': 1, u'Captain America': 1, u'Aldrich Killian': 1, u'Happy Hogan (comics)': 2}}, u'Erik Killmonger': {u'url': u'/wiki/Erik_Killmonger', u'edges': {u'Man-Ape': 2, u"T'Chaka": 2, u'Iron Man': 1, u'Zuri (comics)': 2, u'War Machine': 1}}, u'Carol Danvers': {u'url': u'/wiki/Carol_Danvers', u'edges': {u'Iron Man': 6, u'Quicksilver (comics)': 1, u'Scarlet Witch': 1, u'Thor (Marvel Comics)': 1, u'Vision (Marvel Comics)': 2, u'Aunt May': 1, u'Valkyrie (Marvel Comics)': 1, u'Captain America': 4, u'Ultron': 3, u'Thanos': 2, u'Falcon (comics)': 1, u'Ronan the Accuser': 2, u'Hawkeye (comics)': 2}}, u'Aleta Ogord': {u'url': u'/wiki/Aleta_Ogord', u'edges': {u'Mantis (Marvel Comics)': 1, u'Cosmo the Spacedog': 1, u'Starhawk (comics)': 9, u'Howard the Duck': 1, u'Hawkeye (comics)': 1, u'Iron Man': 1, u'Drax the Destroyer': 1, u'Thor (Marvel Comics)': 1, u'Rocket Raccoon': 1, u'Groot': 1, u'Kismet (Marvel Comics)': 1, u'Gamora': 1, u'Captain America': 1, u'Nebula (comics)': 1, u'Thanos': 1, u'Ronan the Accuser': 1, u'Star-Lord': 1}}, u'Shuri (comics)': {u'url': u'/wiki/Shuri_(comics)', u'edges': {u'Erik Killmonger': 3, u'Man-Ape': 2, u'Spider-Man': 1, u"T'Chaka": 6, u'Zuri (comics)': 3, u'Klaw (Marvel Comics)': 3}}, u'Jasper Sitwell': {u'url': u'/wiki/Jasper_Sitwell', u'edges': {u'Iron Man': 6, u'Sharon Carter': 4, u'Maria Hill': 2, u'Phil Coulson': 3, u'Captain America': 7, u'Thor (Marvel Comics)': 3, u'Baron Strucker': 2, u'Iron Monger': 1, u'Crossbones (comics)': 2, u'Bucky Barnes': 1, u'Alexander Goodwin Pierce': 2, u'Gabe Jones': 5, u'Falcon (comics)': 1}}, u'Maria Stark': {u'url': u'/wiki/Maria_Stark', u'edges': {u'Maria Hill': 2, u'Iron Monger': 3, u'Friday (comics)': 2, u'Justin Hammer': 2, u'Captain America': 2, u'Bucky Barnes': 2}}, u'Supernova (Marvel Comics)': {u'url': u'/wiki/Supernova_(Marvel_Comics)', u'edges': {u'Cosmo the Spacedog': 2, u'Howard the Duck': 2, u'Rhomann Dey': 2, u'Rocket Raccoon': 3, u'Groot': 2, u'Nebula (comics)': 3, u'Collector (comics)': 2, u'Thanos': 3, u'Grandmaster (Marvel Comics)': 2, u'Ego the Living Planet': 3, u'Ronan the Accuser': 3, u'Star-Lord': 2}}, u'Ant-Man (Scott Lang)': {u'url': u'/wiki/Ant-Man_(Scott_Lang)', u'edges': {u'Hope Pym': 2, u'Betty Ross': 1, u'Iron Man': 2, u'War Machine': 1, u'Whiplash (comics)': 2, u'Darren Cross': 7, u'Spider-Man': 1, u'Captain America': 1, u'Hulk (comics)': 2, u'Scarlet Witch': 2, u'Yellowjacket (Marvel Comics)': 3, u'Justin Hammer': 1, u'Doctor Strange': 1, u'Ultron': 2, u'Leader (comics)': 1}}, u'Mantis (Marvel Comics)': {u'url': u'/wiki/Mantis_(Marvel_Comics)', u'edges': {u'Quicksilver (comics)': 1, u'Nebula (comics)': 6, u'Rhomann Dey': 2, u'Ultron': 2, u'Ronan the Accuser': 4, u'Loki (comics)': 2, u'Drax the Destroyer': 7, u'Gamora': 6, u'Supernova (Marvel Comics)': 2, u'Ego the Living Planet': 5, u'Yondu': 2, u'Scarlet Witch': 1, u'Starhawk (comics)': 2, u'Howard the Duck': 2, u'Star-Lord': 7, u'Thor (Marvel Comics)': 3, u'Vision (Marvel Comics)': 2, u'Rocket Raccoon': 5, u'Groot': 5, u'Collector (comics)': 2, u'Thanos': 10, u'Cosmo the Spacedog': 4, u'Martinex': 2, u'Kismet (Marvel Comics)': 2, u'Captain America': 1, u'Grandmaster (Marvel Comics)': 2, u'Klaw (Marvel Comics)': 1}}, u'Tyr (Marvel Comics)': {u'url': u'/wiki/Tyr_(Marvel_Comics)', u'edges': {u'Laufey (comics)': 4, u'Loki (comics)': 6, u'Thor (Marvel Comics)': 7, u'Volstagg': 3, u'Captain America': 2, u'Sif (comics)': 3, u'Ego the Living Planet': 2, u'Fandral': 3}}, u'Ancient One': {u'url': u'/wiki/Ancient_One', u'edges': {u'Scarlet Witch': 2, u'Daniel Drumm': 1, u'Wong (comics)': 6, u'Baron Mordo': 8, u'Dormammu': 5, u'Doctor Strange': 15, u'Spider-Man': 1}}, u'Doc Samson': {u'url': u'/wiki/Doc_Samson', u'edges': {u'Betty Ross': 6, u'Iron Man': 4, u'Carol Danvers': 1, u'Leader (comics)': 4, u'Spider-Man': 1, u'Captain America': 1, u'Vision (Marvel Comics)': 1, u'Doctor Strange': 2, u'Thunderbolt Ross': 6, u'Maria Hill': 1}}, u'Rocket Raccoon': {u'url': u'/wiki/Rocket_Raccoon', u'edges': {u'Cosmo the Spacedog': 6, u'Starhawk (comics)': 2, u'Howard the Duck': 4, u'Star-Lord': 10, u'Spider-Man': 1, u'Groot': 11, u'Nebula (comics)': 4, u'Collector (comics)': 3, u'Thanos': 5, u'Grandmaster (Marvel Comics)': 2, u'Ego the Living Planet': 4, u'Ronan the Accuser': 6}}, u'Tinkerer': {u'url': u'/wiki/Tinkerer', u'edges': {u'Iron Man': 2, u'Carol Danvers': 1, u'Liz Allan': 4, u'Hank Pym': 1, u'Flash Thompson': 4, u'Vulture (Marvel Comics)': 8, u'Aunt May': 4, u'Captain America': 1, u'Nick Fury': 2}}, u'Pepper Potts': {u'url': u'/wiki/Pepper_Potts', u'edges': {u'Whiplash (comics)': 3, u'Iron Man': 9, u'War Machine': 3, u'Hawkeye (comics)': 1, u'Nick Fury': 1, u'Red Skull': 1, u'Thor (Marvel Comics)': 2, u'Spider-Man': 1, u'Iron Monger': 4, u'Maria Stark': 2, u'Friday (comics)': 3, u'Jane Foster (comics)': 1, u'Justin Hammer': 2, u'Captain America': 3, u'Aldrich Killian': 3, u'Howard Stark': 2, u'Phil Coulson': 2, u'Happy Hogan (comics)': 8, u'Bucky Barnes': 1, u'Maya Hansen': 3, u'Maria Hill': 4}}, u'Man-Ape': {u'url': u'/wiki/Man-Ape', u'edges': {u"T'Chaka": 3, u'Ultron': 2, u'Spider-Man': 1, u'Zuri (comics)': 2, u'Captain America': 1}}, u'Crossbones (comics)': {u'url': u'/wiki/Crossbones_(comics)', u'edges': {u'Scarlet Witch': 1, u'Bucky Barnes': 4, u'Spider-Man': 2, u'Doctor Strange': 1}}, u'Volstagg': {u'url': u'/wiki/Volstagg', u'edges': {u'Laufey (comics)': 2, u'Loki (comics)': 8, u'Nick Fury': 1, u'Hulk (comics)': 2, u'Thor (Marvel Comics)': 6, u'Captain America': 2, u'Sif (comics)': 5, u'Ego the Living Planet': 2, u'Fandral': 4}}, u'Klaw (Marvel Comics)': {u'url': u'/wiki/Klaw_(Marvel_Comics)', u'edges': {u'Erik Killmonger': 3, u'Vision (Marvel Comics)': 1, u'Iron Man': 2, u'Zuri (comics)': 2, u'Loki (comics)': 1, u'Man-Ape': 3, u'Hank Pym': 2, u'Sharon Carter': 1, u'Hulk (comics)': 1, u'Thor (Marvel Comics)': 1, u'Baron Strucker': 1, u'Nick Fury': 1, u"T'Chaka": 6, u'Peggy Carter': 1, u'Spider-Man': 1, u'Crossbones (comics)': 2, u'Ultron': 3, u'Gabe Jones': 1, u'Jasper Sitwell': 1, u'Wasp (comics)': 1}}}
In [12]:
# Just in case you only want to run this cell and not re-run the crawl
import wikinetworking as wn
import networkx as nx
import matplotlib.pyplot as plt
%matplotlib inline
network = wn.load_dict("mcu_network.json")
graph = wn.create_graph(network, minimum_weight=2)
positions = nx.spring_layout(graph)
graph_html = wn.make_interactive_graph(graph, pos=positions, cmap=plt.cm.viridis, edge_cmap=plt.cm.YlOrBr)
with open("mcu_network.html", "w") as f:
f.write(graph_html)
f.close()
Content source: jchuahtacc/WikiNetworking
Similar notebooks: