19 #define NILgraph NIL(Agraph_t*)
20 #define NILnode NIL(Agnode_t*)
21 #define NILedge NIL(Agedge_t*)
22 #define NILsym NIL(Agsym_t*)
23 #define NILstr NIL(char*)
36 fprintf(stderr,
"%s\n",
agnameof(n));
40 fprintf(stderr,
"\t%s=%s\n", sym->
name, val);
45 fprintf(stderr,
"sym = %x, %s\n", sym, sym? sym->
defval :
"(none)");
Agsym_t * agattr(Agraph_t *g, int kind, char *name, char *value)
Agsym_t * agnxtattr(Agraph_t *g, int kind, Agsym_t *attr)
CGRAPH_API Agraph_t * agread(void *chan, Agdisc_t *disc)
CGRAPH_API int agwrite(Agraph_t *g, void *chan)
CGRAPH_API Agnode_t * agnxtnode(Agraph_t *g, Agnode_t *n)
CGRAPH_API char * agnameof(void *)
CGRAPH_API Agnode_t * agfstnode(Agraph_t *g)
char * agxget(void *obj, Agsym_t *sym)
int main(int argc, char **argv)