Package com.tinkerpop.blueprints

Examples of com.tinkerpop.blueprints.MetaGraph


            }
       
    }

    private void resetGraph() {
        final MetaGraph graph = (MetaGraph) this.generateGraph();

        // since we don't have graph.clear() anymore we manually reset the graph.
        Iterator<Vertex> vertexItty = graph.getVertices().iterator();
        List<Vertex> verticesToRemove = new ArrayList<Vertex>();
        while (vertexItty.hasNext()) {
            verticesToRemove.add(vertexItty.next());
        }

        for (Vertex vertexToRemove : verticesToRemove) {
            graph.removeVertex(vertexToRemove);
        }

        // for (String key : graph.getIndexedKeys(Vertex.class)) {
        //             graph.dropKeyIndex(key, Vertex.class);
        //         }
View Full Code Here

TOP

Related Classes of com.tinkerpop.blueprints.MetaGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.