Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1013688 // Test GraphViz (Pure Java version, OK!)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 15226K of libraries. Click here for Pure Java version (7896L/52K).

!7

!include once #1013695 // GraphViz

p {
  File img;
  Graph g = graph("example1").directed()
    .with(node("a").link(node("b")));
  Graphviz.fromGraph(g)
    .width(200).render(Format.PNG)
    .toFile(img = programFile("ex1.png"));
  showImage(img);
}

Author comment

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: 412 / 934
Version history: 13 change(s)
Referenced in: [show references]