Skip to content

Instantly share code, notes, and snippets.

@ZoeLeBlanc
Last active May 31, 2018 16:48
Show Gist options
  • Save ZoeLeBlanc/fd7e77b2dfffeb10daddb6ce933b55a8 to your computer and use it in GitHub Desktop.
Save ZoeLeBlanc/fd7e77b2dfffeb10daddb6ce933b55a8 to your computer and use it in GitHub Desktop.
Unipartite Community Graph
license: gpl-3.0
height: 600

A quick adaptation of Mike Bostock's force-directed graph showing character co-occurence in Les Misérables. In this version, the character names are displayed. This is accomplished by wrapping both circles and text svg components within a group svg component.

Compare to the original diagram by Mike Bostock.

forked from heybignick's block: D3.js v4 Force Directed Graph with Labels

forked from ZoeLeBlanc's block: Bipartite Graph

forked from ZoeLeBlanc's block: Bipartite Community Graph

forked from ZoeLeBlanc's block: Unipartite Community Graph

{"directed": false, "multigraph": false, "graph": {}, "nodes": [{"community": 0, "id": "Aemon"}, {"community": 0, "id": "Grenn"}, {"community": 0, "id": "Samwell"}, {"community": 1, "id": "Aerys"}, {"community": 1, "id": "Jaime"}, {"community": 2, "id": "Robert"}, {"community": 1, "id": "Tyrion"}, {"community": 1, "id": "Tywin"}, {"community": 0, "id": "Alliser"}, {"community": 0, "id": "Mance"}, {"community": 1, "id": "Amory"}, {"community": 1, "id": "Oberyn"}, {"community": 2, "id": "Arya"}, {"community": 2, "id": "Anguy"}, {"community": 2, "id": "Beric"}, {"community": 3, "id": "Bran"}, {"community": 4, "id": "Brynden"}, {"community": 1, "id": "Cersei"}, {"community": 2, "id": "Gendry"}, {"community": 1, "id": "Gregor"}, {"community": 1, "id": "Joffrey"}, {"community": 0, "id": "Jon"}, {"community": 3, "id": "Rickon"}, {"community": 4, "id": "Roose"}, {"community": 2, "id": "Sandor"}, {"community": 2, "id": "Thoros"}, {"community": 1, "id": "Balon"}, {"community": 1, "id": "Loras"}, {"community": 5, "id": "Belwas"}, {"community": 5, "id": "Barristan"}, {"community": 5, "id": "Illyrio"}, {"community": 3, "id": "Hodor"}, {"community": 3, "id": "Jojen"}, {"community": 3, "id": "Luwin"}, {"community": 3, "id": "Meera"}, {"community": 3, "id": "Nan"}, {"community": 3, "id": "Theon"}, {"community": 4, "id": "Brienne"}, {"community": 1, "id": "Bronn"}, {"community": 1, "id": "Podrick"}, {"community": 4, "id": "Lothar"}, {"community": 4, "id": "Walder"}, {"community": 4, "id": "Catelyn"}, {"community": 4, "id": "Edmure"}, {"community": 4, "id": "Hoster"}, {"community": 4, "id": "Jeyne"}, {"community": 4, "id": "Lysa"}, {"community": 4, "id": "Petyr"}, {"community": 4, "id": "Robb"}, {"community": 4, "id": "Roslin"}, {"community": 1, "id": "Sansa"}, {"community": 0, "id": "Stannis"}, {"community": 1, "id": "Elia"}, {"community": 1, "id": "Ilyn"}, {"community": 1, "id": "Meryn"}, {"community": 1, "id": "Pycelle"}, {"community": 1, "id": "Shae"}, {"community": 1, "id": "Varys"}, {"community": 0, "id": "Craster"}, {"community": 0, "id": "Karl"}, {"community": 5, "id": "Daario"}, {"community": 5, "id": "Drogo"}, {"community": 5, "id": "Irri"}, {"community": 5, "id": "Daenerys"}, {"community": 5, "id": "Aegon"}, {"community": 5, "id": "Jorah"}, {"community": 5, "id": "Kraznys"}, {"community": 5, "id": "Missandei"}, {"community": 5, "id": "Rakharo"}, {"community": 5, "id": "Rhaegar"}, {"community": 5, "id": "Viserys"}, {"community": 5, "id": "Worm"}, {"community": 0, "id": "Davos"}, {"community": 0, "id": "Cressen"}, {"community": 0, "id": "Salladhor"}, {"community": 2, "id": "Eddard"}, {"community": 0, "id": "Eddison"}, {"community": 0, "id": "Gilly"}, {"community": 1, "id": "Qyburn"}, {"community": 1, "id": "Renly"}, {"community": 1, "id": "Tommen"}, {"community": 0, "id": "Janos"}, {"community": 0, "id": "Bowen"}, {"community": 1, "id": "Kevan"}, {"community": 1, "id": "Margaery"}, {"community": 1, "id": "Myrcella"}, {"community": 0, "id": "Dalla"}, {"community": 0, "id": "Melisandre"}, {"community": 0, "id": "Orell"}, {"community": 0, "id": "Qhorin"}, {"community": 0, "id": "Rattleshirt"}, {"community": 0, "id": "Styr"}, {"community": 0, "id": "Val"}, {"community": 0, "id": "Ygritte"}, {"community": 4, "id": "Jon Arryn"}, {"community": 1, "id": "Lancel"}, {"community": 1, "id": "Olenna"}, {"community": 4, "id": "Marillion"}, {"community": 4, "id": "Robert Arryn"}, {"community": 1, "id": "Ellaria"}, {"community": 1, "id": "Mace"}, {"community": 4, "id": "Rickard"}, {"community": 4, "id": "Ramsay"}, {"community": 1, "id": "Chataya"}, {"community": 0, "id": "Shireen"}, {"community": 1, "id": "Doran"}, {"community": 1, "id": "Walton"}], "links": [{"source": "Aemon", "target": "Grenn"}, {"source": "Aemon", "target": "Samwell"}, {"source": "Aemon", "target": "Jon"}, {"source": "Aemon", "target": "Robert"}, {"source": "Aemon", "target": "Stannis"}, {"source": "Grenn", "target": "Eddison"}, {"source": "Grenn", "target": "Jon"}, {"source": "Grenn", "target": "Samwell"}, {"source": "Samwell", "target": "Bran"}, {"source": "Samwell", "target": "Jojen"}, {"source": "Samwell", "target": "Jon"}, {"source": "Samwell", "target": "Meera"}, {"source": "Samwell", "target": "Melisandre"}, {"source": "Samwell", "target": "Bowen"}, {"source": "Samwell", "target": "Craster"}, {"source": "Samwell", "target": "Eddison"}, {"source": "Samwell", "target": "Gilly"}, {"source": "Samwell", "target": "Janos"}, {"source": "Samwell", "target": "Mance"}, {"source": "Samwell", "target": "Qhorin"}, {"source": "Samwell", "target": "Stannis"}, {"source": "Aerys", "target": "Jaime"}, {"source": "Aerys", "target": "Robert"}, {"source": "Aerys", "target": "Tyrion"}, {"source": "Aerys", "target": "Tywin"}, {"source": "Jaime", "target": "Arya"}, {"source": "Jaime", "target": "Catelyn"}, {"source": "Jaime", "target": "Cersei"}, {"source": "Jaime", "target": "Eddard"}, {"source": "Jaime", "target": "Balon"}, {"source": "Jaime", "target": "Barristan"}, {"source": "Jaime", "target": "Brienne"}, {"source": "Jaime", "target": "Edmure"}, {"source": "Jaime", "target": "Elia"}, {"source": "Jaime", "target": "Gregor"}, {"source": "Jaime", "target": "Joffrey"}, {"source": "Jaime", "target": "Loras"}, {"source": "Jaime", "target": "Meryn"}, {"source": "Jaime", "target": "Qyburn"}, {"source": "Jaime", "target": "Renly"}, {"source": "Jaime", "target": "Robert"}, {"source": "Jaime", "target": "Stannis"}, {"source": "Jaime", "target": "Tommen"}, {"source": "Jaime", "target": "Tyrion"}, {"source": "Jaime", "target": "Robb"}, {"source": "Jaime", "target": "Sansa"}, {"source": "Jaime", "target": "Tywin"}, {"source": "Jaime", "target": "Walton"}, {"source": "Robert", "target": "Arya"}, {"source": "Robert", "target": "Cersei"}, {"source": "Robert", "target": "Daenerys"}, {"source": "Robert", "target": "Eddard"}, {"source": "Robert", "target": "Jon"}, {"source": "Robert", "target": "Jon Arryn"}, {"source": "Robert", "target": "Rhaegar"}, {"source": "Robert", "target": "Barristan"}, {"source": "Robert", "target": "Renly"}, {"source": "Robert", "target": "Stannis"}, {"source": "Robert", "target": "Thoros"}, {"source": "Robert", "target": "Sandor"}, {"source": "Robert", "target": "Sansa"}, {"source": "Robert", "target": "Tyrion"}, {"source": "Robert", "target": "Tywin"}, {"source": "Tyrion", "target": "Arya"}, {"source": "Tyrion", "target": "Catelyn"}, {"source": "Tyrion", "target": "Cersei"}, {"source": "Tyrion", "target": "Joffrey"}, {"source": "Tyrion", "target": "Lysa"}, {"source": "Tyrion", "target": "Myrcella"}, {"source": "Tyrion", "target": "Robb"}, {"source": "Tyrion", "target": "Sansa"}, {"source": "Tyrion", "target": "Balon"}, {"source": "Tyrion", "target": "Bronn"}, {"source": "Tyrion", "target": "Chataya"}, {"source": "Tyrion", "target": "Doran"}, {"source": "Tyrion", "target": "Elia"}, {"source": "Tyrion", "target": "Ellaria"}, {"source": "Tyrion", "target": "Gregor"}, {"source": "Tyrion", "target": "Ilyn"}, {"source": "Tyrion", "target": "Janos"}, {"source": "Tyrion", "target": "Kevan"}, {"source": "Tyrion", "target": "Loras"}, {"source": "Tyrion", "target": "Mace"}, {"source": "Tyrion", "target": "Margaery"}, {"source": "Tyrion", "target": "Meryn"}, {"source": "Tyrion", "target": "Oberyn"}, {"source": "Tyrion", "target": "Petyr"}, {"source": "Tyrion", "target": "Podrick"}, {"source": "Tyrion", "target": "Pycelle"}, {"source": "Tyrion", "target": "Renly"}, {"source": "Tyrion", "target": "Sandor"}, {"source": "Tyrion", "target": "Shae"}, {"source": "Tyrion", "target": "Stannis"}, {"source": "Tyrion", "target": "Varys"}, {"source": "Tyrion", "target": "Tywin"}, {"source": "Tyrion", "target": "Viserys"}, {"source": "Tywin", "target": "Lysa"}, {"source": "Tywin", "target": "Robb"}, {"source": "Tywin", "target": "Balon"}, {"source": "Tywin", "target": "Brynden"}, {"source": "Tywin", "target": "Cersei"}, {"source": "Tywin", "target": "Gregor"}, {"source": "Tywin", "target": "Joffrey"}, {"source": "Tywin", "target": "Kevan"}, {"source": "Tywin", "target": "Mace"}, {"source": "Tywin", "target": "Oberyn"}, {"source": "Tywin", "target": "Petyr"}, {"source": "Tywin", "target": "Podrick"}, {"source": "Tywin", "target": "Pycelle"}, {"source": "Tywin", "target": "Stannis"}, {"source": "Tywin", "target": "Tommen"}, {"source": "Tywin", "target": "Val"}, {"source": "Tywin", "target": "Varys"}, {"source": "Tywin", "target": "Walder"}, {"source": "Alliser", "target": "Mance"}, {"source": "Alliser", "target": "Janos"}, {"source": "Alliser", "target": "Jon"}, {"source": "Mance", "target": "Janos"}, {"source": "Mance", "target": "Jon"}, {"source": "Mance", "target": "Craster"}, {"source": "Mance", "target": "Dalla"}, {"source": "Mance", "target": "Gilly"}, {"source": "Mance", "target": "Qhorin"}, {"source": "Mance", "target": "Rattleshirt"}, {"source": "Mance", "target": "Styr"}, {"source": "Mance", "target": "Val"}, {"source": "Mance", "target": "Ygritte"}, {"source": "Amory", "target": "Oberyn"}, {"source": "Oberyn", "target": "Gregor"}, {"source": "Oberyn", "target": "Joffrey"}, {"source": "Oberyn", "target": "Ellaria"}, {"source": "Oberyn", "target": "Mace"}, {"source": "Arya", "target": "Anguy"}, {"source": "Arya", "target": "Beric"}, {"source": "Arya", "target": "Bran"}, {"source": "Arya", "target": "Brynden"}, {"source": "Arya", "target": "Cersei"}, {"source": "Arya", "target": "Gendry"}, {"source": "Arya", "target": "Gregor"}, {"source": "Arya", "target": "Joffrey"}, {"source": "Arya", "target": "Jon"}, {"source": "Arya", "target": "Rickon"}, {"source": "Arya", "target": "Roose"}, {"source": "Arya", "target": "Sandor"}, {"source": "Arya", "target": "Thoros"}, {"source": "Arya", "target": "Eddard"}, {"source": "Arya", "target": "Robb"}, {"source": "Arya", "target": "Sansa"}, {"source": "Anguy", "target": "Beric"}, {"source": "Beric", "target": "Gendry"}, {"source": "Beric", "target": "Thoros"}, {"source": "Beric", "target": "Eddard"}, {"source": "Beric", "target": "Sandor"}, {"source": "Bran", "target": "Hodor"}, {"source": "Bran", "target": "Jojen"}, {"source": "Bran", "target": "Jon"}, {"source": "Bran", "target": "Luwin"}, {"source": "Bran", "target": "Meera"}, {"source": "Bran", "target": "Nan"}, {"source": "Bran", "target": "Rickon"}, {"source": "Bran", "target": "Theon"}, {"source": "Bran", "target": "Catelyn"}, {"source": "Bran", "target": "Eddard"}, {"source": "Bran", "target": "Robb"}, {"source": "Bran", "target": "Sansa"}, {"source": "Brynden", "target": "Lothar"}, {"source": "Brynden", "target": "Walder"}, {"source": "Brynden", "target": "Catelyn"}, {"source": "Brynden", "target": "Edmure"}, {"source": "Brynden", "target": "Rickard"}, {"source": "Brynden", "target": "Robb"}, {"source": "Cersei", "target": "Catelyn"}, {"source": "Cersei", "target": "Brienne"}, {"source": "Cersei", "target": "Bronn"}, {"source": "Cersei", "target": "Elia"}, {"source": "Cersei", "target": "Gregor"}, {"source": "Cersei", "target": "Ilyn"}, {"source": "Cersei", "target": "Joffrey"}, {"source": "Cersei", "target": "Meryn"}, {"source": "Cersei", "target": "Pycelle"}, {"source": "Cersei", "target": "Sandor"}, {"source": "Cersei", "target": "Shae"}, {"source": "Cersei", "target": "Varys"}, {"source": "Cersei", "target": "Eddard"}, {"source": "Cersei", "target": "Lysa"}, {"source": "Cersei", "target": "Sansa"}, {"source": "Gendry", "target": "Thoros"}, {"source": "Gendry", "target": "Sandor"}, {"source": "Gregor", "target": "Bronn"}, {"source": "Gregor", "target": "Elia"}, {"source": "Gregor", "target": "Ilyn"}, {"source": "Gregor", "target": "Meryn"}, {"source": "Gregor", "target": "Sandor"}, {"source": "Gregor", "target": "Joffrey"}, {"source": "Joffrey", "target": "Ilyn"}, {"source": "Joffrey", "target": "Kevan"}, {"source": "Joffrey", "target": "Loras"}, {"source": "Joffrey", "target": "Margaery"}, {"source": "Joffrey", "target": "Meryn"}, {"source": "Joffrey", "target": "Myrcella"}, {"source": "Joffrey", "target": "Sandor"}, {"source": "Joffrey", "target": "Stannis"}, {"source": "Joffrey", "target": "Tommen"}, {"source": "Joffrey", "target": "Robb"}, {"source": "Joffrey", "target": "Sansa"}, {"source": "Jon", "target": "Eddard"}, {"source": "Jon", "target": "Craster"}, {"source": "Jon", "target": "Dalla"}, {"source": "Jon", "target": "Eddison"}, {"source": "Jon", "target": "Gilly"}, {"source": "Jon", "target": "Janos"}, {"source": "Jon", "target": "Meera"}, {"source": "Jon", "target": "Melisandre"}, {"source": "Jon", "target": "Orell"}, {"source": "Jon", "target": "Qhorin"}, {"source": "Jon", "target": "Rattleshirt"}, {"source": "Jon", "target": "Stannis"}, {"source": "Jon", "target": "Styr"}, {"source": "Jon", "target": "Theon"}, {"source": "Jon", "target": "Val"}, {"source": "Jon", "target": "Ygritte"}, {"source": "Jon", "target": "Robb"}, {"source": "Jon", "target": "Sansa"}, {"source": "Rickon", "target": "Eddard"}, {"source": "Rickon", "target": "Theon"}, {"source": "Rickon", "target": "Robb"}, {"source": "Rickon", "target": "Sansa"}, {"source": "Roose", "target": "Catelyn"}, {"source": "Roose", "target": "Robb"}, {"source": "Roose", "target": "Brienne"}, {"source": "Sandor", "target": "Eddard"}, {"source": "Sandor", "target": "Ilyn"}, {"source": "Sandor", "target": "Meryn"}, {"source": "Sandor", "target": "Thoros"}, {"source": "Sandor", "target": "Sansa"}, {"source": "Balon", "target": "Loras"}, {"source": "Balon", "target": "Robb"}, {"source": "Balon", "target": "Stannis"}, {"source": "Loras", "target": "Brienne"}, {"source": "Loras", "target": "Margaery"}, {"source": "Loras", "target": "Olenna"}, {"source": "Loras", "target": "Renly"}, {"source": "Loras", "target": "Sansa"}, {"source": "Belwas", "target": "Barristan"}, {"source": "Belwas", "target": "Illyrio"}, {"source": "Belwas", "target": "Daenerys"}, {"source": "Belwas", "target": "Jorah"}, {"source": "Barristan", "target": "Daenerys"}, {"source": "Barristan", "target": "Jorah"}, {"source": "Barristan", "target": "Rhaegar"}, {"source": "Hodor", "target": "Jojen"}, {"source": "Hodor", "target": "Meera"}, {"source": "Hodor", "target": "Robb"}, {"source": "Jojen", "target": "Meera"}, {"source": "Luwin", "target": "Nan"}, {"source": "Theon", "target": "Robb"}, {"source": "Brienne", "target": "Catelyn"}, {"source": "Brienne", "target": "Robb"}, {"source": "Brienne", "target": "Sansa"}, {"source": "Bronn", "target": "Podrick"}, {"source": "Podrick", "target": "Margaery"}, {"source": "Podrick", "target": "Sansa"}, {"source": "Lothar", "target": "Edmure"}, {"source": "Lothar", "target": "Roslin"}, {"source": "Lothar", "target": "Robb"}, {"source": "Lothar", "target": "Walder"}, {"source": "Walder", "target": "Catelyn"}, {"source": "Walder", "target": "Edmure"}, {"source": "Walder", "target": "Robb"}, {"source": "Walder", "target": "Petyr"}, {"source": "Walder", "target": "Roslin"}, {"source": "Catelyn", "target": "Edmure"}, {"source": "Catelyn", "target": "Hoster"}, {"source": "Catelyn", "target": "Jeyne"}, {"source": "Catelyn", "target": "Lysa"}, {"source": "Catelyn", "target": "Petyr"}, {"source": "Catelyn", "target": "Robb"}, {"source": "Catelyn", "target": "Roslin"}, {"source": "Catelyn", "target": "Sansa"}, {"source": "Catelyn", "target": "Stannis"}, {"source": "Catelyn", "target": "Eddard"}, {"source": "Edmure", "target": "Roslin"}, {"source": "Edmure", "target": "Hoster"}, {"source": "Edmure", "target": "Robb"}, {"source": "Hoster", "target": "Lysa"}, {"source": "Jeyne", "target": "Robb"}, {"source": "Lysa", "target": "Jon Arryn"}, {"source": "Lysa", "target": "Marillion"}, {"source": "Lysa", "target": "Petyr"}, {"source": "Lysa", "target": "Robert Arryn"}, {"source": "Lysa", "target": "Sansa"}, {"source": "Petyr", "target": "Robb"}, {"source": "Petyr", "target": "Sansa"}, {"source": "Robb", "target": "Eddard"}, {"source": "Robb", "target": "Ramsay"}, {"source": "Robb", "target": "Rickard"}, {"source": "Robb", "target": "Sansa"}, {"source": "Robb", "target": "Stannis"}, {"source": "Sansa", "target": "Eddard"}, {"source": "Sansa", "target": "Kevan"}, {"source": "Sansa", "target": "Margaery"}, {"source": "Sansa", "target": "Marillion"}, {"source": "Sansa", "target": "Myrcella"}, {"source": "Sansa", "target": "Olenna"}, {"source": "Sansa", "target": "Renly"}, {"source": "Sansa", "target": "Robert Arryn"}, {"source": "Sansa", "target": "Shae"}, {"source": "Stannis", "target": "Davos"}, {"source": "Stannis", "target": "Melisandre"}, {"source": "Stannis", "target": "Renly"}, {"source": "Elia", "target": "Rhaegar"}, {"source": "Ilyn", "target": "Meryn"}, {"source": "Pycelle", "target": "Varys"}, {"source": "Shae", "target": "Chataya"}, {"source": "Shae", "target": "Varys"}, {"source": "Varys", "target": "Kevan"}, {"source": "Varys", "target": "Renly"}, {"source": "Craster", "target": "Karl"}, {"source": "Craster", "target": "Gilly"}, {"source": "Daario", "target": "Drogo"}, {"source": "Daario", "target": "Irri"}, {"source": "Daario", "target": "Daenerys"}, {"source": "Daario", "target": "Jorah"}, {"source": "Drogo", "target": "Daenerys"}, {"source": "Drogo", "target": "Irri"}, {"source": "Drogo", "target": "Jorah"}, {"source": "Irri", "target": "Daenerys"}, {"source": "Irri", "target": "Missandei"}, {"source": "Daenerys", "target": "Aegon"}, {"source": "Daenerys", "target": "Jorah"}, {"source": "Daenerys", "target": "Kraznys"}, {"source": "Daenerys", "target": "Missandei"}, {"source": "Daenerys", "target": "Rakharo"}, {"source": "Daenerys", "target": "Rhaegar"}, {"source": "Daenerys", "target": "Viserys"}, {"source": "Daenerys", "target": "Worm"}, {"source": "Jorah", "target": "Rhaegar"}, {"source": "Rhaegar", "target": "Viserys"}, {"source": "Davos", "target": "Cressen"}, {"source": "Davos", "target": "Salladhor"}, {"source": "Davos", "target": "Melisandre"}, {"source": "Davos", "target": "Shireen"}, {"source": "Renly", "target": "Margaery"}, {"source": "Tommen", "target": "Myrcella"}, {"source": "Tommen", "target": "Margaery"}, {"source": "Janos", "target": "Bowen"}, {"source": "Kevan", "target": "Lancel"}, {"source": "Dalla", "target": "Val"}, {"source": "Qhorin", "target": "Rattleshirt"}, {"source": "Qhorin", "target": "Ygritte"}, {"source": "Rattleshirt", "target": "Ygritte"}, {"source": "Marillion", "target": "Robert Arryn"}]}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.links line {
stroke: #999;
stroke-opacity: 0.6;
}
.nodes circle {
stroke: #fff;
stroke-width: 1.5px;
}
text {
font-family: sans-serif;
font-size: 10px;
}
</style>
<svg width="960" height="600"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
var svg = d3.select("svg"),
width = +svg.attr("width"),
height = +svg.attr("height");
var color = d3.scaleOrdinal(d3.schemeCategory20);
var simulation = d3.forceSimulation()
.force("link", d3.forceLink().id(function(d) {
return d.id; }))
.force('charge',
d3.forceManyBody().strength(-200)
)
.force("center", d3.forceCenter(width / 2, height / 2))
.force('y', d3.forceY(0))
.force('x', d3.forceX(0));
d3.json("got_unipartite_data.json", function(error, graph) {
if (error) throw error;
console.log(graph);
var link = svg.append("g")
.attr("class", "links")
.selectAll("line")
.data(graph.links)
.enter().append("line")
.attr("stroke-width", "1");
var node = svg.append("g")
.attr("class", "nodes")
.selectAll("g")
.data(graph.nodes)
.enter().append("g")
var circles = node.append("circle")
.attr("r", "5")
.attr("fill", function(d) { return color(d.community); })
.call(d3.drag()
.on("start", dragstarted)
.on("drag", dragged)
.on("end", dragended));
var lables = node.append("text")
.text(function(d) {
return d.id;
})
.attr('x', 6)
.attr('y', 3);
node.append("title")
.text(function(d) { return d.id; });
simulation
.nodes(graph.nodes)
.on("tick", ticked);
simulation.force("link")
.links(graph.links);
function ticked() {
link
.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
node
.attr("transform", function(d) {
return "translate(" + d.x + "," + d.y + ")";
})
}
});
function dragstarted(d) {
if (!d3.event.active) simulation.alphaTarget(0.3).restart();
d.fx = d.x;
d.fy = d.y;
}
function dragged(d) {
d.fx = d3.event.x;
d.fy = d3.event.y;
}
function dragended(d) {
if (!d3.event.active) simulation.alphaTarget(0);
d.fx = null;
d.fy = null;
}
</script>
{"directed": false, "multigraph": false, "graph": {}, "nodes": [{"value": 11, "community": 0, "id": " blogging"}, {"value": 9, "community": 1, "id": " data visualization"}, {"value": 10, "community": 0, "id": " databases"}, {"value": 6, "community": 2, "id": " machine learning/ai/buzzword tech stuff"}, {"value": 8, "community": 3, "id": " mapping"}, {"value": 10, "community": 0, "id": " pedagogy"}, {"value": 7, "community": 1, "id": " text mining"}, {"value": 9, "community": 3, "id": " website creation"}, {"value": 7, "community": 3, "id": "Golnar"}, {"value": 5, "community": 1, "id": "Jack"}, {"value": 2, "community": 2, "id": "Keanu"}, {"value": 3, "community": 3, "id": "Lily "}, {"value": 9, "community": 3, "id": "Paul"}, {"value": 9, "community": 1, "id": "Richard"}, {"value": 4, "community": 0, "id": "Sandra Kruse"}, {"value": 5, "community": 0, "id": "Taylor "}, {"value": 7, "community": 1, "id": "Zoe"}, {"value": 10, "community": 0, "id": "cmu"}, {"value": 4, "community": 0, "id": "data visualization"}, {"value": 9, "community": 0, "id": "duquesne university "}, {"value": 10, "community": 3, "id": "networks"}, {"value": 2, "community": 2, "id": "pedagogy"}, {"value": 2, "community": 2, "id": "ucla"}, {"value": 7, "community": 3, "id": "university of pittsburgh "}, {"value": 7, "community": 1, "id": "university of virginia"}], "links": [{"weight": 1, "source": " blogging", "target": "Golnar"}, {"weight": 1, "source": " blogging", "target": "Jack"}, {"weight": 1, "source": " blogging", "target": "Paul"}, {"weight": 1, "source": " blogging", "target": "Richard"}, {"weight": 1, "source": " blogging", "target": "Sandra Kruse"}, {"weight": 1, "source": " blogging", "target": "Taylor "}, {"weight": 1, "source": " blogging", "target": "Zoe"}, {"weight": 3, "source": " blogging", "target": "cmu"}, {"weight": 2, "source": " blogging", "target": "duquesne university "}, {"weight": 1, "source": " blogging", "target": "university of pittsburgh "}, {"weight": 1, "source": " blogging", "target": "university of virginia"}, {"weight": 1, "source": " data visualization", "target": "Golnar"}, {"weight": 1, "source": " data visualization", "target": "Jack"}, {"weight": 1, "source": " data visualization", "target": "Paul"}, {"weight": 2, "source": " data visualization", "target": "Richard"}, {"weight": 1, "source": " data visualization", "target": "Zoe"}, {"weight": 3, "source": " data visualization", "target": "cmu"}, {"weight": 1, "source": " data visualization", "target": "duquesne university "}, {"weight": 1, "source": " data visualization", "target": "university of pittsburgh "}, {"weight": 1, "source": " data visualization", "target": "university of virginia"}, {"weight": 1, "source": " databases", "target": "Golnar"}, {"weight": 1, "source": " databases", "target": "Paul"}, {"weight": 1, "source": " databases", "target": "Richard"}, {"weight": 1, "source": " databases", "target": "Sandra Kruse"}, {"weight": 1, "source": " databases", "target": "Taylor "}, {"weight": 1, "source": " databases", "target": "Zoe"}, {"weight": 3, "source": " databases", "target": "cmu"}, {"weight": 1, "source": " databases", "target": "duquesne university "}, {"weight": 1, "source": " databases", "target": "university of pittsburgh "}, {"weight": 1, "source": " databases", "target": "university of virginia"}, {"weight": 1, "source": " machine learning/ai/buzzword tech stuff", "target": "Keanu"}, {"weight": 1, "source": " machine learning/ai/buzzword tech stuff", "target": "Paul"}, {"weight": 2, "source": " machine learning/ai/buzzword tech stuff", "target": "Richard"}, {"weight": 2, "source": " machine learning/ai/buzzword tech stuff", "target": "cmu"}, {"weight": 1, "source": " machine learning/ai/buzzword tech stuff", "target": "duquesne university "}, {"weight": 1, "source": " machine learning/ai/buzzword tech stuff", "target": "ucla"}, {"weight": 1, "source": " mapping", "target": "Golnar"}, {"weight": 1, "source": " mapping", "target": "Lily "}, {"weight": 1, "source": " mapping", "target": "Paul"}, {"weight": 1, "source": " mapping", "target": "Richard"}, {"weight": 1, "source": " mapping", "target": "Zoe"}, {"weight": 2, "source": " mapping", "target": "cmu"}, {"weight": 2, "source": " mapping", "target": "university of pittsburgh "}, {"weight": 1, "source": " mapping", "target": "university of virginia"}, {"weight": 1, "source": " pedagogy", "target": "Golnar"}, {"weight": 1, "source": " pedagogy", "target": "Paul"}, {"weight": 2, "source": " pedagogy", "target": "Richard"}, {"weight": 1, "source": " pedagogy", "target": "Sandra Kruse"}, {"weight": 1, "source": " pedagogy", "target": "Taylor "}, {"weight": 1, "source": " pedagogy", "target": "Zoe"}, {"weight": 3, "source": " pedagogy", "target": "cmu"}, {"weight": 2, "source": " pedagogy", "target": "duquesne university "}, {"weight": 1, "source": " pedagogy", "target": "university of pittsburgh "}, {"weight": 1, "source": " pedagogy", "target": "university of virginia"}, {"weight": 1, "source": " text mining", "target": "Jack"}, {"weight": 1, "source": " text mining", "target": "Paul"}, {"weight": 2, "source": " text mining", "target": "Richard"}, {"weight": 1, "source": " text mining", "target": "Zoe"}, {"weight": 3, "source": " text mining", "target": "cmu"}, {"weight": 1, "source": " text mining", "target": "duquesne university "}, {"weight": 1, "source": " text mining", "target": "university of virginia"}, {"weight": 1, "source": " website creation", "target": "Golnar"}, {"weight": 1, "source": " website creation", "target": "Jack"}, {"weight": 1, "source": " website creation", "target": "Lily "}, {"weight": 1, "source": " website creation", "target": "Paul"}, {"weight": 2, "source": " website creation", "target": "Richard"}, {"weight": 1, "source": " website creation", "target": "Taylor "}, {"weight": 3, "source": " website creation", "target": "cmu"}, {"weight": 2, "source": " website creation", "target": "duquesne university "}, {"weight": 2, "source": " website creation", "target": "university of pittsburgh "}, {"weight": 1, "source": "Golnar", "target": "networks"}, {"weight": 1, "source": "Jack", "target": "networks"}, {"weight": 1, "source": "Keanu", "target": "pedagogy"}, {"weight": 1, "source": "Lily ", "target": "networks"}, {"weight": 1, "source": "Paul", "target": "networks"}, {"weight": 2, "source": "Richard", "target": "networks"}, {"weight": 1, "source": "Sandra Kruse", "target": "data visualization"}, {"weight": 1, "source": "Taylor ", "target": "data visualization"}, {"weight": 1, "source": "Zoe", "target": "networks"}, {"weight": 1, "source": "cmu", "target": "data visualization"}, {"weight": 3, "source": "cmu", "target": "networks"}, {"weight": 1, "source": "data visualization", "target": "duquesne university "}, {"weight": 1, "source": "duquesne university ", "target": "networks"}, {"weight": 2, "source": "networks", "target": "university of pittsburgh "}, {"weight": 1, "source": "networks", "target": "university of virginia"}, {"weight": 1, "source": "pedagogy", "target": "ucla"}]}
{
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
{"id": "Cravatte", "group": 1},
{"id": "Count", "group": 1},
{"id": "OldMan", "group": 1},
{"id": "Labarre", "group": 2},
{"id": "Valjean", "group": 2},
{"id": "Marguerite", "group": 3},
{"id": "Mme.deR", "group": 2},
{"id": "Isabeau", "group": 2},
{"id": "Gervais", "group": 2},
{"id": "Tholomyes", "group": 3},
{"id": "Listolier", "group": 3},
{"id": "Fameuil", "group": 3},
{"id": "Blacheville", "group": 3},
{"id": "Favourite", "group": 3},
{"id": "Dahlia", "group": 3},
{"id": "Zephine", "group": 3},
{"id": "Fantine", "group": 3},
{"id": "Mme.Thenardier", "group": 4},
{"id": "Thenardier", "group": 4},
{"id": "Cosette", "group": 5},
{"id": "Javert", "group": 4},
{"id": "Fauchelevent", "group": 0},
{"id": "Bamatabois", "group": 2},
{"id": "Perpetue", "group": 3},
{"id": "Simplice", "group": 2},
{"id": "Scaufflaire", "group": 2},
{"id": "Woman1", "group": 2},
{"id": "Judge", "group": 2},
{"id": "Champmathieu", "group": 2},
{"id": "Brevet", "group": 2},
{"id": "Chenildieu", "group": 2},
{"id": "Cochepaille", "group": 2},
{"id": "Pontmercy", "group": 4},
{"id": "Boulatruelle", "group": 6},
{"id": "Eponine", "group": 4},
{"id": "Anzelma", "group": 4},
{"id": "Woman2", "group": 5},
{"id": "MotherInnocent", "group": 0},
{"id": "Gribier", "group": 0},
{"id": "Jondrette", "group": 7},
{"id": "Mme.Burgon", "group": 7},
{"id": "Gavroche", "group": 8},
{"id": "Gillenormand", "group": 5},
{"id": "Magnon", "group": 5},
{"id": "Mlle.Gillenormand", "group": 5},
{"id": "Mme.Pontmercy", "group": 5},
{"id": "Mlle.Vaubois", "group": 5},
{"id": "Lt.Gillenormand", "group": 5},
{"id": "Marius", "group": 8},
{"id": "BaronessT", "group": 5},
{"id": "Mabeuf", "group": 8},
{"id": "Enjolras", "group": 8},
{"id": "Combeferre", "group": 8},
{"id": "Prouvaire", "group": 8},
{"id": "Feuilly", "group": 8},
{"id": "Courfeyrac", "group": 8},
{"id": "Bahorel", "group": 8},
{"id": "Bossuet", "group": 8},
{"id": "Joly", "group": 8},
{"id": "Grantaire", "group": 8},
{"id": "MotherPlutarch", "group": 9},
{"id": "Gueulemer", "group": 4},
{"id": "Babet", "group": 4},
{"id": "Claquesous", "group": 4},
{"id": "Montparnasse", "group": 4},
{"id": "Toussaint", "group": 5},
{"id": "Child1", "group": 10},
{"id": "Child2", "group": 10},
{"id": "Brujon", "group": 4},
{"id": "Mme.Hucheloup", "group": 8}
],
"links": [
{"source": "Napoleon", "target": "Myriel", "value": 1},
{"source": "Mlle.Baptistine", "target": "Myriel", "value": 8},
{"source": "Mme.Magloire", "target": "Myriel", "value": 10},
{"source": "Mme.Magloire", "target": "Mlle.Baptistine", "value": 6},
{"source": "CountessdeLo", "target": "Myriel", "value": 1},
{"source": "Geborand", "target": "Myriel", "value": 1},
{"source": "Champtercier", "target": "Myriel", "value": 1},
{"source": "Cravatte", "target": "Myriel", "value": 1},
{"source": "Count", "target": "Myriel", "value": 2},
{"source": "OldMan", "target": "Myriel", "value": 1},
{"source": "Valjean", "target": "Labarre", "value": 1},
{"source": "Valjean", "target": "Mme.Magloire", "value": 3},
{"source": "Valjean", "target": "Mlle.Baptistine", "value": 3},
{"source": "Valjean", "target": "Myriel", "value": 5},
{"source": "Marguerite", "target": "Valjean", "value": 1},
{"source": "Mme.deR", "target": "Valjean", "value": 1},
{"source": "Isabeau", "target": "Valjean", "value": 1},
{"source": "Gervais", "target": "Valjean", "value": 1},
{"source": "Listolier", "target": "Tholomyes", "value": 4},
{"source": "Fameuil", "target": "Tholomyes", "value": 4},
{"source": "Fameuil", "target": "Listolier", "value": 4},
{"source": "Blacheville", "target": "Tholomyes", "value": 4},
{"source": "Blacheville", "target": "Listolier", "value": 4},
{"source": "Blacheville", "target": "Fameuil", "value": 4},
{"source": "Favourite", "target": "Tholomyes", "value": 3},
{"source": "Favourite", "target": "Listolier", "value": 3},
{"source": "Favourite", "target": "Fameuil", "value": 3},
{"source": "Favourite", "target": "Blacheville", "value": 4},
{"source": "Dahlia", "target": "Tholomyes", "value": 3},
{"source": "Dahlia", "target": "Listolier", "value": 3},
{"source": "Dahlia", "target": "Fameuil", "value": 3},
{"source": "Dahlia", "target": "Blacheville", "value": 3},
{"source": "Dahlia", "target": "Favourite", "value": 5},
{"source": "Zephine", "target": "Tholomyes", "value": 3},
{"source": "Zephine", "target": "Listolier", "value": 3},
{"source": "Zephine", "target": "Fameuil", "value": 3},
{"source": "Zephine", "target": "Blacheville", "value": 3},
{"source": "Zephine", "target": "Favourite", "value": 4},
{"source": "Zephine", "target": "Dahlia", "value": 4},
{"source": "Fantine", "target": "Tholomyes", "value": 3},
{"source": "Fantine", "target": "Listolier", "value": 3},
{"source": "Fantine", "target": "Fameuil", "value": 3},
{"source": "Fantine", "target": "Blacheville", "value": 3},
{"source": "Fantine", "target": "Favourite", "value": 4},
{"source": "Fantine", "target": "Dahlia", "value": 4},
{"source": "Fantine", "target": "Zephine", "value": 4},
{"source": "Fantine", "target": "Marguerite", "value": 2},
{"source": "Fantine", "target": "Valjean", "value": 9},
{"source": "Mme.Thenardier", "target": "Fantine", "value": 2},
{"source": "Mme.Thenardier", "target": "Valjean", "value": 7},
{"source": "Thenardier", "target": "Mme.Thenardier", "value": 13},
{"source": "Thenardier", "target": "Fantine", "value": 1},
{"source": "Thenardier", "target": "Valjean", "value": 12},
{"source": "Cosette", "target": "Mme.Thenardier", "value": 4},
{"source": "Cosette", "target": "Valjean", "value": 31},
{"source": "Cosette", "target": "Tholomyes", "value": 1},
{"source": "Cosette", "target": "Thenardier", "value": 1},
{"source": "Javert", "target": "Valjean", "value": 17},
{"source": "Javert", "target": "Fantine", "value": 5},
{"source": "Javert", "target": "Thenardier", "value": 5},
{"source": "Javert", "target": "Mme.Thenardier", "value": 1},
{"source": "Javert", "target": "Cosette", "value": 1},
{"source": "Fauchelevent", "target": "Valjean", "value": 8},
{"source": "Fauchelevent", "target": "Javert", "value": 1},
{"source": "Bamatabois", "target": "Fantine", "value": 1},
{"source": "Bamatabois", "target": "Javert", "value": 1},
{"source": "Bamatabois", "target": "Valjean", "value": 2},
{"source": "Perpetue", "target": "Fantine", "value": 1},
{"source": "Simplice", "target": "Perpetue", "value": 2},
{"source": "Simplice", "target": "Valjean", "value": 3},
{"source": "Simplice", "target": "Fantine", "value": 2},
{"source": "Simplice", "target": "Javert", "value": 1},
{"source": "Scaufflaire", "target": "Valjean", "value": 1},
{"source": "Woman1", "target": "Valjean", "value": 2},
{"source": "Woman1", "target": "Javert", "value": 1},
{"source": "Judge", "target": "Valjean", "value": 3},
{"source": "Judge", "target": "Bamatabois", "value": 2},
{"source": "Champmathieu", "target": "Valjean", "value": 3},
{"source": "Champmathieu", "target": "Judge", "value": 3},
{"source": "Champmathieu", "target": "Bamatabois", "value": 2},
{"source": "Brevet", "target": "Judge", "value": 2},
{"source": "Brevet", "target": "Champmathieu", "value": 2},
{"source": "Brevet", "target": "Valjean", "value": 2},
{"source": "Brevet", "target": "Bamatabois", "value": 1},
{"source": "Chenildieu", "target": "Judge", "value": 2},
{"source": "Chenildieu", "target": "Champmathieu", "value": 2},
{"source": "Chenildieu", "target": "Brevet", "value": 2},
{"source": "Chenildieu", "target": "Valjean", "value": 2},
{"source": "Chenildieu", "target": "Bamatabois", "value": 1},
{"source": "Cochepaille", "target": "Judge", "value": 2},
{"source": "Cochepaille", "target": "Champmathieu", "value": 2},
{"source": "Cochepaille", "target": "Brevet", "value": 2},
{"source": "Cochepaille", "target": "Chenildieu", "value": 2},
{"source": "Cochepaille", "target": "Valjean", "value": 2},
{"source": "Cochepaille", "target": "Bamatabois", "value": 1},
{"source": "Pontmercy", "target": "Thenardier", "value": 1},
{"source": "Boulatruelle", "target": "Thenardier", "value": 1},
{"source": "Eponine", "target": "Mme.Thenardier", "value": 2},
{"source": "Eponine", "target": "Thenardier", "value": 3},
{"source": "Anzelma", "target": "Eponine", "value": 2},
{"source": "Anzelma", "target": "Thenardier", "value": 2},
{"source": "Anzelma", "target": "Mme.Thenardier", "value": 1},
{"source": "Woman2", "target": "Valjean", "value": 3},
{"source": "Woman2", "target": "Cosette", "value": 1},
{"source": "Woman2", "target": "Javert", "value": 1},
{"source": "MotherInnocent", "target": "Fauchelevent", "value": 3},
{"source": "MotherInnocent", "target": "Valjean", "value": 1},
{"source": "Gribier", "target": "Fauchelevent", "value": 2},
{"source": "Mme.Burgon", "target": "Jondrette", "value": 1},
{"source": "Gavroche", "target": "Mme.Burgon", "value": 2},
{"source": "Gavroche", "target": "Thenardier", "value": 1},
{"source": "Gavroche", "target": "Javert", "value": 1},
{"source": "Gavroche", "target": "Valjean", "value": 1},
{"source": "Gillenormand", "target": "Cosette", "value": 3},
{"source": "Gillenormand", "target": "Valjean", "value": 2},
{"source": "Magnon", "target": "Gillenormand", "value": 1},
{"source": "Magnon", "target": "Mme.Thenardier", "value": 1},
{"source": "Mlle.Gillenormand", "target": "Gillenormand", "value": 9},
{"source": "Mlle.Gillenormand", "target": "Cosette", "value": 2},
{"source": "Mlle.Gillenormand", "target": "Valjean", "value": 2},
{"source": "Mme.Pontmercy", "target": "Mlle.Gillenormand", "value": 1},
{"source": "Mme.Pontmercy", "target": "Pontmercy", "value": 1},
{"source": "Mlle.Vaubois", "target": "Mlle.Gillenormand", "value": 1},
{"source": "Lt.Gillenormand", "target": "Mlle.Gillenormand", "value": 2},
{"source": "Lt.Gillenormand", "target": "Gillenormand", "value": 1},
{"source": "Lt.Gillenormand", "target": "Cosette", "value": 1},
{"source": "Marius", "target": "Mlle.Gillenormand", "value": 6},
{"source": "Marius", "target": "Gillenormand", "value": 12},
{"source": "Marius", "target": "Pontmercy", "value": 1},
{"source": "Marius", "target": "Lt.Gillenormand", "value": 1},
{"source": "Marius", "target": "Cosette", "value": 21},
{"source": "Marius", "target": "Valjean", "value": 19},
{"source": "Marius", "target": "Tholomyes", "value": 1},
{"source": "Marius", "target": "Thenardier", "value": 2},
{"source": "Marius", "target": "Eponine", "value": 5},
{"source": "Marius", "target": "Gavroche", "value": 4},
{"source": "BaronessT", "target": "Gillenormand", "value": 1},
{"source": "BaronessT", "target": "Marius", "value": 1},
{"source": "Mabeuf", "target": "Marius", "value": 1},
{"source": "Mabeuf", "target": "Eponine", "value": 1},
{"source": "Mabeuf", "target": "Gavroche", "value": 1},
{"source": "Enjolras", "target": "Marius", "value": 7},
{"source": "Enjolras", "target": "Gavroche", "value": 7},
{"source": "Enjolras", "target": "Javert", "value": 6},
{"source": "Enjolras", "target": "Mabeuf", "value": 1},
{"source": "Enjolras", "target": "Valjean", "value": 4},
{"source": "Combeferre", "target": "Enjolras", "value": 15},
{"source": "Combeferre", "target": "Marius", "value": 5},
{"source": "Combeferre", "target": "Gavroche", "value": 6},
{"source": "Combeferre", "target": "Mabeuf", "value": 2},
{"source": "Prouvaire", "target": "Gavroche", "value": 1},
{"source": "Prouvaire", "target": "Enjolras", "value": 4},
{"source": "Prouvaire", "target": "Combeferre", "value": 2},
{"source": "Feuilly", "target": "Gavroche", "value": 2},
{"source": "Feuilly", "target": "Enjolras", "value": 6},
{"source": "Feuilly", "target": "Prouvaire", "value": 2},
{"source": "Feuilly", "target": "Combeferre", "value": 5},
{"source": "Feuilly", "target": "Mabeuf", "value": 1},
{"source": "Feuilly", "target": "Marius", "value": 1},
{"source": "Courfeyrac", "target": "Marius", "value": 9},
{"source": "Courfeyrac", "target": "Enjolras", "value": 17},
{"source": "Courfeyrac", "target": "Combeferre", "value": 13},
{"source": "Courfeyrac", "target": "Gavroche", "value": 7},
{"source": "Courfeyrac", "target": "Mabeuf", "value": 2},
{"source": "Courfeyrac", "target": "Eponine", "value": 1},
{"source": "Courfeyrac", "target": "Feuilly", "value": 6},
{"source": "Courfeyrac", "target": "Prouvaire", "value": 3},
{"source": "Bahorel", "target": "Combeferre", "value": 5},
{"source": "Bahorel", "target": "Gavroche", "value": 5},
{"source": "Bahorel", "target": "Courfeyrac", "value": 6},
{"source": "Bahorel", "target": "Mabeuf", "value": 2},
{"source": "Bahorel", "target": "Enjolras", "value": 4},
{"source": "Bahorel", "target": "Feuilly", "value": 3},
{"source": "Bahorel", "target": "Prouvaire", "value": 2},
{"source": "Bahorel", "target": "Marius", "value": 1},
{"source": "Bossuet", "target": "Marius", "value": 5},
{"source": "Bossuet", "target": "Courfeyrac", "value": 12},
{"source": "Bossuet", "target": "Gavroche", "value": 5},
{"source": "Bossuet", "target": "Bahorel", "value": 4},
{"source": "Bossuet", "target": "Enjolras", "value": 10},
{"source": "Bossuet", "target": "Feuilly", "value": 6},
{"source": "Bossuet", "target": "Prouvaire", "value": 2},
{"source": "Bossuet", "target": "Combeferre", "value": 9},
{"source": "Bossuet", "target": "Mabeuf", "value": 1},
{"source": "Bossuet", "target": "Valjean", "value": 1},
{"source": "Joly", "target": "Bahorel", "value": 5},
{"source": "Joly", "target": "Bossuet", "value": 7},
{"source": "Joly", "target": "Gavroche", "value": 3},
{"source": "Joly", "target": "Courfeyrac", "value": 5},
{"source": "Joly", "target": "Enjolras", "value": 5},
{"source": "Joly", "target": "Feuilly", "value": 5},
{"source": "Joly", "target": "Prouvaire", "value": 2},
{"source": "Joly", "target": "Combeferre", "value": 5},
{"source": "Joly", "target": "Mabeuf", "value": 1},
{"source": "Joly", "target": "Marius", "value": 2},
{"source": "Grantaire", "target": "Bossuet", "value": 3},
{"source": "Grantaire", "target": "Enjolras", "value": 3},
{"source": "Grantaire", "target": "Combeferre", "value": 1},
{"source": "Grantaire", "target": "Courfeyrac", "value": 2},
{"source": "Grantaire", "target": "Joly", "value": 2},
{"source": "Grantaire", "target": "Gavroche", "value": 1},
{"source": "Grantaire", "target": "Bahorel", "value": 1},
{"source": "Grantaire", "target": "Feuilly", "value": 1},
{"source": "Grantaire", "target": "Prouvaire", "value": 1},
{"source": "MotherPlutarch", "target": "Mabeuf", "value": 3},
{"source": "Gueulemer", "target": "Thenardier", "value": 5},
{"source": "Gueulemer", "target": "Valjean", "value": 1},
{"source": "Gueulemer", "target": "Mme.Thenardier", "value": 1},
{"source": "Gueulemer", "target": "Javert", "value": 1},
{"source": "Gueulemer", "target": "Gavroche", "value": 1},
{"source": "Gueulemer", "target": "Eponine", "value": 1},
{"source": "Babet", "target": "Thenardier", "value": 6},
{"source": "Babet", "target": "Gueulemer", "value": 6},
{"source": "Babet", "target": "Valjean", "value": 1},
{"source": "Babet", "target": "Mme.Thenardier", "value": 1},
{"source": "Babet", "target": "Javert", "value": 2},
{"source": "Babet", "target": "Gavroche", "value": 1},
{"source": "Babet", "target": "Eponine", "value": 1},
{"source": "Claquesous", "target": "Thenardier", "value": 4},
{"source": "Claquesous", "target": "Babet", "value": 4},
{"source": "Claquesous", "target": "Gueulemer", "value": 4},
{"source": "Claquesous", "target": "Valjean", "value": 1},
{"source": "Claquesous", "target": "Mme.Thenardier", "value": 1},
{"source": "Claquesous", "target": "Javert", "value": 1},
{"source": "Claquesous", "target": "Eponine", "value": 1},
{"source": "Claquesous", "target": "Enjolras", "value": 1},
{"source": "Montparnasse", "target": "Javert", "value": 1},
{"source": "Montparnasse", "target": "Babet", "value": 2},
{"source": "Montparnasse", "target": "Gueulemer", "value": 2},
{"source": "Montparnasse", "target": "Claquesous", "value": 2},
{"source": "Montparnasse", "target": "Valjean", "value": 1},
{"source": "Montparnasse", "target": "Gavroche", "value": 1},
{"source": "Montparnasse", "target": "Eponine", "value": 1},
{"source": "Montparnasse", "target": "Thenardier", "value": 1},
{"source": "Toussaint", "target": "Cosette", "value": 2},
{"source": "Toussaint", "target": "Javert", "value": 1},
{"source": "Toussaint", "target": "Valjean", "value": 1},
{"source": "Child1", "target": "Gavroche", "value": 2},
{"source": "Child2", "target": "Gavroche", "value": 2},
{"source": "Child2", "target": "Child1", "value": 3},
{"source": "Brujon", "target": "Babet", "value": 3},
{"source": "Brujon", "target": "Gueulemer", "value": 3},
{"source": "Brujon", "target": "Thenardier", "value": 3},
{"source": "Brujon", "target": "Gavroche", "value": 1},
{"source": "Brujon", "target": "Eponine", "value": 1},
{"source": "Brujon", "target": "Claquesous", "value": 1},
{"source": "Brujon", "target": "Montparnasse", "value": 1},
{"source": "Mme.Hucheloup", "target": "Bossuet", "value": 1},
{"source": "Mme.Hucheloup", "target": "Joly", "value": 1},
{"source": "Mme.Hucheloup", "target": "Grantaire", "value": 1},
{"source": "Mme.Hucheloup", "target": "Bahorel", "value": 1},
{"source": "Mme.Hucheloup", "target": "Courfeyrac", "value": 1},
{"source": "Mme.Hucheloup", "target": "Gavroche", "value": 1},
{"source": "Mme.Hucheloup", "target": "Enjolras", "value": 1}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment