How to call GraphViz from java

后端 未结 3 1500
深忆病人
深忆病人 2021-02-01 10:57

How to call GraphViz from java and how to call GraphViz functions using java? What are the necessary jar files that are to be included inorder to access the GraphViz library for

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 11:35

    There seems to be a solution for graphviz in java without dot binary: https://github.com/nidi3/graphviz-java

    From the github page it says:

    To execute the graphviz layout engine, one of these options is used:

    • If the machine has graphviz installed and a dot command is available, spawn a new process running dot.
    • Use this javascript version of graphviz and execute it on the V8 javascript engine. This is done with the bundled J2V8 library.
    • Alternatively, the javascript can be executed on Java's own Nashorn or GraalVM engine.

    I have not tested it yet though

提交回复
热议问题