Pure Java reimplementation of GraphViz?

2019-01-30 06:37发布

问题:

Is there an Open Source java alternative to GraphViz? I'm aware of the existence of Grappa which basically wraps the Graph interface to GraphViz as an JavaAPI. However the layouting is still done by the GraphViz binaries.

I'm looking for a pure-java, open source library providing the same functions and layouting algorithms as GraphViz.

回答1:

You can have a look at JUNG (Java Universal Network/Graph Framework) which has visualization and analytics functions. It's open source.



回答2:

Interestingly, the Eclipse project has an SWT/JFace component/framework capable of displaying and generating (import/export) Graphviz's 'DOT' format, in pure Java:

ZEST (home page & download links)

See http://wiki.eclipse.org/Graphviz_DOT_as_a_DSL_for_Zest for usage examples.

Although ZEST is touted as an Eclipse plugin, it does seem that the DOT-manipulation API's can be used standalone and external to an Eclipse installation.

To clarify, the DOT functionality is a part of the ZEST 2 functionality, which itself is a sub-component of the GEF4 project.

Cheers

Rich

Update (May 2017) https://github.com/nidi3/graphviz-java



回答3:

You could look at JGraph though I have never used it so cannot comment on now it compares to GraphViz.



回答4:

yFiles seems to provide all this, but it's not free and not really cheap either. But then again it seems to be a very professional product (haven't used it, except in yEd, which can be used for free).



回答5:

I guess ZGRViewer is what you want. I really like ZGRViewer and AJaPaD.



回答6:

I worked with yFiles about four years ago, and it was excellent. It's costly (though less than JGraph, apparently) but I work in a CS research lab and had access to their generous academic pricing.