简体   繁体   English

Java图形库,用于通过Graph进行网络可视化

[英]Java Graph library for Network visualization by Graph

I want to Implement a visualization interface for visualizing nodes and edges as graph and some objects like nodes moving between the nodes as Data packets Like the image below: 我想实现一个可视化界面,以将nodesedges可视化为图形,并将某些对象(如节点)在节点之间作为数据包可视化,如下图所示:

在此处输入图片说明

I have tried using the Jung library but it lacks any kind of feature for moving objects between the nodes using the edges as the path for the moving object. 我尝试使用Jung库,但是它缺少使用边缘作为移动对象路径在节点之间移动对象的任何功能。 I have seen the demo of Graph Stream Library that shows some objects moving between nodes but when I looked at the library documentation I didn't find any feature for moving things in the graph , Is this library capable of my need? 我看过Graph Stream Library的演示,该演示显示了一些对象在节点之间移动,但是当我查看库文档时,我没有找到任何在图形中移动事物的功能,这个库是否可以满足我的需要?

If not can anybody suggest a library that can provide me such functionality. 如果没有,谁能建议一个可以为我提供这种功能的图书馆。 Any suggestions would be appreciated. 任何建议,将不胜感激。

EDIT : Further efforts in implementation 编辑:在执行方面的进一步努力

I am already implementing such functionality in JUNG and for straight edges it works fine , I am using the IterativeProcess class and moving the nodes by setLocation function. 我已经在JUNG中实现了此类功能,并且对于直线边缘而言,它可以正常工作,我正在使用IterativeProcess类,并通过setLocation函数移动节点。

HERE is the implementation. 这里是实现。

But I was wondering is there really a better way of doing this by some other library that has some internal defined functionality for doing such thing? 但是我想知道,是否有其他库具有执行此操作的内部定义功能,是否真的有更好的方法呢?

I think for your requirement a visualization tool is more suitable than a graph library. 我认为根据您的需求,可视化工具比图形库更适合。 I've already used Processing tool in my visualization course which is based on java. 我已经在基于Java的可视化课程中使用了Processing工具。 It is so simple and easy to learn and still powerful. 它是如此简单易学,并且仍然强大。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM