Skip to content

Instantly share code, notes, and snippets.

@MariosRichards
Last active October 26, 2024 14:17
Show Gist options
  • Save MariosRichards/0a172ae6b79da98a7650b7f11feac4a4 to your computer and use it in GitHub Desktop.
Save MariosRichards/0a172ae6b79da98a7650b7f11feac4a4 to your computer and use it in GitHub Desktop.
2d Hotelling Downs Interactive Model
path.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}
circle {
fill: #ccc;
stroke: #fff;
stroke-width: 1.5px;
}
text {
fill: #000;
font: 12px sans-serif;
pointer-events: none;
}
<html>
<head>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<div id="grid"></div>
<script src="grid.js" type="text/javascript"></script>
</body>
</html>
var width = 1500,
height = 700;
d3.json("force.json", function(json) {
var force = d3.layout.force()
.nodes(json.nodes)
.links(json.links)
.charge(-50)
.linkDistance(function(link) {
return 500/link.weight;
})
.size([width, height])
.on("tick", tick) // new
.start();
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
// .append("g")
// .call(d3.behavior.zoom().scaleExtent([1, 8]).on("zoom", zoom))
// .append("g");
// build the arrow.
svg.append("svg:defs").selectAll("marker")
.data(["end"]) // Different link/path types can be defined here
.enter().append("svg:marker") // This section adds in the arrows
.attr("id", String)
.attr("viewBox", "0 -5 10 10")
.attr("refX", 15)
.attr("refY", -1.5)
.attr("markerWidth", 6)
.attr("markerHeight", 6)
.attr("orient", "auto")
.append("svg:path")
.attr("d", "M0,-5L10,0L0,5");
// add the links and the arrows
var path = svg.append("svg:g").selectAll("path")
.data(force.links())
.enter().append("svg:path")
.attr("class", function(d) { return "link " + d.type; })
.attr("class", "link")
.attr("marker-end", "url(#end)");
// .style("stroke-width", function(d) {return d.weight/5})
// define the nodes
var node = svg.selectAll(".node")
.data(force.nodes())
.enter().append("g")
.attr("class", "node")
.call(force.drag);
// add the nodes
node.append("circle")
.attr("r", 5);
// add the text
node.append("text")
.attr("x", 12)
.attr("dy", ".35em")
.text(function(d) { return d.name; });
function zoom() {
svg.attr("transform", "translate(" + d3.event.translate + ")scale(" + d3.event.scale + ")");
}
// add the curvy lines
function tick() {
path.attr("d", function(d) {
var dx = d.target.x - d.source.x,
dy = d.target.y - d.source.y,
dr = Math.sqrt(dx * dx + dy * dy);
return "M" +
d.source.x + "," +
d.source.y + "A" +
dr + "," + dr + " 0 0,1 " +
d.target.x + "," +
d.target.y;
});
// .style("stroke-width", function(d) {return (2**d.weight)/3000});
node
.attr("transform", function(d) {
return "translate(" + d.x + "," + d.y + ")"; });
}
});
{"nodes": [{"id": "euID7", "name": "euID7"}, {"id": "infoSourcePaper", "name": "infoSourcePaper"}, {"id": "effectsEUTrade", "name": "effectsEUTrade"}, {"id": "EUIntegrationGreen", "name": "EUIntegrationGreen"}, {"id": "likeGrn", "name": "likeGrn"}, {"id": "reasonForVote", "name": "reasonForVote"}, {"id": "profile_past_vote_2015", "name": "profile_past_vote_2015"}, {"id": "pidRuinDay", "name": "pidRuinDay"}, {"id": "likeDavis", "name": "likeDavis"}, {"id": "pidMyParty", "name": "pidMyParty"}, {"id": "euPriorityBalance", "name": "euPriorityBalance"}, {"id": "gender", "name": "gender"}, {"id": "likeCorbyn", "name": "likeCorbyn"}, {"id": "effectsEUImmigration", "name": "effectsEUImmigration"}, {"id": "participation_5", "name": "participation_5"}, {"id": "natSecurityCon", "name": "natSecurityCon"}, {"id": "al1", "name": "al1"}, {"id": "euLeaveScotIndep", "name": "euLeaveScotIndep"}, {"id": "partyContact1", "name": "partyContact1"}, {"id": "generalElectionVote", "name": "generalElectionVote"}, {"id": "ptvLD", "name": "ptvLD"}, {"id": "pidCommonParty", "name": "pidCommonParty"}, {"id": "partyContactLab_5", "name": "partyContactLab_5"}, {"id": "infoSourceInternet", "name": "infoSourceInternet"}, {"id": "conUnited", "name": "conUnited"}, {"id": "profile_household_children", "name": "profile_household_children"}, {"id": "effectsEUUnemployment", "name": "effectsEUUnemployment"}, {"id": "partyContactLab_6", "name": "partyContactLab_6"}, {"id": "likeLucas", "name": "likeLucas"}, {"id": "pContactEday_99", "name": "pContactEday_99"}, {"id": "pidConnected", "name": "pidConnected"}, {"id": "effectsEUWorkers", "name": "effectsEUWorkers"}, {"id": "infoSourcePeople", "name": "infoSourcePeople"}, {"id": "pidPraiseGood", "name": "pidPraiseGood"}, {"id": "competentFarron", "name": "competentFarron"}, {"id": "participation_4", "name": "participation_4"}, {"id": "partyId", "name": "partyId"}, {"id": "studentsMore", "name": "studentsMore"}, {"id": "likeUKIP", "name": "likeUKIP"}, {"id": "partyContactOtherParty", "name": "partyContactOtherParty"}, {"id": "likeBoris", "name": "likeBoris"}, {"id": "redistLab", "name": "redistLab"}, {"id": "lr4", "name": "lr4"}, {"id": "euMore", "name": "euMore"}, {"id": "handleEUNegotiate", "name": "handleEUNegotiate"}, {"id": "redistCon", "name": "redistCon"}, {"id": "asylumMore", "name": "asylumMore"}, {"id": "profile_turnout_2015", "name": "profile_turnout_2015"}, {"id": "ukipUnited", "name": "ukipUnited"}, {"id": "participation_2", "name": "participation_2"}, {"id": "euID2", "name": "euID2"}, {"id": "leftRight", "name": "leftRight"}, {"id": "pContactEday_10", "name": "pContactEday_10"}, {"id": "euID3", "name": "euID3"}, {"id": "likeRudd", "name": "likeRudd"}, {"id": "al_scale", "name": "al_scale"}, {"id": "EUIntegrationSelf", "name": "EUIntegrationSelf"}, {"id": "negotiationSpecifics_1", "name": "negotiationSpecifics_1"}, {"id": "labUnited", "name": "labUnited"}, {"id": "personality_openness", "name": "personality_openness"}, {"id": "natSecurityLab", "name": "natSecurityLab"}, {"id": "polAttention", "name": "polAttention"}, {"id": "anyUni", "name": "anyUni"}, {"id": "disability", "name": "disability"}, {"id": "partyContactLD", "name": "partyContactLD"}, {"id": "satDemEng", "name": "satDemEng"}, {"id": "participation_3", "name": "participation_3"}, {"id": "profile_education_age", "name": "profile_education_age"}, {"id": "negotiationSpecifics_3", "name": "negotiationSpecifics_3"}, {"id": "education", "name": "education"}, {"id": "age", "name": "age"}, {"id": "regretsIHaveAFew", "name": "regretsIHaveAFew"}, {"id": "profile_eurefvote", "name": "profile_eurefvote"}, {"id": "competentMay", "name": "competentMay"}, {"id": "likeMay", "name": "likeMay"}, {"id": "noneuMore", "name": "noneuMore"}, {"id": "effectsEUTerror", "name": "effectsEUTerror"}, {"id": "euLeaveVoice", "name": "euLeaveVoice"}, {"id": "partyContactGrn", "name": "partyContactGrn"}, {"id": "marital", "name": "marital"}, {"id": "negotiationSpecifics_2", "name": "negotiationSpecifics_2"}, {"id": "pidInterestedOthers", "name": "pidInterestedOthers"}, {"id": "ptvUKIP", "name": "ptvUKIP"}, {"id": "al4", "name": "al4"}, {"id": "likeLD", "name": "likeLD"}, {"id": "al2", "name": "al2"}, {"id": "housing", "name": "housing"}, {"id": "redistGreen", "name": "redistGreen"}, {"id": "al3", "name": "al3"}, {"id": "euRefTurnoutRetro", "name": "euRefTurnoutRetro"}, {"id": "effectsEUEcon", "name": "effectsEUEcon"}, {"id": "competentCorbyn", "name": "competentCorbyn"}, {"id": "EUIntegrationCon", "name": "EUIntegrationCon"}, {"id": "natSecurityLD", "name": "natSecurityLD"}, {"id": "euID6", "name": "euID6"}, {"id": "immigCultural", "name": "immigCultural"}, {"id": "partyContactCon", "name": "partyContactCon"}, {"id": "infoSourceTV", "name": "infoSourceTV"}, {"id": "effectsEUNHS", "name": "effectsEUNHS"}, {"id": "euRefDoOver", "name": "euRefDoOver"}, {"id": "likeLab", "name": "likeLab"}, {"id": "redistUKIP", "name": "redistUKIP"}, {"id": "profile_religion", "name": "profile_religion"}, {"id": "satDemUK", "name": "satDemUK"}, {"id": "partyContactLab_7", "name": "partyContactLab_7"}, {"id": "profile_newspaper", "name": "profile_newspaper"}, {"id": "lr_scale", "name": "lr_scale"}, {"id": "likeSturgeon", "name": "likeSturgeon"}, {"id": "country", "name": "country"}, {"id": "effectsEUFinance", "name": "effectsEUFinance"}, {"id": "ldUnited", "name": "ldUnited"}, {"id": "lr5", "name": "lr5"}, {"id": "partyContactLab", "name": "partyContactLab"}, {"id": "partyContactLab_4", "name": "partyContactLab_4"}, {"id": "euRefVote", "name": "euRefVote"}, {"id": "econPersonalRetro", "name": "econPersonalRetro"}, {"id": "econGenRetro", "name": "econGenRetro"}, {"id": "electionInterest", "name": "electionInterest"}, {"id": "integrityMay", "name": "integrityMay"}, {"id": "voteMethoda", "name": "voteMethoda"}, {"id": "partyContactNone", "name": "partyContactNone"}, {"id": "participation_1", "name": "participation_1"}, {"id": "policeCuts", "name": "policeCuts"}, {"id": "partyContactUKIP", "name": "partyContactUKIP"}, {"id": "competentFarage", "name": "competentFarage"}, {"id": "partyContactLab_1", "name": "partyContactLab_1"}, {"id": "profile_work_stat", "name": "profile_work_stat"}, {"id": "euLeaveBigBusiness", "name": "euLeaveBigBusiness"}, {"id": "natSecurityUKIP", "name": "natSecurityUKIP"}, {"id": "competentLucas", "name": "competentLucas"}, {"id": "personality_agreeableness", "name": "personality_agreeableness"}, {"id": "ptvGrn", "name": "ptvGrn"}, {"id": "lr1", "name": "lr1"}, {"id": "likeSNP", "name": "likeSNP"}, {"id": "immigEcon", "name": "immigEcon"}, {"id": "redistSelf", "name": "redistSelf"}, {"id": "partyContactDK", "name": "partyContactDK"}, {"id": "likeNuttall", "name": "likeNuttall"}, {"id": "beliefTradeoff", "name": "beliefTradeoff"}, {"id": "blackEquality", "name": "blackEquality"}, {"id": "pidWeThey", "name": "pidWeThey"}, {"id": "al5", "name": "al5"}, {"id": "profile_ethnicity", "name": "profile_ethnicity"}, {"id": "pidCriticiseParty", "name": "pidCriticiseParty"}, {"id": "natSecuritySelf", "name": "natSecuritySelf"}, {"id": "personality_extraversion", "name": "personality_extraversion"}, {"id": "integrityCorbyn", "name": "integrityCorbyn"}, {"id": "negotiationSpecifics_none", "name": "negotiationSpecifics_none"}, {"id": "countryOfBirth", "name": "countryOfBirth"}, {"id": "ptvCon", "name": "ptvCon"}, {"id": "ptvLab", "name": "ptvLab"}, {"id": "expectAccess", "name": "expectAccess"}, {"id": "EUIntegrationLab", "name": "EUIntegrationLab"}, {"id": "partyContactLab_3", "name": "partyContactLab_3"}, {"id": "profile_gross_personal", "name": "profile_gross_personal"}, {"id": "lr2", "name": "lr2"}, {"id": "personality_conscientiousness", "name": "personality_conscientiousness"}, {"id": "partyContactLab_2", "name": "partyContactLab_2"}, {"id": "redistLD", "name": "redistLD"}, {"id": "personality_neuroticism", "name": "personality_neuroticism"}, {"id": "edlevel", "name": "edlevel"}, {"id": "bestOnMII", "name": "bestOnMII"}, {"id": "lr3", "name": "lr3"}, {"id": "prefTradeoff", "name": "prefTradeoff"}, {"id": "partyIdStrength", "name": "partyIdStrength"}, {"id": "EUIntegrationUKIP", "name": "EUIntegrationUKIP"}, {"id": "headHouseholdPast", "name": "headHouseholdPast"}, {"id": "familiesMore", "name": "familiesMore"}, {"id": "profile_eurefturnout", "name": "profile_eurefturnout"}, {"id": "euID4", "name": "euID4"}, {"id": "likeFarron", "name": "likeFarron"}, {"id": "profile_marital_stat", "name": "profile_marital_stat"}, {"id": "EUIntegrationLD", "name": "EUIntegrationLD"}, {"id": "likeCon", "name": "likeCon"}, {"id": "genElecTurnoutRetro", "name": "genElecTurnoutRetro"}, {"id": "natSecurityGrn", "name": "natSecurityGrn"}, {"id": "gor", "name": "gor"}, {"id": "profile_socialgrade_cie", "name": "profile_socialgrade_cie"}, {"id": "grnUnited", "name": "grnUnited"}], "directed": true, "links": [{"weight": 12.903917570937113, "target": 53, "source": 0}, {"weight": 15.48413196123524, "target": 94, "source": 0}, {"weight": 12.406382519944838, "target": 90, "source": 2}, {"weight": 15.0416512567822, "target": 77, "source": 2}, {"weight": 16.161565288646585, "target": 131, "source": 4}, {"weight": 12.29334449759042, "target": 74, "source": 5}, {"weight": 12.198684311512812, "target": 119, "source": 5}, {"weight": 12.340668828815378, "target": 149, "source": 5}, {"weight": 15.1726560438913, "target": 174, "source": 6}, {"weight": 13.607707004969386, "target": 72, "source": 6}, {"weight": 15.173753099602182, "target": 108, "source": 6}, {"weight": 13.278307434256304, "target": 124, "source": 6}, {"weight": 15.694997452010186, "target": 19, "source": 6}, {"weight": 13.657448754103699, "target": 40, "source": 8}, {"weight": 12.818955626457912, "target": 7, "source": 9}, {"weight": 12.899144416715655, "target": 26, "source": 13}, {"weight": 12.150061237297539, "target": 127, "source": 13}, {"weight": 12.964213683550598, "target": 76, "source": 13}, {"weight": 14.624664280090927, "target": 128, "source": 15}, {"weight": 12.04626549889062, "target": 88, "source": 16}, {"weight": 14.514638593086264, "target": 157, "source": 19}, {"weight": 15.693510278838252, "target": 91, "source": 19}, {"weight": 16.008189762671513, "target": 112, "source": 19}, {"weight": 15.370991730367054, "target": 113, "source": 19}, {"weight": 16.083671073735857, "target": 89, "source": 19}, {"weight": 14.585994119039512, "target": 47, "source": 19}, {"weight": 16.510293372447826, "target": 5, "source": 19}, {"weight": 15.39791545605456, "target": 168, "source": 19}, {"weight": 14.968227932436717, "target": 119, "source": 19}, {"weight": 16.5052208782906, "target": 27, "source": 19}, {"weight": 13.469001128919391, "target": 8, "source": 19}, {"weight": 13.842962163240822, "target": 64, "source": 19}, {"weight": 14.124270299324042, "target": 54, "source": 19}, {"weight": 14.439599285357088, "target": 34, "source": 19}, {"weight": 15.499289762625272, "target": 161, "source": 19}, {"weight": 13.614914377679323, "target": 170, "source": 19}, {"weight": 16.178372456089164, "target": 74, "source": 19}, {"weight": 12.616030652880646, "target": 123, "source": 19}, {"weight": 13.886333609502353, "target": 78, "source": 19}, {"weight": 15.264729657885711, "target": 149, "source": 19}, {"weight": 13.705151926941289, "target": 131, "source": 19}, {"weight": 13.694178117172873, "target": 20, "source": 19}, {"weight": 15.321538987197952, "target": 107, "source": 19}, {"weight": 14.517185985016113, "target": 133, "source": 19}, {"weight": 15.994863612946626, "target": 22, "source": 19}, {"weight": 15.072965250572588, "target": 153, "source": 19}, {"weight": 12.575044297156415, "target": 100, "source": 20}, {"weight": 12.194574633444285, "target": 131, "source": 20}, {"weight": 13.206350972056887, "target": 150, "source": 20}, {"weight": 12.225620795505654, "target": 169, "source": 21}, {"weight": 13.04118500147094, "target": 1, "source": 23}, {"weight": 13.224566528930428, "target": 32, "source": 23}, {"weight": 13.972988354511617, "target": 58, "source": 24}, {"weight": 12.000120698816628, "target": 76, "source": 26}, {"weight": 13.559575934276635, "target": 22, "source": 27}, {"weight": 13.417215985842349, "target": 170, "source": 28}, {"weight": 12.928162138991059, "target": 107, "source": 28}, {"weight": 14.330683315564025, "target": 4, "source": 28}, {"weight": 15.211328617014969, "target": 112, "source": 29}, {"weight": 12.234561651616898, "target": 96, "source": 29}, {"weight": 13.46116537927079, "target": 98, "source": 31}, {"weight": 14.240818562488146, "target": 30, "source": 33}, {"weight": 12.607902192781118, "target": 143, "source": 33}, {"weight": 12.562263928572477, "target": 81, "source": 33}, {"weight": 14.14679527382282, "target": 9, "source": 33}, {"weight": 14.167969670031866, "target": 170, "source": 34}, {"weight": 12.754171086208595, "target": 73, "source": 34}, {"weight": 15.161229771700308, "target": 91, "source": 34}, {"weight": 15.104679227119833, "target": 129, "source": 34}, {"weight": 14.408254578310322, "target": 66, "source": 35}, {"weight": 12.35300885018145, "target": 39, "source": 35}, {"weight": 14.717704269962924, "target": 84, "source": 36}, {"weight": 14.946305859518874, "target": 161, "source": 36}, {"weight": 12.655474263285047, "target": 4, "source": 36}, {"weight": 15.349880920183688, "target": 5, "source": 36}, {"weight": 15.63076062769242, "target": 140, "source": 36}, {"weight": 15.939300306782433, "target": 49, "source": 36}, {"weight": 12.448855838512614, "target": 30, "source": 36}, {"weight": 15.307545311704912, "target": 121, "source": 36}, {"weight": 12.570878545634482, "target": 41, "source": 36}, {"weight": 13.439676590168233, "target": 51, "source": 36}, {"weight": 18.09112590823469, "target": 6, "source": 36}, {"weight": 14.019832960825298, "target": 9, "source": 36}, {"weight": 14.182485356273151, "target": 96, "source": 36}, {"weight": 14.009726288081067, "target": 143, "source": 36}, {"weight": 16.641482850210267, "target": 150, "source": 36}, {"weight": 14.75341879713619, "target": 33, "source": 36}, {"weight": 16.01626170076043, "target": 173, "source": 36}, {"weight": 17.116973954785024, "target": 164, "source": 36}, {"weight": 16.141955959168165, "target": 125, "source": 36}, {"weight": 14.22969459629605, "target": 7, "source": 36}, {"weight": 15.593236030674268, "target": 19, "source": 36}, {"weight": 15.368255834990775, "target": 104, "source": 36}, {"weight": 14.769352863903324, "target": 81, "source": 36}, {"weight": 12.731509548639776, "target": 106, "source": 36}, {"weight": 15.167796652392974, "target": 105, "source": 36}, {"weight": 12.203773402440453, "target": 21, "source": 36}, {"weight": 14.769869410795836, "target": 136, "source": 36}, {"weight": 12.451883365956604, "target": 137, "source": 38}, {"weight": 17.31667035607832, "target": 82, "source": 38}, {"weight": 12.511589052951198, "target": 29, "source": 39}, {"weight": 15.383882196096694, "target": 118, "source": 40}, {"weight": 12.819323552428557, "target": 135, "source": 41}, {"weight": 12.6415257661916, "target": 162, "source": 42}, {"weight": 13.12381933376762, "target": 37, "source": 43}, {"weight": 13.777402337348608, "target": 74, "source": 44}, {"weight": 12.842841801053764, "target": 158, "source": 45}, {"weight": 12.872230494650697, "target": 135, "source": 45}, {"weight": 15.389873978609005, "target": 101, "source": 45}, {"weight": 14.77581230093095, "target": 95, "source": 46}, {"weight": 15.661319561826433, "target": 167, "source": 46}, {"weight": 13.192831376956846, "target": 75, "source": 46}, {"weight": 14.908158569511867, "target": 112, "source": 52}, {"weight": 13.904439489158475, "target": 120, "source": 52}, {"weight": 15.533934450025745, "target": 29, "source": 52}, {"weight": 12.606808004120902, "target": 50, "source": 53}, {"weight": 13.172387545156448, "target": 40, "source": 54}, {"weight": 17.77432241725358, "target": 8, "source": 54}, {"weight": 14.698894998845335, "target": 83, "source": 55}, {"weight": 12.66532667454938, "target": 88, "source": 55}, {"weight": 15.274080547162265, "target": 16, "source": 55}, {"weight": 15.114842995191102, "target": 141, "source": 55}, {"weight": 13.495261310382512, "target": 10, "source": 56}, {"weight": 13.13366606713206, "target": 38, "source": 56}, {"weight": 12.426033704715497, "target": 147, "source": 57}, {"weight": 14.574188883598175, "target": 145, "source": 59}, {"weight": 13.710599097199546, "target": 156, "source": 59}, {"weight": 12.164811200887716, "target": 15, "source": 60}, {"weight": 16.57060942088173, "target": 93, "source": 60}, {"weight": 15.602537868097025, "target": 117, "source": 61}, {"weight": 13.710526397414919, "target": 25, "source": 63}, {"weight": 12.185229908479805, "target": 160, "source": 67}, {"weight": 12.275550821330977, "target": 62, "source": 67}, {"weight": 14.882609585760806, "target": 57, "source": 68}, {"weight": 16.975677620199576, "target": 67, "source": 69}, {"weight": 12.851483699871302, "target": 11, "source": 69}, {"weight": 14.204659605168073, "target": 29, "source": 69}, {"weight": 17.24380266619341, "target": 62, "source": 69}, {"weight": 12.980138787776289, "target": 67, "source": 70}, {"weight": 16.874650084118315, "target": 174, "source": 71}, {"weight": 13.102883324563685, "target": 91, "source": 73}, {"weight": 16.846113954990713, "target": 173, "source": 74}, {"weight": 12.496980687851464, "target": 118, "source": 74}, {"weight": 15.927968464588274, "target": 43, "source": 75}, {"weight": 13.385532708857987, "target": 90, "source": 77}, {"weight": 13.002757451620715, "target": 63, "source": 79}, {"weight": 12.939807696231254, "target": 145, "source": 79}, {"weight": 14.798015156873488, "target": 70, "source": 79}, {"weight": 14.34355510547458, "target": 57, "source": 80}, {"weight": 12.361190557363722, "target": 147, "source": 80}, {"weight": 18.075557592308503, "target": 68, "source": 80}, {"weight": 12.186628644387527, "target": 50, "source": 81}, {"weight": 12.018978503318078, "target": 143, "source": 81}, {"weight": 13.567347266702976, "target": 100, "source": 84}, {"weight": 16.297290462237527, "target": 20, "source": 84}, {"weight": 12.022034445127373, "target": 46, "source": 85}, {"weight": 16.801403656424256, "target": 55, "source": 85}, {"weight": 12.104556224734104, "target": 130, "source": 86}, {"weight": 13.629278907043476, "target": 63, "source": 86}, {"weight": 14.165910330343554, "target": 126, "source": 86}, {"weight": 13.827964150252237, "target": 154, "source": 86}, {"weight": 12.24289280456893, "target": 166, "source": 86}, {"weight": 13.880138279575963, "target": 25, "source": 86}, {"weight": 15.95464159290452, "target": 158, "source": 87}, {"weight": 13.802146192096126, "target": 41, "source": 87}, {"weight": 15.992739717935903, "target": 168, "source": 89}, {"weight": 13.939667738884758, "target": 31, "source": 90}, {"weight": 12.590748184630609, "target": 98, "source": 90}, {"weight": 12.538119160045696, "target": 109, "source": 90}, {"weight": 12.07995881251211, "target": 150, "source": 91}, {"weight": 12.598457505015238, "target": 12, "source": 91}, {"weight": 17.63151032980594, "target": 146, "source": 91}, {"weight": 13.600862989119328, "target": 129, "source": 91}, {"weight": 14.94445433027847, "target": 165, "source": 92}, {"weight": 13.27535921488208, "target": 152, "source": 92}, {"weight": 14.964402885406864, "target": 175, "source": 93}, {"weight": 16.15698109298416, "target": 134, "source": 95}, {"weight": 12.110817623029577, "target": 167, "source": 95}, {"weight": 13.14405675535449, "target": 1, "source": 97}, {"weight": 13.6415699337247, "target": 23, "source": 97}, {"weight": 15.160897692723248, "target": 12, "source": 100}, {"weight": 13.079319745886496, "target": 87, "source": 101}, {"weight": 14.356931074675773, "target": 142, "source": 102}, {"weight": 17.949544183114625, "target": 65, "source": 103}, {"weight": 12.22428615629626, "target": 27, "source": 104}, {"weight": 14.429589655624579, "target": 125, "source": 104}, {"weight": 15.707292640224251, "target": 112, "source": 104}, {"weight": 14.652920521441207, "target": 113, "source": 104}, {"weight": 15.275460036085674, "target": 153, "source": 104}, {"weight": 14.991432441422502, "target": 1, "source": 105}, {"weight": 12.429991798000499, "target": 85, "source": 105}, {"weight": 13.951284912855678, "target": 155, "source": 106}, {"weight": 13.728977339811276, "target": 42, "source": 106}, {"weight": 16.411694378394223, "target": 133, "source": 107}, {"weight": 16.553253138521377, "target": 79, "source": 108}, {"weight": 18.628890389882475, "target": 65, "source": 108}, {"weight": 17.26490210287482, "target": 148, "source": 108}, {"weight": 13.785897736846088, "target": 166, "source": 108}, {"weight": 14.015437741581561, "target": 102, "source": 108}, {"weight": 12.781383604787393, "target": 115, "source": 109}, {"weight": 13.070112026923153, "target": 58, "source": 110}, {"weight": 13.720530710092932, "target": 24, "source": 110}, {"weight": 14.558935536652719, "target": 178, "source": 110}, {"weight": 13.895689447026106, "target": 72, "source": 114}, {"weight": 15.729792808502006, "target": 56, "source": 114}, {"weight": 14.11354634455834, "target": 116, "source": 115}, {"weight": 16.924350686026834, "target": 73, "source": 118}, {"weight": 14.10327109221737, "target": 146, "source": 118}, {"weight": 14.388960934357339, "target": 34, "source": 118}, {"weight": 17.923619318923926, "target": 71, "source": 119}, {"weight": 12.647340469573654, "target": 79, "source": 119}, {"weight": 12.496849483420316, "target": 96, "source": 120}, {"weight": 12.37813442171935, "target": 104, "source": 120}, {"weight": 17.235751033378598, "target": 112, "source": 120}, {"weight": 15.476265888594826, "target": 29, "source": 120}, {"weight": 16.532885226775676, "target": 136, "source": 120}, {"weight": 13.52173818375903, "target": 14, "source": 121}, {"weight": 13.996352388736128, "target": 49, "source": 121}, {"weight": 12.471599549746392, "target": 139, "source": 122}, {"weight": 12.846042573056236, "target": 112, "source": 125}, {"weight": 14.231160314991603, "target": 154, "source": 126}, {"weight": 13.84485826834954, "target": 69, "source": 126}, {"weight": 17.589189285309693, "target": 70, "source": 126}, {"weight": 14.120682803743573, "target": 177, "source": 126}, {"weight": 15.465221836596902, "target": 25, "source": 126}, {"weight": 12.407476817125051, "target": 26, "source": 127}, {"weight": 12.477820960942587, "target": 17, "source": 127}, {"weight": 14.954909329772994, "target": 28, "source": 129}, {"weight": 17.654751210322857, "target": 59, "source": 130}, {"weight": 15.298824154334062, "target": 156, "source": 130}, {"weight": 13.643918511831707, "target": 162, "source": 132}, {"weight": 12.250576464148914, "target": 84, "source": 133}, {"weight": 13.262503759708787, "target": 106, "source": 135}, {"weight": 12.532128746459318, "target": 132, "source": 135}, {"weight": 15.55159238678072, "target": 18, "source": 136}, {"weight": 12.101638052907479, "target": 29, "source": 136}, {"weight": 12.033914963322689, "target": 81, "source": 140}, {"weight": 15.238319056028468, "target": 33, "source": 140}, {"weight": 15.553163394317986, "target": 9, "source": 140}, {"weight": 12.025163356085848, "target": 7, "source": 143}, {"weight": 13.230893614410721, "target": 60, "source": 144}, {"weight": 13.938751348320572, "target": 15, "source": 144}, {"weight": 17.4977325099444, "target": 86, "source": 148}, {"weight": 15.295712388874483, "target": 59, "source": 148}, {"weight": 15.023568799393141, "target": 159, "source": 148}, {"weight": 14.297280231832929, "target": 156, "source": 148}, {"weight": 13.336863357229703, "target": 130, "source": 148}, {"weight": 17.05646680716358, "target": 100, "source": 150}, {"weight": 14.216953740281054, "target": 172, "source": 152}, {"weight": 12.7574538926619, "target": 112, "source": 153}, {"weight": 13.644692465273819, "target": 111, "source": 155}, {"weight": 14.436977028076198, "target": 42, "source": 155}, {"weight": 12.502219062650566, "target": 162, "source": 155}, {"weight": 12.67376961230892, "target": 63, "source": 156}, {"weight": 14.858446324694645, "target": 112, "source": 157}, {"weight": 13.078381403580456, "target": 41, "source": 158}, {"weight": 12.632472700722209, "target": 87, "source": 161}, {"weight": 13.939384872612875, "target": 137, "source": 161}, {"weight": 14.744800817242124, "target": 44, "source": 161}, {"weight": 12.461574056810434, "target": 2, "source": 161}, {"weight": 14.28784052646963, "target": 15, "source": 161}, {"weight": 12.089452967863847, "target": 139, "source": 161}, {"weight": 12.069914149163788, "target": 90, "source": 161}, {"weight": 12.385810952802874, "target": 24, "source": 161}, {"weight": 13.883326584230973, "target": 92, "source": 161}, {"weight": 12.270047094387097, "target": 93, "source": 161}, {"weight": 12.759082503866681, "target": 95, "source": 161}, {"weight": 12.666702990250403, "target": 10, "source": 161}, {"weight": 12.569801279745013, "target": 165, "source": 161}, {"weight": 12.663245684186165, "target": 146, "source": 161}, {"weight": 14.390111339638956, "target": 14, "source": 161}, {"weight": 14.65047484450326, "target": 56, "source": 161}, {"weight": 12.023749613623407, "target": 158, "source": 161}, {"weight": 15.237238338004145, "target": 147, "source": 161}, {"weight": 13.249653169850655, "target": 12, "source": 161}, {"weight": 12.447934531746053, "target": 16, "source": 161}, {"weight": 13.110274753706367, "target": 40, "source": 161}, {"weight": 13.19699717768678, "target": 61, "source": 161}, {"weight": 15.358933691049375, "target": 18, "source": 161}, {"weight": 12.880662673738893, "target": 13, "source": 161}, {"weight": 12.135846308048848, "target": 151, "source": 161}, {"weight": 13.048442218628182, "target": 152, "source": 161}, {"weight": 13.83502268669325, "target": 155, "source": 161}, {"weight": 14.306337650393468, "target": 99, "source": 161}, {"weight": 14.325928188137, "target": 46, "source": 161}, {"weight": 12.064515852402314, "target": 162, "source": 161}, {"weight": 12.896543214504337, "target": 116, "source": 161}, {"weight": 13.19102806791729, "target": 117, "source": 161}, {"weight": 13.658576178521715, "target": 118, "source": 161}, {"weight": 12.355009246234992, "target": 26, "source": 161}, {"weight": 13.551884884874184, "target": 28, "source": 161}, {"weight": 12.39946768718986, "target": 141, "source": 161}, {"weight": 12.021301266622324, "target": 73, "source": 161}, {"weight": 12.466512400676796, "target": 31, "source": 161}, {"weight": 12.90292742400976, "target": 122, "source": 161}, {"weight": 12.272076277104357, "target": 163, "source": 161}, {"weight": 15.321187590078457, "target": 38, "source": 161}, {"weight": 12.65790520796266, "target": 127, "source": 161}, {"weight": 14.738856236776103, "target": 135, "source": 161}, {"weight": 12.306160732248324, "target": 128, "source": 161}, {"weight": 13.029343196362566, "target": 129, "source": 161}, {"weight": 12.714459353621068, "target": 58, "source": 161}, {"weight": 15.147281477618852, "target": 114, "source": 161}, {"weight": 12.248297455202167, "target": 175, "source": 161}, {"weight": 14.66184230723046, "target": 82, "source": 161}, {"weight": 12.327549137707768, "target": 132, "source": 161}, {"weight": 14.245482801838783, "target": 100, "source": 161}, {"weight": 13.478640640904272, "target": 60, "source": 161}, {"weight": 12.329749128779937, "target": 172, "source": 161}, {"weight": 12.816040611461894, "target": 42, "source": 161}, {"weight": 15.156509425254198, "target": 138, "source": 163}, {"weight": 14.040239833703266, "target": 75, "source": 167}, {"weight": 13.001313159058881, "target": 37, "source": 167}, {"weight": 13.625137896994438, "target": 72, "source": 168}, {"weight": 15.08617761883397, "target": 0, "source": 169}, {"weight": 14.089310749750938, "target": 94, "source": 169}, {"weight": 15.097887587884811, "target": 84, "source": 170}, {"weight": 14.554905904596279, "target": 126, "source": 171}, {"weight": 14.664799110854652, "target": 3, "source": 172}, {"weight": 16.865668785534893, "target": 149, "source": 173}, {"weight": 12.458405330266654, "target": 101, "source": 175}, {"weight": 12.153467229354831, "target": 120, "source": 176}, {"weight": 12.409764276100324, "target": 48, "source": 178}], "multigraph": false, "graph": {}}
{"nodes": [{"id": "euID7", "name": "euID7"}, {"id": "infoSourcePaper", "name": "infoSourcePaper"}, {"id": "effectsEUTrade", "name": "effectsEUTrade"}, {"id": "EUIntegrationGreen", "name": "EUIntegrationGreen"}, {"id": "likeGrn", "name": "likeGrn"}, {"id": "reasonForVote", "name": "reasonForVote"}, {"id": "profile_past_vote_2015", "name": "profile_past_vote_2015"}, {"id": "pidRuinDay", "name": "pidRuinDay"}, {"id": "likeDavis", "name": "likeDavis"}, {"id": "pidMyParty", "name": "pidMyParty"}, {"id": "euPriorityBalance", "name": "euPriorityBalance"}, {"id": "gender", "name": "gender"}, {"id": "likeCorbyn", "name": "likeCorbyn"}, {"id": "effectsEUImmigration", "name": "effectsEUImmigration"}, {"id": "participation_5", "name": "participation_5"}, {"id": "natSecurityCon", "name": "natSecurityCon"}, {"id": "al1", "name": "al1"}, {"id": "euLeaveScotIndep", "name": "euLeaveScotIndep"}, {"id": "partyContact1", "name": "partyContact1"}, {"id": "generalElectionVote", "name": "generalElectionVote"}, {"id": "ptvLD", "name": "ptvLD"}, {"id": "pidCommonParty", "name": "pidCommonParty"}, {"id": "partyContactLab_5", "name": "partyContactLab_5"}, {"id": "infoSourceInternet", "name": "infoSourceInternet"}, {"id": "conUnited", "name": "conUnited"}, {"id": "profile_household_children", "name": "profile_household_children"}, {"id": "effectsEUUnemployment", "name": "effectsEUUnemployment"}, {"id": "partyContactLab_6", "name": "partyContactLab_6"}, {"id": "likeLucas", "name": "likeLucas"}, {"id": "pContactEday_99", "name": "pContactEday_99"}, {"id": "pidConnected", "name": "pidConnected"}, {"id": "effectsEUWorkers", "name": "effectsEUWorkers"}, {"id": "infoSourcePeople", "name": "infoSourcePeople"}, {"id": "pidPraiseGood", "name": "pidPraiseGood"}, {"id": "competentFarron", "name": "competentFarron"}, {"id": "participation_4", "name": "participation_4"}, {"id": "partyId", "name": "partyId"}, {"id": "studentsMore", "name": "studentsMore"}, {"id": "likeUKIP", "name": "likeUKIP"}, {"id": "partyContactOtherParty", "name": "partyContactOtherParty"}, {"id": "likeBoris", "name": "likeBoris"}, {"id": "redistLab", "name": "redistLab"}, {"id": "lr4", "name": "lr4"}, {"id": "euMore", "name": "euMore"}, {"id": "handleEUNegotiate", "name": "handleEUNegotiate"}, {"id": "redistCon", "name": "redistCon"}, {"id": "asylumMore", "name": "asylumMore"}, {"id": "profile_turnout_2015", "name": "profile_turnout_2015"}, {"id": "ukipUnited", "name": "ukipUnited"}, {"id": "participation_2", "name": "participation_2"}, {"id": "euID2", "name": "euID2"}, {"id": "leftRight", "name": "leftRight"}, {"id": "pContactEday_10", "name": "pContactEday_10"}, {"id": "euID3", "name": "euID3"}, {"id": "likeRudd", "name": "likeRudd"}, {"id": "al_scale", "name": "al_scale"}, {"id": "EUIntegrationSelf", "name": "EUIntegrationSelf"}, {"id": "negotiationSpecifics_1", "name": "negotiationSpecifics_1"}, {"id": "labUnited", "name": "labUnited"}, {"id": "personality_openness", "name": "personality_openness"}, {"id": "natSecurityLab", "name": "natSecurityLab"}, {"id": "polAttention", "name": "polAttention"}, {"id": "anyUni", "name": "anyUni"}, {"id": "disability", "name": "disability"}, {"id": "partyContactLD", "name": "partyContactLD"}, {"id": "satDemEng", "name": "satDemEng"}, {"id": "participation_3", "name": "participation_3"}, {"id": "profile_education_age", "name": "profile_education_age"}, {"id": "negotiationSpecifics_3", "name": "negotiationSpecifics_3"}, {"id": "education", "name": "education"}, {"id": "age", "name": "age"}, {"id": "regretsIHaveAFew", "name": "regretsIHaveAFew"}, {"id": "profile_eurefvote", "name": "profile_eurefvote"}, {"id": "competentMay", "name": "competentMay"}, {"id": "likeMay", "name": "likeMay"}, {"id": "noneuMore", "name": "noneuMore"}, {"id": "effectsEUTerror", "name": "effectsEUTerror"}, {"id": "euLeaveVoice", "name": "euLeaveVoice"}, {"id": "partyContactGrn", "name": "partyContactGrn"}, {"id": "marital", "name": "marital"}, {"id": "negotiationSpecifics_2", "name": "negotiationSpecifics_2"}, {"id": "pidInterestedOthers", "name": "pidInterestedOthers"}, {"id": "ptvUKIP", "name": "ptvUKIP"}, {"id": "al4", "name": "al4"}, {"id": "likeLD", "name": "likeLD"}, {"id": "al2", "name": "al2"}, {"id": "housing", "name": "housing"}, {"id": "redistGreen", "name": "redistGreen"}, {"id": "al3", "name": "al3"}, {"id": "euRefTurnoutRetro", "name": "euRefTurnoutRetro"}, {"id": "effectsEUEcon", "name": "effectsEUEcon"}, {"id": "competentCorbyn", "name": "competentCorbyn"}, {"id": "EUIntegrationCon", "name": "EUIntegrationCon"}, {"id": "natSecurityLD", "name": "natSecurityLD"}, {"id": "euID6", "name": "euID6"}, {"id": "immigCultural", "name": "immigCultural"}, {"id": "partyContactCon", "name": "partyContactCon"}, {"id": "infoSourceTV", "name": "infoSourceTV"}, {"id": "effectsEUNHS", "name": "effectsEUNHS"}, {"id": "euRefDoOver", "name": "euRefDoOver"}, {"id": "likeLab", "name": "likeLab"}, {"id": "redistUKIP", "name": "redistUKIP"}, {"id": "profile_religion", "name": "profile_religion"}, {"id": "satDemUK", "name": "satDemUK"}, {"id": "partyContactLab_7", "name": "partyContactLab_7"}, {"id": "profile_newspaper", "name": "profile_newspaper"}, {"id": "lr_scale", "name": "lr_scale"}, {"id": "likeSturgeon", "name": "likeSturgeon"}, {"id": "country", "name": "country"}, {"id": "effectsEUFinance", "name": "effectsEUFinance"}, {"id": "ldUnited", "name": "ldUnited"}, {"id": "lr5", "name": "lr5"}, {"id": "partyContactLab", "name": "partyContactLab"}, {"id": "partyContactLab_4", "name": "partyContactLab_4"}, {"id": "euRefVote", "name": "euRefVote"}, {"id": "econPersonalRetro", "name": "econPersonalRetro"}, {"id": "econGenRetro", "name": "econGenRetro"}, {"id": "electionInterest", "name": "electionInterest"}, {"id": "integrityMay", "name": "integrityMay"}, {"id": "voteMethoda", "name": "voteMethoda"}, {"id": "partyContactNone", "name": "partyContactNone"}, {"id": "participation_1", "name": "participation_1"}, {"id": "policeCuts", "name": "policeCuts"}, {"id": "partyContactUKIP", "name": "partyContactUKIP"}, {"id": "competentFarage", "name": "competentFarage"}, {"id": "partyContactLab_1", "name": "partyContactLab_1"}, {"id": "profile_work_stat", "name": "profile_work_stat"}, {"id": "euLeaveBigBusiness", "name": "euLeaveBigBusiness"}, {"id": "natSecurityUKIP", "name": "natSecurityUKIP"}, {"id": "competentLucas", "name": "competentLucas"}, {"id": "personality_agreeableness", "name": "personality_agreeableness"}, {"id": "ptvGrn", "name": "ptvGrn"}, {"id": "lr1", "name": "lr1"}, {"id": "likeSNP", "name": "likeSNP"}, {"id": "immigEcon", "name": "immigEcon"}, {"id": "redistSelf", "name": "redistSelf"}, {"id": "partyContactDK", "name": "partyContactDK"}, {"id": "likeNuttall", "name": "likeNuttall"}, {"id": "beliefTradeoff", "name": "beliefTradeoff"}, {"id": "blackEquality", "name": "blackEquality"}, {"id": "pidWeThey", "name": "pidWeThey"}, {"id": "al5", "name": "al5"}, {"id": "profile_ethnicity", "name": "profile_ethnicity"}, {"id": "pidCriticiseParty", "name": "pidCriticiseParty"}, {"id": "natSecuritySelf", "name": "natSecuritySelf"}, {"id": "personality_extraversion", "name": "personality_extraversion"}, {"id": "integrityCorbyn", "name": "integrityCorbyn"}, {"id": "negotiationSpecifics_none", "name": "negotiationSpecifics_none"}, {"id": "countryOfBirth", "name": "countryOfBirth"}, {"id": "ptvCon", "name": "ptvCon"}, {"id": "ptvLab", "name": "ptvLab"}, {"id": "expectAccess", "name": "expectAccess"}, {"id": "EUIntegrationLab", "name": "EUIntegrationLab"}, {"id": "partyContactLab_3", "name": "partyContactLab_3"}, {"id": "profile_gross_personal", "name": "profile_gross_personal"}, {"id": "lr2", "name": "lr2"}, {"id": "personality_conscientiousness", "name": "personality_conscientiousness"}, {"id": "partyContactLab_2", "name": "partyContactLab_2"}, {"id": "redistLD", "name": "redistLD"}, {"id": "personality_neuroticism", "name": "personality_neuroticism"}, {"id": "edlevel", "name": "edlevel"}, {"id": "bestOnMII", "name": "bestOnMII"}, {"id": "lr3", "name": "lr3"}, {"id": "prefTradeoff", "name": "prefTradeoff"}, {"id": "partyIdStrength", "name": "partyIdStrength"}, {"id": "EUIntegrationUKIP", "name": "EUIntegrationUKIP"}, {"id": "headHouseholdPast", "name": "headHouseholdPast"}, {"id": "familiesMore", "name": "familiesMore"}, {"id": "profile_eurefturnout", "name": "profile_eurefturnout"}, {"id": "euID4", "name": "euID4"}, {"id": "likeFarron", "name": "likeFarron"}, {"id": "profile_marital_stat", "name": "profile_marital_stat"}, {"id": "EUIntegrationLD", "name": "EUIntegrationLD"}, {"id": "likeCon", "name": "likeCon"}, {"id": "genElecTurnoutRetro", "name": "genElecTurnoutRetro"}, {"id": "natSecurityGrn", "name": "natSecurityGrn"}, {"id": "gor", "name": "gor"}, {"id": "profile_socialgrade_cie", "name": "profile_socialgrade_cie"}, {"id": "grnUnited", "name": "grnUnited"}], "directed": true, "links": [{"weight": 12.903917570937113, "target": 53, "source": 0}, {"weight": 15.48413196123524, "target": 94, "source": 0}, {"weight": 12.406382519944838, "target": 90, "source": 2}, {"weight": 15.0416512567822, "target": 77, "source": 2}, {"weight": 16.161565288646585, "target": 131, "source": 4}, {"weight": 12.29334449759042, "target": 74, "source": 5}, {"weight": 12.198684311512812, "target": 119, "source": 5}, {"weight": 12.340668828815378, "target": 149, "source": 5}, {"weight": 15.1726560438913, "target": 174, "source": 6}, {"weight": 13.607707004969386, "target": 72, "source": 6}, {"weight": 15.173753099602182, "target": 108, "source": 6}, {"weight": 13.278307434256304, "target": 124, "source": 6}, {"weight": 15.694997452010186, "target": 19, "source": 6}, {"weight": 13.657448754103699, "target": 40, "source": 8}, {"weight": 12.818955626457912, "target": 7, "source": 9}, {"weight": 12.899144416715655, "target": 26, "source": 13}, {"weight": 12.150061237297539, "target": 127, "source": 13}, {"weight": 12.964213683550598, "target": 76, "source": 13}, {"weight": 14.624664280090927, "target": 128, "source": 15}, {"weight": 12.04626549889062, "target": 88, "source": 16}, {"weight": 14.514638593086264, "target": 157, "source": 19}, {"weight": 15.693510278838252, "target": 91, "source": 19}, {"weight": 16.008189762671513, "target": 112, "source": 19}, {"weight": 15.370991730367054, "target": 113, "source": 19}, {"weight": 16.083671073735857, "target": 89, "source": 19}, {"weight": 14.585994119039512, "target": 47, "source": 19}, {"weight": 16.510293372447826, "target": 5, "source": 19}, {"weight": 15.39791545605456, "target": 168, "source": 19}, {"weight": 14.968227932436717, "target": 119, "source": 19}, {"weight": 16.5052208782906, "target": 27, "source": 19}, {"weight": 13.469001128919391, "target": 8, "source": 19}, {"weight": 13.842962163240822, "target": 64, "source": 19}, {"weight": 14.124270299324042, "target": 54, "source": 19}, {"weight": 14.439599285357088, "target": 34, "source": 19}, {"weight": 15.499289762625272, "target": 161, "source": 19}, {"weight": 13.614914377679323, "target": 170, "source": 19}, {"weight": 16.178372456089164, "target": 74, "source": 19}, {"weight": 12.616030652880646, "target": 123, "source": 19}, {"weight": 13.886333609502353, "target": 78, "source": 19}, {"weight": 15.264729657885711, "target": 149, "source": 19}, {"weight": 13.705151926941289, "target": 131, "source": 19}, {"weight": 13.694178117172873, "target": 20, "source": 19}, {"weight": 15.321538987197952, "target": 107, "source": 19}, {"weight": 14.517185985016113, "target": 133, "source": 19}, {"weight": 15.994863612946626, "target": 22, "source": 19}, {"weight": 15.072965250572588, "target": 153, "source": 19}, {"weight": 12.575044297156415, "target": 100, "source": 20}, {"weight": 12.194574633444285, "target": 131, "source": 20}, {"weight": 13.206350972056887, "target": 150, "source": 20}, {"weight": 12.225620795505654, "target": 169, "source": 21}, {"weight": 13.04118500147094, "target": 1, "source": 23}, {"weight": 13.224566528930428, "target": 32, "source": 23}, {"weight": 13.972988354511617, "target": 58, "source": 24}, {"weight": 12.000120698816628, "target": 76, "source": 26}, {"weight": 13.559575934276635, "target": 22, "source": 27}, {"weight": 13.417215985842349, "target": 170, "source": 28}, {"weight": 12.928162138991059, "target": 107, "source": 28}, {"weight": 14.330683315564025, "target": 4, "source": 28}, {"weight": 15.211328617014969, "target": 112, "source": 29}, {"weight": 12.234561651616898, "target": 96, "source": 29}, {"weight": 13.46116537927079, "target": 98, "source": 31}, {"weight": 14.240818562488146, "target": 30, "source": 33}, {"weight": 12.607902192781118, "target": 143, "source": 33}, {"weight": 12.562263928572477, "target": 81, "source": 33}, {"weight": 14.14679527382282, "target": 9, "source": 33}, {"weight": 14.167969670031866, "target": 170, "source": 34}, {"weight": 12.754171086208595, "target": 73, "source": 34}, {"weight": 15.161229771700308, "target": 91, "source": 34}, {"weight": 15.104679227119833, "target": 129, "source": 34}, {"weight": 14.408254578310322, "target": 66, "source": 35}, {"weight": 12.35300885018145, "target": 39, "source": 35}, {"weight": 14.717704269962924, "target": 84, "source": 36}, {"weight": 14.946305859518874, "target": 161, "source": 36}, {"weight": 12.655474263285047, "target": 4, "source": 36}, {"weight": 15.349880920183688, "target": 5, "source": 36}, {"weight": 15.63076062769242, "target": 140, "source": 36}, {"weight": 15.939300306782433, "target": 49, "source": 36}, {"weight": 12.448855838512614, "target": 30, "source": 36}, {"weight": 15.307545311704912, "target": 121, "source": 36}, {"weight": 12.570878545634482, "target": 41, "source": 36}, {"weight": 13.439676590168233, "target": 51, "source": 36}, {"weight": 18.09112590823469, "target": 6, "source": 36}, {"weight": 14.019832960825298, "target": 9, "source": 36}, {"weight": 14.182485356273151, "target": 96, "source": 36}, {"weight": 14.009726288081067, "target": 143, "source": 36}, {"weight": 16.641482850210267, "target": 150, "source": 36}, {"weight": 14.75341879713619, "target": 33, "source": 36}, {"weight": 16.01626170076043, "target": 173, "source": 36}, {"weight": 17.116973954785024, "target": 164, "source": 36}, {"weight": 16.141955959168165, "target": 125, "source": 36}, {"weight": 14.22969459629605, "target": 7, "source": 36}, {"weight": 15.593236030674268, "target": 19, "source": 36}, {"weight": 15.368255834990775, "target": 104, "source": 36}, {"weight": 14.769352863903324, "target": 81, "source": 36}, {"weight": 12.731509548639776, "target": 106, "source": 36}, {"weight": 15.167796652392974, "target": 105, "source": 36}, {"weight": 12.203773402440453, "target": 21, "source": 36}, {"weight": 14.769869410795836, "target": 136, "source": 36}, {"weight": 12.451883365956604, "target": 137, "source": 38}, {"weight": 17.31667035607832, "target": 82, "source": 38}, {"weight": 12.511589052951198, "target": 29, "source": 39}, {"weight": 15.383882196096694, "target": 118, "source": 40}, {"weight": 12.819323552428557, "target": 135, "source": 41}, {"weight": 12.6415257661916, "target": 162, "source": 42}, {"weight": 13.12381933376762, "target": 37, "source": 43}, {"weight": 13.777402337348608, "target": 74, "source": 44}, {"weight": 12.842841801053764, "target": 158, "source": 45}, {"weight": 12.872230494650697, "target": 135, "source": 45}, {"weight": 15.389873978609005, "target": 101, "source": 45}, {"weight": 14.77581230093095, "target": 95, "source": 46}, {"weight": 15.661319561826433, "target": 167, "source": 46}, {"weight": 13.192831376956846, "target": 75, "source": 46}, {"weight": 14.908158569511867, "target": 112, "source": 52}, {"weight": 13.904439489158475, "target": 120, "source": 52}, {"weight": 15.533934450025745, "target": 29, "source": 52}, {"weight": 12.606808004120902, "target": 50, "source": 53}, {"weight": 13.172387545156448, "target": 40, "source": 54}, {"weight": 17.77432241725358, "target": 8, "source": 54}, {"weight": 14.698894998845335, "target": 83, "source": 55}, {"weight": 12.66532667454938, "target": 88, "source": 55}, {"weight": 15.274080547162265, "target": 16, "source": 55}, {"weight": 15.114842995191102, "target": 141, "source": 55}, {"weight": 13.495261310382512, "target": 10, "source": 56}, {"weight": 13.13366606713206, "target": 38, "source": 56}, {"weight": 12.426033704715497, "target": 147, "source": 57}, {"weight": 14.574188883598175, "target": 145, "source": 59}, {"weight": 13.710599097199546, "target": 156, "source": 59}, {"weight": 12.164811200887716, "target": 15, "source": 60}, {"weight": 16.57060942088173, "target": 93, "source": 60}, {"weight": 15.602537868097025, "target": 117, "source": 61}, {"weight": 13.710526397414919, "target": 25, "source": 63}, {"weight": 12.185229908479805, "target": 160, "source": 67}, {"weight": 12.275550821330977, "target": 62, "source": 67}, {"weight": 14.882609585760806, "target": 57, "source": 68}, {"weight": 16.975677620199576, "target": 67, "source": 69}, {"weight": 12.851483699871302, "target": 11, "source": 69}, {"weight": 14.204659605168073, "target": 29, "source": 69}, {"weight": 17.24380266619341, "target": 62, "source": 69}, {"weight": 12.980138787776289, "target": 67, "source": 70}, {"weight": 16.874650084118315, "target": 174, "source": 71}, {"weight": 13.102883324563685, "target": 91, "source": 73}, {"weight": 16.846113954990713, "target": 173, "source": 74}, {"weight": 12.496980687851464, "target": 118, "source": 74}, {"weight": 15.927968464588274, "target": 43, "source": 75}, {"weight": 13.385532708857987, "target": 90, "source": 77}, {"weight": 13.002757451620715, "target": 63, "source": 79}, {"weight": 12.939807696231254, "target": 145, "source": 79}, {"weight": 14.798015156873488, "target": 70, "source": 79}, {"weight": 14.34355510547458, "target": 57, "source": 80}, {"weight": 12.361190557363722, "target": 147, "source": 80}, {"weight": 18.075557592308503, "target": 68, "source": 80}, {"weight": 12.186628644387527, "target": 50, "source": 81}, {"weight": 12.018978503318078, "target": 143, "source": 81}, {"weight": 13.567347266702976, "target": 100, "source": 84}, {"weight": 16.297290462237527, "target": 20, "source": 84}, {"weight": 12.022034445127373, "target": 46, "source": 85}, {"weight": 16.801403656424256, "target": 55, "source": 85}, {"weight": 12.104556224734104, "target": 130, "source": 86}, {"weight": 13.629278907043476, "target": 63, "source": 86}, {"weight": 14.165910330343554, "target": 126, "source": 86}, {"weight": 13.827964150252237, "target": 154, "source": 86}, {"weight": 12.24289280456893, "target": 166, "source": 86}, {"weight": 13.880138279575963, "target": 25, "source": 86}, {"weight": 15.95464159290452, "target": 158, "source": 87}, {"weight": 13.802146192096126, "target": 41, "source": 87}, {"weight": 15.992739717935903, "target": 168, "source": 89}, {"weight": 13.939667738884758, "target": 31, "source": 90}, {"weight": 12.590748184630609, "target": 98, "source": 90}, {"weight": 12.538119160045696, "target": 109, "source": 90}, {"weight": 12.07995881251211, "target": 150, "source": 91}, {"weight": 12.598457505015238, "target": 12, "source": 91}, {"weight": 17.63151032980594, "target": 146, "source": 91}, {"weight": 13.600862989119328, "target": 129, "source": 91}, {"weight": 14.94445433027847, "target": 165, "source": 92}, {"weight": 13.27535921488208, "target": 152, "source": 92}, {"weight": 14.964402885406864, "target": 175, "source": 93}, {"weight": 16.15698109298416, "target": 134, "source": 95}, {"weight": 12.110817623029577, "target": 167, "source": 95}, {"weight": 13.14405675535449, "target": 1, "source": 97}, {"weight": 13.6415699337247, "target": 23, "source": 97}, {"weight": 15.160897692723248, "target": 12, "source": 100}, {"weight": 13.079319745886496, "target": 87, "source": 101}, {"weight": 14.356931074675773, "target": 142, "source": 102}, {"weight": 17.949544183114625, "target": 65, "source": 103}, {"weight": 12.22428615629626, "target": 27, "source": 104}, {"weight": 14.429589655624579, "target": 125, "source": 104}, {"weight": 15.707292640224251, "target": 112, "source": 104}, {"weight": 14.652920521441207, "target": 113, "source": 104}, {"weight": 15.275460036085674, "target": 153, "source": 104}, {"weight": 14.991432441422502, "target": 1, "source": 105}, {"weight": 12.429991798000499, "target": 85, "source": 105}, {"weight": 13.951284912855678, "target": 155, "source": 106}, {"weight": 13.728977339811276, "target": 42, "source": 106}, {"weight": 16.411694378394223, "target": 133, "source": 107}, {"weight": 16.553253138521377, "target": 79, "source": 108}, {"weight": 18.628890389882475, "target": 65, "source": 108}, {"weight": 17.26490210287482, "target": 148, "source": 108}, {"weight": 13.785897736846088, "target": 166, "source": 108}, {"weight": 14.015437741581561, "target": 102, "source": 108}, {"weight": 12.781383604787393, "target": 115, "source": 109}, {"weight": 13.070112026923153, "target": 58, "source": 110}, {"weight": 13.720530710092932, "target": 24, "source": 110}, {"weight": 14.558935536652719, "target": 178, "source": 110}, {"weight": 13.895689447026106, "target": 72, "source": 114}, {"weight": 15.729792808502006, "target": 56, "source": 114}, {"weight": 14.11354634455834, "target": 116, "source": 115}, {"weight": 16.924350686026834, "target": 73, "source": 118}, {"weight": 14.10327109221737, "target": 146, "source": 118}, {"weight": 14.388960934357339, "target": 34, "source": 118}, {"weight": 17.923619318923926, "target": 71, "source": 119}, {"weight": 12.647340469573654, "target": 79, "source": 119}, {"weight": 12.496849483420316, "target": 96, "source": 120}, {"weight": 12.37813442171935, "target": 104, "source": 120}, {"weight": 17.235751033378598, "target": 112, "source": 120}, {"weight": 15.476265888594826, "target": 29, "source": 120}, {"weight": 16.532885226775676, "target": 136, "source": 120}, {"weight": 13.52173818375903, "target": 14, "source": 121}, {"weight": 13.996352388736128, "target": 49, "source": 121}, {"weight": 12.471599549746392, "target": 139, "source": 122}, {"weight": 12.846042573056236, "target": 112, "source": 125}, {"weight": 14.231160314991603, "target": 154, "source": 126}, {"weight": 13.84485826834954, "target": 69, "source": 126}, {"weight": 17.589189285309693, "target": 70, "source": 126}, {"weight": 14.120682803743573, "target": 177, "source": 126}, {"weight": 15.465221836596902, "target": 25, "source": 126}, {"weight": 12.407476817125051, "target": 26, "source": 127}, {"weight": 12.477820960942587, "target": 17, "source": 127}, {"weight": 14.954909329772994, "target": 28, "source": 129}, {"weight": 17.654751210322857, "target": 59, "source": 130}, {"weight": 15.298824154334062, "target": 156, "source": 130}, {"weight": 13.643918511831707, "target": 162, "source": 132}, {"weight": 12.250576464148914, "target": 84, "source": 133}, {"weight": 13.262503759708787, "target": 106, "source": 135}, {"weight": 12.532128746459318, "target": 132, "source": 135}, {"weight": 15.55159238678072, "target": 18, "source": 136}, {"weight": 12.101638052907479, "target": 29, "source": 136}, {"weight": 12.033914963322689, "target": 81, "source": 140}, {"weight": 15.238319056028468, "target": 33, "source": 140}, {"weight": 15.553163394317986, "target": 9, "source": 140}, {"weight": 12.025163356085848, "target": 7, "source": 143}, {"weight": 13.230893614410721, "target": 60, "source": 144}, {"weight": 13.938751348320572, "target": 15, "source": 144}, {"weight": 17.4977325099444, "target": 86, "source": 148}, {"weight": 15.295712388874483, "target": 59, "source": 148}, {"weight": 15.023568799393141, "target": 159, "source": 148}, {"weight": 14.297280231832929, "target": 156, "source": 148}, {"weight": 13.336863357229703, "target": 130, "source": 148}, {"weight": 17.05646680716358, "target": 100, "source": 150}, {"weight": 14.216953740281054, "target": 172, "source": 152}, {"weight": 12.7574538926619, "target": 112, "source": 153}, {"weight": 13.644692465273819, "target": 111, "source": 155}, {"weight": 14.436977028076198, "target": 42, "source": 155}, {"weight": 12.502219062650566, "target": 162, "source": 155}, {"weight": 12.67376961230892, "target": 63, "source": 156}, {"weight": 14.858446324694645, "target": 112, "source": 157}, {"weight": 13.078381403580456, "target": 41, "source": 158}, {"weight": 12.632472700722209, "target": 87, "source": 161}, {"weight": 13.939384872612875, "target": 137, "source": 161}, {"weight": 14.744800817242124, "target": 44, "source": 161}, {"weight": 12.461574056810434, "target": 2, "source": 161}, {"weight": 14.28784052646963, "target": 15, "source": 161}, {"weight": 12.089452967863847, "target": 139, "source": 161}, {"weight": 12.069914149163788, "target": 90, "source": 161}, {"weight": 12.385810952802874, "target": 24, "source": 161}, {"weight": 13.883326584230973, "target": 92, "source": 161}, {"weight": 12.270047094387097, "target": 93, "source": 161}, {"weight": 12.759082503866681, "target": 95, "source": 161}, {"weight": 12.666702990250403, "target": 10, "source": 161}, {"weight": 12.569801279745013, "target": 165, "source": 161}, {"weight": 12.663245684186165, "target": 146, "source": 161}, {"weight": 14.390111339638956, "target": 14, "source": 161}, {"weight": 14.65047484450326, "target": 56, "source": 161}, {"weight": 12.023749613623407, "target": 158, "source": 161}, {"weight": 15.237238338004145, "target": 147, "source": 161}, {"weight": 13.249653169850655, "target": 12, "source": 161}, {"weight": 12.447934531746053, "target": 16, "source": 161}, {"weight": 13.110274753706367, "target": 40, "source": 161}, {"weight": 13.19699717768678, "target": 61, "source": 161}, {"weight": 15.358933691049375, "target": 18, "source": 161}, {"weight": 12.880662673738893, "target": 13, "source": 161}, {"weight": 12.135846308048848, "target": 151, "source": 161}, {"weight": 13.048442218628182, "target": 152, "source": 161}, {"weight": 13.83502268669325, "target": 155, "source": 161}, {"weight": 14.306337650393468, "target": 99, "source": 161}, {"weight": 14.325928188137, "target": 46, "source": 161}, {"weight": 12.064515852402314, "target": 162, "source": 161}, {"weight": 12.896543214504337, "target": 116, "source": 161}, {"weight": 13.19102806791729, "target": 117, "source": 161}, {"weight": 13.658576178521715, "target": 118, "source": 161}, {"weight": 12.355009246234992, "target": 26, "source": 161}, {"weight": 13.551884884874184, "target": 28, "source": 161}, {"weight": 12.39946768718986, "target": 141, "source": 161}, {"weight": 12.021301266622324, "target": 73, "source": 161}, {"weight": 12.466512400676796, "target": 31, "source": 161}, {"weight": 12.90292742400976, "target": 122, "source": 161}, {"weight": 12.272076277104357, "target": 163, "source": 161}, {"weight": 15.321187590078457, "target": 38, "source": 161}, {"weight": 12.65790520796266, "target": 127, "source": 161}, {"weight": 14.738856236776103, "target": 135, "source": 161}, {"weight": 12.306160732248324, "target": 128, "source": 161}, {"weight": 13.029343196362566, "target": 129, "source": 161}, {"weight": 12.714459353621068, "target": 58, "source": 161}, {"weight": 15.147281477618852, "target": 114, "source": 161}, {"weight": 12.248297455202167, "target": 175, "source": 161}, {"weight": 14.66184230723046, "target": 82, "source": 161}, {"weight": 12.327549137707768, "target": 132, "source": 161}, {"weight": 14.245482801838783, "target": 100, "source": 161}, {"weight": 13.478640640904272, "target": 60, "source": 161}, {"weight": 12.329749128779937, "target": 172, "source": 161}, {"weight": 12.816040611461894, "target": 42, "source": 161}, {"weight": 15.156509425254198, "target": 138, "source": 163}, {"weight": 14.040239833703266, "target": 75, "source": 167}, {"weight": 13.001313159058881, "target": 37, "source": 167}, {"weight": 13.625137896994438, "target": 72, "source": 168}, {"weight": 15.08617761883397, "target": 0, "source": 169}, {"weight": 14.089310749750938, "target": 94, "source": 169}, {"weight": 15.097887587884811, "target": 84, "source": 170}, {"weight": 14.554905904596279, "target": 126, "source": 171}, {"weight": 14.664799110854652, "target": 3, "source": 172}, {"weight": 16.865668785534893, "target": 149, "source": 173}, {"weight": 12.458405330266654, "target": 101, "source": 175}, {"weight": 12.153467229354831, "target": 120, "source": 176}, {"weight": 12.409764276100324, "target": 48, "source": 178}], "multigraph": false, "graph": {}}
{"directed": true, "links": [{"target": 81, "source": 0, "weight": 16.984365849933187}, {"target": 9, "source": 1, "weight": 16.9941715515839}, {"target": 196, "source": 1, "weight": 17.524108658258864}, {"target": 118, "source": 1, "weight": 17.283581145981035}, {"target": 140, "source": 1, "weight": 16.45414051929197}, {"target": 83, "source": 2, "weight": 17.08788337093005}, {"target": 173, "source": 2, "weight": 13.699509513168099}, {"target": 201, "source": 3, "weight": 13.042096902398534}, {"target": 31, "source": 3, "weight": 14.032917231768026}, {"target": 183, "source": 3, "weight": 13.1501559241401}, {"target": 151, "source": 5, "weight": 13.184623203040797}, {"target": 204, "source": 5, "weight": 13.669727129486493}, {"target": 143, "source": 5, "weight": 13.115963209160462}, {"target": 47, "source": 5, "weight": 13.796958072109316}, {"target": 178, "source": 5, "weight": 15.17190254419204}, {"target": 93, "source": 7, "weight": 13.231517767811471}, {"target": 25, "source": 7, "weight": 15.256885004596015}, {"target": 199, "source": 7, "weight": 13.950063161556395}, {"target": 73, "source": 7, "weight": 13.183993165313758}, {"target": 14, "source": 7, "weight": 15.881919189887524}, {"target": 208, "source": 7, "weight": 13.081392907246354}, {"target": 211, "source": 7, "weight": 13.016867131713216}, {"target": 117, "source": 7, "weight": 14.095387718479682}, {"target": 118, "source": 9, "weight": 16.129935758568614}, {"target": 200, "source": 10, "weight": 13.756656490750036}, {"target": 46, "source": 10, "weight": 15.133834170662254}, {"target": 161, "source": 11, "weight": 14.227560705769125}, {"target": 122, "source": 11, "weight": 14.454824074290041}, {"target": 87, "source": 12, "weight": 13.0393036615794}, {"target": 218, "source": 14, "weight": 15.421059325382188}, {"target": 102, "source": 15, "weight": 16.11480398946322}, {"target": 17, "source": 15, "weight": 13.970108049273392}, {"target": 215, "source": 15, "weight": 14.743624762698289}, {"target": 108, "source": 16, "weight": 14.568391279947127}, {"target": 141, "source": 17, "weight": 13.698994845503663}, {"target": 3, "source": 17, "weight": 13.500127070472267}, {"target": 31, "source": 17, "weight": 13.740249665110316}, {"target": 134, "source": 17, "weight": 13.043715566890814}, {"target": 126, "source": 17, "weight": 13.21425577690076}, {"target": 127, "source": 18, "weight": 14.39996849592655}, {"target": 125, "source": 18, "weight": 15.931605176318364}, {"target": 52, "source": 21, "weight": 15.914161816406622}, {"target": 28, "source": 21, "weight": 14.198758562440224}, {"target": 8, "source": 23, "weight": 13.620419745399907}, {"target": 210, "source": 23, "weight": 14.286368146598887}, {"target": 121, "source": 23, "weight": 14.707973889183288}, {"target": 96, "source": 23, "weight": 15.16421029976564}, {"target": 115, "source": 24, "weight": 14.576364068498435}, {"target": 219, "source": 24, "weight": 14.871424621098333}, {"target": 138, "source": 24, "weight": 14.998649249494843}, {"target": 218, "source": 25, "weight": 13.501250098806146}, {"target": 60, "source": 27, "weight": 13.07455019716581}, {"target": 81, "source": 27, "weight": 13.356054396992748}, {"target": 223, "source": 27, "weight": 13.614589229409034}, {"target": 137, "source": 28, "weight": 13.096265211904626}, {"target": 91, "source": 29, "weight": 13.961348656685672}, {"target": 214, "source": 29, "weight": 13.412875348966967}, {"target": 34, "source": 29, "weight": 13.875982991863193}, {"target": 114, "source": 29, "weight": 13.100368646317738}, {"target": 87, "source": 30, "weight": 14.571023575876627}, {"target": 21, "source": 31, "weight": 13.263204951033952}, {"target": 139, "source": 31, "weight": 15.348081096991786}, {"target": 134, "source": 31, "weight": 17.22783013587789}, {"target": 189, "source": 33, "weight": 14.413602712060747}, {"target": 170, "source": 33, "weight": 13.213741225831935}, {"target": 177, "source": 33, "weight": 13.198203402308618}, {"target": 159, "source": 33, "weight": 15.306033759479245}, {"target": 214, "source": 34, "weight": 13.276660273336766}, {"target": 23, "source": 34, "weight": 13.970467264468464}, {"target": 97, "source": 34, "weight": 13.185431335892874}, {"target": 210, "source": 34, "weight": 13.114458177858317}, {"target": 39, "source": 35, "weight": 15.777006640402181}, {"target": 209, "source": 36, "weight": 14.361989682063498}, {"target": 39, "source": 37, "weight": 13.733167179153138}, {"target": 224, "source": 38, "weight": 13.381218320915345}, {"target": 172, "source": 38, "weight": 13.017319220114539}, {"target": 228, "source": 38, "weight": 15.521009041159482}, {"target": 145, "source": 38, "weight": 13.773984342776124}, {"target": 23, "source": 40, "weight": 13.101470958200341}, {"target": 77, "source": 41, "weight": 13.111011133556119}, {"target": 131, "source": 41, "weight": 15.528513334622579}, {"target": 34, "source": 42, "weight": 13.987078707759874}, {"target": 79, "source": 42, "weight": 13.985909291125687}, {"target": 118, "source": 43, "weight": 13.055745631864376}, {"target": 205, "source": 43, "weight": 15.358068652051642}, {"target": 200, "source": 44, "weight": 15.117739690927728}, {"target": 52, "source": 44, "weight": 13.411053015175757}, {"target": 142, "source": 44, "weight": 13.611452622205244}, {"target": 71, "source": 44, "weight": 14.111942620912192}, {"target": 154, "source": 45, "weight": 13.836378780040954}, {"target": 90, "source": 45, "weight": 14.700917472975599}, {"target": 225, "source": 47, "weight": 15.614545047353463}, {"target": 151, "source": 47, "weight": 13.494451304778124}, {"target": 195, "source": 50, "weight": 14.637296103620503}, {"target": 18, "source": 50, "weight": 13.412824944789104}, {"target": 193, "source": 50, "weight": 13.010987166049198}, {"target": 169, "source": 50, "weight": 14.255548274600233}, {"target": 12, "source": 50, "weight": 13.866353332807526}, {"target": 220, "source": 51, "weight": 15.18570066836692}, {"target": 19, "source": 51, "weight": 13.50607555531335}, {"target": 200, "source": 52, "weight": 13.513113458288176}, {"target": 50, "source": 52, "weight": 13.131864452518812}, {"target": 168, "source": 52, "weight": 15.902135782598837}, {"target": 157, "source": 52, "weight": 14.070005032913993}, {"target": 68, "source": 53, "weight": 14.453867527980332}, {"target": 184, "source": 53, "weight": 13.138938944020598}, {"target": 182, "source": 53, "weight": 16.319597567526717}, {"target": 124, "source": 56, "weight": 17.004500533443043}, {"target": 58, "source": 56, "weight": 13.211552136108303}, {"target": 192, "source": 56, "weight": 16.526333062647463}, {"target": 111, "source": 56, "weight": 15.515747716027395}, {"target": 72, "source": 57, "weight": 14.872404977072101}, {"target": 112, "source": 58, "weight": 14.401211101440119}, {"target": 93, "source": 59, "weight": 14.315648118776721}, {"target": 81, "source": 59, "weight": 13.794439255226816}, {"target": 27, "source": 59, "weight": 14.212911484266442}, {"target": 53, "source": 62, "weight": 15.85987148153419}, {"target": 162, "source": 63, "weight": 13.850060255253247}, {"target": 221, "source": 63, "weight": 14.882374832445343}, {"target": 101, "source": 63, "weight": 13.143315860257857}, {"target": 181, "source": 64, "weight": 13.77844171623837}, {"target": 8, "source": 64, "weight": 13.234730818725769}, {"target": 190, "source": 65, "weight": 13.739608554907203}, {"target": 88, "source": 66, "weight": 13.473763488703746}, {"target": 74, "source": 67, "weight": 13.098834098072121}, {"target": 184, "source": 68, "weight": 16.747005487704804}, {"target": 135, "source": 69, "weight": 15.199723204276342}, {"target": 100, "source": 70, "weight": 14.516806262753128}, {"target": 222, "source": 70, "weight": 15.528477556495783}, {"target": 46, "source": 71, "weight": 14.102185502370155}, {"target": 157, "source": 71, "weight": 15.122910334645123}, {"target": 81, "source": 73, "weight": 13.07332939977883}, {"target": 27, "source": 73, "weight": 16.920966674769332}, {"target": 30, "source": 75, "weight": 14.762590072547193}, {"target": 87, "source": 75, "weight": 13.83631054184735}, {"target": 116, "source": 76, "weight": 16.459779871287786}, {"target": 91, "source": 78, "weight": 15.031502568858581}, {"target": 97, "source": 79, "weight": 13.068565577807828}, {"target": 55, "source": 80, "weight": 14.545979832304425}, {"target": 9, "source": 84, "weight": 16.200808647356574}, {"target": 43, "source": 84, "weight": 14.765588564293552}, {"target": 118, "source": 84, "weight": 16.852718358978585}, {"target": 205, "source": 84, "weight": 13.935165797242844}, {"target": 140, "source": 84, "weight": 15.57277547414252}, {"target": 19, "source": 85, "weight": 13.070001833448526}, {"target": 167, "source": 86, "weight": 15.56349968030585}, {"target": 144, "source": 86, "weight": 15.235055781614065}, {"target": 188, "source": 87, "weight": 16.82839321973391}, {"target": 155, "source": 88, "weight": 16.29770849114434}, {"target": 217, "source": 88, "weight": 16.70799665782561}, {"target": 154, "source": 90, "weight": 13.946246778392776}, {"target": 214, "source": 91, "weight": 15.318821582576565}, {"target": 114, "source": 91, "weight": 15.205188302893228}, {"target": 8, "source": 92, "weight": 13.995960802875885}, {"target": 60, "source": 93, "weight": 14.303612697547624}, {"target": 27, "source": 93, "weight": 13.836276436361567}, {"target": 81, "source": 93, "weight": 13.773318643716769}, {"target": 117, "source": 93, "weight": 14.363762420010204}, {"target": 74, "source": 94, "weight": 14.718265371683348}, {"target": 171, "source": 95, "weight": 13.987778925971371}, {"target": 126, "source": 95, "weight": 16.350237916009416}, {"target": 210, "source": 96, "weight": 13.705201705802294}, {"target": 121, "source": 96, "weight": 13.684314251764054}, {"target": 64, "source": 96, "weight": 15.142922499184998}, {"target": 49, "source": 97, "weight": 17.699155869234765}, {"target": 111, "source": 99, "weight": 13.789446871742012}, {"target": 56, "source": 99, "weight": 13.73818306507126}, {"target": 222, "source": 100, "weight": 14.297785267908955}, {"target": 176, "source": 101, "weight": 15.04665966908275}, {"target": 17, "source": 102, "weight": 14.130111709268549}, {"target": 141, "source": 102, "weight": 14.128959393256082}, {"target": 215, "source": 102, "weight": 15.895468765040395}, {"target": 174, "source": 102, "weight": 13.300959684067596}, {"target": 136, "source": 103, "weight": 14.331159114034818}, {"target": 61, "source": 103, "weight": 15.179456777209342}, {"target": 200, "source": 104, "weight": 13.443476730290161}, {"target": 44, "source": 104, "weight": 14.249512510302061}, {"target": 212, "source": 104, "weight": 16.104006145001435}, {"target": 165, "source": 106, "weight": 13.691292704723791}, {"target": 147, "source": 107, "weight": 13.749677406752262}, {"target": 99, "source": 109, "weight": 16.85720739599842}, {"target": 112, "source": 109, "weight": 13.99831313632119}, {"target": 124, "source": 111, "weight": 15.593234479974043}, {"target": 125, "source": 111, "weight": 13.433703869109783}, {"target": 1, "source": 111, "weight": 14.560950595630944}, {"target": 30, "source": 111, "weight": 13.526457829245217}, {"target": 37, "source": 111, "weight": 13.91615631097491}, {"target": 68, "source": 111, "weight": 13.31129671368333}, {"target": 154, "source": 111, "weight": 13.705486612115969}, {"target": 40, "source": 111, "weight": 13.685922636808078}, {"target": 222, "source": 111, "weight": 13.716213738255483}, {"target": 211, "source": 111, "weight": 14.051315570609074}, {"target": 191, "source": 111, "weight": 15.159357765702584}, {"target": 48, "source": 111, "weight": 13.136428039289498}, {"target": 144, "source": 111, "weight": 13.374075491088874}, {"target": 112, "source": 111, "weight": 14.131733717013416}, {"target": 115, "source": 111, "weight": 14.43416870302514}, {"target": 117, "source": 111, "weight": 13.327114346347113}, {"target": 80, "source": 111, "weight": 14.752097972091072}, {"target": 58, "source": 111, "weight": 16.11405006629886}, {"target": 199, "source": 111, "weight": 13.782679439140956}, {"target": 55, "source": 111, "weight": 13.14081131037685}, {"target": 62, "source": 111, "weight": 14.541471020391269}, {"target": 157, "source": 111, "weight": 13.337991761749471}, {"target": 62, "source": 112, "weight": 14.899083926528132}, {"target": 75, "source": 115, "weight": 13.71038134636742}, {"target": 7, "source": 115, "weight": 13.84104496349345}, {"target": 139, "source": 115, "weight": 13.041821643493211}, {"target": 158, "source": 119, "weight": 15.470955856607869}, {"target": 52, "source": 120, "weight": 13.802782090430611}, {"target": 142, "source": 120, "weight": 15.530610329818238}, {"target": 19, "source": 122, "weight": 17.345853559679657}, {"target": 85, "source": 122, "weight": 15.812198058331884}, {"target": 171, "source": 123, "weight": 13.552190812489854}, {"target": 146, "source": 124, "weight": 17.807800994491995}, {"target": 192, "source": 124, "weight": 14.133725335136006}, {"target": 127, "source": 125, "weight": 13.416411748127036}, {"target": 171, "source": 126, "weight": 16.32569037680183}, {"target": 123, "source": 126, "weight": 15.66152509390573}, {"target": 26, "source": 126, "weight": 15.210024672035242}, {"target": 164, "source": 126, "weight": 15.579297062917039}, {"target": 153, "source": 128, "weight": 14.600750200384674}, {"target": 72, "source": 129, "weight": 14.905830189764593}, {"target": 57, "source": 129, "weight": 14.296372100058967}, {"target": 24, "source": 129, "weight": 14.600581811543496}, {"target": 138, "source": 129, "weight": 13.825911265035085}, {"target": 113, "source": 130, "weight": 13.973084847703458}, {"target": 40, "source": 130, "weight": 13.269693576429331}, {"target": 87, "source": 131, "weight": 13.08643631149446}, {"target": 216, "source": 131, "weight": 16.182115646129763}, {"target": 24, "source": 131, "weight": 13.696989226458568}, {"target": 219, "source": 131, "weight": 14.60272341353992}, {"target": 187, "source": 131, "weight": 13.599044483840732}, {"target": 104, "source": 132, "weight": 16.157342327520638}, {"target": 120, "source": 132, "weight": 14.764455191067537}, {"target": 123, "source": 133, "weight": 13.6699416103509}, {"target": 99, "source": 133, "weight": 13.632585735103543}, {"target": 167, "source": 133, "weight": 13.446008483420066}, {"target": 80, "source": 134, "weight": 13.356395692801392}, {"target": 176, "source": 134, "weight": 13.11206420553194}, {"target": 131, "source": 134, "weight": 15.503441569472209}, {"target": 188, "source": 134, "weight": 13.542199725522456}, {"target": 55, "source": 134, "weight": 13.514418103518242}, {"target": 198, "source": 134, "weight": 13.179125403398396}, {"target": 220, "source": 134, "weight": 13.23924041141283}, {"target": 138, "source": 134, "weight": 13.997727617588783}, {"target": 139, "source": 134, "weight": 13.81659834281172}, {"target": 36, "source": 134, "weight": 13.448737389546482}, {"target": 151, "source": 134, "weight": 13.75210631256245}, {"target": 61, "source": 136, "weight": 13.297083569335069}, {"target": 67, "source": 136, "weight": 15.226570482835317}, {"target": 75, "source": 139, "weight": 14.91588526005307}, {"target": 9, "source": 140, "weight": 15.34528634826927}, {"target": 43, "source": 140, "weight": 13.374367734038401}, {"target": 118, "source": 140, "weight": 16.351131101236906}, {"target": 174, "source": 141, "weight": 14.668787024865235}, {"target": 10, "source": 142, "weight": 15.512009235694496}, {"target": 46, "source": 142, "weight": 13.320895923767154}, {"target": 10, "source": 143, "weight": 14.934349972514156}, {"target": 168, "source": 143, "weight": 13.733317556141127}, {"target": 47, "source": 143, "weight": 14.81478541346184}, {"target": 225, "source": 143, "weight": 13.221282167201391}, {"target": 224, "source": 145, "weight": 14.6790632798102}, {"target": 179, "source": 145, "weight": 14.152475403697945}, {"target": 98, "source": 145, "weight": 13.687193687820482}, {"target": 63, "source": 145, "weight": 13.530396881538906}, {"target": 32, "source": 147, "weight": 13.1223543734666}, {"target": 220, "source": 150, "weight": 14.791438287457588}, {"target": 77, "source": 150, "weight": 14.32089085831659}, {"target": 52, "source": 151, "weight": 13.219137562446186}, {"target": 132, "source": 151, "weight": 14.047308789326223}, {"target": 104, "source": 151, "weight": 13.56654511735373}, {"target": 120, "source": 151, "weight": 14.628995670667688}, {"target": 116, "source": 152, "weight": 13.901216207216406}, {"target": 79, "source": 156, "weight": 13.82376163300923}, {"target": 166, "source": 156, "weight": 16.699862525207163}, {"target": 42, "source": 156, "weight": 15.973724956317128}, {"target": 72, "source": 157, "weight": 14.475180565957288}, {"target": 153, "source": 159, "weight": 13.603372221417422}, {"target": 189, "source": 159, "weight": 14.25489212543811}, {"target": 170, "source": 159, "weight": 14.467173492329097}, {"target": 128, "source": 159, "weight": 14.23237220515888}, {"target": 107, "source": 160, "weight": 13.296139708463272}, {"target": 106, "source": 160, "weight": 14.195104136833212}, {"target": 147, "source": 160, "weight": 13.848308472568432}, {"target": 194, "source": 161, "weight": 16.121188932691794}, {"target": 98, "source": 162, "weight": 13.15146700835881}, {"target": 180, "source": 163, "weight": 13.899981619217016}, {"target": 34, "source": 166, "weight": 15.099617070662994}, {"target": 79, "source": 166, "weight": 13.91975301846638}, {"target": 42, "source": 166, "weight": 15.681422558481199}, {"target": 144, "source": 167, "weight": 15.006453997573132}, {"target": 200, "source": 168, "weight": 15.391936101630133}, {"target": 129, "source": 168, "weight": 14.513985294600216}, {"target": 157, "source": 168, "weight": 15.067910914705166}, {"target": 18, "source": 169, "weight": 15.193233434763416}, {"target": 127, "source": 169, "weight": 14.603181102773716}, {"target": 125, "source": 169, "weight": 14.10393054076852}, {"target": 186, "source": 172, "weight": 16.575714606170582}, {"target": 83, "source": 173, "weight": 17.262403485703267}, {"target": 83, "source": 175, "weight": 16.23273412267333}, {"target": 2, "source": 175, "weight": 15.707412809688329}, {"target": 173, "source": 175, "weight": 14.142265577277838}, {"target": 66, "source": 177, "weight": 13.465182407472046}, {"target": 137, "source": 177, "weight": 13.378013146973728}, {"target": 204, "source": 178, "weight": 15.549931928775987}, {"target": 143, "source": 178, "weight": 13.608368798529446}, {"target": 98, "source": 179, "weight": 13.947708873488846}, {"target": 92, "source": 180, "weight": 15.840501374076235}, {"target": 40, "source": 180, "weight": 14.113747158447072}, {"target": 4, "source": 181, "weight": 14.690894606512899}, {"target": 184, "source": 182, "weight": 17.260223291410846}, {"target": 105, "source": 183, "weight": 13.706167501658863}, {"target": 18, "source": 185, "weight": 13.876906828417962}, {"target": 50, "source": 185, "weight": 16.097944663379664}, {"target": 125, "source": 185, "weight": 13.003781489270205}, {"target": 195, "source": 185, "weight": 13.376753050329661}, {"target": 169, "source": 185, "weight": 15.543036643424973}, {"target": 72, "source": 187, "weight": 13.752318986213966}, {"target": 220, "source": 187, "weight": 13.00781962366462}, {"target": 138, "source": 187, "weight": 13.888046707183179}, {"target": 150, "source": 187, "weight": 14.348849287272667}, {"target": 71, "source": 187, "weight": 13.010219941050606}, {"target": 170, "source": 189, "weight": 13.42913876292973}, {"target": 91, "source": 191, "weight": 15.177234156979377}, {"target": 1, "source": 191, "weight": 14.545945617443815}, {"target": 78, "source": 191, "weight": 16.40668517749133}, {"target": 55, "source": 192, "weight": 13.430565715222624}, {"target": 226, "source": 193, "weight": 14.221116569657257}, {"target": 54, "source": 193, "weight": 13.995329353728518}, {"target": 12, "source": 195, "weight": 16.012620587323024}, {"target": 193, "source": 195, "weight": 13.579299359620741}, {"target": 43, "source": 196, "weight": 14.068274060425761}, {"target": 118, "source": 196, "weight": 15.693470267710914}, {"target": 84, "source": 196, "weight": 15.844844509415744}, {"target": 9, "source": 196, "weight": 14.76536048326242}, {"target": 78, "source": 196, "weight": 13.829597912731295}, {"target": 205, "source": 196, "weight": 13.563905016793282}, {"target": 177, "source": 197, "weight": 14.16980706409015}, {"target": 206, "source": 198, "weight": 15.857364890339008}, {"target": 21, "source": 198, "weight": 13.643818442938151}, {"target": 11, "source": 198, "weight": 13.014659179651844}, {"target": 129, "source": 198, "weight": 13.278321354831274}, {"target": 57, "source": 198, "weight": 13.41685890078336}, {"target": 212, "source": 198, "weight": 13.459525981265324}, {"target": 60, "source": 199, "weight": 16.407286286813726}, {"target": 208, "source": 199, "weight": 15.724954557904194}, {"target": 211, "source": 199, "weight": 13.356548556903372}, {"target": 129, "source": 200, "weight": 13.873184395425998}, {"target": 133, "source": 200, "weight": 13.533851546470451}, {"target": 71, "source": 200, "weight": 15.524024893545434}, {"target": 89, "source": 201, "weight": 13.67060754647044}, {"target": 82, "source": 201, "weight": 13.79058324567658}, {"target": 6, "source": 201, "weight": 17.521399808581563}, {"target": 152, "source": 202, "weight": 14.15936200311221}, {"target": 76, "source": 202, "weight": 16.146054557183582}, {"target": 149, "source": 203, "weight": 14.130338226438855}, {"target": 142, "source": 204, "weight": 13.781703419541822}, {"target": 143, "source": 204, "weight": 14.714034033208092}, {"target": 47, "source": 204, "weight": 13.835936582342393}, {"target": 158, "source": 205, "weight": 15.12916853643786}, {"target": 119, "source": 205, "weight": 15.537761266290245}, {"target": 22, "source": 205, "weight": 13.287002344173542}, {"target": 203, "source": 205, "weight": 17.829217645950443}, {"target": 11, "source": 206, "weight": 13.020798982415663}, {"target": 129, "source": 206, "weight": 14.440692115328563}, {"target": 57, "source": 206, "weight": 13.698278497307687}, {"target": 110, "source": 207, "weight": 15.411751125301157}, {"target": 60, "source": 208, "weight": 13.875090026925491}, {"target": 93, "source": 208, "weight": 15.837177059425851}, {"target": 81, "source": 208, "weight": 13.214326857078497}, {"target": 0, "source": 208, "weight": 13.40002159391592}, {"target": 73, "source": 208, "weight": 13.112461360977484}, {"target": 27, "source": 208, "weight": 13.125584039793223}, {"target": 211, "source": 208, "weight": 14.163171993823816}, {"target": 117, "source": 208, "weight": 14.070069179070273}, {"target": 121, "source": 210, "weight": 13.69389887455577}, {"target": 0, "source": 211, "weight": 13.078953248680541}, {"target": 73, "source": 211, "weight": 13.18967754327548}, {"target": 27, "source": 211, "weight": 13.923570475070015}, {"target": 93, "source": 211, "weight": 13.666309847515421}, {"target": 59, "source": 211, "weight": 16.09738810114559}, {"target": 200, "source": 212, "weight": 13.343382041679611}, {"target": 44, "source": 212, "weight": 16.50873261153825}, {"target": 120, "source": 212, "weight": 14.453589278657052}, {"target": 184, "source": 213, "weight": 17.36019025834608}, {"target": 17, "source": 215, "weight": 15.107516221991494}, {"target": 141, "source": 215, "weight": 14.360524101144012}, {"target": 3, "source": 215, "weight": 13.960113342838062}, {"target": 206, "source": 216, "weight": 13.550840152679209}, {"target": 201, "source": 216, "weight": 13.13751732961633}, {"target": 138, "source": 216, "weight": 14.133247481314083}, {"target": 148, "source": 216, "weight": 13.181555788218215}, {"target": 44, "source": 216, "weight": 13.404402995732497}, {"target": 115, "source": 216, "weight": 13.860819907785253}, {"target": 36, "source": 216, "weight": 13.598986121377884}, {"target": 155, "source": 217, "weight": 14.948537213398222}, {"target": 38, "source": 218, "weight": 13.953537581454299}, {"target": 187, "source": 219, "weight": 15.41913273151018}, {"target": 36, "source": 220, "weight": 13.385463149051967}, {"target": 162, "source": 221, "weight": 14.35872752030854}, {"target": 101, "source": 221, "weight": 13.751733728627139}, {"target": 148, "source": 222, "weight": 13.071952482354726}, {"target": 228, "source": 224, "weight": 13.762304001284615}, {"target": 20, "source": 224, "weight": 13.894625951452642}, {"target": 63, "source": 224, "weight": 13.352312483722592}, {"target": 15, "source": 225, "weight": 13.367676388427371}, {"target": 151, "source": 225, "weight": 14.969582719551795}, {"target": 48, "source": 226, "weight": 13.823833673593377}, {"target": 13, "source": 226, "weight": 14.44586853489528}, {"target": 190, "source": 226, "weight": 13.276395270136167}, {"target": 197, "source": 226, "weight": 13.164575210995373}, {"target": 65, "source": 226, "weight": 15.007568398396254}, {"target": 130, "source": 226, "weight": 13.270056254709456}, {"target": 69, "source": 227, "weight": 14.915439523761348}, {"target": 49, "source": 227, "weight": 13.411162170741814}, {"target": 135, "source": 227, "weight": 13.632819880685023}], "graph": {}, "multigraph": false, "nodes": [{"name": "infoSourceRadio", "id": "infoSourceRadio"}, {"name": "socialDesScale", "id": "socialDesScale"}, {"name": "privateSecondarySchool", "id": "privateSecondarySchool"}, {"name": "efficacyPolCare", "id": "efficacyPolCare"}, {"name": "profile_religion_denom", "id": "profile_religion_denom"}, {"name": "businessSupport", "id": "businessSupport"}, {"name": "satDemEng", "id": "satDemEng"}, {"name": "polAttention", "id": "polAttention"}, {"name": "countryOfBirth", "id": "countryOfBirth"}, {"name": "socialDes_4", "id": "socialDes_4"}, {"name": "EUIntegrationLD", "id": "EUIntegrationLD"}, {"name": "euDominance", "id": "euDominance"}, {"name": "immigCultural", "id": "immigCultural"}, {"name": "euRedTape", "id": "euRedTape"}, {"name": "efficacyUnderstand", "id": "efficacyUnderstand"}, {"name": "lr1", "id": "lr1"}, {"name": "benefitsToMigrants", "id": "benefitsToMigrants"}, {"name": "lr_scale", "id": "lr_scale"}, {"name": "euMore", "id": "euMore"}, {"name": "euRefCertainty", "id": "euRefCertainty"}, {"name": "euLeaveScotIndep", "id": "euLeaveScotIndep"}, {"name": "immigCon", "id": "immigCon"}, {"name": "ns_sec_analytic", "id": "ns_sec_analytic"}, {"name": "livedAbroad", "id": "livedAbroad"}, {"name": "likeFarron", "id": "likeFarron"}, {"name": "euRefInterest", "id": "euRefInterest"}, {"name": "al3", "id": "al3"}, {"name": "euSources_2", "id": "euSources_2"}, {"name": "immigUKIP", "id": "immigUKIP"}, {"name": "riskTaking", "id": "riskTaking"}, {"name": "likeBoris", "id": "likeBoris"}, {"name": "likeCameron", "id": "likeCameron"}, {"name": "euKnow4", "id": "euKnow4"}, {"name": "effectsEUWorkers", "id": "effectsEUWorkers"}, {"name": "locus2", "id": "locus2"}, {"name": "socialIdentityGlobalLeave", "id": "socialIdentityGlobalLeave"}, {"name": "partyId", "id": "partyId"}, {"name": "normEU", "id": "normEU"}, {"name": "leaveImpactSelf", "id": "leaveImpactSelf"}, {"name": "socialIdentityGlobalRemain", "id": "socialIdentityGlobalRemain"}, {"name": "europeanness", "id": "europeanness"}, {"name": "bestPM", "id": "bestPM"}, {"name": "tolUncertain3", "id": "tolUncertain3"}, {"name": "socialDes_dk", "id": "socialDes_dk"}, {"name": "certaintyEULab", "id": "certaintyEULab"}, {"name": "changeImmig", "id": "changeImmig"}, {"name": "EUIntegrationGreen", "id": "EUIntegrationGreen"}, {"name": "parliamentSupport", "id": "parliamentSupport"}, {"name": "euMemberJoin", "id": "euMemberJoin"}, {"name": "econGenRetro", "id": "econGenRetro"}, {"name": "immigSelf", "id": "immigSelf"}, {"name": "profile_turnout_2015", "id": "profile_turnout_2015"}, {"name": "immigLab", "id": "immigLab"}, {"name": "profile_household_children", "id": "profile_household_children"}, {"name": "immigContributeTake", "id": "immigContributeTake"}, {"name": "profile_past_vote_2010", "id": "profile_past_vote_2010"}, {"name": "workingStatus", "id": "workingStatus"}, {"name": "ukipUnited", "id": "ukipUnited"}, {"name": "housing", "id": "housing"}, {"name": "euSources_1", "id": "euSources_1"}, {"name": "euSources_4", "id": "euSources_4"}, {"name": "proConRemain", "id": "proConRemain"}, {"name": "profile_household_size", "id": "profile_household_size"}, {"name": "euUKRich", "id": "euUKRich"}, {"name": "profile_ethnicity", "id": "profile_ethnicity"}, {"name": "euUndermineIdentity", "id": "euUndermineIdentity"}, {"name": "ukCoopCAP", "id": "ukCoopCAP"}, {"name": "campaigninfoLeave", "id": "campaigninfoLeave"}, {"name": "preschoolChildrenInHousehold", "id": "preschoolChildrenInHousehold"}, {"name": "changeNHS", "id": "changeNHS"}, {"name": "education", "id": "education"}, {"name": "certaintyEUGreen", "id": "certaintyEUGreen"}, {"name": "grnUnited", "id": "grnUnited"}, {"name": "infoSourcePaper", "id": "infoSourcePaper"}, {"name": "proConLeave", "id": "proConLeave"}, {"name": "likeGove", "id": "likeGove"}, {"name": "pccTurnout", "id": "pccTurnout"}, {"name": "bestOnMII", "id": "bestOnMII"}, {"name": "personality_conscientiousness", "id": "personality_conscientiousness"}, {"name": "locus1", "id": "locus1"}, {"name": "profile_past_vote_2005", "id": "profile_past_vote_2005"}, {"name": "euSources_3", "id": "euSources_3"}, {"name": "satDemEU", "id": "satDemEU"}, {"name": "neverPrivateSchool", "id": "neverPrivateSchool"}, {"name": "socialDes_none", "id": "socialDes_none"}, {"name": "postalapply", "id": "postalapply"}, {"name": "blackEquality", "id": "blackEquality"}, {"name": "likeFarage", "id": "likeFarage"}, {"name": "franceFairShare", "id": "franceFairShare"}, {"name": "regSatisfaction", "id": "regSatisfaction"}, {"name": "changeCrime", "id": "changeCrime"}, {"name": "personality_openness", "id": "personality_openness"}, {"name": "englishness", "id": "englishness"}, {"name": "euSources_5", "id": "euSources_5"}, {"name": "leaveTone", "id": "leaveTone"}, {"name": "al1", "id": "al1"}, {"name": "parentsForeign", "id": "parentsForeign"}, {"name": "econPersonalRetro", "id": "econPersonalRetro"}, {"name": "effectsEUTerror", "id": "effectsEUTerror"}, {"name": "profile_gross_personal", "id": "profile_gross_personal"}, {"name": "edlevel", "id": "edlevel"}, {"name": "euLawsLevel", "id": "euLawsLevel"}, {"name": "lr3", "id": "lr3"}, {"name": "remainTone", "id": "remainTone"}, {"name": "certaintyEUUKIP", "id": "certaintyEUUKIP"}, {"name": "partyContact1", "id": "partyContact1"}, {"name": "euKnow2", "id": "euKnow2"}, {"name": "euKnow5", "id": "euKnow5"}, {"name": "childBenefitsRepatriate", "id": "childBenefitsRepatriate"}, {"name": "profile_gross_household", "id": "profile_gross_household"}, {"name": "beliefTradeoff", "id": "beliefTradeoff"}, {"name": "Age", "id": "Age"}, {"name": "marital", "id": "marital"}, {"name": "ukCoopEuro", "id": "ukCoopEuro"}, {"name": "personality_extraversion", "id": "personality_extraversion"}, {"name": "likeAlanJohnson", "id": "likeAlanJohnson"}, {"name": "pccVote1", "id": "pccVote1"}, {"name": "discussPolDays", "id": "discussPolDays"}, {"name": "socialDes_2", "id": "socialDes_2"}, {"name": "polKnowMay", "id": "polKnowMay"}, {"name": "EUIntegrationCon", "id": "EUIntegrationCon"}, {"name": "languageSkills", "id": "languageSkills"}, {"name": "euRefTurnout", "id": "euRefTurnout"}, {"name": "al4", "id": "al4"}, {"name": "prevJob", "id": "prevJob"}, {"name": "noneuMore", "id": "noneuMore"}, {"name": "al_scale", "id": "al_scale"}, {"name": "studentsMore", "id": "studentsMore"}, {"name": "effectsEUTrade", "id": "effectsEUTrade"}, {"name": "ldUnited", "id": "ldUnited"}, {"name": "EUIntegrationSelf", "id": "EUIntegrationSelf"}, {"name": "likeCorbyn", "id": "likeCorbyn"}, {"name": "EUIntegrationUKIP", "id": "EUIntegrationUKIP"}, {"name": "gender", "id": "gender"}, {"name": "likeCon", "id": "likeCon"}, {"name": "changeEducation", "id": "changeEducation"}, {"name": "campaigninfoRemain", "id": "campaigninfoRemain"}, {"name": "ukCoopTrade", "id": "ukCoopTrade"}, {"name": "likeLD", "id": "likeLD"}, {"name": "likeOsborne", "id": "likeOsborne"}, {"name": "socialDes_1", "id": "socialDes_1"}, {"name": "lr2", "id": "lr2"}, {"name": "EUIntegrationLab", "id": "EUIntegrationLab"}, {"name": "ldSupport", "id": "ldSupport"}, {"name": "gayEquality", "id": "gayEquality"}, {"name": "effectsEUUnemployment", "id": "effectsEUUnemployment"}, {"name": "selfOccStatusLast", "id": "selfOccStatusLast"}, {"name": "euKnow1", "id": "euKnow1"}, {"name": "subjClass", "id": "subjClass"}, {"name": "polKnowOsborne", "id": "polKnowOsborne"}, {"name": "generalElectionVote", "id": "generalElectionVote"}, {"name": "conSupport", "id": "conSupport"}, {"name": "gor", "id": "gor"}, {"name": "euLeaveVoice", "id": "euLeaveVoice"}, {"name": "changeCostLive", "id": "changeCostLive"}, {"name": "germanyFairShare", "id": "germanyFairShare"}, {"name": "tolUncertain1", "id": "tolUncertain1"}, {"name": "immigGreen", "id": "immigGreen"}, {"name": "polKnowBercow", "id": "polKnowBercow"}, {"name": "effectsEUEcon", "id": "effectsEUEcon"}, {"name": "euKnow6", "id": "euKnow6"}, {"name": "EUMIICategory", "id": "EUMIICategory"}, {"name": "euPreventWar", "id": "euPreventWar"}, {"name": "monarch", "id": "monarch"}, {"name": "al5", "id": "al5"}, {"name": "euKnow3", "id": "euKnow3"}, {"name": "tolUncertain2", "id": "tolUncertain2"}, {"name": "femaleEquality", "id": "femaleEquality"}, {"name": "immigLD", "id": "immigLD"}, {"name": "familiesMore", "id": "familiesMore"}, {"name": "effectsEUFinance", "id": "effectsEUFinance"}, {"name": "al2", "id": "al2"}, {"name": "certaintyUKLeave", "id": "certaintyUKLeave"}, {"name": "RPrivSchnew_dk", "id": "RPrivSchnew_dk"}, {"name": "lr5", "id": "lr5"}, {"name": "privatePrimarySchool", "id": "privatePrimarySchool"}, {"name": "echr", "id": "echr"}, {"name": "ukCoopWorkers", "id": "ukCoopWorkers"}, {"name": "tuSupport", "id": "tuSupport"}, {"name": "effectsEUImmigration", "id": "effectsEUImmigration"}, {"name": "britishness", "id": "britishness"}, {"name": "profile_religion", "id": "profile_religion"}, {"name": "schoolChildrenInHousehold", "id": "schoolChildrenInHousehold"}, {"name": "partyMember", "id": "partyMember"}, {"name": "noDependentsInHousehold", "id": "noDependentsInHousehold"}, {"name": "asylumMore", "id": "asylumMore"}, {"name": "certaintyUKRemain", "id": "certaintyUKRemain"}, {"name": "likeGrn", "id": "likeGrn"}, {"name": "likeUKIP", "id": "likeUKIP"}, {"name": "effectsEUNHS", "id": "effectsEUNHS"}, {"name": "euParlOverRide", "id": "euParlOverRide"}, {"name": "personality_agreeableness", "id": "personality_agreeableness"}, {"name": "selfOccStatus", "id": "selfOccStatus"}, {"name": "immigrantsWelfareState", "id": "immigrantsWelfareState"}, {"name": "euMIISmall", "id": "euMIISmall"}, {"name": "immigEcon", "id": "immigEcon"}, {"name": "socialDes_3", "id": "socialDes_3"}, {"name": "ukCoopMovement", "id": "ukCoopMovement"}, {"name": "conUnited", "id": "conUnited"}, {"name": "infoSourceInternet", "id": "infoSourceInternet"}, {"name": "certaintyEULD", "id": "certaintyEULD"}, {"name": "satDemUK", "id": "satDemUK"}, {"name": "localTurnoutRetro", "id": "localTurnoutRetro"}, {"name": "polKnowClegg", "id": "polKnowClegg"}, {"name": "labSupport", "id": "labSupport"}, {"name": "polKnowMiliband", "id": "polKnowMiliband"}, {"name": "labUnited", "id": "labUnited"}, {"name": "prefTradeoff", "id": "prefTradeoff"}, {"name": "infoSourcePeople", "id": "infoSourcePeople"}, {"name": "partyIdEU", "id": "partyIdEU"}, {"name": "friendsEU", "id": "friendsEU"}, {"name": "infoSourceTV", "id": "infoSourceTV"}, {"name": "certaintyEUCon", "id": "certaintyEUCon"}, {"name": "sickOrElderlyInHousehold", "id": "sickOrElderlyInHousehold"}, {"name": "personality_neuroticism", "id": "personality_neuroticism"}, {"name": "lr4", "id": "lr4"}, {"name": "likeLab", "id": "likeLab"}, {"name": "britainFairShare", "id": "britainFairShare"}, {"name": "efficacyEU", "id": "efficacyEU"}, {"name": "likeBennett", "id": "likeBennett"}, {"name": "profile_past_vote_2015", "id": "profile_past_vote_2015"}, {"name": "euCloser", "id": "euCloser"}, {"name": "profile_education_age", "id": "profile_education_age"}, {"name": "profile_newspaper_readership_201", "id": "profile_newspaper_readership_201"}, {"name": "euLeaveBigBusiness", "id": "euLeaveBigBusiness"}, {"name": "cabinetSupport", "id": "cabinetSupport"}, {"name": "UKsovereignty", "id": "UKsovereignty"}, {"name": "changeEconomy", "id": "changeEconomy"}, {"name": "leaveImpactBritain", "id": "leaveImpactBritain"}]}
function gridData() {
var data = new Array();
var xpos = 1; //starting xpos and ypos at 1 so the stroke will show when we make the grid below
var ypos = 1;
var width = 50;
var height = 50;
var click = 0;
// iterate for rows
for (var row = 0; row < 10; row++) {
data.push( new Array() );
// iterate for cells/columns inside rows
for (var column = 0; column < 10; column++) {
data[row].push({
x: xpos,
y: ypos,
width: width,
height: height,
click: click
})
// increment the x position. I.e. move it over by 50 (width variable)
xpos += width;
}
// reset the x position after a row is complete
xpos = 1;
// increment the y position for the next row. Move it down 50 (height variable)
ypos += height;
}
return data;
}
var gridData = gridData();
// I like to log the data to the console for quick debugging
console.log(gridData);
var grid = d3.select("#grid")
.append("svg")
.attr("width","510px")
.attr("height","510px");
var row = grid.selectAll(".row")
.data(gridData)
.enter().append("g")
.attr("class", "row");
var column = row.selectAll(".square")
.data(function(d) { return d; })
.enter().append("rect")
.attr("class","square")
.attr("x", function(d) { return d.x; })
.attr("y", function(d) { return d.y; })
.attr("width", function(d) { return d.width; })
.attr("height", function(d) { return d.height; })
.style("fill", "#fff")
.style("stroke", "#222")
.on('tick', function(d) {
if (d.x <200) { d3.select(this).style("fill","#2C93E8"); }
if (d.y <200) { d3.select(this).style("fill","#F56C4E"); }
});
// .on('click', function(d) {
// d.click ++;
// if ((d.click)%4 == 0 ) { d3.select(this).style("fill","#fff"); }
// if ((d.click)%4 == 1 ) { d3.select(this).style("fill","#2C93E8"); }
// if ((d.click)%4 == 2 ) { d3.select(this).style("fill","#F56C4E"); }
// if ((d.click)%4 == 3 ) { d3.select(this).style("fill","#838690"); }
// });
function gridData(granularity) {
var data = new Array();
var xpos = 1; //starting xpos and ypos at 1 so the stroke will show when we make the grid below
var ypos = 1;
for(var cell = 0; cell < granularity * granularity; cell++) {
data.push( {
id: cell,
color: '#ffffff',
xpos: cell % granularity,
ypos: Math.floor( cell / granularity),
support: 0,
} );
}
return data;
}
var window_x = 700;
var window_y = 700;
var granularity = 50;
var max_distance = (granularity/2)**2
//granularity ** 4;
var width = window_x/granularity;
var height = window_y/granularity;
var turn_delay = .001;
var gridData;
// gridData = gridData(granularity);
var partyData;
// = new Array();
// partyData.push( { xpos: 7, ypos: 12, color:'#597cf4', support:0, last_support:0, dx:0, dy:0 } );
// partyData.push( { xpos: 33, ypos: 46, color:'#f45962', support:0, last_support:0, dx:0, dy:0 } );
var party_turn=0;
var grid;
function setup(){
var data = new Array();
var xpos = 1; //starting xpos and ypos at 1 so the stroke will show when we make the grid below
var ypos = 1;
for(var cell = 0; cell < granularity * granularity; cell++) {
data.push( {
id: cell,
color: '#ffffff',
xpos: cell % granularity,
ypos: Math.floor( cell / granularity),
support: 0,
} );
}
gridData = data;
partyData = new Array();
partyData.push( { xpos: 7, ypos: 12, color:'#597cf4', support:0, last_support:0, dx:0, dy:0 } );
partyData.push( { xpos: 33, ypos: 46, color:'#f45962', support:0, last_support:0, dx:0, dy:0 } );
party_turn=0;
d3.select("svg").remove();
grid = d3.select("#grid")
// .append("svg")
.append("div")
// Container class to make it responsive.
.classed("svg-container", true)
.append("svg")
// Responsive SVG needs these 2 attributes and no width and height attr.
.attr("preserveAspectRatio", "xMinYMin meet")
.attr("viewBox", "0 0 600 400")
// Class to make it responsive.
.classed("svg-content-responsive", true)
// Fill with a rectangle for visualization.
.attr("width",window_x.toString().concat("px"))
.attr("height",window_y.toString().concat("px"))
.on('click', function() {
var coords = d3.mouse(this);
partyData.push( { xpos: Math.floor(coords[0]*granularity/window_x), ypos: Math.floor(coords[1]*granularity/window_y), color:'#'+Math.floor(Math.random()*16777215).toString(16), support:0, last_support:0, dx:0,dy:0 } );
// drawCircle(coords[0], coords[1], getRandom(5,50));
});
}
setup();
// red = #f45962 , blue =#597cf4, white=#ffffff
// var grid = d3.select("#grid")
// .append("svg")
// .attr("width",window_x.toString().concat("px"))
// .attr("height",window_y.toString().concat("px"))
// .on('click', function() {
// var coords = d3.mouse(this);
// partyData.push( { xpos: Math.floor(coords[0]*granularity/window_x), ypos: Math.floor(coords[1]*granularity/window_y), color:'#'+Math.floor(Math.random()*16777215).toString(16), support:0, last_support:0, dx:0,dy:0 } );
// // drawCircle(coords[0], coords[1], getRandom(5,50));
// });
// Create data = list of groups
var allGroup = [".001", "1", "100", "1500"]
// Initialize the button
var dropdownButton = d3.select("#grid")
.append('select')
// add the options to the button
dropdownButton // Add a button
.selectAll('myOptions') // Next 4 lines add 6 options = 6 colors
.data(allGroup)
.enter()
.append('option')
.text(function (d) { return d; }) // text showed in the menu
.attr("value", function (d) { return d; }) // corresponding value returned by the button
// A function that update the color of the circle
function updateChart(mycolor) {
turn_delay = parseFloat(mycolor);
// zeCircle
// .transition()
// .duration(1000)
// .style("fill", mycolor)
}
// When the button is changed, run the updateChart function
dropdownButton.on("change", function(d) {
// recover the option that has been chosen
var selectedOption = d3.select(this).property("value")
// run the updateChart function with this selected option
updateChart(selectedOption)
})
function support_change(gridData, partyData, party_no, dx, dy){
var party = partyData[party_no];
party.xpos = party.xpos + dx;
party.ypos = party.ypos + dy;
if ( party.xpos<0 || party.xpos>=granularity ) {
party.xpos = party.xpos - dx;
party.ypos = party.ypos - dy;
return -1
}
if ( party.ypos<0 || party.ypos>=granularity ) {
party.xpos = party.xpos - dx;
party.ypos = party.ypos - dy;
return -1
}
for(var j = 0; j < partyData.length;j++){
var party = partyData[j];
// party.last_support = party.support;
party.support = 0;
if ( (j!=party_no) && (party.xpos == partyData[party_no].xpos) && (party.ypos == partyData[party_no].ypos) )
{
party.xpos = party.xpos - dx;
party.ypos = party.ypos - dy;
return -1
}
}
for(var i = 0; i < gridData.length;i++){
var cell = gridData[i];
var distance = max_distance;
for(var j = 0; j < partyData.length;j++){
var party = partyData[j];
var party_cell_dist = (party.xpos - cell.xpos)*(party.xpos - cell.xpos) + (party.ypos - cell.ypos)*(party.ypos - cell.ypos) ;
if (party_cell_dist<distance) {
distance = party_cell_dist;
// cell.color = party.color;
cell.support = j;
}
}
var party = partyData[cell.support];
party.support = party.support+1;
// cell.color = '#'+Math.floor(Math.random()*16777215).toString(16);
}
var party = partyData[party_no];
party.xpos = party.xpos - dx;
party.ypos = party.ypos - dy;
return party.support
}
function choose_move( move )
{
var dx,dy;
if (move==0) {dx = 0, dy = 1}
if (move==1) {dx = 1, dy = 0}
if (move==2) {dx = 0, dy = -1}
if (move==3) {dx = -1, dy = 0}
return [dx,dy]
}
function update(){
// move parties
// move only one party per update
// for(var j = 0; j < partyData.length;j++){
j = party_turn;
party_turn = (party_turn+1)%partyData.length;
var party = partyData[j];
// var acceptableMove = false;
// while (! acceptableMove)
// {
// acceptableMove=true;
// var move = Math.floor(Math.random()*4) // 0,1,2,3 compass directions
// if (move==0) {party.dx = 0, party.dy = 1}
// if (move==1) {party.dx = 1, party.dy = 0}
// if (move==2) {party.dx = 0, party.dy = -1}
// if (move==3) {party.dx = -1, party.dy = 0}
// if ( (party.xpos+party.dx)<=0 || (party.xpos+party.dx)>=granularity ) { acceptableMove=false }
// if ( (party.ypos+party.dy)<=0 || (party.ypos+party.dy)>=granularity ) { acceptableMove=false }
// }
// party.xpos = party.xpos + party.dx
// party.ypos = party.ypos + party.dy
var best_move = -1;
var best_support = party.support;
for(var move = 0; move <4; move++){
const [dx, dy] = choose_move(move);
// console.log(dx,dy)
var support = support_change(gridData, partyData, j, dx, dy)
if (support > best_support)
{
best_support = support;
best_move = move;
}
}
if (best_move >-1)
{
const [dx, dy] = choose_move(best_move);
// var party = partyData[party_no];
party.xpos = party.xpos + dx;
party.ypos = party.ypos + dy;
}
// if (Math.random()>.5) { party.xpos = party.xpos+1 }
// else { party.xpos = party.xpos-1 }
// if (Math.random()>.5) { party.ypos = party.ypos+1 }
// else { party.ypos = party.ypos-1 }
// party.xpos = (granularity+party.xpos)%granularity
// party.ypos = (granularity+party.ypos)%granularity
// }
for(var j = 0; j < partyData.length;j++){
var party = partyData[j];
// party.last_support = party.support;
party.support = 0;
}
// final update!
for(var i = 0; i < gridData.length;i++){
var cell = gridData[i];
var distance = max_distance;
cell.color = '#828282'; //default non-voting
for(var j = 0; j < partyData.length;j++){
var party = partyData[j];
var party_cell_dist = (party.xpos - cell.xpos)*(party.xpos - cell.xpos) + (party.ypos - cell.ypos)*(party.ypos - cell.ypos) ;
if (party_cell_dist<distance) {
distance = party_cell_dist;
cell.color = party.color;
cell.support = j;
}
}
var party = partyData[cell.support];
party.support = party.support+1;
}
var cell = grid.selectAll(".cell")
.data(gridData)
cell.enter().append("rect")
.attr("class","cell")
.attr("x", function(d) { return d.xpos * width; })
.attr("y", function(d) { return d.ypos * height; })
.attr("width", width )
.attr("height", height)
.style("fill", function(d){ return d.color; })
// .style("stroke", "#222");
cell.transition()
.duration(turn_delay)
.delay(turn_delay)
.style('fill',
function(d){
return d.color;
});
var party = grid.selectAll(".party")
.data(partyData)
party.enter().append("circle")
.attr("class","party")
.attr("cx", function(d) { return d.xpos * width; })
.attr("cy", function(d) { return d.ypos * height; })
.attr("r", width )
// .attr("width", width )
// .attr("height", height)
// .style("fill", function(d){ return d.color; })
// .style("fill", "#222")
.style("fill", "#ffffff")
.style("stroke", "#222")
// .append("text")
// .attr("x", function(d) { return d.xpos * width; })
// .attr("y", function(d) { return d.ypos * width; })
// .text(function(d){return d.support.toString()});
// circle
// .attr("cx", function(d) { d.x += d.dx; if (d.x > w) d.x -= w; else if (d.x < 0) d.x += w; return d.x; })
// .attr("cy", function(d) { d.y += d.dy; if (d.y > h) d.y -= h; else if (d.y < 0) d.y += h; return d.y; });
// svg.on('click', function() {
// var coords = d3.mouse(this);
// console.log(coords);
// drawCircle(coords[0], coords[1], getRandom(5,50));
// });
party.transition()
.duration(turn_delay)
.delay(turn_delay)
.attr("cx", function(d) { return d.xpos * width; })
.attr("cy", function(d) { return d.ypos * height; })
.style('fill',
function(d){
return d.color;
})
.attr("x", function(d) { return d.xpos * width; })
.attr("y", function(d) { return d.ypos * width; })
// .attr("dx", function(d){return -20})
// .append("text")
// .text(function(d){return d.support.toString()});
// .attr({
// "text-anchor": "middle",
// "font-size": function(d) {
// return d.r / ((d.r * 10) / 100);
// },
// "dy": function(d) {
// return d.r / ((d.r * 25) / 100);
// }
// });
// .selectAll('circle')
// party.enter()
// .append("text")
// .attr("x", function(d) { return d.xpos * width; })
// .attr("y", function(d) { return d.ypos * width; })
// .text(function(d){return d.support.toString()});
}
setInterval(update, turn_delay );
// Resources
// https://strongriley.github.io/d3/ex/voronoi.html
// https://www.visualcinnamon.com/2015/07/voronoi.html
// https://www.d3-graph-gallery.com/graph/heatmap_basic.html
// http://cs.tau.ac.il/~mfeldman/papers/FFOc16.pdf
// https://hashtagcolor.com/828282
// https://gist.github.com/MariosRichards/e2abce29f925fe22a6a8d7f1885026dc
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<!--<script src="d3.min.js" ></script>-->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<div id="grid"></div>
<div>
<input name="updateButton"
type="button"
value="Update"
onclick="setup()" />
</div>
<script src="grid2.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/sebt3/[email protected]/dist/d3-bootstrap-withextra.min.js"></script>
</body>
</html>
.svg-container {
display: inline-block;
position: relative;
width: 100%;
padding-bottom: 100%; /* aspect ratio */
vertical-align: top;
overflow: hidden;
}
.svg-content-responsive {
display: inline-block;
position: absolute;
top: 10px;
left: 0;
}
svg .rect {
fill: gold;
stroke: steelblue;
stroke-width: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment