/graph-d3

Graph of the Gods with D3.js

Primary LanguageJavaScript

Graph of the Gods with D3.js

D3.js visualization of The Graph of the Gods, a toy graph taken as an example from the Titan graph database through Gremlin.

To extract the graph in JSON format with Gremlin:

gremlin> g = TitanFactory.open('conf/titan-berkeleydb-es.properties')
gremlin> GraphOfTheGodsFactory.load(g)
gremlin> g.V.sideEffect{it.setProperty('type', (String) it.getVertexLabel())}.iterate()
gremlin> g.saveGraphSON("graph-of-the-gods.json")