5 int main(
int argc,
char **argv)
11 int sz = (argc > 1) ? atoi(argv[1]) : 1;
12 int run, nruns = (argc > 2) ? atoi(argv[2]) : 1;
13 int opt = (argc > 3)? atoi(argv[3]) : 0;
16 if (argc == 1) fprintf(stderr,
"%s nnodes nruns opt\n\topt = 0 for agfstnode/agnxtnode\n\topt = 1 for dtflatten/dtlink\n\topt = 2 for flat array\n",argv[0]);
18 for (i = 0; i < sz; i++) {
26 for (run = 0; run < nruns; run++) {
29 sum1 = sum1 +
AGSEQ(n);
31 if (sum != sum1) fprintf(stderr,
"error\n");
35 for (run = 0; run < nruns; run++) {
41 sum1 = sum1 +
AGSEQ(n);
44 if (sum != sum1) fprintf(stderr,
"error %x %x\n", sum, sum1);
48 for (run = 0; run < nruns; run++) {
50 for (i = 0; i < sz; i++) {
52 sum1 = sum1 +
AGSEQ(n);
54 if (sum != sum1) fprintf(stderr,
"error\n");
CGRAPH_API Agnode_t * agnode(Agraph_t *g, char *name, int createflag)
CGRAPH_API Agraph_t * agopen(char *name, Agdesc_t desc, Agdisc_t *disc)
CGRAPH_API Agdesc_t Agdirected
CGRAPH_API Agnode_t * agnxtnode(Agraph_t *g, Agnode_t *n)
CGRAPH_API Agnode_t * agfstnode(Agraph_t *g)
int main(int argc, char **argv)