Download Jar. Uses 15226K of libraries. Click here for Pure Java version (7896L/52K).
1 | !7 |
2 | |
3 | !include once #1013695 // GraphViz |
4 | |
5 | p {
|
6 | File img; |
7 | Graph g = graph("example1").directed()
|
8 | .with(node("a").link(node("b")));
|
9 | Graphviz.fromGraph(g) |
10 | .width(200).render(Format.PNG) |
11 | .toFile(img = programFile("ex1.png"));
|
12 | showImage(img); |
13 | } |
Seems to work on both Linux/64 and Windows (with 32 bit Java VM), even when no GraphViz is installed.
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, moomcjjtfopu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013688 |
| Snippet name: | Test GraphViz (Pure Java version, OK!) |
| Eternal ID of this version: | #1013688/14 |
| Text MD5: | 555637a19bdc8381f040a7c83e473288 |
| Transpilation MD5: | d5bc269a6abc22165cfc3fe9491f201d |
| Author: | stefan |
| Category: | javax / diagrams |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-22 17:31:32 |
| Source code size: | 268 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 813 / 1876 |
| Version history: | 13 change(s) |
| Referenced in: | [show references] |