Im looking to implement an application that is working with and displaying simple graph. One of those is a tree, one is like an automaton.
I decided to use OGDF in addition to Qt, because i need layouting. But Im not quite getting this…do I have to to implement all the drawing/positioning functionality myself (like fetching all the node and edge coordinates from GraphAttributes) or does OGDF provide some nice interface for that? (as nice as GraphAttributes::writeGML())
I couldn’t find any nice interface so I am just fetching the coordinates myself, however, this approach is not perfect since the layout algorithm returns negative coordinates (relative to a graph center point I think, instead of the normal topleft origin). My code looks kinda like this: