}
ispline[ipt] = ispline[ipt+1] = p;
if (Verbose > 1)
- fprintf(stderr, "ortho %s %s\n", agnameof(agtail(e)),agnameof(aghead(e)));
+ fprintf(stderr, "ortho %s %s\n", agnameof(agtail(e)),agnameof(aghead(e)));
clip_and_install(e, aghead(e), ispline, npts, sinfo);
if (doLbls && (lbl = ED_label(e)) && !lbl->set)
addEdgeLabels(g, e, p1, q1);
#include <render.h>
void orthoEdges (Agraph_t* g, int useLbls);
-#endif
\ No newline at end of file
+#endif
extern double drand48(void);
#endif
-
-
-
typedef struct {
int vnum;
int next; /* Circularly linked list */
for (i = 0; i <= n; i++) permute[i] = i;
for (i = 1; i <= n; i++) {
- double tempa=drand48();
- j = i + tempa * (n + 1 - i);
+ j = i + drand48() * (n + 1 - i);
if (j != i) {
tmp = permute[i];
permute [i] = permute[j];
#include <memory.h>
#include <trap.h>
+#ifdef WIN32
+#define log2(x) (log(x)/log(2))
+#endif
+
/* Node types */
#define T_X 1
double v;
for (i = 0, v = (double) n; v >= 1; i++)
-#ifndef WIN32
v = log2(v);
-#else
- v = log(v)/log(2);
-
-#endif
return (i - 1);
}
double v;
for (i = 0, v = (int) n; i < h; i++)
-#ifndef WIN32
v = log2(v);
-#else
- v = log(v)/log(2);
-
-#endif
-
return (int) ceil((double) 1.0*n/v);
}