GraphStream drawing grouped nodes in graph

554 Views Asked by At

I already created graph with different color each graph based on some attribute in its node. This is my current graph graph

Is it possible to place node that has same color closely? How could I implement that?

1

There are 1 best solutions below

1
On

I am looking for a similar functionality and came across Viewers (http://graphstream-project.org/doc/Tutorials/Graph-Visualisation_1.0/). I disabled the default viewer and mentioned co-ordinates for individual nodes (which works but doesn't look pretty and is additional headache to mention co-ordinates in the code).

However, I haven't figured out if we can still use default viewer and group nodes based on some attributes.

Let me know if you figure out a way to do that.