Iterable<Vertex> resultIteratorVertices = graph.getVertices(true);for (Vertex v : resultIteratorVertices){ graph.command( new OCommandSQL("TRUNCATE CLASS "+ v.getClass + " POLYMORPHIC UNSAFE") ).execute();}
graph.command( new OCommandSQL("TRUNCATE CLASS V POLYMORPHIC UNSAFE") ).execute();graph.command( new OCommandSQL("TRUNCATE CLASS E POLYMORPHIC UNSAFE") ).execute();
Iterable<Edge> resultIteratorEdges = g.getEdges(true);for (Edge e : resultIteratorEdges){ e.remove();}
Iterable<Vertex> resultIteratorVertices = g.getVertices(true);for (Vertex v : resultIteratorVertices){ v.remove();}