* Pack subgraphs followed by postprocessing.
*/
int
-pack_graph(int ng, Agraph_t** gs, Agraph_t* root, int fixed)
+pack_graph(int ng, Agraph_t** gs, Agraph_t* root, bool* fixed)
{
int ret;
pack_info info;
- pinfo.margin = getPack (g, CL_OFFSET, CL_OFFSET);;
- pinfo.doSplines = 1;
- pinfo.mode = getPackMode (g, l_graph);
- pinfo.fixed = fixed;
- ret = packSubgraphs(ng, gs, root, info);
+ info.margin = getPack (root, CL_OFFSET, CL_OFFSET);;
+ info.mode = getPackMode (root, l_graph);
+ info.doSplines = 1;
+ info.fixed = fixed;
+ ret = packSubgraphs(ng, gs, root, &info);
if (ret == 0) dotneato_postprocess (root);
return ret;
}
extern point *putGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
extern int packGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
extern int packSubgraphs(int, Agraph_t **, Agraph_t *, pack_info *);
- extern int pack_graph(int, Agraph_t **, Agraph_t *, int);
+ extern int pack_graph(int, Agraph_t **, Agraph_t *, bool*);
extern pack_mode getPackMode(Agraph_t * g, pack_mode dflt);
extern int getPack(Agraph_t *, int not_def, int dflt);