]> granicus.if.org Git - graphviz/commitdiff
a couple of convenience macros
authorellson <devnull@localhost>
Thu, 23 Oct 2008 20:16:50 +0000 (20:16 +0000)
committerellson <devnull@localhost>
Thu, 23 Oct 2008 20:16:50 +0000 (20:16 +0000)
lib/common/types.h

index 29306abfa2ac73b36d5b5b9122000cb77b1ad058..a3bdd844d21bad150f1f0ea30269496f69565b77 100644 (file)
@@ -744,6 +744,8 @@ typedef enum {NATIVEFONTS,PSFONTS,SVGFONTS} fontname_kind;
 #ifdef WITH_CGRAPH
 #include "cgraph.h"
 #define SET_RANKDIR(g,rd) (GD_rankdir2(g) = rd)
+#define agfindedge(g,t,h) (agedge(g,t,h,NULL,0));
+#define agfindnode(g,n) (agnode(g,n,0))
 #else
 #include "graph.h"
 #define SET_RANKDIR(g,rd) ((g)->u.rankdir = (rd))