extern double distvec(double *, double *, double *);
extern void do_graph_label(Agraph_t *);
extern void final_energy(graph_t *, int);
- extern double doubleattr(void *, int, double);
extern double fpow32(double);
extern Ppolyline_t getPath(edge_t *, vconfig_t *, int, Ppoly_t **,
int);
}
}
-double doubleattr(void *obj, int index, double defval)
+static double doubleattr(void *obj, int index, double defval)
{
double val;
if (index < 0)
double len=0;
for (ep = agfstout(G, np); ep; ep = agnxtout(G, ep)) {
-#ifndef WITH_CGRAPH
len = doubleattr(ep, lenx, 1.0);
-#endif /* WITH_CGRAPH */
if (len <= 0) {
agerr(AGERR, "bad edge len %f in %s ignored\n", len, agnameof(G));
len = 1.0;