Skip to content

Instantly share code, notes, and snippets.

View mfolnovic's full-sized avatar

Matija Folnovic mfolnovic

  • Zagreb, Croatia
View GitHub Profile
@mfolnovic
mfolnovic / README.md
Last active January 1, 2016 19:59 — forked from mbostock/.block
Add blocking work in background.

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.

Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.

@mfolnovic
mfolnovic / index.html
Last active December 21, 2015 07:09 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Mobile Patent Suits</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
<style type="text/css">
path.link {
fill: none;