return nullptr;
return agnameof(n);
}
-//char *nameof(Agedge_t *e)
-//{
-// if (!e)
-// return NULL;
-// if (AGTYPE(e) == AGRAPH)
-// return NULL;
-// return agnameof(e);
-//}
char *nameof(Agsym_t *a)
{
if (!a)
{
if (!g)
return false;
-#if 0
- Agraph_t* sg;
- for (sg = agfstsubg (g); sg; sg = agnxtsubg (sg))
- rm(sg);
- if (g == agroot(g))
- agclose(g);
- else
- agdelete(agparent(g), g);
-#endif
/* The rm function appears to have the semantics of agclose, so
* we should just do that, and let cgraph take care of all the
* details.
/** Obtain names from handles */
extern char *nameof(Agraph_t *g);
extern char *nameof(Agnode_t *n);
-//extern char *nameof(Agedge_t *e);
extern char *nameof(Agsym_t *a);
/** Find handles from names */