Re: [graphviz-interest] Fixed Node Positions in cgraph
Ștefan Săftescu <[email protected]>
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <CAFB5BhxsETFhtu=vZSLQe310YeUoPTuu_H-S=-vWz_=jdnwxHw@mail.gmail.com> |
Hi Emden, Thanks for your reply. Looking through types.h I can only see an ED_spl macro which seems to do the same thing as the one you're referring to. The code I'm currently working on accesses spline data through edge->u.spl, which seems to coincide with the version of the macro where WITH_CGRAPH is not defined and indeed the macro expands to the same expression. The correct spline information is there when I render wit dot. I have checked rendering and then getting the position information with agget, but that still results in straight lines. Stefan On 19 August 2013 19:31, Emden R. Gansner <[email protected]> wrote: > On 8/19/13 1:46 PM, Ștefan Săftescu wrote: >> >> Using the `dot` command line tool, you can add the `-Knop` layout >> option, but if I try `gvLayout(context, graph, "nop"), or call >> `gvParseArgs` for `dot -Knop` arguments, the resulting graph has no >> edge routing, even though I have `agset(graph, (char*)"splines", >> (char*)"true")` in my code. >> >> Is there any way I can achieve such edge routing for fixed node >> positions in cgraph? > > Calling gvLayout(context, graph, "nop") does what you want, but the results > are stored in the library data structures. > You can read this information using ED_splines(ep), where ep is an > Agedge_t*, or you can "render" the information > into the string-valued attributes by calling gvRender (context, G, "dot", > NULL). You can then read the edge information from > agget(ep, "pos"). > > If you are already doing this and it's not working, let us know. Thanks. > > Emden > _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest