RENDER_API void* init_xdot (Agraph_t* g);
RENDER_API int initMapData (GVJ_t*, char*, char*, char*, char*, char*, void*);
RENDER_API boolean isPolygon(node_t *);
- RENDER_API void makeSelfEdge(path * P, edge_t * edges[], int ind, int cnt,
+ RENDER_API void makeSelfEdge(edge_t * edges[], int ind, int cnt,
double sizex, double sizey, splineInfo * sinfo);
RENDER_API textlabel_t *make_label(void *obj, char *str, int kind, double fontsize, char *fontname, char *fontcolor);
RENDER_API bezier *new_spline(edge_t * e, int sz);
* Perhaps for self-edges, the label should be centered.
*/
void
-makeSelfEdge(path * P, edge_t * edges[], int ind, int cnt, double sizex,
+makeSelfEdge(edge_t * edges[], int ind, int cnt, double sizex,
double sizey, splineInfo * sinfo)
{
edge_t *e;
int dwny = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y;
sizey = MIN(upy, dwny);
}
- makeSelfEdge(P, edges, ind, cnt, sd.Multisep, sizey/2, &sinfo);
+ makeSelfEdge(edges, ind, cnt, sd.Multisep, sizey / 2, &sinfo);
for (b = 0; b < cnt; b++) {
e = edges[ind+b];
if (ED_label(e))
if (cnt == 1 || Concentrate) {
edge_t *edges1[1];
edges1[0] = e;
- makeSelfEdge(P, edges1, 0, 1, stepx, stepx, &sinfo);
+ makeSelfEdge(edges1, 0, 1, stepx, stepx, &sinfo);
if (ED_label(e))
updateBB(agraphof(agtail(e)), ED_label(e));
makePortLabels(e);
edges[i] = e;
e = ED_to_virt(e);
}
- makeSelfEdge(P, edges, 0, cnt, stepx, stepx, &sinfo);
+ makeSelfEdge(edges, 0, cnt, stepx, stepx, &sinfo);
for (i = 0; i < cnt; i++) {
e = edges[i];
if (ED_label(e))