public static void main(final String[] args) throws Exception {
final String inputFile = args.length > 0 ? args[0] : INPUT_FILE;
final String dbURL = args.length > 1 ? args[1] : DBURL;
OrientGraph g = new OrientGraph(dbURL);
System.out.println("Importing graph from file '" + inputFile + "' into database: " + g + "...");
final long startTime = System.currentTimeMillis();
g.setTransactionMode(Mode.MANUAL);
GraphMLReader.inputGraph(g, new FileInputStream(inputFile), 100000, null, null, null);
g.shutdown();
System.out.println("Imported in " + (System.currentTimeMillis() - startTime) + "ms. Vertexes: "
+ g.getRawGraph().countVertexes() + " Edges: " + g.getRawGraph().countEdges());
}