Skip to content

Instantly share code, notes, and snippets.

@xhochy
Created July 2, 2012 10:52
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 xhochy/3032678 to your computer and use it in GitHub Desktop.
Save xhochy/3032678 to your computer and use it in GitHub Desktop.
package com.xhochy
import com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph
import com.tinkerpop.blueprints.util.io.graphml.GraphMLReader
import java.io.FileInputStream
/**
*/
object App {
def main(args : Array[String]) {
val graph = new Neo4jGraph("neo-graph")
val in = new FileInputStream("graph.graphml")
val reader = new GraphMLReader(graph)
reader.inputGraph(in)
in.close
graph.shutdown
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment