To those who haven't read the previous post about StructureGraphic, it's a library for visualizing data structures in java. Mainly, but not only, for debugging purposes.
Visualizations of a Binomial Heap (top) and a Red Black Tree (bottom) Click to view fullsize |
- The project homepage:
http://code.google.com/p/structure-graphic/ - Downloads (Library and Manual):
http://code.google.com/p/structure-graphic/downloads/list - Source Code (It's Open-Source!):
http://code.google.com/p/structure-graphic/source/checkout - Ohloh page:
https://www.ohloh.net/p/structure-graphic/
The library is currently licensed under GPLv3. If there are any projects which wish to use it, and have problems with that license, they can contact me.
I was wondering, how does it compare to Graphviz ?
ReplyDelete@Cyrille Berger: To be honest, I never used graphviz...
ReplyDeleteThe idea of StructureGraphic is to allow you to draw data structures with minimal effort - since it attaches itself directly to your data structure in such a way that you won't need to create any text markup that represents your data structure. As far as I know, Graphviz does require some conversion to text markup.
Many of the common data structures can be adapted to StructureGraphic in exactly 3 lines of code (see the manual for an example about using annotations on a heap data structure). That's the main idea - you shouldn't be spending time when you want to do debugging, you want to have it working in less than a minute.
Graphviz is much more advanced than my library, I have no doubt about it. Graphviz supports every possible form of graph, while my library currently only supports tree graphs (Although DAGs are on the way, and general graphs are planned for the future). My library is mainly for debugging, so it's not meant to create "good-looking" output - it's meant for simple yet effective output.