Advertisement

Alternative library to graphviz for layouting directed/undirected graphs?

Started by January 30, 2014 03:34 PM
0 comments, last by doeme 10 years, 9 months ago

Hi all,

I'm looking for an alternative library to graphviz for layouting directed and undirected graphs similar to this one (http://ostatic.com/files/images/3_6_1.png) to be displayed in a Qt app.

Essentially the same concept as this article: http://www.mupuf.org/blog/2010/07/08/how_to_use_graphviz_to_draw_graphs_in_a_qt_graphics_scene/

The tool lets the user interactively move the nodes around and I currently use graphviz as a C++ library to do the layouting. Everything works as it should. Unfortunately the product this viewer is in evolved to 64bit and there is no 64 bit package of the graphviz-DLLs provided.

I tried to compile graphviz myself, but after three days of fiddling I'm still not able to even build it.

Does anybody know a library for layouting diagrams that has roughly the same functionality as graphviz?

I'm currently trying out boost graph, which works fine for placing the nodes, but I didn't find any help in computing the connecting edges as splines or angled connector in a way that they don't go through an existing node.

Any idea on another library or help with either compiling graphviz or using boost would be highly welcome.

So I finally found the Open Graph Drawing Framework (http://www.ogdf.net/doku.php) which does the job nicely.

It compiles out of the box and is easy to integrate in an existing project

This topic is closed to new replies.

Advertisement