We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Large graph visualization with Processing
Page Index Toggle Pages: 1
Large graph visualization with Processing? (Read 1106 times)
Large graph visualization with Processing?
Nov 12th, 2008, 5:36pm
 
Hi,
I am new to the forum and I have a question. I want to visualize a large graph with 1M nodes using Processing.
I am aware that since Processing is a Java tool, certain limitations regarding java heap size exist and proper optimized programming is needed, so my question is this: Has anyone tried something like this before and is it possible for Processing to handle this?

Thanks in advance.
Re: Large graph visualization with Processing?
Reply #1 - Nov 14th, 2008, 12:08am
 
By the way, some command-line options allow you to increase the allocated memory (google Java heap size for example).

Then, will Processing (or your hardware) handle this? It all depends if you need 2D or 3D visualization, real-time animation or static image generation.

One million nodes is a lot. But maybe you don't need to display all the nodes at the same time? Maybe there are some visualization techniques that can help you manage this kind of huge dataset (I'm thinking of things like BSP and octrees).
Re: Large graph visualization with Processing?
Reply #2 - Nov 25th, 2008, 8:38pm
 
Hey -- just FYI, I'm also working on a graph implementation and just stumbled across jgrapht, version 0.6.0 of which seems to be compatible with Processing so far...Haven't seen it mentioned on here yet. Anyways, it might be useful.

http://jgrapht.sourceforge.net/

Google to find a sourceforge mirror that has v0.6.0. I also had to do some trial-and error renaming of folders and files within the library to make it work (taking out special characters and mimicking the internal folder structure of the native Processing libraries).
Page Index Toggle Pages: 1