Java Graph library for visualizing a network on a graph

I want to implement a visualization interface for visualizing nodes and edges in a graph, and some objects, such as nodes moving between nodes, like Data Packets As shown below:

enter image description here

I tried using the Jung library, but it does not have any function to move objects between nodes using edges as a path for a moving object. I saw a demo of the Graph Stream library, which shows some objects moving between nodes, but when I looked at the library documentation, I did not find any function to move things on the chart. Is this library capable of my need?

If no one can offer a library that can provide me with such functionality. Any suggestions would be appreciated.

EDIT: further implementation efforts

I already implement such functionality in JUNG , and for straight edges it works fine, I use the IterativeProcess class and move nodes through the setLocation function.

HERE is an implementation.

But I was wondering if there is a better way to do this in some other library that has some internally defined functions to accomplish such a thing?

+6
source share
1 answer

I think that a visualization tool is more suitable for your requirement than a graph library. I already used the Processing tool in my visualization course, which is based on java. It is so simple and easy to learn and still powerful.

+2
source

Source: https://habr.com/ru/post/980394/


All Articles