char *p;
point *sp;
int pn;
- attrsym_t *N_pos = agfindattr(g->proto->n, "pos");
- attrsym_t *E_pos = agfindattr(g->proto->e, "pos");
+ attrsym_t *N_pos = agfindnodeattr(g, "pos");
+ attrsym_t *E_pos = agfindedgeattr(g, "pos");
assert(N_pos);
if (!E_pos) {
double xf;
double hyp;
-#ifndef WITH_CGRAPH
- p = late_string(g, agfindattr(g->root, "ranksep"), NULL);
-#else /* WITH_CGRAPH */
- p = late_string(g, agattr(g->root,AGRAPH, "ranksep", NULL), NULL);
-#endif /* WITH_CGRAPH */
+ p = late_string(g, agfindgraphattr(g->root, "ranksep"), NULL);
if (p) {
if (sscanf(p, "%lf", &xf) == 0)
xf = DEF_RANKSEP;