Skip to content

Instantly share code, notes, and snippets.

@okram
Created July 31, 2012 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okram/3218307 to your computer and use it in GitHub Desktop.
Save okram/3218307 to your computer and use it in GitHub Desktop.
g = new Neo4jGraph('/graph/neo4pedia2')
counter = 0;
for(final Vertex v : g.V()) {
v.toString()
for(Edge e: v.getEdges(BOTH)) {
e.toString()
}
if((counter++ % 500) == 0) {
println("vertices parsed: " + counter);
}
}
g.shutdown()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment