static int makeInfo(Agraph_t * graph)
{
Agnode_t *node;
- Info_t *ip;
expand_t pmargin;
int (*polyf)(Poly *, Agnode_t *, float, float);
nodeInfo = gv_calloc(nsites, sizeof(Info_t));
node = agfstnode(graph);
- ip = nodeInfo;
pmargin = sepFactor (graph);
else polyf = makePoly;
for (size_t i = 0; i < nsites; i++) {
+ Info_t *ip = &nodeInfo[i];
ip->site.coord.x = ND_pos(node)[0];
ip->site.coord.y = ND_pos(node)[1];
ip->node = node;
ip->verts = NULL;
node = agnxtnode(graph, node);
- ip++;
}
return 0;
}