of small integers similar to the ids used in libgraph, where in cgraph, the id is
often a hash value.
idnum = ((graph_t*)obj)->meta_node->id;
#else
case AGRAPH:
- idnum = AGID((graph_t*)obj);
+ idnum = AGSEQ(obj);
#endif
pfx = "graph";
break;
case AGNODE:
- idnum = AGID((node_t*)obj);
+ idnum = AGSEQ((Agnode_t*)obj);
pfx = "node";
break;
case AGEDGE:
- idnum = AGID((edge_t*)obj);
+ idnum = AGSEQ((Agedge_t*)obj);
pfx = "edge";
break;
}
#define aghead(e) ((e)->head)
#define agtail(e) ((e)->tail)
#define agisdirected(g) ((g)->kind & AGFLAG_DIRECTED)
-#define AGID(x) ((x)->id)
+#define AGSEQ(x) ((x)->id)
#define agfindgraphattr(g,a) agfindattr((g)->root,a)
#define agfindnodeattr(g,a) agfindattr((g)->proto->n,a)
#define agfindedgeattr(g,a) agfindattr((g)->proto->e,a)