Re: [graphviz-interest] Fixed Node Positions in cgraph
"Emden R. Gansner" <[email protected]>
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
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