I do not know why this function was described as “scary.” However, it seems it
was so scary no one in Graphviz’ history ever implemented it.
CGRAPH_API Agraph_t *agroot(void* obj);
CGRAPH_API int agcontains(Agraph_t *, void *);
CGRAPH_API char *agnameof(void *);
-CGRAPH_API int agrelabel(void *obj, char *name); /* scary */
CGRAPH_API int agrelabel_node(Agnode_t * n, char *newname);
CGRAPH_API int agdelete(Agraph_t * g, void *obj);
CGRAPH_API int agdelsubg(Agraph_t * g, Agraph_t * sub); /* could be agclose */