### Running the Neo4j GraphViz module
The quotes around the nodeTitle
, relationshipTitle
and nodePropertyFilter
must be escaped on the shell command-line, to get them to the graphviz main class:
$ ./graphviz ~/neo4j/data/graph.db \
relationshipTitle=\"@type\" nodePropertyFilter=name
or
$ ./graphviz ~/neo4j/data/graph.db relationshipTitle=\@type nodeTitle=\$name
nodePropertyFilter=tp_kind,tp_power,nb_pers,dt_open,dt_close,peRefCount,iso3Code,dt_birth,dt_death
$ dot -Tpng graph.dot > graph.png
$ open graph.png
or
$ for f in *.dot ; do dot -Tpng -o$f.png $f; done
$ open *.png
- Neo4j graphviz command-line script
- Graphviz command-line reference
When getting an error Error starting org.neo4j.kernel.EmbeddedGraphDatabase, …graph.db
, caused by org.neo4j.kernel.StoreLockException: Unable to obtain lock on store lock file: …store_lock
, stop the Neo4j server first.