#include "color_palette.h"
#include "colorutil.h"
-#define ag_xget(x,a) agxget(x,a)
-#define ag_xset(x,a,c) agxset(x,a,c)
-#define agedgeattr(g,a,c) (agattr(g,AGEDGE,a,c))
-#define agfindedgeattr(g,a) (agattr(g,AGEDGE,a,NULL))
-
typedef struct {
Agrec_t h;
unsigned int id;
exit (1);
}
-
/* Assign node ids */
i = 0;
for (n = agfstnode (g); n; n = agnxtnode (g, n))
val = N_NEW(nedges, real);
}
- sym = agfindedgeattr(g, "weight");
+ sym = agattr(g, AGEDGE, "weight", NULL);
if (D) {
- symD = agfindedgeattr(g, "len");
+ symD = agattr(g, AGEDGE, "len", NULL);
valD = N_NEW(nedges, real);
}
i = 0;
(*label_sizes)[i*2+1] = 4*POINTS(0.5)*.5;
}
}
- }
-
+ }
if (x && (psym = agattr(g, AGNODE, "pos", NULL))) {
int has_positions = TRUE;
sym = agattr(g, AGNODE, "pos", 0);
if (!sym) return 0;
-
+
if (!(*xsplines)) *xsplines = malloc(sizeof(char*)*nedges);
i = 0;