I have created a network based on interactions. Some vertices have more interaction and some has less interaction. I have to display the vertex with more interaction at the center of the network and other vertices should lie around the central vertex. How can i proceed with this? Please help me with this
If none of the existing layout algorithms do what you want, then you will need to provide your own Layout
class.
An intermediate option that you might try would be to identify the vertices that have the highest degree, fix[1] their positions in places at the middle of the viewing area that look good to you, and then let the layout algorithm select the positions for the rest of the vertices.
[1] use setLocation() and lock() before you start the layout algorithm: http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/layout/AbstractLayout.html#setLocation(V , double, double)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.