Examples of readGraph()


Examples of com.tinkerpop.gremlin.structure.io.kryo.KryoReader.readGraph()

            final Graph g1 = graphProvider.openTestGraph(configuration);
            final KryoReader reader = KryoReader.build()
                    .custom(graphProvider.createConfiguredGremlinKryo())
                    .workingDirectory(File.separator + "tmp").create();
            try (final ByteArrayInputStream bais = new ByteArrayInputStream(os.toByteArray())) {
                reader.readGraph(bais, g1);
            }

            // by making this lossy for float it will assert floats for doubles
            assertModernGraph(g1, true, false);
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.io.kryo.KryoReader.readGraph()

            final Graph g1 = graphProvider.openTestGraph(configuration);
            final KryoReader reader = KryoReader.build()
                    .custom(graphProvider.createConfiguredGremlinKryo())
                    .workingDirectory(File.separator + "tmp").create();
            try (final ByteArrayInputStream bais = new ByteArrayInputStream(os.toByteArray())) {
                reader.readGraph(bais, g1);
            }

            // by making this lossy for float it will assert floats for doubles
            assertCrewGraph(g1, false);
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.io.kryo.KryoReader.readGraph()

            final Graph g1 = graphProvider.openTestGraph(configuration);
            final KryoReader reader = KryoReader.build()
                    .custom(graphProvider.createConfiguredGremlinKryo())
                    .workingDirectory(File.separator + "tmp").create();
            try (final ByteArrayInputStream bais = new ByteArrayInputStream(os.toByteArray())) {
                reader.readGraph(bais, g1);
            }

            assertClassicGraph(g1, false, false);

            // need to manually close the "g1" instance
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.io.kryo.KryoReader.readGraph()

    private void inflateTinkerVertex() {
        try {
            final ByteArrayInputStream bis = new ByteArrayInputStream(this.getValue().getBytes());
            final KryoReader reader = KryoReader.build().create();
            final TinkerGraph tinkerGraph = TinkerGraph.open();
            reader.readGraph(bis, tinkerGraph);
            bis.close();
            this.tinkerVertex = (TinkerVertex) tinkerGraph.v(tinkerGraph.variables().get(VERTEX_ID).get());
        } catch (final Exception e) {
            throw new IllegalStateException(e.getMessage(), e);
        }
View Full Code Here

Examples of edu.uci.ics.jung.io.graphml.GraphMLReader2.readGraph()

      InputStreamReader graphReader = new InputStreamReader(resourceGetter.next());
     
     
      GraphMLReader2 graphFactory = new GraphMLReader2(graphReader, this, this, this, this);
     
      return new Navigation( graphFactory.readGraph());
     
   }
  
   public static Navigation createDefaultNavigation() throws Exception
   {
View Full Code Here

Examples of prefuse.data.io.GraphMLReader.readGraph()

        if(openMe.exists())
        {
            try
            {
               GraphMLReader graphReader = new GraphMLReader();
               this.graphML = graphReader.readGraph(openMe);
               return true;
            }
            catch (Exception e){
               System.out.println("Exception "+ e);
               return false;
View Full Code Here

Examples of prefuse.data.io.GraphReader.readGraph()

        File f = jfc.getSelectedFile();
        ff = (SimpleFileFilter)jfc.getFileFilter();
        GraphReader gr = (GraphReader)ff.getUserData();
       
        try {
            return gr.readGraph(streamFromString(f.getAbsolutePath()));
        } catch ( Exception e ) {
            Logger.getLogger(IOLib.class.getName()).warning(
                e.getMessage() + "\n" + StringLib.getStackTrace(e));
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.