Skip to content

Instantly share code, notes, and snippets.

@aseemk
Created August 25, 2011 20:55
Show Gist options
  • Save aseemk/1171908 to your computer and use it in GitHub Desktop.
Save aseemk/1171908 to your computer and use it in GitHub Desktop.
Proposed subgraph representation for Neo4j
{
"adjacencies": {
"node/1": {
"node/2": "rel/1",
"node/3": "rel/2"
},
"node/2": {
"node/4": "rel/3"
},
"node/3": {
"node/1": "rel/4",
"node/2": "rel/5"
},
"...": {
"...": "..."
}
},
"data": {
"node/1": {
"self": "...",
"data": "...",
"...": "..."
},
"node/2": {
"self": "...",
"data": "...",
"...": "..."
},
"...": "...",
"rel/1": {
"self": "...",
"data": "...",
"...": "..."
},
"...": "..."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment