Skip to content

cheukchuen/graph-d3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")