GraphViz 的纯 Java 重新实现?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/654294/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 17:27:19  来源:igfitidea点击:

Pure Java reimplementation of GraphViz?

javadrawinggraphvizgraph-visualization

提问by paweloque

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.

是否有 GraphViz 的开源 java 替代品?我知道 Grappa 的存在,它基本上将 Graph 接口作为 JavaAPI 包装到 GraphViz。然而,布局仍然由 GraphViz 二进制文件完成。

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

我正在寻找一个纯 Java 的开源库,它提供与 GraphViz 相同的功能和布局算法。

采纳答案by DrDee

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

您可以查看具有可视化和分析功能的JUNG(Java 通用网络/图形框架)。它是开源的。

回答by Joachim Sauer

yFilesseems 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).

yFiles似乎提供了所有这些,但它不是免费的,也不是很便宜。但话说回来,它似乎是一个非常专业的产品(没用过,除了在yEd 中,可以免费使用)。

回答by Mark

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

你可以看看JGraph,虽然我从来没有用过它,所以现在无法评论它与 GraphViz 的比较。

回答by Mike Chen

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

我猜ZGRViewer就是你想要的。我真的很喜欢 ZGRViewer 和 AJaPaD。

回答by Big Rich

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

有趣的是,Eclipse 项目有一个 SWT/JFace 组件/框架,能够以纯 Java 显示和生成(导入/导出)Graphviz 的“DOT”格式:

ZEST (home page & download links)

ZEST(主页和下载链接)

See http://wiki.eclipse.org/Graphviz_DOT_as_a_DSL_for_Zestfor usage examples.

有关用法示例,请参阅http://wiki.eclipse.org/Graphviz_DOT_as_a_DSL_for_Zest

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.

尽管 ZEST 被吹捧为 Eclipse 插件,但 DOT 操作 API 似乎可以独立使用,也可以在 Eclipse 安装外部使用。

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

澄清一下,DOT 功能是ZEST 2功能的一部分,它本身是GEF4项目的一个子组件。

Cheers

干杯

Rich

富有的

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

更新(2017 年 5 月)https://github.com/nidi3/graphviz-java

回答by Matthew Cornell

I worked with yFilesabout 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.

大约四年前,我与yFiles合作过,效果非常好。它很昂贵(虽然明显低于 JGraph),但我在 CS 研究实验室工作,并且可以使用他们慷慨的学术定价。