tags:

views:

128

answers:

2

i am using jung to visually display large data sets, (1000s of nodes) but the system becomes very laggy when I zoom in or out, or move a node. Is there anyway to improve the rendering of graphs in JUNG ?

A: 

I do not know specifically for graphs, but the usual options are

  1. Only process what is actually shown on screen (zoom in)

  2. Hide details when zooming out

  3. Only update part of the screen that have actually changed content (move a node)

kazanaki
A: 

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).

Dimitar Ivanov