Package org.neo4j.visualization.graphviz

Examples of org.neo4j.visualization.graphviz.GraphvizWriter.emit()


        tx.success();
        tx.finish();

        tx = db.beginTx();
        GraphvizWriter writer = new GraphvizWriter();
        writer.emit(System.out, Walker.fullGraph(db));
        IndexHits<Node> hits = index.get("timestamp", 123L);
        assertEquals(2, hits.size());
        hits = index.query("[122 TO 125]");
        assertEquals(3, hits.size());
View Full Code Here


      }
    };

    GraphvizWriter writer = new GraphvizWriter();
    try ( Transaction tx = graphDb.beginTx() ) {
      writer.emit( process.getOutputStream(), walker );
      tx.success();
    }

    process.getOutputStream().close();
View Full Code Here

    @Override
    public ElementCounter dump(SubGraph graph, Writer writer, Reporter reporter, Config config) throws Exception {
        try (Transaction tx = db.beginTx()) {
            GraphvizWriter graphvizWriter = new GraphvizWriter();
            OutputStream os = new WriterOutputStream(writer);
            graphvizWriter.emit(os, new SubgraphMappingWalkerWrapper(graph));
            tx.success();
        }
        return reporter.getTotal();
    }
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.