i am using jung to visually display large data sets, (1000s of nodes) but the system becom开发者_StackOverflowes very laggy when I zoom in or out, or move a node. Is there anyway to improve the rendering of graphs in JUNG ?
The way that I used to improve rendering on graphs was to filter the edges of the graph. Every time you try to move the graph the framework do enormous calculations to reposition every vertex and edge and this causes bad performance. The filtering could be done with adding AbstractPopupGraphMousePlugin succesor to the DefaultModalGraphMouse object you are using. Simply override the handlePopup(MouseEvent mouseEvent).
I do not know specifically for graphs, but the usual options are
Only process what is actually shown on screen (zoom in)
Hide details when zooming out
Only update part of the screen that have actually changed content (move a node)
精彩评论