Skip to content

Instantly share code, notes, and snippets.

A simple editor to allow the manipulation of force-directed graph parameters.

This example is based on Mike Bostock's block 4062045.

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

@mayblue9
mayblue9 / .block
Created July 13, 2016 01:11 — forked from mbostock/.block
HCL Color Space
license: gpl-3.0
@mayblue9
mayblue9 / README.md
Created July 7, 2016 09:26 — forked from standarderror/README.md
D3.js network of murders in The Wire

A force-directed graph of murders in TV show The Wire, discussed at blog subsubroutine.com. Created with D3.js.

Credits:

@mayblue9
mayblue9 / chord.sample
Created July 6, 2016 07:35 — forked from AndrewRP/chord.sample
Andrew's Chord Example
This is a sample file
http://d3js.org/
http://www.personal.psu.edu/cab38/ColorBrewer/ColorBrewer.html
http://bl.ocks.org/AndrewRP/raw/7468330/
http://bl.ocks.org/AndrewRP/7468330
https://gist.github.com/mbostock/1046712
http://bl.ocks.org/mbostock/1046712
https://github.com/mbostock/d3/wiki/Gallery
http://bl.ocks.org/mbostock
http://bl.ocks.org/mbostock/4062006
@mayblue9
mayblue9 / graph.json
Created July 1, 2016 04:36 — forked from eyaler/graph.json
Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight
{
"graph": [],
"links": [
{"source": 0, "target": 1},
{"source": 0, "target": 2},
{"source": 0, "target": 3},
{"source": 0, "target": 4},
{"source": 0, "target": 5},
{"source": 0, "target": 6},
{"source": 1, "target": 3},
@mayblue9
mayblue9 / README.md
Created June 22, 2016 08:10 — forked from enjalot/README.md
interviewing.io: final comp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mayblue9
mayblue9 / example_ephem.ipynb
Created May 25, 2016 04:38 — forked from sjpfenninger/example_ephem.ipynb
IPython example with pyephem
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mayblue9
mayblue9 / graphFile.json
Created May 18, 2016 04:06
A Simple d3 Network Graph
{
"nodes":[
{"name":"node1","group":1},
{"name":"node2","group":2},
{"name":"node3","group":2},
{"name":"node4","group":3}
],
"links":[
{"source":2,"target":1,"weight":1},
{"source":0,"target":2,"weight":3}
@mayblue9
mayblue9 / README.md
Created May 12, 2016 02:30 — forked from helmutkian/README.md
React + D3 Force Layout

This is an example of using ReactJs to render a force directed network graph. D3 performs all the positional calculations for each node and React handles rendering.