]> granicus.if.org Git - graphviz/commitdiff
swig'ify the new functions
authorellson <devnull@localhost>
Tue, 18 Oct 2005 18:50:17 +0000 (18:50 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 18:50:17 +0000 (18:50 +0000)
tclpkg/gv/gv.cpp
tclpkg/gv/gv.i

index 90560aa1dafb700cbc0f21cab2841ed1e4d56361..fe88633b97f23d673e99bbc0c74990d48eea270b 100644 (file)
@@ -221,7 +221,8 @@ Agnode_t *tailof(Agedge_t *e)
     return e->tail;
 }
 
-Agraph_t *graphof(Agraph_t *g) {
+Agraph_t *graphof(Agraph_t *g)
+{
     if (!g || g == g->root)
        return NULL;
     return g->root;
@@ -363,9 +364,11 @@ Agedge_t *nextout(Agraph_t *g, Agedge_t *e)
     return agfstout(g, n);
 }
 
-Agedge_t *firstout(Agedge_t *e) { return NULL; }
+Agedge_t *firstout(Agedge_t *e)
+{ return NULL; }
 
-Agedge_t *nextout(Agedge_t *e, Agedge_t *ee) { return NULL; }
+Agedge_t *nextout(Agedge_t *e, Agedge_t *ee)
+{ return NULL; }
 
 Agedge_t *firstout(Agnode_t *n)
 {
@@ -408,9 +411,11 @@ Agedge_t *nextin(Agraph_t *g, Agedge_t *e)
     return (agfstin(g, n));
 }
 
-Agedge_t *firstin(Agedge_t *e) { return NULL; }
+Agedge_t *firstin(Agedge_t *e)
+{ return NULL; }
 
-Agedge_t *nextin(Agedge_t *e, Agedge_t *ee) { return NULL; }
+Agedge_t *nextin(Agedge_t *e, Agedge_t *ee)
+{ return NULL; }
 
 Agedge_t *firstin(Agnode_t *n)
 {
@@ -450,9 +455,11 @@ Agnode_t *next(Agedge_t *e, Agnode_t *n)
     return (e->head);
 }
 
-Agnode_t *first(Agnode_t *n) { return NULL; }
+Agnode_t *first(Agnode_t *n)
+{ return NULL; }
 
-Agnode_t *next(Agnode_t *n, Agnode_t *nn) { return NULL; }
+Agnode_t *next(Agnode_t *n, Agnode_t *nn)
+{ return NULL; }
 
 void rm(Agraph_t *g)
 {
index 8c7f9b17eee4a9d422bcbf9bdf6cdf7b2fee0159..b9474560de69902bf4368baa07257557c03c89b2 100644 (file)
@@ -37,6 +37,40 @@ extern char *set(Agraph_t *g, char *attr, char *val=NULL);
 extern char *set(Agnode_t *n, char *attr, char *val=NULL);
 extern char *set(Agedge_t *e, char *attr, char *val=NULL);
 
+/* misc navigators */
+extern Agnode_t *headof(Agedge_t *e);
+extern Agnode_t *tailof(Agedge_t *e);
+extern Agraph_t *graphof(Agraph_t *g);
+extern Agraph_t *graphof(Agedge_t *e);
+extern Agraph_t *graphof(Agnode_t *n);
+extern Agraph_t *rootof(Agraph_t *g);
+
+/* iterators */
+extern Agraph_t *firstsubg(Agraph_t *g);
+extern Agraph_t *firstsupg(Agraph_t *g);
+extern Agedge_t *firstout(Agraph_t *g);
+extern Agedge_t *firstout(Agedge_t *e);
+extern Agedge_t *firstout(Agnode_t *n);
+extern Agedge_t *firstin(Agraph_t *g);
+extern Agedge_t *firstin(Agedge_t *e);
+extern Agedge_t *firstin(Agnode_t *n);
+extern Agnode_t *first(Agraph_t *g);
+extern Agnode_t *first(Agedge_t *e);
+extern Agnode_t *first(Agnode_t *n);
+
+extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
+extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
+extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
+extern Agedge_t *nextout(Agedge_t *e, Agedge_t *ee);
+extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
+extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
+extern Agedge_t *nextin(Agedge_t *e, Agedge_t *ee);
+extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
+extern Agnode_t *next(Agraph_t *g, Agnode_t *n);
+extern Agnode_t *next(Agedge_t *e, Agnode_t *n);
+extern Agnode_t *next(Agnode_t *n, Agnode_t *nn);
+
+
 /* remove graph objects */
 extern void rm(Agraph_t *g);
 extern void rm(Agnode_t *n);