Registry / utility / graphviz-java

graphviz-java

JSON →
library0.18.1javamavenunverified

Pure Java library to render Graphviz DOT graphs to images using the Graphviz layout engine.

<dependency> <groupId>guru.nidi</groupId> <artifactId>graphviz-java</artifactId> <version>0.18.1</version> </dependency>
INSTALL
IMPORT
SIG · GRAPHVIZ-JAVA
G
graphviz-java
utilityjavav0.18.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Graphviz
guru.nidi.graphviz.engine.Graphviz

Creating a simple DOT graph and rendering to PNG.

import guru.nidi.graphviz.engine.Graphviz; import guru.nidi.graphviz.model.MutableGraph; import static guru.nidi.graphviz.model.Factory.mutGraph; public class Example { public void render() throws Exception { MutableGraph g = mutGraph("example").add(mutNode("a").addLink(mutNode("b"))); Graphviz.fromGraph(g).renderFile(new java.io.File("output.png")); } }
Debug
Known issues
gotchaRequires Graphviz native library installed on the system for layout.
fix
Install Graphviz (e.g., apt-get install graphviz) or use the bundled native binaries.
affects: >=0.10.0
Upgrade
Version history
0.18.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources