Exporting standalone Neo4j to GraphViz

426 views
Skip to first unread message

craig pardey

unread,
Jun 4, 2018, 7:54:53 AM6/4/18
to Neo4j
I'd like to export a GraphViz dot file from my Neo4j database. The database is standalone, not embedded.  

I've been trying to get it working using the spring-data-neo4j SpringCypherRestGraphDatabase and the Neo4j GraphvizWriter but haven't had any luck. At this point I'm guessing that these two libraries are incompatible.

I've tried many different versions of both libraries.

    public void saveDotFile(String filename) {
        try {
            OutputStream out = new FileOutputStream(filename);
            GraphvizWriter writer = new GraphvizWriter();
            writer.emit(out, Walker.fullGraph(graphDatabaseService()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public GraphDatabaseService graphDatabaseService() {
        return new SpringCypherRestGraphDatabase(url, username, password);
    }

  • Spring 3.4.6.RELEASE and Neo4j 3.1.1 fails with 
    • NoClassDefFoundError: org/neo4j/kernel/impl/cache/LruCache
  • Spring 3.4.6.RELEASE and Neo4j 2.3.12 fails with
    • ClassCastException: org.springframework.data.neo4j.rest.SpringCypherRestGraphDatabase cannot be cast to org.neo4j.kernel.GraphDatabaseAPI
SpringCypherRestGraphDatabase doesn't exist after 3.4.6.RELEASE

Any help would be greatly appreciated.

Craig

Michael Hunger

unread,
Jun 4, 2018, 7:04:18 PM6/4/18
to ne...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages