Summary
I wrote a Rubigraph, a Ruby wrapper for Ubigraph .
What is Ubigraph
I recently found Ubigraph, a nice visualization tool. Though I’m also big fan of Graphviz, which generates static graph visualization, I got falling in love with Ubigraph because it’s so dynamic. Ubigraph can add, remove and change nodes, edges, and their attributes. It’s amazing! See demonstration movie.
It is based on client/server architecture. Though the server source code is closed, its XML-RPC API is open, and we can write our client application easily. It has Mac OS X and Linux binaries.
What is Rubigraph
But, I cannot put up with writing XML-RPC by referencing API manual every time ! So I made a small Ruby wrap for it, and released it as Rubigraph.
Install
Type gem install rubygraph.
Its place in Rubyforge is here.
Source code
How do I write a graph
require 'rubigraph' Rubigraph.init # initialize XML-RPC client. v1 = Vertex.new v2 = Vertex.new e12 = Edge.new(v1, v2) v1.color = '#003366' v2.shape = 'sphere' e12.label = 'edge between 1 and 2'
It seems easy, isn’t it?
Conclusion
It’s a fun to visualize some data dynamically. I’m using it for tracing function calls, feeling so convinient. Ubigraph++.
- Older: IDAvailability
Comments:3
- Todd V 08-05-25 (Sun) 20:57
-
Hi mootoh, this is awesome. Would you mind if I packaged it along with the other client sources? I’d give full credit to you in the manual, and I’ll refresh the sources from svn each time I do a release.
thanks Todd
- mootoh 08-05-25 (Sun) 22:04
-
Hello, Todd,
Of course, it’s my pleasure
- mootoh 08-05-26 (Mon) 0:17
-
Todd,
I’ve created github repository for this
http://github.com/mootoh/rubigraph/tree/masterplease checkout from here if you want.
Trackbacks:1
- Trackback URL for this entry
- http://en.deadbeaf.org/2008/05/25/rubigraph/trackback/
- Listed below are links to weblogs that reference
- Rubigraph from en.mootoh.log
- pingback from » Ubigraph - Visualization Tool / Wayne Pan's Blog - tech | js | ui | ajax | life | mobile 08-09-12 (Fri) 3:54
-
[...] On a side note I highly sugggest using ruby + rubigraph if you want to start playing around with Ubigraph. It is incredibly easy. [...]

