From: Emden Gansner Date: Fri, 23 Dec 2011 23:09:50 +0000 (-0500) Subject: Add debug functions to make it easy to access the *info structures. X-Git-Tag: LAST_LIBGRAPH~32^2~585^2^2^2~8^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb11f6e63cb0fc6bb79c591b9f899f0161548681;p=graphviz Add debug functions to make it easy to access the *info structures. --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 966d97a12..0a7bf9497 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -2034,3 +2034,11 @@ findCluster (Dt_t* map, char* name) return NULL; } #endif + +#ifdef WITH_CGRAPH +#ifdef DEBUG +Agnodeinfo_t* ninfo(Agnode_t* n) {return (Agnodeinfo_t*)AGDATA(n);} +Agraphinfo_t* ginfo(Agraph_t* g) {return (Agraphinfo_t*)AGDATA(g);} +Agedgeinfo_t* einfo(Agedge_t* e) {return (Agedgeinfo_t*)AGDATA(e);} +#endif +#endif