Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   Graphics package for visualizing graphs (http://www.velocityreviews.com/forums/t679148-graphics-package-for-visualizing-graphs.html)

Tassilo Horn 04-09-2009 07:27 AM

Graphics package for visualizing graphs
 
Hi,

I'd like to write a simple graph visualization program. Because the
graphs I want to visualize are much too big to visualize them at once, I
think I'll do something like

- draw the current node centered
- draw neighbors in a circular layout around it
- draw the edges leading to the neighboring nodes
- on click on a neighbor, make that one the current node

I didn't do much graphical stuff till now, so I'd like to hear if there
are good free libraries which make the task easier than using plain
awt/swing capabilities. It wouldn't be too bad it would look fancy,
too. ;-)

I had a look at the AWT/Swing docs and it seems that there I would use a
Rectangle for the nodes. But I need to put some text of variable size
in them, I need to figure out the text's width and height to resize the
Rectangle appropriately. Currently I don't see how to do that...

Bye,
Tassilo

cbossens73@yahoo.fr 04-09-2009 10:30 AM

Re: Graphics package for visualizing graphs
 
On Apr 9, 8:27 am, Tassilo Horn <tass...@member.fsf.org> wrote:
....
> - draw the current node centered
> - draw neighbors in a circular layout around it


I don't know all the visualization taxonomy but you
probably want to start by Googling on something like
"Java circular visualization" or "Java radial visualization".

You'll end on pages like this one:

(Visualization of large tree structures, look at the
sunburst tree or sunray tree)

http://www.randelshofer.ch/treeviz/index.html


or this one:

http://www.abhishek-tiwari.com/2009/...ons-in_10.html

Hope it helps,

Charles


I


Joshua Cranmer 04-09-2009 11:35 AM

Re: Graphics package for visualizing graphs
 
Tassilo Horn wrote:
> I'd like to write a simple graph visualization program. Because the
> graphs I want to visualize are much too big to visualize them at once, I
> think I'll do something like
>
> - draw the current node centered
> - draw neighbors in a circular layout around it
> - draw the edges leading to the neighboring nodes
> - on click on a neighbor, make that one the current node


<http://www.research.att.com/~john/Grappa/> (based off of Graphviz) ?

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth

Tassilo Horn 04-09-2009 12:47 PM

Re: Graphics package for visualizing graphs
 
Joshua Cranmer <Pidgeot18@verizon.invalid> writes:

Hi Joshua,

> Tassilo Horn wrote:
>> I'd like to write a simple graph visualization program. Because the
>> graphs I want to visualize are much too big to visualize them at once, I
>> think I'll do something like
>>
>> - draw the current node centered
>> - draw neighbors in a circular layout around it
>> - draw the edges leading to the neighboring nodes
>> - on click on a neighbor, make that one the current node

>
> <http://www.research.att.com/~john/Grappa/> (based off of Graphviz) ?


This seems to go into another direction, e.g. building something like
graphviz for java including some graph editing functionality. I have
the graph data structure + a large set of graphs and just want a way to
display them interactively and incrementally.

I already have a DOT/GraphViz exporter, but the graphs are much too big
for graphviz to handle.

Anyway, thanks for the pointer!
Tassilo
--
People say that if you play Microsoft CD's backwards, you hear satanic
things, but that's nothing, because if you play them forwards, they
install Windows.

Tassilo Horn 04-09-2009 12:51 PM

Re: Graphics package for visualizing graphs
 
cbossens73@yahoo.fr writes:

Hi Charles,

> (Visualization of large tree structures, look at the sunburst tree or
> sunray tree)
>
> http://www.randelshofer.ch/treeviz/index.html


Wow, the first screenshot is exactly what I want to have. ;-)

I'll have a deeper look at it and play with the code. Thanks for being
my google-boy. ;-)

Bye,
Tassilo
--
My software never has bugs. It just develops random features.

Tassilo Horn 04-09-2009 05:41 PM

Re: Graphics package for visualizing graphs
 
"Steve W. Jackson" <stevewjackson@knology.net> writes:

> You've gotten other suggestions, and I'll add
> <http://www.jgraph.com/>.


At a first glance those libs seem to be more about displaying and
editing graphs as a whole, not about incremental display of huge graphs
with millions of vertices.

But thanks for another pointer!
Tassilo


All times are GMT. The time now is 03:53 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57