Skip to content
Graph visualization of big messy data
Branch: master
Clone or download
Latest commit 04ad66a Jan 30, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
ext Inital commit Dec 30, 2016
src Test comments Jan 29, 2017
tests Test comments Jan 29, 2017
.gitignore Inital commit Dec 30, 2016
.travis.yml travis install coveralls Dec 30, 2016
Gruntfile.js Inital commit Dec 30, 2016
LICENSE Add license Dec 31, 2016 Fix commands Jan 28, 2017
demo.html First take on group comments #3 Jan 28, 2017
package.json Inital commit Dec 30, 2016

ggraph - Graph visualization for messy data

Build Status Coverage Status

This is a library built on top D3 with the goal of improving how we work with large and messy graphs. It extends the notion of nodes and links with groups of nodes. This is useful when multiple nodes are in fact the same thing or belong to the same group.

Live demo:

Some examples of nodes that may belong together:

  • IPs in the same subnet
  • Emails / monikers
  • File fingerprints
  • Bitcoin addresses in same wallet
  • Alternative spellings and typos

Data model

The easiest apporach is to call ggraph.convert with a valid D3 object:

var graph = {
    {id: "Maria West", type: "female"},
    {id: "Hazel Santiago", type: "male"},
    {id: "Sheldon Roy", type: "male"}    
  links: [
    {source: "Maria West", target: "Hazel Santiago", value:100},
    {source: "Maria West", target: "Sheldon Roy"}    

converted = ggraph.convert(graph);



ggraph.init('container', 25); // Marker timeout

Merge nodes into groups:

// Merge selected

// Into single group
ggraph.merge(['Maria West', 'Sheldon Roy']);

// Into several groups
  ['A', 'B'],
  ['C', 'D']

Split and remove:

ggraph.split(['Maria West', 'Sheldon Roy']);
ggraph.remove(['Maria West', 'Hazel Santiago']);


git clone && cd ggraph
npm install
node_modules/.bin/karma start tests/cover.conf.js
node_modules/.bin/karma start tests/watch.conf.js
node_modules/.bin/grunt min


This is a work in progress. Contributions are very much welcome!

You can’t perform that action at this time.