Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tree Visualisation with Java [closed]

Tags:

java

graph

tree

I am looking for a libary to generate Graphs or Trees like Organizations Charts. This library should be able to generate plain Images from this graphs.

Does anyone knows a good, hopefully open source, library for Graph Visualization?

like image 652
Johannes Avatar asked Aug 18 '11 13:08

Johannes


2 Answers

JGraph is probably your best bet.

It's an extremely powerful open-source graph visualization library.

like image 140
Reverend Gonzo Avatar answered Nov 06 '22 10:11

Reverend Gonzo


Graphstream Project looks incredible and is open source. The best about it, it's not Swing based:

Graphstream Project

Github Link

Graph graph = new SingleGraph("Tutorial 1");
graph.setStrict(false);
graph.setAutoCreate(true); // optionally have it create nodes for you automatically
graph.addEdge("AB", "A", "B");
graph.addEdge("BC", "B", "C");
graph.addEdge("CA", "C", "A");
graph.display();

enter image description here

Or a tree:

enter image description here

like image 37
Terran Avatar answered Nov 06 '22 09:11

Terran