Package com.thinkaurelius.faunus.formats.graphson

Examples of com.thinkaurelius.faunus.formats.graphson.FaunusGraphSONUtility


    }

    public static Map<Long, FaunusVertex> generateGraph(final ExampleGraph example, final Configuration configuration) throws Exception {
        final List<FaunusVertex> vertices;
        if (ExampleGraph.TINKERGRAPH.equals(example))
            vertices = new FaunusGraphSONUtility().fromJSON(FaunusGraphSONUtility.class.getResourceAsStream("graph-example-1.json"));
        else if (ExampleGraph.GRAPH_OF_THE_GODS.equals(example))
            vertices = new FaunusGraphSONUtility().fromJSON(FaunusGraphSONUtility.class.getResourceAsStream("graph-of-the-gods.json"));
        else {
            vertices = new ArrayList<FaunusVertex>();
            FaunusVertex saturn = new FaunusVertex(4l);
            vertices.add(saturn);
            saturn.setProperty("name", "saturn");
View Full Code Here

TOP

Related Classes of com.thinkaurelius.faunus.formats.graphson.FaunusGraphSONUtility

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.