Java的图形布局算法 [英] Java graph layout algorithms
本文介绍了Java的图形布局算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的Java应用程序中,我需要某种形式的布局算法。第一种方法是如下:
In my Java application, i need some sort of a layout algorithm. The first approach is as follows:
- 的Graphviz包需要安装
- 创建一个点文件
- 从Java调用应用程序的graphviz和解析输出(布局)
- 显示图,从graphviz的布局(归属点)
但是这种解决方案需要安装在跑步机的graphviz的包。我想摆脱这种依赖的,我正在寻找一个适当的替代。
But this solution requires the graphviz package installed on the running machines. I want to get rid of this dependency and i am searching for an adequate replacement.
- 输入:将节点的宽度和高度/从节点到边缘的厚度的线的 节点
- 输出:周边边框大小,节点和边缘位置
你能不能推荐任何好的和简单的Java布局算法?你有什么经验?
Can you recommend any good and simple java layout algorithm? Do you have any experiences?
感谢
推荐答案
我会推荐使用 GraphStream API 。它处理DOT格式和可视化是相当不错的。
I would recommend using the GraphStream API. It handles the DOT format and the visualization is quite nice.
- Watch it in action in this video
- See the file input demo here
这篇关于Java的图形布局算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文