Tuesday, 20 August 2013

Using the library JUNG graphs

Using the library JUNG graphs

I use the library to manage JUNG graphs and I want to know how to color
the connected nodes with the same color to distinguish the connected
components.
For example, I want the nodes 2, 3 and 4 to have the same color and the
node 1to have another color, knowing that the adjacency matrix is:
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0

No comments:

Post a Comment