I'm using Graphviz as a library (C++). I need Graphviz to calculate coordinates for my nodes and respective edges. I'm doing rendering myself (i.e. not using Graphviz's renderers). My nodes are rectangles, with defined width and height (in pixels).
I create graph with agopen. Then I create nodes with agnode and edges with agedge. Then gvLayout should be used, as far as I know, for calculating the coordinates.
Now I need to know:
How to specify nodes' rectangles' width and height, before using gvLayout?
After gvLayout, how to get calculated coordinates for nodes and splines for edges?
How to delete node (and corresponding edges) or edges from graph (Agraph_t), can this be done at all?
When I create nodes and edges with agnode and agedge, don't I need to free/delete them for cleanup (when I'm done with graph)? Or does agclose handle this implicitly?
Important: I don't want to use text-based interface (i.e. get parameters as text), I want to access mentioned parameters (width and height of node, splines of edge, coordinates of node...) directly as a data variables.