return sum;
}
-#define __CYCLE_CENTROID
-#ifdef __CYCLE_CENTROID
//generic vector structure
typedef struct _tag_vec
{
sum.y = sum.y / cnt;
return sum;
}
-#endif
static void bend(pointf spl[4], pointf centroid)
{
p = dumb[1] = dumb[0] = add_pointf(ND_coord(n), ED_tail_port(e).p);
q = dumb[2] = dumb[3] = add_pointf(ND_coord(head), ED_head_port(e).p);
if ((e_cnt == 1) || Concentrate) {
-#ifndef __CYCLE_CENTROID
- if (curved) bend(dumb,get_centroid(g));
-#else
if (curved) bend(dumb,get_cycle_centroid(g, edges[0]));
-#endif
clip_and_install(e, aghead(e), dumb, 4, sinfo);
addEdgeLabels(g, e, p, q);
return;