-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgameofthrones.html
212 lines (169 loc) · 41.1 KB
/
gameofthrones.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.css" type="text/css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis-network.min.js"> </script>
<center>
<h1>None</h1>
</center>
<!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" />
<script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>-->
<style type="text/css">
#mynetwork {
width: 100%;
height: 750px;
background-color: #222222;
border: 1px solid lightgray;
position: relative;
float: left;
}
#loadingBar {
position:absolute;
top:0px;
left:0px;
width: 100%;
height: 750px;
background-color:rgba(200,200,200,0.8);
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
opacity:1;
}
#bar {
position:absolute;
top:0px;
left:0px;
width:20px;
height:20px;
margin:auto auto auto auto;
border-radius:11px;
border:2px solid rgba(30,30,30,0.05);
background: rgb(0, 173, 246); /* Old browsers */
box-shadow: 2px 0px 4px rgba(0,0,0,0.4);
}
#border {
position:absolute;
top:10px;
left:10px;
width:500px;
height:23px;
margin:auto auto auto auto;
box-shadow: 0px 0px 4px rgba(0,0,0,0.2);
border-radius:10px;
}
#text {
position:absolute;
top:8px;
left:530px;
width:30px;
height:50px;
margin:auto auto auto auto;
font-size:22px;
color: #000000;
}
div.outerBorder {
position:relative;
top:400px;
width:600px;
height:44px;
margin:auto auto auto auto;
border:8px solid rgba(0,0,0,0.1);
background: rgb(252,252,252); /* Old browsers */
background: -moz-linear-gradient(top, rgba(252,252,252,1) 0%, rgba(237,237,237,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
border-radius:72px;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}
</style>
</head>
<body>
<div id = "mynetwork"></div>
<div id="loadingBar">
<div class="outerBorder">
<div id="text">0%</div>
<div id="border">
<div id="bar"></div>
</div>
</div>
</div>
<script type="text/javascript">
// initialize global variables.
var edges;
var nodes;
var network;
var container;
var options, data;
// This method is responsible for drawing the graph, returns the drawn network
function drawGraph() {
var container = document.getElementById('mynetwork');
// parsing and collecting nodes and edges from the python
nodes = new vis.DataSet([{"font": {"color": "white"}, "id": "Aemon", "label": "Aemon", "shape": "dot", "title": "Aemon Neighbors:\u003cbr\u003eSamwell\u003cbr\u003eGrenn\u003cbr\u003eJon", "value": 3}, {"font": {"color": "white"}, "id": "Grenn", "label": "Grenn", "shape": "dot", "title": "Grenn Neighbors:\u003cbr\u003eJon\u003cbr\u003eAemon\u003cbr\u003eEddison\u003cbr\u003eSamwell", "value": 4}, {"font": {"color": "white"}, "id": "Samwell", "label": "Samwell", "shape": "dot", "title": "Samwell Neighbors:\u003cbr\u003eMance\u003cbr\u003eMelisandre\u003cbr\u003eJon\u003cbr\u003eGilly\u003cbr\u003eBowen\u003cbr\u003eAemon\u003cbr\u003eEddison\u003cbr\u003eQhorin\u003cbr\u003eGrenn\u003cbr\u003eCraster\u003cbr\u003eJanos", "value": 11}, {"font": {"color": "white"}, "id": "Aerys", "label": "Aerys", "shape": "dot", "title": "Aerys Neighbors:\u003cbr\u003eRobert\u003cbr\u003eTyrion\u003cbr\u003eJaime\u003cbr\u003eTywin", "value": 4}, {"font": {"color": "white"}, "id": "Jaime", "label": "Jaime", "shape": "dot", "title": "Jaime Neighbors:\u003cbr\u003eEddard\u003cbr\u003eRobert\u003cbr\u003eBrienne\u003cbr\u003eElia\u003cbr\u003eJoffrey\u003cbr\u003eArya\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eBalon\u003cbr\u003eTywin\u003cbr\u003eGregor\u003cbr\u003eSansa\u003cbr\u003eCersei\u003cbr\u003eStannis\u003cbr\u003eLoras\u003cbr\u003eMeryn\u003cbr\u003eTommen\u003cbr\u003eAerys", "value": 18}, {"font": {"color": "white"}, "id": "Robert", "label": "Robert", "shape": "dot", "title": "Robert Neighbors:\u003cbr\u003eEddard\u003cbr\u003eSandor\u003cbr\u003eArya\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eTywin\u003cbr\u003eThoros\u003cbr\u003eSansa\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003eStannis\u003cbr\u003eAerys", "value": 12}, {"font": {"color": "white"}, "id": "Tyrion", "label": "Tyrion", "shape": "dot", "title": "Tyrion Neighbors:\u003cbr\u003eSandor\u003cbr\u003eJoffrey\u003cbr\u003eArya\u003cbr\u003eBalon\u003cbr\u003eKevan\u003cbr\u003eCersei\u003cbr\u003ePycelle\u003cbr\u003eIlyn\u003cbr\u003eAerys\u003cbr\u003eMargaery\u003cbr\u003eRenly\u003cbr\u003eTywin\u003cbr\u003eGregor\u003cbr\u003eSansa\u003cbr\u003ePodrick\u003cbr\u003eStannis\u003cbr\u003eLysa\u003cbr\u003eLoras\u003cbr\u003eOberyn\u003cbr\u003eShae\u003cbr\u003eVarys\u003cbr\u003eMeryn\u003cbr\u003eRobert\u003cbr\u003eElia\u003cbr\u003eMyrcella\u003cbr\u003eBronn\u003cbr\u003eJaime", "value": 27}, {"font": {"color": "white"}, "id": "Tywin", "label": "Tywin", "shape": "dot", "title": "Tywin Neighbors:\u003cbr\u003eOberyn\u003cbr\u003eRobert\u003cbr\u003eJoffrey\u003cbr\u003eVarys\u003cbr\u003eTyrion\u003cbr\u003eBalon\u003cbr\u003eKevan\u003cbr\u003eGregor\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003ePodrick\u003cbr\u003eLysa\u003cbr\u003eStannis\u003cbr\u003ePycelle\u003cbr\u003eTommen\u003cbr\u003eAerys", "value": 16}, {"font": {"color": "white"}, "id": "Alliser", "label": "Alliser", "shape": "dot", "title": "Alliser Neighbors:\u003cbr\u003eJon\u003cbr\u003eMance\u003cbr\u003eJanos", "value": 3}, {"font": {"color": "white"}, "id": "Mance", "label": "Mance", "shape": "dot", "title": "Mance Neighbors:\u003cbr\u003eVal\u003cbr\u003eJon\u003cbr\u003eAlliser\u003cbr\u003eSamwell\u003cbr\u003eGilly\u003cbr\u003eDalla\u003cbr\u003eQhorin\u003cbr\u003eRattleshirt\u003cbr\u003eCraster\u003cbr\u003eStyr\u003cbr\u003eJanos\u003cbr\u003eYgritte", "value": 12}, {"font": {"color": "white"}, "id": "Amory", "label": "Amory", "shape": "dot", "title": "Amory Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Oberyn", "label": "Oberyn", "shape": "dot", "title": "Oberyn Neighbors:\u003cbr\u003eTyrion\u003cbr\u003eTywin\u003cbr\u003eJoffrey\u003cbr\u003eGregor", "value": 4}, {"font": {"color": "white"}, "id": "Arya", "label": "Arya", "shape": "dot", "title": "Arya Neighbors:\u003cbr\u003eEddard\u003cbr\u003eSandor\u003cbr\u003eRobert\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eGregor\u003cbr\u003eThoros\u003cbr\u003eSansa\u003cbr\u003eBeric\u003cbr\u003eCersei\u003cbr\u003eJaime\u003cbr\u003eRickon\u003cbr\u003eGendry", "value": 13}, {"font": {"color": "white"}, "id": "Anguy", "label": "Anguy", "shape": "dot", "title": "Anguy Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Beric", "label": "Beric", "shape": "dot", "title": "Beric Neighbors:\u003cbr\u003eEddard\u003cbr\u003eSandor\u003cbr\u003eArya\u003cbr\u003eThoros\u003cbr\u003eGendry", "value": 5}, {"font": {"color": "white"}, "id": "Bran", "label": "Bran", "shape": "dot", "title": "Bran Neighbors:\u003cbr\u003eNan\u003cbr\u003eLuwin", "value": 2}, {"font": {"color": "white"}, "id": "Brynden", "label": "Brynden", "shape": "dot", "title": "Brynden Neighbors:\u003cbr\u003eWalder\u003cbr\u003eEdmure\u003cbr\u003eRobb\u003cbr\u003eRickard\u003cbr\u003eCatelyn\u003cbr\u003eLothar", "value": 6}, {"font": {"color": "white"}, "id": "Cersei", "label": "Cersei", "shape": "dot", "title": "Cersei Neighbors:\u003cbr\u003eSandor\u003cbr\u003eJoffrey\u003cbr\u003eArya\u003cbr\u003ePycelle\u003cbr\u003eIlyn\u003cbr\u003eTyrion\u003cbr\u003eTywin\u003cbr\u003eGregor\u003cbr\u003eSansa\u003cbr\u003eLysa\u003cbr\u003eShae\u003cbr\u003eVarys\u003cbr\u003eMeryn\u003cbr\u003eEddard\u003cbr\u003eRobert\u003cbr\u003eBrienne\u003cbr\u003eElia\u003cbr\u003eBronn\u003cbr\u003eJaime", "value": 19}, {"font": {"color": "white"}, "id": "Gendry", "label": "Gendry", "shape": "dot", "title": "Gendry Neighbors:\u003cbr\u003eArya\u003cbr\u003eSandor\u003cbr\u003eBeric\u003cbr\u003eThoros", "value": 4}, {"font": {"color": "white"}, "id": "Gregor", "label": "Gregor", "shape": "dot", "title": "Gregor Neighbors:\u003cbr\u003eSandor\u003cbr\u003eOberyn\u003cbr\u003eElia\u003cbr\u003eJoffrey\u003cbr\u003eArya\u003cbr\u003eTyrion\u003cbr\u003eTywin\u003cbr\u003eBronn\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003eMeryn\u003cbr\u003eIlyn", "value": 12}, {"font": {"color": "white"}, "id": "Joffrey", "label": "Joffrey", "shape": "dot", "title": "Joffrey Neighbors:\u003cbr\u003eSandor\u003cbr\u003eOberyn\u003cbr\u003eMargaery\u003cbr\u003eArya\u003cbr\u003eTyrion\u003cbr\u003eMyrcella\u003cbr\u003eTywin\u003cbr\u003eKevan\u003cbr\u003eGregor\u003cbr\u003eSansa\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003eStannis\u003cbr\u003eLoras\u003cbr\u003eMeryn\u003cbr\u003eIlyn\u003cbr\u003eTommen", "value": 17}, {"font": {"color": "white"}, "id": "Jon", "label": "Jon", "shape": "dot", "title": "Jon Neighbors:\u003cbr\u003eMance\u003cbr\u003eVal\u003cbr\u003eMelisandre\u003cbr\u003eSamwell\u003cbr\u003eAlliser\u003cbr\u003eGilly\u003cbr\u003eAemon\u003cbr\u003eDalla\u003cbr\u003eEddison\u003cbr\u003eQhorin\u003cbr\u003eGrenn\u003cbr\u003eRattleshirt\u003cbr\u003eCraster\u003cbr\u003eStyr\u003cbr\u003eJanos\u003cbr\u003eYgritte", "value": 16}, {"font": {"color": "white"}, "id": "Rickon", "label": "Rickon", "shape": "dot", "title": "Rickon Neighbors:\u003cbr\u003eArya\u003cbr\u003eSansa\u003cbr\u003eEddard", "value": 3}, {"font": {"color": "white"}, "id": "Roose", "label": "Roose", "shape": "dot", "title": "Roose Neighbors:\u003cbr\u003eCatelyn\u003cbr\u003eRobb", "value": 2}, {"font": {"color": "white"}, "id": "Sandor", "label": "Sandor", "shape": "dot", "title": "Sandor Neighbors:\u003cbr\u003eEddard\u003cbr\u003eRobert\u003cbr\u003eJoffrey\u003cbr\u003eArya\u003cbr\u003eTyrion\u003cbr\u003eGregor\u003cbr\u003eThoros\u003cbr\u003eSansa\u003cbr\u003eBeric\u003cbr\u003eCersei\u003cbr\u003eMeryn\u003cbr\u003eIlyn\u003cbr\u003eGendry", "value": 13}, {"font": {"color": "white"}, "id": "Thoros", "label": "Thoros", "shape": "dot", "title": "Thoros Neighbors:\u003cbr\u003eSandor\u003cbr\u003eRobert\u003cbr\u003eArya\u003cbr\u003eBeric\u003cbr\u003eGendry", "value": 5}, {"font": {"color": "white"}, "id": "Balon", "label": "Balon", "shape": "dot", "title": "Balon Neighbors:\u003cbr\u003eTyrion\u003cbr\u003eTywin\u003cbr\u003eJaime\u003cbr\u003eStannis\u003cbr\u003eLoras", "value": 5}, {"font": {"color": "white"}, "id": "Loras", "label": "Loras", "shape": "dot", "title": "Loras Neighbors:\u003cbr\u003eBrienne\u003cbr\u003eMargaery\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eBalon\u003cbr\u003eSansa\u003cbr\u003eJaime", "value": 8}, {"font": {"color": "white"}, "id": "Belwas", "label": "Belwas", "shape": "dot", "title": "Belwas Neighbors:\u003cbr\u003eIllyrio\u003cbr\u003eJorah\u003cbr\u003eBarristan\u003cbr\u003eDaenerys", "value": 4}, {"font": {"color": "white"}, "id": "Barristan", "label": "Barristan", "shape": "dot", "title": "Barristan Neighbors:\u003cbr\u003eDaenerys\u003cbr\u003eJorah\u003cbr\u003eRhaegar\u003cbr\u003eBelwas", "value": 4}, {"font": {"color": "white"}, "id": "Illyrio", "label": "Illyrio", "shape": "dot", "title": "Illyrio Neighbors:\u003cbr\u003eBelwas", "value": 1}, {"font": {"color": "white"}, "id": "Hodor", "label": "Hodor", "shape": "dot", "title": "Hodor Neighbors:\u003cbr\u003eJojen\u003cbr\u003eMeera", "value": 2}, {"font": {"color": "white"}, "id": "Jojen", "label": "Jojen", "shape": "dot", "title": "Jojen Neighbors:\u003cbr\u003eMeera\u003cbr\u003eHodor", "value": 2}, {"font": {"color": "white"}, "id": "Luwin", "label": "Luwin", "shape": "dot", "title": "Luwin Neighbors:\u003cbr\u003eBran\u003cbr\u003eNan", "value": 2}, {"font": {"color": "white"}, "id": "Meera", "label": "Meera", "shape": "dot", "title": "Meera Neighbors:\u003cbr\u003eJojen\u003cbr\u003eHodor", "value": 2}, {"font": {"color": "white"}, "id": "Nan", "label": "Nan", "shape": "dot", "title": "Nan Neighbors:\u003cbr\u003eBran\u003cbr\u003eLuwin", "value": 2}, {"font": {"color": "white"}, "id": "Theon", "label": "Theon", "shape": "dot", "title": "Theon Neighbors:\u003cbr\u003eRobb", "value": 1}, {"font": {"color": "white"}, "id": "Brienne", "label": "Brienne", "shape": "dot", "title": "Brienne Neighbors:\u003cbr\u003eSansa\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003eLoras", "value": 4}, {"font": {"color": "white"}, "id": "Bronn", "label": "Bronn", "shape": "dot", "title": "Bronn Neighbors:\u003cbr\u003eTyrion\u003cbr\u003ePodrick\u003cbr\u003eCersei\u003cbr\u003eGregor", "value": 4}, {"font": {"color": "white"}, "id": "Podrick", "label": "Podrick", "shape": "dot", "title": "Podrick Neighbors:\u003cbr\u003eMargaery\u003cbr\u003eTyrion\u003cbr\u003eTywin\u003cbr\u003eBronn\u003cbr\u003eSansa", "value": 5}, {"font": {"color": "white"}, "id": "Lothar", "label": "Lothar", "shape": "dot", "title": "Lothar Neighbors:\u003cbr\u003eRoslin\u003cbr\u003eWalder\u003cbr\u003eEdmure\u003cbr\u003eRobb\u003cbr\u003eBrynden", "value": 5}, {"font": {"color": "white"}, "id": "Walder", "label": "Walder", "shape": "dot", "title": "Walder Neighbors:\u003cbr\u003eRoslin\u003cbr\u003ePetyr\u003cbr\u003eEdmure\u003cbr\u003eRobb\u003cbr\u003eLothar\u003cbr\u003eCatelyn\u003cbr\u003eBrynden", "value": 7}, {"font": {"color": "white"}, "id": "Catelyn", "label": "Catelyn", "shape": "dot", "title": "Catelyn Neighbors:\u003cbr\u003eRoslin\u003cbr\u003ePetyr\u003cbr\u003eWalder\u003cbr\u003eEdmure\u003cbr\u003eRoose\u003cbr\u003eRobb\u003cbr\u003eJeyne\u003cbr\u003eHoster\u003cbr\u003eBrynden", "value": 9}, {"font": {"color": "white"}, "id": "Edmure", "label": "Edmure", "shape": "dot", "title": "Edmure Neighbors:\u003cbr\u003eRoslin\u003cbr\u003eWalder\u003cbr\u003eRobb\u003cbr\u003eHoster\u003cbr\u003eLothar\u003cbr\u003eCatelyn\u003cbr\u003eBrynden", "value": 7}, {"font": {"color": "white"}, "id": "Hoster", "label": "Hoster", "shape": "dot", "title": "Hoster Neighbors:\u003cbr\u003eEdmure\u003cbr\u003eCatelyn", "value": 2}, {"font": {"color": "white"}, "id": "Jeyne", "label": "Jeyne", "shape": "dot", "title": "Jeyne Neighbors:\u003cbr\u003eCatelyn\u003cbr\u003eRobb", "value": 2}, {"font": {"color": "white"}, "id": "Lysa", "label": "Lysa", "shape": "dot", "title": "Lysa Neighbors:\u003cbr\u003eSansa\u003cbr\u003eTyrion\u003cbr\u003eCersei\u003cbr\u003eTywin", "value": 4}, {"font": {"color": "white"}, "id": "Petyr", "label": "Petyr", "shape": "dot", "title": "Petyr Neighbors:\u003cbr\u003eCatelyn\u003cbr\u003eRobb\u003cbr\u003eWalder", "value": 3}, {"font": {"color": "white"}, "id": "Robb", "label": "Robb", "shape": "dot", "title": "Robb Neighbors:\u003cbr\u003eTheon\u003cbr\u003ePetyr\u003cbr\u003eWalder\u003cbr\u003eEdmure\u003cbr\u003eRoose\u003cbr\u003eJeyne\u003cbr\u003eRickard\u003cbr\u003eLothar\u003cbr\u003eCatelyn\u003cbr\u003eBrynden", "value": 10}, {"font": {"color": "white"}, "id": "Roslin", "label": "Roslin", "shape": "dot", "title": "Roslin Neighbors:\u003cbr\u003eEdmure\u003cbr\u003eCatelyn\u003cbr\u003eLothar\u003cbr\u003eWalder", "value": 4}, {"font": {"color": "white"}, "id": "Sansa", "label": "Sansa", "shape": "dot", "title": "Sansa Neighbors:\u003cbr\u003eEddard\u003cbr\u003eSandor\u003cbr\u003eRobert\u003cbr\u003eShae\u003cbr\u003eBrienne\u003cbr\u003eMargaery\u003cbr\u003eJoffrey\u003cbr\u003eArya\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eMyrcella\u003cbr\u003eKevan\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003ePodrick\u003cbr\u003eLoras\u003cbr\u003eLysa\u003cbr\u003eRickon", "value": 18}, {"font": {"color": "white"}, "id": "Stannis", "label": "Stannis", "shape": "dot", "title": "Stannis Neighbors:\u003cbr\u003eRobert\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eBalon\u003cbr\u003eTywin\u003cbr\u003eJaime", "value": 7}, {"font": {"color": "white"}, "id": "Elia", "label": "Elia", "shape": "dot", "title": "Elia Neighbors:\u003cbr\u003eTyrion\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003eGregor", "value": 4}, {"font": {"color": "white"}, "id": "Ilyn", "label": "Ilyn", "shape": "dot", "title": "Ilyn Neighbors:\u003cbr\u003eSandor\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eGregor\u003cbr\u003eCersei\u003cbr\u003eMeryn", "value": 6}, {"font": {"color": "white"}, "id": "Meryn", "label": "Meryn", "shape": "dot", "title": "Meryn Neighbors:\u003cbr\u003eSandor\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eGregor\u003cbr\u003eJaime\u003cbr\u003eCersei\u003cbr\u003eIlyn", "value": 7}, {"font": {"color": "white"}, "id": "Pycelle", "label": "Pycelle", "shape": "dot", "title": "Pycelle Neighbors:\u003cbr\u003eTyrion\u003cbr\u003eCersei\u003cbr\u003eTywin\u003cbr\u003eVarys", "value": 4}, {"font": {"color": "white"}, "id": "Shae", "label": "Shae", "shape": "dot", "title": "Shae Neighbors:\u003cbr\u003eSansa\u003cbr\u003eTyrion\u003cbr\u003eCersei\u003cbr\u003eVarys", "value": 4}, {"font": {"color": "white"}, "id": "Varys", "label": "Varys", "shape": "dot", "title": "Varys Neighbors:\u003cbr\u003eShae\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eTywin\u003cbr\u003eKevan\u003cbr\u003eCersei\u003cbr\u003ePycelle", "value": 7}, {"font": {"color": "white"}, "id": "Craster", "label": "Craster", "shape": "dot", "title": "Craster Neighbors:\u003cbr\u003eMance\u003cbr\u003eJon\u003cbr\u003eSamwell\u003cbr\u003eGilly\u003cbr\u003eKarl", "value": 5}, {"font": {"color": "white"}, "id": "Karl", "label": "Karl", "shape": "dot", "title": "Karl Neighbors:\u003cbr\u003eCraster", "value": 1}, {"font": {"color": "white"}, "id": "Daario", "label": "Daario", "shape": "dot", "title": "Daario Neighbors:\u003cbr\u003eDaenerys\u003cbr\u003eJorah\u003cbr\u003eDrogo\u003cbr\u003eIrri", "value": 4}, {"font": {"color": "white"}, "id": "Drogo", "label": "Drogo", "shape": "dot", "title": "Drogo Neighbors:\u003cbr\u003eIrri\u003cbr\u003eDaenerys\u003cbr\u003eJorah\u003cbr\u003eDaario", "value": 4}, {"font": {"color": "white"}, "id": "Irri", "label": "Irri", "shape": "dot", "title": "Irri Neighbors:\u003cbr\u003eMissandei\u003cbr\u003eDaenerys\u003cbr\u003eDrogo\u003cbr\u003eDaario", "value": 4}, {"font": {"color": "white"}, "id": "Daenerys", "label": "Daenerys", "shape": "dot", "title": "Daenerys Neighbors:\u003cbr\u003eMissandei\u003cbr\u003eJorah\u003cbr\u003eRhaegar\u003cbr\u003eBelwas\u003cbr\u003eAegon\u003cbr\u003eBarristan\u003cbr\u003eDrogo\u003cbr\u003eRakharo\u003cbr\u003eKraznys\u003cbr\u003eViserys\u003cbr\u003eDaario\u003cbr\u003eWorm\u003cbr\u003eIrri", "value": 13}, {"font": {"color": "white"}, "id": "Aegon", "label": "Aegon", "shape": "dot", "title": "Aegon Neighbors:\u003cbr\u003eDaenerys", "value": 1}, {"font": {"color": "white"}, "id": "Jorah", "label": "Jorah", "shape": "dot", "title": "Jorah Neighbors:\u003cbr\u003eRhaegar\u003cbr\u003eBelwas\u003cbr\u003eBarristan\u003cbr\u003eDrogo\u003cbr\u003eDaario\u003cbr\u003eDaenerys", "value": 6}, {"font": {"color": "white"}, "id": "Kraznys", "label": "Kraznys", "shape": "dot", "title": "Kraznys Neighbors:\u003cbr\u003eDaenerys", "value": 1}, {"font": {"color": "white"}, "id": "Missandei", "label": "Missandei", "shape": "dot", "title": "Missandei Neighbors:\u003cbr\u003eDaenerys\u003cbr\u003eIrri", "value": 2}, {"font": {"color": "white"}, "id": "Rakharo", "label": "Rakharo", "shape": "dot", "title": "Rakharo Neighbors:\u003cbr\u003eDaenerys", "value": 1}, {"font": {"color": "white"}, "id": "Rhaegar", "label": "Rhaegar", "shape": "dot", "title": "Rhaegar Neighbors:\u003cbr\u003eDaenerys\u003cbr\u003eViserys\u003cbr\u003eJorah\u003cbr\u003eBarristan", "value": 4}, {"font": {"color": "white"}, "id": "Viserys", "label": "Viserys", "shape": "dot", "title": "Viserys Neighbors:\u003cbr\u003eDaenerys\u003cbr\u003eRhaegar", "value": 2}, {"font": {"color": "white"}, "id": "Worm", "label": "Worm", "shape": "dot", "title": "Worm Neighbors:\u003cbr\u003eDaenerys", "value": 1}, {"font": {"color": "white"}, "id": "Davos", "label": "Davos", "shape": "dot", "title": "Davos Neighbors:\u003cbr\u003eSalladhor\u003cbr\u003eCressen\u003cbr\u003eShireen", "value": 3}, {"font": {"color": "white"}, "id": "Cressen", "label": "Cressen", "shape": "dot", "title": "Cressen Neighbors:\u003cbr\u003eDavos", "value": 1}, {"font": {"color": "white"}, "id": "Salladhor", "label": "Salladhor", "shape": "dot", "title": "Salladhor Neighbors:\u003cbr\u003eDavos", "value": 1}, {"font": {"color": "white"}, "id": "Eddard", "label": "Eddard", "shape": "dot", "title": "Eddard Neighbors:\u003cbr\u003eSandor\u003cbr\u003eRobert\u003cbr\u003eArya\u003cbr\u003eSansa\u003cbr\u003eBeric\u003cbr\u003eRickon\u003cbr\u003eCersei\u003cbr\u003eJaime", "value": 8}, {"font": {"color": "white"}, "id": "Eddison", "label": "Eddison", "shape": "dot", "title": "Eddison Neighbors:\u003cbr\u003eJon\u003cbr\u003eGrenn\u003cbr\u003eSamwell", "value": 3}, {"font": {"color": "white"}, "id": "Gilly", "label": "Gilly", "shape": "dot", "title": "Gilly Neighbors:\u003cbr\u003eJon\u003cbr\u003eMance\u003cbr\u003eCraster\u003cbr\u003eSamwell", "value": 4}, {"font": {"color": "white"}, "id": "Qyburn", "label": "Qyburn", "shape": "dot", "title": "Qyburn Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Renly", "label": "Renly", "shape": "dot", "title": "Renly Neighbors:\u003cbr\u003eRobert\u003cbr\u003eMargaery\u003cbr\u003eVarys\u003cbr\u003eTyrion\u003cbr\u003eSansa\u003cbr\u003eJaime\u003cbr\u003eStannis\u003cbr\u003eLoras", "value": 8}, {"font": {"color": "white"}, "id": "Tommen", "label": "Tommen", "shape": "dot", "title": "Tommen Neighbors:\u003cbr\u003eMargaery\u003cbr\u003eJoffrey\u003cbr\u003eMyrcella\u003cbr\u003eTywin\u003cbr\u003eJaime", "value": 5}, {"font": {"color": "white"}, "id": "Janos", "label": "Janos", "shape": "dot", "title": "Janos Neighbors:\u003cbr\u003eMance\u003cbr\u003eJon\u003cbr\u003eAlliser\u003cbr\u003eSamwell\u003cbr\u003eBowen", "value": 5}, {"font": {"color": "white"}, "id": "Bowen", "label": "Bowen", "shape": "dot", "title": "Bowen Neighbors:\u003cbr\u003eSamwell\u003cbr\u003eJanos", "value": 2}, {"font": {"color": "white"}, "id": "Kevan", "label": "Kevan", "shape": "dot", "title": "Kevan Neighbors:\u003cbr\u003eVarys\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eTywin\u003cbr\u003eSansa", "value": 5}, {"font": {"color": "white"}, "id": "Margaery", "label": "Margaery", "shape": "dot", "title": "Margaery Neighbors:\u003cbr\u003eJoffrey\u003cbr\u003eTyrion\u003cbr\u003eRenly\u003cbr\u003eSansa\u003cbr\u003ePodrick\u003cbr\u003eLoras\u003cbr\u003eTommen", "value": 7}, {"font": {"color": "white"}, "id": "Myrcella", "label": "Myrcella", "shape": "dot", "title": "Myrcella Neighbors:\u003cbr\u003eSansa\u003cbr\u003eTyrion\u003cbr\u003eTommen\u003cbr\u003eJoffrey", "value": 4}, {"font": {"color": "white"}, "id": "Dalla", "label": "Dalla", "shape": "dot", "title": "Dalla Neighbors:\u003cbr\u003eJon\u003cbr\u003eMance\u003cbr\u003eVal", "value": 3}, {"font": {"color": "white"}, "id": "Melisandre", "label": "Melisandre", "shape": "dot", "title": "Melisandre Neighbors:\u003cbr\u003eJon\u003cbr\u003eSamwell", "value": 2}, {"font": {"color": "white"}, "id": "Orell", "label": "Orell", "shape": "dot", "title": "Orell Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Qhorin", "label": "Qhorin", "shape": "dot", "title": "Qhorin Neighbors:\u003cbr\u003eMance\u003cbr\u003eJon\u003cbr\u003eSamwell\u003cbr\u003eRattleshirt\u003cbr\u003eYgritte", "value": 5}, {"font": {"color": "white"}, "id": "Rattleshirt", "label": "Rattleshirt", "shape": "dot", "title": "Rattleshirt Neighbors:\u003cbr\u003eJon\u003cbr\u003eMance\u003cbr\u003eQhorin\u003cbr\u003eYgritte", "value": 4}, {"font": {"color": "white"}, "id": "Styr", "label": "Styr", "shape": "dot", "title": "Styr Neighbors:\u003cbr\u003eJon\u003cbr\u003eMance", "value": 2}, {"font": {"color": "white"}, "id": "Val", "label": "Val", "shape": "dot", "title": "Val Neighbors:\u003cbr\u003eJon\u003cbr\u003eMance\u003cbr\u003eDalla", "value": 3}, {"font": {"color": "white"}, "id": "Ygritte", "label": "Ygritte", "shape": "dot", "title": "Ygritte Neighbors:\u003cbr\u003eRattleshirt\u003cbr\u003eJon\u003cbr\u003eMance\u003cbr\u003eQhorin", "value": 4}, {"font": {"color": "white"}, "id": "Jon Arryn", "label": "Jon Arryn", "shape": "dot", "title": "Jon Arryn Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Lancel", "label": "Lancel", "shape": "dot", "title": "Lancel Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Olenna", "label": "Olenna", "shape": "dot", "title": "Olenna Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Marillion", "label": "Marillion", "shape": "dot", "title": "Marillion Neighbors:\u003cbr\u003eRobert Arryn", "value": 1}, {"font": {"color": "white"}, "id": "Robert Arryn", "label": "Robert Arryn", "shape": "dot", "title": "Robert Arryn Neighbors:\u003cbr\u003eMarillion", "value": 1}, {"font": {"color": "white"}, "id": "Ellaria", "label": "Ellaria", "shape": "dot", "title": "Ellaria Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Mace", "label": "Mace", "shape": "dot", "title": "Mace Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Rickard", "label": "Rickard", "shape": "dot", "title": "Rickard Neighbors:\u003cbr\u003eRobb\u003cbr\u003eBrynden", "value": 2}, {"font": {"color": "white"}, "id": "Ramsay", "label": "Ramsay", "shape": "dot", "title": "Ramsay Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Chataya", "label": "Chataya", "shape": "dot", "title": "Chataya Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Shireen", "label": "Shireen", "shape": "dot", "title": "Shireen Neighbors:\u003cbr\u003eDavos", "value": 1}, {"font": {"color": "white"}, "id": "Doran", "label": "Doran", "shape": "dot", "title": "Doran Neighbors:\u003cbr\u003e", "value": 0}, {"font": {"color": "white"}, "id": "Walton", "label": "Walton", "shape": "dot", "title": "Walton Neighbors:\u003cbr\u003e", "value": 0}]);
edges = new vis.DataSet([{"from": "Aemon", "to": "Grenn", "value": 1}, {"from": "Aemon", "to": "Samwell", "value": 1}, {"from": "Aerys", "to": "Jaime", "value": 1}, {"from": "Aerys", "to": "Robert", "value": 1}, {"from": "Aerys", "to": "Tyrion", "value": 1}, {"from": "Aerys", "to": "Tywin", "value": 1}, {"from": "Alliser", "to": "Mance", "value": 1}, {"from": "Arya", "to": "Beric", "value": 1}, {"from": "Arya", "to": "Cersei", "value": 1}, {"from": "Arya", "to": "Gendry", "value": 1}, {"from": "Arya", "to": "Gregor", "value": 1}, {"from": "Arya", "to": "Jaime", "value": 1}, {"from": "Arya", "to": "Joffrey", "value": 1}, {"from": "Arya", "to": "Rickon", "value": 1}, {"from": "Arya", "to": "Robert", "value": 1}, {"from": "Arya", "to": "Sandor", "value": 1}, {"from": "Arya", "to": "Thoros", "value": 1}, {"from": "Arya", "to": "Tyrion", "value": 1}, {"from": "Balon", "to": "Loras", "value": 1}, {"from": "Belwas", "to": "Barristan", "value": 1}, {"from": "Belwas", "to": "Illyrio", "value": 1}, {"from": "Beric", "to": "Gendry", "value": 1}, {"from": "Beric", "to": "Thoros", "value": 1}, {"from": "Bran", "to": "Luwin", "value": 1}, {"from": "Bran", "to": "Nan", "value": 1}, {"from": "Brienne", "to": "Loras", "value": 1}, {"from": "Bronn", "to": "Gregor", "value": 1}, {"from": "Bronn", "to": "Podrick", "value": 1}, {"from": "Brynden", "to": "Lothar", "value": 1}, {"from": "Brynden", "to": "Walder", "value": 1}, {"from": "Catelyn", "to": "Brynden", "value": 1}, {"from": "Catelyn", "to": "Edmure", "value": 1}, {"from": "Catelyn", "to": "Hoster", "value": 1}, {"from": "Catelyn", "to": "Jeyne", "value": 1}, {"from": "Catelyn", "to": "Petyr", "value": 1}, {"from": "Catelyn", "to": "Robb", "value": 1}, {"from": "Catelyn", "to": "Roose", "value": 1}, {"from": "Catelyn", "to": "Roslin", "value": 1}, {"from": "Catelyn", "to": "Walder", "value": 1}, {"from": "Cersei", "to": "Brienne", "value": 1}, {"from": "Cersei", "to": "Bronn", "value": 1}, {"from": "Cersei", "to": "Elia", "value": 1}, {"from": "Cersei", "to": "Gregor", "value": 1}, {"from": "Cersei", "to": "Ilyn", "value": 1}, {"from": "Cersei", "to": "Jaime", "value": 1}, {"from": "Cersei", "to": "Joffrey", "value": 1}, {"from": "Cersei", "to": "Meryn", "value": 1}, {"from": "Cersei", "to": "Pycelle", "value": 1}, {"from": "Cersei", "to": "Robert", "value": 1}, {"from": "Cersei", "to": "Sandor", "value": 1}, {"from": "Cersei", "to": "Shae", "value": 1}, {"from": "Cersei", "to": "Tyrion", "value": 1}, {"from": "Cersei", "to": "Varys", "value": 1}, {"from": "Craster", "to": "Karl", "value": 1}, {"from": "Daario", "to": "Drogo", "value": 1}, {"from": "Daario", "to": "Irri", "value": 1}, {"from": "Daenerys", "to": "Aegon", "value": 1}, {"from": "Daenerys", "to": "Barristan", "value": 1}, {"from": "Daenerys", "to": "Belwas", "value": 1}, {"from": "Daenerys", "to": "Daario", "value": 1}, {"from": "Daenerys", "to": "Drogo", "value": 1}, {"from": "Daenerys", "to": "Irri", "value": 1}, {"from": "Daenerys", "to": "Jorah", "value": 1}, {"from": "Daenerys", "to": "Kraznys", "value": 1}, {"from": "Daenerys", "to": "Missandei", "value": 1}, {"from": "Daenerys", "to": "Rakharo", "value": 1}, {"from": "Daenerys", "to": "Rhaegar", "value": 1}, {"from": "Daenerys", "to": "Viserys", "value": 1}, {"from": "Daenerys", "to": "Worm", "value": 1}, {"from": "Davos", "to": "Cressen", "value": 1}, {"from": "Davos", "to": "Salladhor", "value": 1}, {"from": "Eddard", "to": "Arya", "value": 1}, {"from": "Eddard", "to": "Beric", "value": 1}, {"from": "Eddard", "to": "Cersei", "value": 1}, {"from": "Eddard", "to": "Jaime", "value": 1}, {"from": "Eddard", "to": "Rickon", "value": 1}, {"from": "Eddard", "to": "Robert", "value": 1}, {"from": "Eddard", "to": "Sandor", "value": 1}, {"from": "Eddard", "to": "Sansa", "value": 1}, {"from": "Eddison", "to": "Grenn", "value": 1}, {"from": "Edmure", "to": "Brynden", "value": 1}, {"from": "Edmure", "to": "Lothar", "value": 1}, {"from": "Edmure", "to": "Roslin", "value": 1}, {"from": "Edmure", "to": "Walder", "value": 1}, {"from": "Gendry", "to": "Thoros", "value": 1}, {"from": "Gilly", "to": "Craster", "value": 1}, {"from": "Gregor", "to": "Elia", "value": 1}, {"from": "Gregor", "to": "Ilyn", "value": 1}, {"from": "Gregor", "to": "Meryn", "value": 1}, {"from": "Gregor", "to": "Oberyn", "value": 1}, {"from": "Gregor", "to": "Sandor", "value": 1}, {"from": "Hodor", "to": "Jojen", "value": 1}, {"from": "Hodor", "to": "Meera", "value": 1}, {"from": "Hoster", "to": "Edmure", "value": 1}, {"from": "Irri", "to": "Drogo", "value": 1}, {"from": "Jaime", "to": "Balon", "value": 1}, {"from": "Jaime", "to": "Brienne", "value": 1}, {"from": "Jaime", "to": "Elia", "value": 1}, {"from": "Jaime", "to": "Gregor", "value": 1}, {"from": "Jaime", "to": "Joffrey", "value": 1}, {"from": "Jaime", "to": "Loras", "value": 1}, {"from": "Jaime", "to": "Meryn", "value": 1}, {"from": "Jaime", "to": "Renly", "value": 1}, {"from": "Jaime", "to": "Robert", "value": 1}, {"from": "Jaime", "to": "Stannis", "value": 1}, {"from": "Jaime", "to": "Tommen", "value": 1}, {"from": "Jaime", "to": "Tyrion", "value": 1}, {"from": "Janos", "to": "Alliser", "value": 1}, {"from": "Janos", "to": "Bowen", "value": 1}, {"from": "Janos", "to": "Mance", "value": 1}, {"from": "Joffrey", "to": "Gregor", "value": 1}, {"from": "Joffrey", "to": "Ilyn", "value": 1}, {"from": "Joffrey", "to": "Kevan", "value": 1}, {"from": "Joffrey", "to": "Loras", "value": 1}, {"from": "Joffrey", "to": "Margaery", "value": 1}, {"from": "Joffrey", "to": "Meryn", "value": 1}, {"from": "Joffrey", "to": "Myrcella", "value": 1}, {"from": "Joffrey", "to": "Oberyn", "value": 1}, {"from": "Joffrey", "to": "Sandor", "value": 1}, {"from": "Joffrey", "to": "Stannis", "value": 1}, {"from": "Joffrey", "to": "Tommen", "value": 1}, {"from": "Joffrey", "to": "Tyrion", "value": 1}, {"from": "Jojen", "to": "Meera", "value": 1}, {"from": "Jon", "to": "Aemon", "value": 1}, {"from": "Jon", "to": "Alliser", "value": 1}, {"from": "Jon", "to": "Craster", "value": 1}, {"from": "Jon", "to": "Dalla", "value": 1}, {"from": "Jon", "to": "Eddison", "value": 1}, {"from": "Jon", "to": "Gilly", "value": 1}, {"from": "Jon", "to": "Grenn", "value": 1}, {"from": "Jon", "to": "Janos", "value": 1}, {"from": "Jon", "to": "Mance", "value": 1}, {"from": "Jon", "to": "Melisandre", "value": 1}, {"from": "Jon", "to": "Qhorin", "value": 1}, {"from": "Jon", "to": "Rattleshirt", "value": 1}, {"from": "Jon", "to": "Samwell", "value": 1}, {"from": "Jon", "to": "Styr", "value": 1}, {"from": "Jon", "to": "Val", "value": 1}, {"from": "Jon", "to": "Ygritte", "value": 1}, {"from": "Jorah", "to": "Barristan", "value": 1}, {"from": "Jorah", "to": "Belwas", "value": 1}, {"from": "Jorah", "to": "Daario", "value": 1}, {"from": "Jorah", "to": "Drogo", "value": 1}, {"from": "Kevan", "to": "Varys", "value": 1}, {"from": "Loras", "to": "Margaery", "value": 1}, {"from": "Lothar", "to": "Roslin", "value": 1}, {"from": "Luwin", "to": "Nan", "value": 1}, {"from": "Lysa", "to": "Cersei", "value": 1}, {"from": "Lysa", "to": "Tyrion", "value": 1}, {"from": "Lysa", "to": "Tywin", "value": 1}, {"from": "Mance", "to": "Craster", "value": 1}, {"from": "Mance", "to": "Dalla", "value": 1}, {"from": "Mance", "to": "Gilly", "value": 1}, {"from": "Mance", "to": "Qhorin", "value": 1}, {"from": "Mance", "to": "Rattleshirt", "value": 1}, {"from": "Mance", "to": "Styr", "value": 1}, {"from": "Mance", "to": "Val", "value": 1}, {"from": "Mance", "to": "Ygritte", "value": 1}, {"from": "Melisandre", "to": "Samwell", "value": 1}, {"from": "Meryn", "to": "Ilyn", "value": 1}, {"from": "Missandei", "to": "Irri", "value": 1}, {"from": "Myrcella", "to": "Tommen", "value": 1}, {"from": "Myrcella", "to": "Tyrion", "value": 1}, {"from": "Podrick", "to": "Margaery", "value": 1}, {"from": "Rattleshirt", "to": "Qhorin", "value": 1}, {"from": "Renly", "to": "Loras", "value": 1}, {"from": "Renly", "to": "Margaery", "value": 1}, {"from": "Renly", "to": "Varys", "value": 1}, {"from": "Rhaegar", "to": "Barristan", "value": 1}, {"from": "Rhaegar", "to": "Jorah", "value": 1}, {"from": "Rickard", "to": "Brynden", "value": 1}, {"from": "Robb", "to": "Brynden", "value": 1}, {"from": "Robb", "to": "Edmure", "value": 1}, {"from": "Robb", "to": "Jeyne", "value": 1}, {"from": "Robb", "to": "Lothar", "value": 1}, {"from": "Robb", "to": "Petyr", "value": 1}, {"from": "Robb", "to": "Rickard", "value": 1}, {"from": "Robb", "to": "Roose", "value": 1}, {"from": "Robb", "to": "Theon", "value": 1}, {"from": "Robb", "to": "Walder", "value": 1}, {"from": "Robert", "to": "Renly", "value": 1}, {"from": "Robert", "to": "Stannis", "value": 1}, {"from": "Robert", "to": "Thoros", "value": 1}, {"from": "Robert Arryn", "to": "Marillion", "value": 1}, {"from": "Samwell", "to": "Bowen", "value": 1}, {"from": "Samwell", "to": "Craster", "value": 1}, {"from": "Samwell", "to": "Eddison", "value": 1}, {"from": "Samwell", "to": "Gilly", "value": 1}, {"from": "Samwell", "to": "Grenn", "value": 1}, {"from": "Samwell", "to": "Janos", "value": 1}, {"from": "Samwell", "to": "Mance", "value": 1}, {"from": "Samwell", "to": "Qhorin", "value": 1}, {"from": "Sandor", "to": "Beric", "value": 1}, {"from": "Sandor", "to": "Gendry", "value": 1}, {"from": "Sandor", "to": "Ilyn", "value": 1}, {"from": "Sandor", "to": "Meryn", "value": 1}, {"from": "Sandor", "to": "Robert", "value": 1}, {"from": "Sandor", "to": "Thoros", "value": 1}, {"from": "Sansa", "to": "Arya", "value": 1}, {"from": "Sansa", "to": "Brienne", "value": 1}, {"from": "Sansa", "to": "Cersei", "value": 1}, {"from": "Sansa", "to": "Jaime", "value": 1}, {"from": "Sansa", "to": "Joffrey", "value": 1}, {"from": "Sansa", "to": "Kevan", "value": 1}, {"from": "Sansa", "to": "Loras", "value": 1}, {"from": "Sansa", "to": "Lysa", "value": 1}, {"from": "Sansa", "to": "Margaery", "value": 1}, {"from": "Sansa", "to": "Myrcella", "value": 1}, {"from": "Sansa", "to": "Podrick", "value": 1}, {"from": "Sansa", "to": "Renly", "value": 1}, {"from": "Sansa", "to": "Rickon", "value": 1}, {"from": "Sansa", "to": "Robert", "value": 1}, {"from": "Sansa", "to": "Sandor", "value": 1}, {"from": "Sansa", "to": "Shae", "value": 1}, {"from": "Sansa", "to": "Tyrion", "value": 1}, {"from": "Shae", "to": "Varys", "value": 1}, {"from": "Shireen", "to": "Davos", "value": 1}, {"from": "Stannis", "to": "Balon", "value": 1}, {"from": "Stannis", "to": "Renly", "value": 1}, {"from": "Tommen", "to": "Margaery", "value": 1}, {"from": "Tyrion", "to": "Balon", "value": 1}, {"from": "Tyrion", "to": "Bronn", "value": 1}, {"from": "Tyrion", "to": "Elia", "value": 1}, {"from": "Tyrion", "to": "Gregor", "value": 1}, {"from": "Tyrion", "to": "Ilyn", "value": 1}, {"from": "Tyrion", "to": "Kevan", "value": 1}, {"from": "Tyrion", "to": "Loras", "value": 1}, {"from": "Tyrion", "to": "Margaery", "value": 1}, {"from": "Tyrion", "to": "Meryn", "value": 1}, {"from": "Tyrion", "to": "Oberyn", "value": 1}, {"from": "Tyrion", "to": "Podrick", "value": 1}, {"from": "Tyrion", "to": "Pycelle", "value": 1}, {"from": "Tyrion", "to": "Renly", "value": 1}, {"from": "Tyrion", "to": "Robert", "value": 1}, {"from": "Tyrion", "to": "Sandor", "value": 1}, {"from": "Tyrion", "to": "Shae", "value": 1}, {"from": "Tyrion", "to": "Stannis", "value": 1}, {"from": "Tyrion", "to": "Varys", "value": 1}, {"from": "Tywin", "to": "Balon", "value": 1}, {"from": "Tywin", "to": "Cersei", "value": 1}, {"from": "Tywin", "to": "Gregor", "value": 1}, {"from": "Tywin", "to": "Jaime", "value": 1}, {"from": "Tywin", "to": "Joffrey", "value": 1}, {"from": "Tywin", "to": "Kevan", "value": 1}, {"from": "Tywin", "to": "Oberyn", "value": 1}, {"from": "Tywin", "to": "Podrick", "value": 1}, {"from": "Tywin", "to": "Pycelle", "value": 1}, {"from": "Tywin", "to": "Robert", "value": 1}, {"from": "Tywin", "to": "Stannis", "value": 1}, {"from": "Tywin", "to": "Tommen", "value": 1}, {"from": "Tywin", "to": "Tyrion", "value": 1}, {"from": "Tywin", "to": "Varys", "value": 1}, {"from": "Val", "to": "Dalla", "value": 1}, {"from": "Varys", "to": "Pycelle", "value": 1}, {"from": "Viserys", "to": "Rhaegar", "value": 1}, {"from": "Walder", "to": "Lothar", "value": 1}, {"from": "Walder", "to": "Petyr", "value": 1}, {"from": "Walder", "to": "Roslin", "value": 1}, {"from": "Ygritte", "to": "Qhorin", "value": 1}, {"from": "Ygritte", "to": "Rattleshirt", "value": 1}]);
// adding nodes and edges to the graph
data = {nodes: nodes, edges: edges};
var options = {
"configure": {
"enabled": false
},
"edges": {
"color": {
"inherit": true
},
"smooth": {
"enabled": false,
"type": "continuous"
}
},
"interaction": {
"dragNodes": true,
"hideEdgesOnDrag": false,
"hideNodesOnDrag": false
},
"physics": {
"barnesHut": {
"avoidOverlap": 0,
"centralGravity": 0.3,
"damping": 0.09,
"gravitationalConstant": -80000,
"springConstant": 0.001,
"springLength": 250
},
"enabled": true,
"stabilization": {
"enabled": true,
"fit": true,
"iterations": 1000,
"onlyDynamicEdges": false,
"updateInterval": 50
}
}
};
network = new vis.Network(container, data, options);
network.on("stabilizationProgress", function(params) {
document.getElementById('loadingBar').removeAttribute("style");
var maxWidth = 496;
var minWidth = 20;
var widthFactor = params.iterations/params.total;
var width = Math.max(minWidth,maxWidth * widthFactor);
document.getElementById('bar').style.width = width + 'px';
document.getElementById('text').innerHTML = Math.round(widthFactor*100) + '%';
});
network.once("stabilizationIterationsDone", function() {
document.getElementById('text').innerHTML = '100%';
document.getElementById('bar').style.width = '496px';
document.getElementById('loadingBar').style.opacity = 0;
// really clean the dom element
setTimeout(function () {document.getElementById('loadingBar').style.display = 'none';}, 500);
});
return network;
}
drawGraph();
</script>
</body>
</html>