Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gv_guile.cpp
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.0
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9
10#define SWIG_VERSION 0x040200
11#define SWIGGUILE
12#define SWIG_GUILE_INIT_STATIC extern
13extern "C" {
14
16SWIG_init (void);
17
18}
19
20/* -----------------------------------------------------------------------------
21 * This section contains generic SWIG labels for method/variable
22 * declarations/attributes, and other compiler dependent labels.
23 * ----------------------------------------------------------------------------- */
24
25/* template workaround for compilers that cannot correctly implement the C++ standard */
26#ifndef SWIGTEMPLATEDISAMBIGUATOR
27# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
28# define SWIGTEMPLATEDISAMBIGUATOR template
29# elif defined(__HP_aCC)
30/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
31/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
32# define SWIGTEMPLATEDISAMBIGUATOR template
33# else
34# define SWIGTEMPLATEDISAMBIGUATOR
35# endif
36#endif
37
38/* inline attribute */
39#ifndef SWIGINLINE
40# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
41# define SWIGINLINE inline
42# else
43# define SWIGINLINE
44# endif
45#endif
46
47/* attribute recognised by some compilers to avoid 'unused' warnings */
48#ifndef SWIGUNUSED
49# if defined(__GNUC__)
50# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
51# define SWIGUNUSED __attribute__ ((__unused__))
52# else
53# define SWIGUNUSED
54# endif
55# elif defined(__ICC)
56# define SWIGUNUSED __attribute__ ((__unused__))
57# else
58# define SWIGUNUSED
59# endif
60#endif
61
62#ifndef SWIG_MSC_UNSUPPRESS_4505
63# if defined(_MSC_VER)
64# pragma warning(disable : 4505) /* unreferenced local function has been removed */
65# endif
66#endif
67
68#ifndef SWIGUNUSEDPARM
69# ifdef __cplusplus
70# define SWIGUNUSEDPARM(p)
71# else
72# define SWIGUNUSEDPARM(p) p SWIGUNUSED
73# endif
74#endif
75
76/* internal SWIG method */
77#ifndef SWIGINTERN
78# define SWIGINTERN static SWIGUNUSED
79#endif
80
81/* internal inline SWIG method */
82#ifndef SWIGINTERNINLINE
83# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
84#endif
85
86/* exporting methods */
87#if defined(__GNUC__)
88# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
89# ifndef GCC_HASCLASSVISIBILITY
90# define GCC_HASCLASSVISIBILITY
91# endif
92# endif
93#endif
94
95#ifndef SWIGEXPORT
96# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
97# if defined(STATIC_LINKED)
98# define SWIGEXPORT
99# else
100# define SWIGEXPORT __declspec(dllexport)
101# endif
102# else
103# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
104# define SWIGEXPORT __attribute__ ((visibility("default")))
105# else
106# define SWIGEXPORT
107# endif
108# endif
109#endif
110
111/* calling conventions for Windows */
112#ifndef SWIGSTDCALL
113# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
114# define SWIGSTDCALL __stdcall
115# else
116# define SWIGSTDCALL
117# endif
118#endif
119
120/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
121#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
122# define _CRT_SECURE_NO_DEPRECATE
123#endif
124
125/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
126#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
127# define _SCL_SECURE_NO_DEPRECATE
128#endif
129
130/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
131#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
132# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
133#endif
134
135/* Intel's compiler complains if a variable which was never initialised is
136 * cast to void, which is a common idiom which we use to indicate that we
137 * are aware a variable isn't used. So we just silence that warning.
138 * See: https://github.com/swig/swig/issues/192 for more discussion.
139 */
140#ifdef __INTEL_COMPILER
141# pragma warning disable 592
142#endif
143
144#if __cplusplus >=201103L
145# define SWIG_NULLPTR nullptr
146#else
147# define SWIG_NULLPTR NULL
148#endif
149
150/* -----------------------------------------------------------------------------
151 * swigrun.swg
152 *
153 * This file contains generic C API SWIG runtime support for pointer
154 * type checking.
155 * ----------------------------------------------------------------------------- */
156
157/* This should only be incremented when either the layout of swig_type_info changes,
158 or for whatever reason, the runtime changes incompatibly */
159#define SWIG_RUNTIME_VERSION "4"
160
161/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
162#ifdef SWIG_TYPE_TABLE
163# define SWIG_QUOTE_STRING(x) #x
164# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
165# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
166#else
167# define SWIG_TYPE_TABLE_NAME
168#endif
169
170/*
171 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
172 creating a static or dynamic library from the SWIG runtime code.
173 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
174
175 But only do this if strictly necessary, ie, if you have problems
176 with your compiler or suchlike.
177*/
178
179#ifndef SWIGRUNTIME
180# define SWIGRUNTIME SWIGINTERN
181#endif
182
183#ifndef SWIGRUNTIMEINLINE
184# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
185#endif
186
187/* Generic buffer size */
188#ifndef SWIG_BUFFER_SIZE
189# define SWIG_BUFFER_SIZE 1024
190#endif
191
192/* Flags for pointer conversions */
193#define SWIG_POINTER_DISOWN 0x1
194#define SWIG_CAST_NEW_MEMORY 0x2
195#define SWIG_POINTER_NO_NULL 0x4
196#define SWIG_POINTER_CLEAR 0x8
197#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
198
199/* Flags for new pointer objects */
200#define SWIG_POINTER_OWN 0x1
201
202
203/*
204 Flags/methods for returning states.
205
206 The SWIG conversion methods, as ConvertPtr, return an integer
207 that tells if the conversion was successful or not. And if not,
208 an error code can be returned (see swigerrors.swg for the codes).
209
210 Use the following macros/flags to set or process the returning
211 states.
212
213 In old versions of SWIG, code such as the following was usually written:
214
215 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
216 // success code
217 } else {
218 //fail code
219 }
220
221 Now you can be more explicit:
222
223 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
224 if (SWIG_IsOK(res)) {
225 // success code
226 } else {
227 // fail code
228 }
229
230 which is the same really, but now you can also do
231
232 Type *ptr;
233 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
234 if (SWIG_IsOK(res)) {
235 // success code
236 if (SWIG_IsNewObj(res) {
237 ...
238 delete *ptr;
239 } else {
240 ...
241 }
242 } else {
243 // fail code
244 }
245
246 I.e., now SWIG_ConvertPtr can return new objects and you can
247 identify the case and take care of the deallocation. Of course that
248 also requires SWIG_ConvertPtr to return new result values, such as
249
250 int SWIG_ConvertPtr(obj, ptr,...) {
251 if (<obj is ok>) {
252 if (<need new object>) {
253 *ptr = <ptr to new allocated object>;
254 return SWIG_NEWOBJ;
255 } else {
256 *ptr = <ptr to old object>;
257 return SWIG_OLDOBJ;
258 }
259 } else {
260 return SWIG_BADOBJ;
261 }
262 }
263
264 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
265 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
266 SWIG errors code.
267
268 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
269 allows returning the 'cast rank', for example, if you have this
270
271 int food(double)
272 int fooi(int);
273
274 and you call
275
276 food(1) // cast rank '1' (1 -> 1.0)
277 fooi(1) // cast rank '0'
278
279 just use the SWIG_AddCast()/SWIG_CheckState()
280*/
281
282#define SWIG_OK (0)
283/* Runtime errors are < 0 */
284#define SWIG_ERROR (-1)
285/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
286/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
287/* Errors < -200 are generic runtime specific errors */
288#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
289
290#define SWIG_IsOK(r) (r >= 0)
291#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
292
293/* The CastRankLimit says how many bits are used for the cast rank */
294#define SWIG_CASTRANKLIMIT (1 << 8)
295/* The NewMask denotes the object was created (using new/malloc) */
296#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
297/* The TmpMask is for in/out typemaps that use temporary objects */
298#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
299/* Simple returning values */
300#define SWIG_BADOBJ (SWIG_ERROR)
301#define SWIG_OLDOBJ (SWIG_OK)
302#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
303#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
304/* Check, add and del object mask methods */
305#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
306#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
307#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
308#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
309#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
310#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
311
312/* Cast-Rank Mode */
313#if defined(SWIG_CASTRANK_MODE)
314# ifndef SWIG_TypeRank
315# define SWIG_TypeRank unsigned long
316# endif
317# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
318# define SWIG_MAXCASTRANK (2)
319# endif
320# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
321# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
323 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
324}
326 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
327}
328#else /* no cast-rank mode */
329# define SWIG_AddCast(r) (r)
330# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
331#endif
332
333/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
334 * if you're missing it.
335 */
336#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
337 (defined __cplusplus && __cplusplus >= 201103L) || \
338 defined SWIG_HAVE_SNPRINTF) && \
339 !defined SWIG_NO_SNPRINTF
340# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
341# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
342#else
343/* Fallback versions ignore the buffer size, but most of our uses either have a
344 * fixed maximum possible size or dynamically allocate a buffer that's large
345 * enough.
346 */
347# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
348# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
349#endif
350
351#include <string.h>
352
353#ifdef __cplusplus
354extern "C" {
355#endif
356
357typedef void *(*swig_converter_func)(void *, int *);
358typedef struct swig_type_info *(*swig_dycast_func)(void **);
359
360/* Structure to store information on one type */
361typedef struct swig_type_info {
362 const char *name; /* mangled name of this type */
363 const char *str; /* human readable name of this type */
364 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
365 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
366 void *clientdata; /* language specific type data */
367 int owndata; /* flag if the structure owns the clientdata */
369
370/* Structure to store a type and conversion function used for casting */
371typedef struct swig_cast_info {
372 swig_type_info *type; /* pointer to type that is equivalent to this type */
373 swig_converter_func converter; /* function to cast the void pointers */
374 struct swig_cast_info *next; /* pointer to next cast in linked list */
375 struct swig_cast_info *prev; /* pointer to the previous cast */
377
378/* Structure used to store module information
379 * Each module generates one structure like this, and the runtime collects
380 * all of these structures and stores them in a circularly linked list.*/
381typedef struct swig_module_info {
382 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
383 size_t size; /* Number of types in this module */
384 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
385 swig_type_info **type_initial; /* Array of initially generated type structures */
386 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
387 void *clientdata; /* Language specific module data */
389
390/*
391 Compare two type names skipping the space characters, therefore
392 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
393
394 Return 0 when the two name types are equivalent, as in
395 strncmp, but skipping ' '.
396*/
397SWIGRUNTIME int
398SWIG_TypeNameComp(const char *f1, const char *l1,
399 const char *f2, const char *l2) {
400 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
401 while ((*f1 == ' ') && (f1 != l1)) ++f1;
402 while ((*f2 == ' ') && (f2 != l2)) ++f2;
403 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
404 }
405 return (int)((l1 - f1) - (l2 - f2));
406}
407
408/*
409 Check type equivalence in a name list like <name1>|<name2>|...
410 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
411*/
412SWIGRUNTIME int
413SWIG_TypeCmp(const char *nb, const char *tb) {
414 int equiv = 1;
415 const char* te = tb + strlen(tb);
416 const char* ne = nb;
417 while (equiv != 0 && *ne) {
418 for (nb = ne; *ne; ++ne) {
419 if (*ne == '|') break;
420 }
421 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
422 if (*ne) ++ne;
423 }
424 return equiv;
425}
426
427/*
428 Check type equivalence in a name list like <name1>|<name2>|...
429 Return 0 if not equal, 1 if equal
430*/
431SWIGRUNTIME int
432SWIG_TypeEquiv(const char *nb, const char *tb) {
433 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
434}
435
436/*
437 Check the typename
438*/
440SWIG_TypeCheck(const char *c, swig_type_info *ty) {
441 if (ty) {
442 swig_cast_info *iter = ty->cast;
443 while (iter) {
444 if (strcmp(iter->type->name, c) == 0) {
445 if (iter == ty->cast)
446 return iter;
447 /* Move iter to the top of the linked list */
448 iter->prev->next = iter->next;
449 if (iter->next)
450 iter->next->prev = iter->prev;
451 iter->next = ty->cast;
452 iter->prev = 0;
453 if (ty->cast) ty->cast->prev = iter;
454 ty->cast = iter;
455 return iter;
456 }
457 iter = iter->next;
458 }
459 }
460 return 0;
461}
462
463/*
464 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
465*/
468 if (ty) {
469 swig_cast_info *iter = ty->cast;
470 while (iter) {
471 if (iter->type == from) {
472 if (iter == ty->cast)
473 return iter;
474 /* Move iter to the top of the linked list */
475 iter->prev->next = iter->next;
476 if (iter->next)
477 iter->next->prev = iter->prev;
478 iter->next = ty->cast;
479 iter->prev = 0;
480 if (ty->cast) ty->cast->prev = iter;
481 ty->cast = iter;
482 return iter;
483 }
484 iter = iter->next;
485 }
486 }
487 return 0;
488}
489
490/*
491 Cast a pointer up an inheritance hierarchy
492*/
494SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
495 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
496}
497
498/*
499 Dynamic pointer casting. Down an inheritance hierarchy
500*/
503 swig_type_info *lastty = ty;
504 if (!ty || !ty->dcast) return ty;
505 while (ty && (ty->dcast)) {
506 ty = (*ty->dcast)(ptr);
507 if (ty) lastty = ty;
508 }
509 return lastty;
510}
511
512/*
513 Return the name associated with this type
514*/
515SWIGRUNTIMEINLINE const char *
517 return ty->name;
518}
519
520/*
521 Return the pretty name associated with this type,
522 that is an unmangled type name in a form presentable to the user.
523*/
524SWIGRUNTIME const char *
526 /* The "str" field contains the equivalent pretty names of the
527 type, separated by vertical-bar characters. Choose the last
528 name. It should be the most specific; a fully resolved name
529 but not necessarily with default template parameters expanded. */
530 if (!type) return NULL;
531 if (type->str != NULL) {
532 const char *last_name = type->str;
533 const char *s;
534 for (s = type->str; *s; s++)
535 if (*s == '|') last_name = s+1;
536 return last_name;
537 }
538 else
539 return type->name;
540}
541
542/*
543 Set the clientdata field for a type
544*/
545SWIGRUNTIME void
547 swig_cast_info *cast = ti->cast;
548 /* if (ti->clientdata == clientdata) return; */
550
551 while (cast) {
552 if (!cast->converter) {
553 swig_type_info *tc = cast->type;
554 if (!tc->clientdata) {
556 }
557 }
558 cast = cast->next;
559 }
560}
561SWIGRUNTIME void
566
567/*
568 Search for a swig_type_info structure only by mangled name
569 Search is a O(log #types)
570
571 We start searching at module start, and finish searching when start == end.
572 Note: if start == end at the beginning of the function, we go all the way around
573 the circular list.
574*/
577 swig_module_info *end,
578 const char *name) {
579 swig_module_info *iter = start;
580 do {
581 if (iter->size) {
582 size_t l = 0;
583 size_t r = iter->size - 1;
584 do {
585 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
586 size_t i = (l + r) >> 1;
587 const char *iname = iter->types[i]->name;
588 if (iname) {
589 int compare = strcmp(name, iname);
590 if (compare == 0) {
591 return iter->types[i];
592 } else if (compare < 0) {
593 if (i) {
594 r = i - 1;
595 } else {
596 break;
597 }
598 } else if (compare > 0) {
599 l = i + 1;
600 }
601 } else {
602 break; /* should never happen */
603 }
604 } while (l <= r);
605 }
606 iter = iter->next;
607 } while (iter != end);
608 return 0;
609}
610
611/*
612 Search for a swig_type_info structure for either a mangled name or a human readable name.
613 It first searches the mangled names of the types, which is a O(log #types)
614 If a type is not found it then searches the human readable names, which is O(#types).
615
616 We start searching at module start, and finish searching when start == end.
617 Note: if start == end at the beginning of the function, we go all the way around
618 the circular list.
619*/
622 swig_module_info *end,
623 const char *name) {
624 /* STEP 1: Search the name field using binary search */
625 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
626 if (ret) {
627 return ret;
628 } else {
629 /* STEP 2: If the type hasn't been found, do a complete search
630 of the str field (the human readable name) */
631 swig_module_info *iter = start;
632 do {
633 size_t i = 0;
634 for (; i < iter->size; ++i) {
635 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
636 return iter->types[i];
637 }
638 iter = iter->next;
639 } while (iter != end);
640 }
641
642 /* neither found a match */
643 return 0;
644}
645
646/*
647 Pack binary data into a string
648*/
649SWIGRUNTIME char *
650SWIG_PackData(char *c, void *ptr, size_t sz) {
651 static const char hex[17] = "0123456789abcdef";
652 const unsigned char *u = (unsigned char *) ptr;
653 const unsigned char *eu = u + sz;
654 for (; u != eu; ++u) {
655 unsigned char uu = *u;
656 *(c++) = hex[(uu & 0xf0) >> 4];
657 *(c++) = hex[uu & 0xf];
658 }
659 return c;
660}
661
662/*
663 Unpack binary data from a string
664*/
665SWIGRUNTIME const char *
666SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
667 unsigned char *u = (unsigned char *) ptr;
668 const unsigned char *eu = u + sz;
669 for (; u != eu; ++u) {
670 char d = *(c++);
671 unsigned char uu;
672 if ((d >= '0') && (d <= '9'))
673 uu = (unsigned char)((d - '0') << 4);
674 else if ((d >= 'a') && (d <= 'f'))
675 uu = (unsigned char)((d - ('a'-10)) << 4);
676 else
677 return (char *) 0;
678 d = *(c++);
679 if ((d >= '0') && (d <= '9'))
680 uu |= (unsigned char)(d - '0');
681 else if ((d >= 'a') && (d <= 'f'))
682 uu |= (unsigned char)(d - ('a'-10));
683 else
684 return (char *) 0;
685 *u = uu;
686 }
687 return c;
688}
689
690/*
691 Pack 'void *' into a string buffer.
692*/
693SWIGRUNTIME char *
694SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
695 char *r = buff;
696 if ((2*sizeof(void *) + 2) > bsz) return 0;
697 *(r++) = '_';
698 r = SWIG_PackData(r,&ptr,sizeof(void *));
699 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
700 strcpy(r,name);
701 return buff;
702}
703
704SWIGRUNTIME const char *
705SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
706 if (*c != '_') {
707 if (strcmp(c,"NULL") == 0) {
708 *ptr = (void *) 0;
709 return name;
710 } else {
711 return 0;
712 }
713 }
714 return SWIG_UnpackData(++c,ptr,sizeof(void *));
715}
716
717SWIGRUNTIME char *
718SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
719 char *r = buff;
720 size_t lname = (name ? strlen(name) : 0);
721 if ((2*sz + 2 + lname) > bsz) return 0;
722 *(r++) = '_';
723 r = SWIG_PackData(r,ptr,sz);
724 if (lname) {
725 strncpy(r,name,lname+1);
726 } else {
727 *r = 0;
728 }
729 return buff;
730}
731
732SWIGRUNTIME const char *
733SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
734 if (*c != '_') {
735 if (strcmp(c,"NULL") == 0) {
736 memset(ptr,0,sz);
737 return name;
738 } else {
739 return 0;
740 }
741 }
742 return SWIG_UnpackData(++c,ptr,sz);
743}
744
745#ifdef __cplusplus
746}
747#endif
748
749/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
750#define SWIG_UnknownError -1
751#define SWIG_IOError -2
752#define SWIG_RuntimeError -3
753#define SWIG_IndexError -4
754#define SWIG_TypeError -5
755#define SWIG_DivisionByZero -6
756#define SWIG_OverflowError -7
757#define SWIG_SyntaxError -8
758#define SWIG_ValueError -9
759#define SWIG_SystemError -10
760#define SWIG_AttributeError -11
761#define SWIG_MemoryError -12
762#define SWIG_NullReferenceError -13
763
764
765/* -----------------------------------------------------------------------------
766 * guile_scm_run.swg
767 * ----------------------------------------------------------------------------- */
768
769#if __GNUC__ >= 10
770#if defined(__cplusplus)
771#pragma GCC diagnostic ignored "-Wvolatile" /* For 'volatile SCM *' in at least Guile 3.0 and earlier */
772#endif
773#endif
774
775#include <libguile.h>
776#include <stdio.h>
777#include <string.h>
778#include <stdlib.h>
779#include <assert.h>
780
781#ifdef __cplusplus
782extern "C" {
783#endif
784
785
786/* In the code below, use guile 2.0 compatible functions where possible.
787 Functions that don't exist in older versions will be mapped to
788 a deprecated equivalent for those versions only */
789#if defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION < 2)
790
791static SCM
792scm_module_variable (SCM module, SCM sym)
793{
794 return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
795}
796
797#define scm_to_utf8_string scm_to_locale_string
798#define scm_from_utf8_string scm_from_locale_string
799#endif
800
801#if SCM_MAJOR_VERSION >= 2
802/* scm_c_define_gsubr takes a different parameter type depending on the guile version */
803
804typedef scm_t_subr swig_guile_proc;
805#else
806typedef SCM (*swig_guile_proc)();
807#endif
808typedef SCM (*guile_destructor)(SCM);
809
814
815#define SWIG_scm2str(s) \
816 SWIG_Guile_scm2newstr(s, NULL)
817#define SWIG_str02scm(str) \
818 str ? scm_from_utf8_string(str) : SCM_BOOL_F
819# define SWIG_malloc(size) \
820 scm_malloc(size)
821# define SWIG_free(mem) \
822 free(mem)
823#define SWIG_ConvertPtr(s, result, type, flags) \
824 SWIG_Guile_ConvertPtr(s, result, type, flags)
825#define SWIG_MustGetPtr(s, type, argnum, flags) \
826 SWIG_Guile_MustGetPtr(s, type, argnum, flags, FUNC_NAME)
827#define SWIG_NewPointerObj(ptr, type, owner) \
828 SWIG_Guile_NewPointerObj((void*)ptr, type, owner)
829#define SWIG_PointerAddress(object) \
830 SWIG_Guile_PointerAddress(object)
831#define SWIG_PointerType(object) \
832 SWIG_Guile_PointerType(object)
833#define SWIG_IsPointerOfType(object, type) \
834 SWIG_Guile_IsPointerOfType(object, type)
835#define SWIG_IsPointer(object) \
836 SWIG_Guile_IsPointer(object)
837#define SWIG_contract_assert(expr, msg) \
838 do { \
839 if (!(expr)) \
840 scm_error(scm_from_locale_symbol("swig-contract-assertion-failed"), \
841 FUNC_NAME, msg, SCM_EOL, SCM_BOOL_F); \
842 } while (0)
843
844/* for C++ member pointers, ie, member methods */
845#define SWIG_ConvertMember(obj, ptr, sz, ty) \
846 SWIG_Guile_ConvertMember(obj, ptr, sz, ty, FUNC_NAME)
847#define SWIG_NewMemberObj(ptr, sz, type) \
848 SWIG_Guile_NewMemberObj(ptr, sz, type, FUNC_NAME)
849
850/* Runtime API */
851static swig_module_info *SWIG_Guile_GetModule(void *SWIGUNUSEDPARM(clientdata));
852#define SWIG_GetModule(clientdata) SWIG_Guile_GetModule(clientdata)
853#define SWIG_SetModule(clientdata, pointer) SWIG_Guile_SetModule(pointer)
854
855SWIGINTERN char *
857#define FUNC_NAME "SWIG_Guile_scm2newstr"
858 char *ret;
859
860 SCM_ASSERT (scm_is_string(str), str, 1, FUNC_NAME);
861
862 ret = scm_to_utf8_string(str);
863 if (!ret) return NULL;
864
865 if (len) *len = strlen(ret) - 1;
866 return ret;
867#undef FUNC_NAME
868}
869
870static int swig_initialized = 0;
871static scm_t_bits swig_tag = 0;
872static scm_t_bits swig_collectable_tag = 0;
873static scm_t_bits swig_finalized_tag = 0;
874static scm_t_bits swig_destroyed_tag = 0;
875static scm_t_bits swig_member_function_tag = 0;
876static SCM swig_make_func = SCM_EOL;
877static SCM swig_keyword = SCM_EOL;
878static SCM swig_symbol = SCM_EOL;
879
880#define SWIG_Guile_GetSmob(x) \
881 ( !scm_is_null(x) && SCM_INSTANCEP(x) && scm_is_true(scm_slot_exists_p(x, swig_symbol)) \
882 ? scm_slot_ref(x, swig_symbol) : (x) )
883
885
886SWIGINTERN SCM
888{
889 if (ptr == NULL)
890 return SCM_EOL;
891 else {
892 SCM smob;
894 if (owner)
895 SCM_NEWSMOB2(smob, swig_collectable_tag, ptr, (void *) type);
896 else
897 SCM_NEWSMOB2(smob, swig_tag, ptr, (void *) type);
898
899 if (!cdata || scm_is_null(cdata->goops_class) || swig_make_func == SCM_EOL ) {
900 return smob;
901 } else {
902 /* the scm_make() C function only handles the creation of gf,
903 methods and classes (no instances) the (make ...) function is
904 later redefined in goops.scm. So we need to call that
905 Scheme function. */
906 return scm_apply(swig_make_func,
907 scm_list_3(cdata->goops_class,
909 smob),
910 SCM_EOL);
911 }
912 }
913}
914
915SWIGINTERN unsigned long
917{
918 SCM smob = SWIG_Guile_GetSmob(object);
919 if (scm_is_null(smob)) return 0;
920 else if (SCM_SMOB_PREDICATE(swig_tag, smob)
921 || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)
922 || SCM_SMOB_PREDICATE(swig_destroyed_tag, smob)) {
923 return (unsigned long) (void *) SCM_CELL_WORD_1(smob);
924 }
925 else scm_wrong_type_arg("SWIG-Guile-PointerAddress", 1, object);
926}
927
930{
931 SCM smob = SWIG_Guile_GetSmob(object);
932 if (scm_is_null(smob)) return NULL;
933 else if (SCM_SMOB_PREDICATE(swig_tag, smob)
934 || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)
935 || SCM_SMOB_PREDICATE(swig_destroyed_tag, smob)) {
936 return (swig_type_info *) SCM_CELL_WORD_2(smob);
937 }
938 else scm_wrong_type_arg("SWIG-Guile-PointerType", 1, object);
939}
940
941SWIGINTERN int
943{
944 /* We do not accept smobs representing destroyed pointers, but we have to
945 allow finalized smobs because Guile >= 2.0.12 sets all smob instances
946 to the 'finalized' type before calling their 'free' function. This change
947 was introduced to Guile in commit 8dff3af087c6eaa83ae0d72aa8b22aef5c65d65d */
948 return SCM_SMOB_PREDICATE(swig_tag, smob)
949 || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)
950 || SCM_SMOB_PREDICATE(swig_finalized_tag, smob);
951}
952
953SWIGINTERN int
955{
956 swig_cast_info *cast;
957 swig_type_info *from;
958 SCM smob = SWIG_Guile_GetSmob(s);
959 int ret = SWIG_ERROR;
960
961 if (scm_is_null(smob)) {
962 *result = NULL;
964#if SCM_MAJOR_VERSION >= 2
965 } else if (SCM_POINTER_P(s)) {
966 *result = SCM_POINTER_VALUE(s);
967 return SWIG_OK;
968#endif /* if SCM_MAJOR_VERSION >= 2 */
969 } else if (SWIG_Guile_IsValidSmob(smob)) {
970 from = (swig_type_info *) SCM_CELL_WORD_2(smob);
971 if (!from) return SWIG_ERROR;
972
974 if ((SCM_CELL_TYPE(smob) == swig_collectable_tag && SCM_CELL_WORD_1(smob) == 0) || SCM_CELL_TYPE(smob) == swig_tag) {
976 }
977 }
978
979 if (type) {
980 cast = SWIG_TypeCheckStruct(from, type);
981 if (cast) {
982 int newmemory = 0;
983 *result = SWIG_TypeCast(cast, (void *) SCM_CELL_WORD_1(smob), &newmemory);
984 assert(!newmemory); /* newmemory handling not yet implemented */
985 ret = SWIG_OK;
986 } else {
987 return SWIG_ERROR;
988 }
989 } else {
990 *result = (void *) SCM_CELL_WORD_1(smob);
991 ret = SWIG_OK;
992 }
993
996 }
998 SCM_SET_CELL_WORD_1(smob, 0);
999 }
1000 }
1001 return ret;
1002}
1003
1004SWIGINTERNINLINE void *
1006 int argnum, int flags, const char *func_name)
1007{
1008 void *result;
1009 int res = SWIG_Guile_ConvertPtr(s, &result, type, flags);
1010 if (!SWIG_IsOK(res)) {
1011 /* type mismatch */
1012 scm_wrong_type_arg(func_name, argnum, s);
1013 }
1014 return result;
1015}
1016
1019{
1020 void *result;
1021 if (SWIG_Guile_ConvertPtr(s, &result, type, 0)) {
1022 /* type mismatch */
1023 return 0;
1024 }
1025 else return 1;
1026}
1027
1030{
1031 /* module might not be initialized yet, so initialize it */
1032 SWIG_GetModule(0);
1034}
1035
1036/* Mark a pointer object non-collectable */
1037SWIGINTERN void
1039{
1040 SCM smob = SWIG_Guile_GetSmob(s);
1041 if (!scm_is_null(smob)) {
1042 if (SWIG_Guile_IsValidSmob(smob)) {
1043 SCM_SET_CELL_TYPE(smob, swig_tag);
1044 }
1045 else scm_wrong_type_arg(NULL, 0, s);
1046 }
1047}
1048
1049/* Mark a pointer object destroyed */
1050SWIGINTERN void
1052{
1053 SCM smob = SWIG_Guile_GetSmob(s);
1054 if (!scm_is_null(smob)) {
1055 if (SWIG_Guile_IsValidSmob(smob)) {
1056 SCM_SET_CELL_TYPE(smob, swig_destroyed_tag);
1057 }
1058 else scm_wrong_type_arg(NULL, 0, s);
1059 }
1060}
1061
1062/* Member functions */
1063
1064SWIGINTERN SCM
1066 const char *func_name)
1067{
1068 SCM smob;
1069 void *copy = malloc(sz);
1070 memcpy(copy, ptr, sz);
1071 SCM_NEWSMOB2(smob, swig_member_function_tag, copy, (void *) type);
1072 return smob;
1073}
1074
1075SWIGINTERN int
1076SWIG_Guile_ConvertMember(SCM smob, void *ptr, size_t sz, swig_type_info *type,
1077 const char *func_name)
1078{
1079 swig_cast_info *cast;
1080 swig_type_info *from;
1081
1082 if (SCM_SMOB_PREDICATE(swig_member_function_tag, smob)) {
1083 from = (swig_type_info *) SCM_CELL_WORD_2(smob);
1084 if (!from) return SWIG_ERROR;
1085 if (type) {
1086 cast = SWIG_TypeCheckStruct(from, type);
1087 if (!cast) return SWIG_ERROR;
1088 }
1089 memcpy(ptr, (void *) SCM_CELL_WORD_1(smob), sz);
1090 return SWIG_OK;
1091 }
1092 return SWIG_ERROR;
1093}
1094
1095
1096/* Init */
1097
1098SWIGINTERN int
1099print_swig_aux (SCM swig_smob, SCM port, scm_print_state *pstate,
1100 const char *attribute)
1101{
1103
1104 type = (swig_type_info *) SCM_CELL_WORD_2(swig_smob);
1105 if (type) {
1106 scm_puts("#<", port);
1107 scm_puts(attribute, port);
1108 scm_puts("swig-pointer ", port);
1109 scm_puts(SWIG_TypePrettyName(type), port);
1110 scm_puts(" ", port);
1111 scm_intprint((long) SCM_CELL_WORD_1(swig_smob), 16, port);
1112 scm_puts(">", port);
1113 /* non-zero means success */
1114 return 1;
1115 } else {
1116 return 0;
1117 }
1118}
1119
1120
1121SWIGINTERN int
1122print_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
1123{
1124 return print_swig_aux(swig_smob, port, pstate, "");
1125}
1126
1127SWIGINTERN int
1128print_collectable_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
1129{
1130 return print_swig_aux(swig_smob, port, pstate, "collectable-");
1131}
1132
1133SWIGINTERN int
1134print_destroyed_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
1135{
1136 return print_swig_aux(swig_smob, port, pstate, "destroyed-");
1137}
1138
1139SWIGINTERN int
1140print_member_function_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
1141{
1143 type = (swig_type_info *) SCM_CELL_WORD_2(swig_smob);
1144 if (type) {
1145 scm_puts("#<", port);
1146 scm_puts("swig-member-function-pointer ", port);
1147 scm_puts(SWIG_TypePrettyName(type), port);
1148 scm_puts(" >", port);
1149 /* non-zero means success */
1150 return 1;
1151 } else {
1152 return 0;
1153 }
1154}
1155
1156SWIGINTERN SCM
1157equalp_swig (SCM A, SCM B)
1158{
1159 if (SCM_CELL_WORD_0(A) == SCM_CELL_WORD_0(B) && SCM_CELL_WORD_1(A) == SCM_CELL_WORD_1(B)
1160 && SCM_CELL_WORD_2(A) == SCM_CELL_WORD_2(B))
1161 return SCM_BOOL_T;
1162 else return SCM_BOOL_F;
1163}
1164
1165SWIGINTERN size_t
1167{
1168 swig_type_info *type = (swig_type_info *) SCM_CELL_WORD_2(A);
1169 if (type) {
1170 if (type->clientdata && ((swig_guile_clientdata *)type->clientdata)->destroy)
1171 ((swig_guile_clientdata *)type->clientdata)->destroy(A);
1172 }
1173 return 0;
1174}
1175
1176SWIGINTERN size_t
1178{
1179 free((swig_type_info *) SCM_CELL_WORD_1(A));
1180 return 0;
1181}
1182
1183SWIGINTERN int
1185 scm_t_bits *tag_variable,
1186 const char *smob_name,
1187 const char *scheme_variable_name)
1188{
1189 SCM variable = scm_module_variable(swig_module,
1190 scm_from_locale_symbol(scheme_variable_name));
1191 if (scm_is_false(variable)) {
1192 *tag_variable = scm_make_smob_type(scheme_variable_name, 0);
1193 scm_c_module_define(swig_module, scheme_variable_name,
1194 scm_from_ulong(*tag_variable));
1195 return 1;
1196 }
1197 else {
1198 *tag_variable = scm_to_ulong(SCM_VARIABLE_REF(variable));
1199 return 0;
1200 }
1201}
1202
1203SWIGINTERN SCM
1205{
1206 static SCM swig_module;
1207
1208 if (swig_initialized) return swig_module;
1209 swig_initialized = 1;
1210
1211 swig_module = scm_c_resolve_module("Swig swigrun");
1213 "swig-pointer", "swig-pointer-tag")) {
1214 scm_set_smob_print(swig_tag, print_swig);
1215 scm_set_smob_equalp(swig_tag, equalp_swig);
1216 }
1218 "collectable-swig-pointer", "collectable-swig-pointer-tag")) {
1219 scm_set_smob_print(swig_collectable_tag, print_collectable_swig);
1220 scm_set_smob_equalp(swig_collectable_tag, equalp_swig);
1221 scm_set_smob_free(swig_collectable_tag, free_swig);
1222 /* For Guile >= 2.0.12. See libguile/smob.c:clear_smobnum */
1224 }
1226 "destroyed-swig-pointer", "destroyed-swig-pointer-tag")) {
1227 scm_set_smob_print(swig_destroyed_tag, print_destroyed_swig);
1228 scm_set_smob_equalp(swig_destroyed_tag, equalp_swig);
1229 }
1231 "swig-member-function-pointer", "swig-member-function-pointer-tag")) {
1234 }
1235 swig_make_func = scm_permanent_object(
1236 scm_variable_ref(scm_c_module_lookup(scm_c_resolve_module("oop goops"), "make")));
1237 swig_keyword = scm_permanent_object(scm_from_locale_keyword("init-smob"));
1238 swig_symbol = scm_permanent_object(scm_from_locale_symbol("swig-smob"));
1239#ifdef SWIG_INIT_RUNTIME_MODULE
1240 SWIG_INIT_RUNTIME_MODULE
1241#endif
1242
1243 return swig_module;
1244}
1245
1248{
1249 SCM module = SWIG_Guile_Init();
1250 SCM variable = scm_module_variable(module, scm_from_locale_symbol("swig-type-list-address" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME));
1251 if (scm_is_false(variable)) {
1252 return NULL;
1253 } else {
1254 return (swig_module_info *) scm_to_ulong(SCM_VARIABLE_REF(variable));
1255 }
1256}
1257
1258SWIGINTERN void
1260{
1261 SCM module = SWIG_Guile_Init();
1262 scm_module_define(module,
1263 scm_from_locale_symbol("swig-type-list-address" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME),
1264 scm_from_ulong((unsigned long) swig_module));
1265}
1266
1267SWIGINTERN int
1268SWIG_Guile_GetArgs (SCM *dest, SCM rest,
1269 int reqargs, int optargs,
1270 const char *procname)
1271{
1272 int i;
1273 int num_args_passed = 0;
1274 for (i = 0; i<reqargs; i++) {
1275 if (!scm_is_pair(rest))
1276 scm_wrong_num_args(scm_from_utf8_string(procname ? procname : "unknown procedure"));
1277 *dest++ = SCM_CAR(rest);
1278 rest = SCM_CDR(rest);
1279 num_args_passed++;
1280 }
1281 for (i = 0; i<optargs && scm_is_pair(rest); i++) {
1282 *dest++ = SCM_CAR(rest);
1283 rest = SCM_CDR(rest);
1284 num_args_passed++;
1285 }
1286 for (; i<optargs; i++)
1287 *dest++ = SCM_UNDEFINED;
1288 if (!scm_is_null(rest))
1289 scm_wrong_num_args(scm_from_utf8_string(procname ? procname : "unknown procedure"));
1290 return num_args_passed;
1291}
1292
1293#ifdef __cplusplus
1294}
1295#endif
1296
1297
1298
1299#define GUILE_MAYBE_VALUES \
1300 if (gswig_list_p) gswig_result = scm_values(gswig_result);
1301
1302#define GUILE_MAYBE_VECTOR \
1303 if (gswig_list_p) gswig_result = scm_vector(gswig_result);
1304
1305#define SWIG_APPEND_VALUE(object) \
1306 if (gswig_result == SCM_UNSPECIFIED) \
1307 gswig_result = object; \
1308 else { \
1309 if (!gswig_list_p) { \
1310 gswig_list_p = 1; \
1311 gswig_result = scm_list_n(gswig_result, object, SCM_UNDEFINED); \
1312 } \
1313 else \
1314 gswig_result = scm_append(scm_list_n(gswig_result, scm_list_n(object, SCM_UNDEFINED), SCM_UNDEFINED)); \
1315 }
1316
1317
1318
1319/* -------- TYPES TABLE (BEGIN) -------- */
1320
1321#define SWIGTYPE_p_Agedge_t swig_types[0]
1322#define SWIGTYPE_p_Agnode_t swig_types[1]
1323#define SWIGTYPE_p_Agraph_t swig_types[2]
1324#define SWIGTYPE_p_Agsym_t swig_types[3]
1325#define SWIGTYPE_p_FILE swig_types[4]
1326#define SWIGTYPE_p_unsigned_long swig_types[5]
1328static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};
1329#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1330#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1331
1332/* -------- TYPES TABLE (END) -------- */
1333
1334
1335#ifdef __cplusplus
1336#include <utility>
1337/* SwigValueWrapper is described in swig.swg */
1338template<typename T> class SwigValueWrapper {
1339 struct SwigSmartPointer {
1340 T *ptr;
1341 SwigSmartPointer(T *p) : ptr(p) { }
1342 ~SwigSmartPointer() { delete ptr; }
1343 SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1344 void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1345 } pointer;
1346 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1347 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1348public:
1349 SwigValueWrapper() : pointer(0) { }
1350 SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1351#if __cplusplus >=201103L
1352 SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1353 operator T&&() const { return std::move(*pointer.ptr); }
1354#else
1355 operator T&() const { return *pointer.ptr; }
1356#endif
1357 T *operator&() const { return pointer.ptr; }
1358 static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1359};
1360
1361/*
1362 * SwigValueInit() is a generic initialisation solution as the following approach:
1363 *
1364 * T c_result = T();
1365 *
1366 * doesn't compile for all types for example:
1367 *
1368 * unsigned int c_result = unsigned int();
1369 */
1370template <typename T> T SwigValueInit() {
1371 return T();
1372}
1373
1374#if __cplusplus >=201103L
1375# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1376#else
1377# define SWIG_STD_MOVE(OBJ) OBJ
1378#endif
1379
1380#endif
1381
1382
1383/* some language headers (e.g. php.h, ruby.h) leave these defined */
1384#undef PACKAGE_BUGREPORT
1385#undef PACKAGE_STRING
1386#undef PACKAGE_TARNAME
1387#undef PACKAGE_VERSION
1388#undef PACKAGE_NAME
1389
1390#include "config.h"
1391#include <gvc/gvc.h>
1392
1394/*** New empty graph */
1395extern Agraph_t *graph(char *name);
1396extern Agraph_t *digraph(char *name);
1397extern Agraph_t *strictgraph(char *name);
1398extern Agraph_t *strictdigraph(char *name);
1399/*** New graph from a dot-syntax string or file */
1400extern Agraph_t *readstring(char *string);
1401extern Agraph_t *read(const char *filename);
1402extern Agraph_t *read(FILE *f);
1403/*** Add new subgraph to existing graph */
1404extern Agraph_t *graph(Agraph_t *g, char *name);
1405
1407/*** Add new node to existing graph */
1408extern Agnode_t *node(Agraph_t *g, char *name);
1409
1411/*** Add new edge between existing nodes */
1412extern Agedge_t *edge(Agnode_t *t, Agnode_t *h);
1413/*** Add a new edge between an existing tail node, and a named head node which will be induced in the graph if it doesn't already exist */
1414extern Agedge_t *edge(Agnode_t *t, char *hname);
1415/*** Add a new edge between an existing head node, and a named tail node which will be induced in the graph if it doesn't already exist */
1416extern Agedge_t *edge(char *tname, Agnode_t *h);
1417/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */
1418extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname);
1419
1421/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */
1422extern char *setv(Agraph_t *g, char *attr, char *val);
1423extern char *setv(Agnode_t *n, char *attr, char *val);
1424extern char *setv(Agedge_t *e, char *attr, char *val);
1425
1426/*** Set value of existing attribute of graph/node/edge (using attribute handle) */
1427extern char *setv(Agraph_t *g, Agsym_t *a, char *val);
1428extern char *setv(Agnode_t *n, Agsym_t *a, char *val);
1429extern char *setv(Agedge_t *e, Agsym_t *a, char *val);
1430
1432/*** Get value of named attribute of graph/node/edge */
1433extern char *getv(Agraph_t *g, char *attr);
1434extern char *getv(Agnode_t *n, char *attr);
1435extern char *getv(Agedge_t *e, char *attr);
1436
1437/*** Get value of attribute of graph/node/edge (using attribute handle) */
1438extern char *getv(Agraph_t *g, Agsym_t *a);
1439extern char *getv(Agnode_t *n, Agsym_t *a);
1440extern char *getv(Agedge_t *e, Agsym_t *a);
1441
1443extern char *nameof(Agraph_t *g);
1444extern char *nameof(Agnode_t *n);
1445extern char *nameof(Agsym_t *a);
1446
1448extern Agraph_t *findsubg(Agraph_t *g, char *name);
1449extern Agnode_t *findnode(Agraph_t *g, char *name);
1450extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h);
1451
1453extern Agsym_t *findattr(Agraph_t *g, char *name);
1454extern Agsym_t *findattr(Agnode_t *n, char *name);
1455extern Agsym_t *findattr(Agedge_t *e, char *name);
1456
1458extern Agnode_t *headof(Agedge_t *e);
1459extern Agnode_t *tailof(Agedge_t *e);
1460extern Agraph_t *graphof(Agraph_t *g);
1461extern Agraph_t *graphof(Agedge_t *e);
1462extern Agraph_t *graphof(Agnode_t *n);
1463extern Agraph_t *rootof(Agraph_t *g);
1464
1466extern Agnode_t *protonode(Agraph_t *g);
1467extern Agedge_t *protoedge(Agraph_t *g);
1468
1470/*** Iteration termination tests */
1471extern bool ok(Agraph_t *g);
1472extern bool ok(Agnode_t *n);
1473extern bool ok(Agedge_t *e);
1474extern bool ok(Agsym_t *a);
1475
1476/*** Iterate over subgraphs of a graph */
1477extern Agraph_t *firstsubg(Agraph_t *g);
1478extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
1479
1480/*** Iterate over supergraphs of a graph (obscure and rarely useful) */
1481extern Agraph_t *firstsupg(Agraph_t *g);
1482extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
1483
1484/*** Iterate over edges of a graph */
1485extern Agedge_t *firstedge(Agraph_t *g);
1486extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e);
1487
1488/*** Iterate over outedges of a graph */
1489extern Agedge_t *firstout(Agraph_t *g);
1490extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
1491
1492/*** Iterate over edges of a node */
1493extern Agedge_t *firstedge(Agnode_t *n);
1494extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e);
1495
1496/*** Iterate over out-edges of a node */
1497extern Agedge_t *firstout(Agnode_t *n);
1498extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
1499
1500/*** Iterate over head nodes reachable from out-edges of a node */
1501extern Agnode_t *firsthead(Agnode_t *n);
1502extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h);
1503
1504/*** Iterate over in-edges of a graph */
1505extern Agedge_t *firstin(Agraph_t *g);
1506extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
1507
1508/*** Iterate over in-edges of a node */
1509extern Agedge_t *firstin(Agnode_t *n);
1510extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
1511
1512/*** Iterate over tail nodes reachable from in-edges of a node */
1513extern Agnode_t *firsttail(Agnode_t *n);
1514extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t);
1515
1516/*** Iterate over nodes of a graph */
1517extern Agnode_t *firstnode(Agraph_t *g);
1518extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n);
1519
1520/*** Iterate over nodes of an edge */
1521extern Agnode_t *firstnode(Agedge_t *e);
1522extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n);
1523
1524/*** Iterate over attributes of a graph */
1525extern Agsym_t *firstattr(Agraph_t *g);
1526extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a);
1527
1528/*** Iterate over attributes of an edge */
1529extern Agsym_t *firstattr(Agedge_t *e);
1530extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a);
1531
1532/*** Iterate over attributes of a node */
1533extern Agsym_t *firstattr(Agnode_t *n);
1534extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a);
1535
1537extern bool rm(Agraph_t *g);
1538extern bool rm(Agnode_t *n);
1539extern bool rm(Agedge_t *e);
1540
1542/*** Annotate a graph with layout attributes and values using a specific layout engine */
1543extern bool layout(Agraph_t *g, const char *engine);
1544
1546/*** Render a layout into attributes of the graph */
1547extern bool render(Agraph_t *g);
1548/*** Render a layout to stdout */
1549extern bool render(Agraph_t *g, const char *format);
1550/*** Render to an open file */
1551extern bool render(Agraph_t *g, const char *format, FILE *fout);
1552/*** Render a layout to an unopened file by name */
1553extern bool render(Agraph_t *g, const char *format, const char *filename);
1554/*** Render to a string result */
1555#ifdef SWIGJAVA
1556extern char* renderresult(Agraph_t *ing, const char *format);
1557#else
1558extern void renderresult(Agraph_t *g, const char *format, char *outdata);
1559/*** Render to an open channel */
1560extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname);
1561#endif
1562/*** Render a layout to a malloc'ed string, to be free'd by the caller */
1563/*** (deprecated - too easy to leak memory) */
1564/*** (still needed for "eval [gv::renderdata $G tk]" ) */
1565extern char* renderdata(Agraph_t *g, const char *format);
1566
1567/*** Writing graph back to file */
1568extern bool write(Agraph_t *g, const char *filename);
1569extern bool write(Agraph_t *g, FILE *f);
1570
1571/*** Graph transformation tools */
1572extern bool tred(Agraph_t *g);
1573
1574
1575static SCM
1576_wrap_graph__SWIG_0 (int argc, SCM *argv)
1577{
1578#define FUNC_NAME "graph"
1579 char *arg1 = (char *) 0 ;
1580 int must_free1 = 0 ;
1581 SCM gswig_result;
1582 SWIGUNUSED int gswig_list_p = 0;
1583 Agraph_t *result = 0 ;
1584
1585 {
1586 arg1 = (char *)SWIG_scm2str(argv[0]);
1587 must_free1 = 1;
1588 }
1589 result = (Agraph_t *)graph(arg1);
1590 {
1591 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1592 }
1593 if (must_free1) SWIG_free(arg1);
1594
1595 return gswig_result;
1596#undef FUNC_NAME
1597}
1598
1599
1600static SCM
1602{
1603#define FUNC_NAME "digraph"
1604 char *arg1 = (char *) 0 ;
1605 int must_free1 = 0 ;
1606 SCM gswig_result;
1607 SWIGUNUSED int gswig_list_p = 0;
1608 Agraph_t *result = 0 ;
1609
1610 {
1611 arg1 = (char *)SWIG_scm2str(s_0);
1612 must_free1 = 1;
1613 }
1614 result = (Agraph_t *)digraph(arg1);
1615 {
1616 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1617 }
1618 if (must_free1) SWIG_free(arg1);
1619
1620 return gswig_result;
1621#undef FUNC_NAME
1622}
1623
1624
1625static SCM
1627{
1628#define FUNC_NAME "strictgraph"
1629 char *arg1 = (char *) 0 ;
1630 int must_free1 = 0 ;
1631 SCM gswig_result;
1632 SWIGUNUSED int gswig_list_p = 0;
1633 Agraph_t *result = 0 ;
1634
1635 {
1636 arg1 = (char *)SWIG_scm2str(s_0);
1637 must_free1 = 1;
1638 }
1639 result = (Agraph_t *)strictgraph(arg1);
1640 {
1641 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1642 }
1643 if (must_free1) SWIG_free(arg1);
1644
1645 return gswig_result;
1646#undef FUNC_NAME
1647}
1648
1649
1650static SCM
1652{
1653#define FUNC_NAME "strictdigraph"
1654 char *arg1 = (char *) 0 ;
1655 int must_free1 = 0 ;
1656 SCM gswig_result;
1657 SWIGUNUSED int gswig_list_p = 0;
1658 Agraph_t *result = 0 ;
1659
1660 {
1661 arg1 = (char *)SWIG_scm2str(s_0);
1662 must_free1 = 1;
1663 }
1664 result = (Agraph_t *)strictdigraph(arg1);
1665 {
1666 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1667 }
1668 if (must_free1) SWIG_free(arg1);
1669
1670 return gswig_result;
1671#undef FUNC_NAME
1672}
1673
1674
1675static SCM
1677{
1678#define FUNC_NAME "readstring"
1679 char *arg1 = (char *) 0 ;
1680 int must_free1 = 0 ;
1681 SCM gswig_result;
1682 SWIGUNUSED int gswig_list_p = 0;
1683 Agraph_t *result = 0 ;
1684
1685 {
1686 arg1 = (char *)SWIG_scm2str(s_0);
1687 must_free1 = 1;
1688 }
1689 result = (Agraph_t *)readstring(arg1);
1690 {
1691 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1692 }
1693 if (must_free1) SWIG_free(arg1);
1694
1695 return gswig_result;
1696#undef FUNC_NAME
1697}
1698
1699
1700static SCM
1701_wrap_read__SWIG_0 (int argc, SCM *argv)
1702{
1703#define FUNC_NAME "read"
1704 char *arg1 = (char *) 0 ;
1705 int must_free1 = 0 ;
1706 SCM gswig_result;
1707 SWIGUNUSED int gswig_list_p = 0;
1708 Agraph_t *result = 0 ;
1709
1710 {
1711 arg1 = (char *)SWIG_scm2str(argv[0]);
1712 must_free1 = 1;
1713 }
1714 result = (Agraph_t *)read((char const *)arg1);
1715 {
1716 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1717 }
1718 if (must_free1) SWIG_free(arg1);
1719
1720 return gswig_result;
1721#undef FUNC_NAME
1722}
1723
1724
1725static SCM
1726_wrap_read__SWIG_1 (int argc, SCM *argv)
1727{
1728#define FUNC_NAME "read"
1729 FILE *arg1 = (FILE *) 0 ;
1730 SCM gswig_result;
1731 SWIGUNUSED int gswig_list_p = 0;
1732 Agraph_t *result = 0 ;
1733
1734 {
1735 arg1 = (FILE *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_FILE, 1, 0);
1736 }
1737 result = (Agraph_t *)read(arg1);
1738 {
1739 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1740 }
1741
1742
1743 return gswig_result;
1744#undef FUNC_NAME
1745}
1746
1747
1748static SCM
1749_wrap_read(SCM rest)
1750{
1751#define FUNC_NAME "read"
1752 SCM argv[1];
1753 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "read");
1754 if (argc == 1) {
1755 int _v = 0;
1756 {
1757 void *ptr;
1758 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_FILE, 0);
1759 _v = SWIG_CheckState(res);
1760 }
1761 if (_v) {
1762 return _wrap_read__SWIG_1(argc,argv);
1763 }
1764 }
1765 if (argc == 1) {
1766 int _v = 0;
1767 {
1768 _v = scm_is_string(argv[0]) ? 1 : 0;
1769 }
1770 if (_v) {
1771 return _wrap_read__SWIG_0(argc,argv);
1772 }
1773 }
1774
1775 scm_misc_error("read", "No matching method for generic function `read'", SCM_EOL);
1776#undef FUNC_NAME
1777}
1778
1779
1780static SCM
1781_wrap_graph__SWIG_1 (int argc, SCM *argv)
1782{
1783#define FUNC_NAME "graph"
1784 Agraph_t *arg1 = (Agraph_t *) 0 ;
1785 char *arg2 = (char *) 0 ;
1786 int must_free2 = 0 ;
1787 SCM gswig_result;
1788 SWIGUNUSED int gswig_list_p = 0;
1789 Agraph_t *result = 0 ;
1790
1791 {
1792 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
1793 }
1794 {
1795 arg2 = (char *)SWIG_scm2str(argv[1]);
1796 must_free2 = 1;
1797 }
1798 result = (Agraph_t *)graph(arg1,arg2);
1799 {
1800 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1801 }
1802
1803 if (must_free2) SWIG_free(arg2);
1804
1805 return gswig_result;
1806#undef FUNC_NAME
1807}
1808
1809
1810static SCM
1812{
1813#define FUNC_NAME "graph"
1814 SCM argv[2];
1815 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "graph");
1816 if (argc == 1) {
1817 int _v = 0;
1818 {
1819 _v = scm_is_string(argv[0]) ? 1 : 0;
1820 }
1821 if (_v) {
1822 return _wrap_graph__SWIG_0(argc,argv);
1823 }
1824 }
1825 if (argc == 2) {
1826 int _v = 0;
1827 {
1828 void *ptr;
1829 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
1830 _v = SWIG_CheckState(res);
1831 }
1832 if (_v) {
1833 {
1834 _v = scm_is_string(argv[1]) ? 1 : 0;
1835 }
1836 if (_v) {
1837 return _wrap_graph__SWIG_1(argc,argv);
1838 }
1839 }
1840 }
1841
1842 scm_misc_error("graph", "No matching method for generic function `graph'", SCM_EOL);
1843#undef FUNC_NAME
1844}
1845
1846
1847static SCM
1848_wrap_node (SCM s_0, SCM s_1)
1849{
1850#define FUNC_NAME "node"
1851 Agraph_t *arg1 = (Agraph_t *) 0 ;
1852 char *arg2 = (char *) 0 ;
1853 int must_free2 = 0 ;
1854 SCM gswig_result;
1855 SWIGUNUSED int gswig_list_p = 0;
1856 Agnode_t *result = 0 ;
1857
1858 {
1859 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
1860 }
1861 {
1862 arg2 = (char *)SWIG_scm2str(s_1);
1863 must_free2 = 1;
1864 }
1865 result = (Agnode_t *)node(arg1,arg2);
1866 {
1867 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
1868 }
1869
1870 if (must_free2) SWIG_free(arg2);
1871
1872 return gswig_result;
1873#undef FUNC_NAME
1874}
1875
1876
1877static SCM
1878_wrap_edge__SWIG_0 (int argc, SCM *argv)
1879{
1880#define FUNC_NAME "edge"
1881 Agnode_t *arg1 = (Agnode_t *) 0 ;
1882 Agnode_t *arg2 = (Agnode_t *) 0 ;
1883 SCM gswig_result;
1884 SWIGUNUSED int gswig_list_p = 0;
1885 Agedge_t *result = 0 ;
1886
1887 {
1888 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
1889 }
1890 {
1891 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
1892 }
1893 result = (Agedge_t *)edge(arg1,arg2);
1894 {
1895 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1896 }
1897
1898
1899
1900 return gswig_result;
1901#undef FUNC_NAME
1902}
1903
1904
1905static SCM
1906_wrap_edge__SWIG_1 (int argc, SCM *argv)
1907{
1908#define FUNC_NAME "edge"
1909 Agnode_t *arg1 = (Agnode_t *) 0 ;
1910 char *arg2 = (char *) 0 ;
1911 int must_free2 = 0 ;
1912 SCM gswig_result;
1913 SWIGUNUSED int gswig_list_p = 0;
1914 Agedge_t *result = 0 ;
1915
1916 {
1917 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
1918 }
1919 {
1920 arg2 = (char *)SWIG_scm2str(argv[1]);
1921 must_free2 = 1;
1922 }
1923 result = (Agedge_t *)edge(arg1,arg2);
1924 {
1925 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1926 }
1927
1928 if (must_free2) SWIG_free(arg2);
1929
1930 return gswig_result;
1931#undef FUNC_NAME
1932}
1933
1934
1935static SCM
1936_wrap_edge__SWIG_2 (int argc, SCM *argv)
1937{
1938#define FUNC_NAME "edge"
1939 char *arg1 = (char *) 0 ;
1940 Agnode_t *arg2 = (Agnode_t *) 0 ;
1941 int must_free1 = 0 ;
1942 SCM gswig_result;
1943 SWIGUNUSED int gswig_list_p = 0;
1944 Agedge_t *result = 0 ;
1945
1946 {
1947 arg1 = (char *)SWIG_scm2str(argv[0]);
1948 must_free1 = 1;
1949 }
1950 {
1951 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
1952 }
1953 result = (Agedge_t *)edge(arg1,arg2);
1954 {
1955 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1956 }
1957 if (must_free1) SWIG_free(arg1);
1958
1959
1960 return gswig_result;
1961#undef FUNC_NAME
1962}
1963
1964
1965static SCM
1966_wrap_edge__SWIG_3 (int argc, SCM *argv)
1967{
1968#define FUNC_NAME "edge"
1969 Agraph_t *arg1 = (Agraph_t *) 0 ;
1970 char *arg2 = (char *) 0 ;
1971 char *arg3 = (char *) 0 ;
1972 int must_free2 = 0 ;
1973 int must_free3 = 0 ;
1974 SCM gswig_result;
1975 SWIGUNUSED int gswig_list_p = 0;
1976 Agedge_t *result = 0 ;
1977
1978 {
1979 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
1980 }
1981 {
1982 arg2 = (char *)SWIG_scm2str(argv[1]);
1983 must_free2 = 1;
1984 }
1985 {
1986 arg3 = (char *)SWIG_scm2str(argv[2]);
1987 must_free3 = 1;
1988 }
1989 result = (Agedge_t *)edge(arg1,arg2,arg3);
1990 {
1991 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1992 }
1993
1994 if (must_free2) SWIG_free(arg2);
1995 if (must_free3) SWIG_free(arg3);
1996
1997 return gswig_result;
1998#undef FUNC_NAME
1999}
2000
2001
2002static SCM
2003_wrap_edge(SCM rest)
2004{
2005#define FUNC_NAME "edge"
2006 SCM argv[3];
2007 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 3, "edge");
2008 if (argc == 2) {
2009 int _v = 0;
2010 {
2011 void *ptr;
2012 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2013 _v = SWIG_CheckState(res);
2014 }
2015 if (_v) {
2016 {
2017 void *ptr;
2018 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
2019 _v = SWIG_CheckState(res);
2020 }
2021 if (_v) {
2022 return _wrap_edge__SWIG_0(argc,argv);
2023 }
2024 }
2025 }
2026 if (argc == 2) {
2027 int _v = 0;
2028 {
2029 void *ptr;
2030 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2031 _v = SWIG_CheckState(res);
2032 }
2033 if (_v) {
2034 {
2035 _v = scm_is_string(argv[1]) ? 1 : 0;
2036 }
2037 if (_v) {
2038 return _wrap_edge__SWIG_1(argc,argv);
2039 }
2040 }
2041 }
2042 if (argc == 2) {
2043 int _v = 0;
2044 {
2045 _v = scm_is_string(argv[0]) ? 1 : 0;
2046 }
2047 if (_v) {
2048 {
2049 void *ptr;
2050 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
2051 _v = SWIG_CheckState(res);
2052 }
2053 if (_v) {
2054 return _wrap_edge__SWIG_2(argc,argv);
2055 }
2056 }
2057 }
2058 if (argc == 3) {
2059 int _v = 0;
2060 {
2061 void *ptr;
2062 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2063 _v = SWIG_CheckState(res);
2064 }
2065 if (_v) {
2066 {
2067 _v = scm_is_string(argv[1]) ? 1 : 0;
2068 }
2069 if (_v) {
2070 {
2071 _v = scm_is_string(argv[2]) ? 1 : 0;
2072 }
2073 if (_v) {
2074 return _wrap_edge__SWIG_3(argc,argv);
2075 }
2076 }
2077 }
2078 }
2079
2080 scm_misc_error("edge", "No matching method for generic function `edge'", SCM_EOL);
2081#undef FUNC_NAME
2082}
2083
2084
2085static SCM
2086_wrap_setv__SWIG_0 (int argc, SCM *argv)
2087{
2088#define FUNC_NAME "setv"
2089 Agraph_t *arg1 = (Agraph_t *) 0 ;
2090 char *arg2 = (char *) 0 ;
2091 char *arg3 = (char *) 0 ;
2092 int must_free2 = 0 ;
2093 int must_free3 = 0 ;
2094 SCM gswig_result;
2095 SWIGUNUSED int gswig_list_p = 0;
2096 char *result = 0 ;
2097
2098 {
2099 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2100 }
2101 {
2102 arg2 = (char *)SWIG_scm2str(argv[1]);
2103 must_free2 = 1;
2104 }
2105 {
2106 arg3 = (char *)SWIG_scm2str(argv[2]);
2107 must_free3 = 1;
2108 }
2109 result = (char *)setv(arg1,arg2,arg3);
2110 {
2111 gswig_result = SWIG_str02scm((const char *)result);
2112 }
2113
2114 if (must_free2) SWIG_free(arg2);
2115 if (must_free3) SWIG_free(arg3);
2116
2117 return gswig_result;
2118#undef FUNC_NAME
2119}
2120
2121
2122static SCM
2123_wrap_setv__SWIG_1 (int argc, SCM *argv)
2124{
2125#define FUNC_NAME "setv"
2126 Agnode_t *arg1 = (Agnode_t *) 0 ;
2127 char *arg2 = (char *) 0 ;
2128 char *arg3 = (char *) 0 ;
2129 int must_free2 = 0 ;
2130 int must_free3 = 0 ;
2131 SCM gswig_result;
2132 SWIGUNUSED int gswig_list_p = 0;
2133 char *result = 0 ;
2134
2135 {
2136 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2137 }
2138 {
2139 arg2 = (char *)SWIG_scm2str(argv[1]);
2140 must_free2 = 1;
2141 }
2142 {
2143 arg3 = (char *)SWIG_scm2str(argv[2]);
2144 must_free3 = 1;
2145 }
2146 result = (char *)setv(arg1,arg2,arg3);
2147 {
2148 gswig_result = SWIG_str02scm((const char *)result);
2149 }
2150
2151 if (must_free2) SWIG_free(arg2);
2152 if (must_free3) SWIG_free(arg3);
2153
2154 return gswig_result;
2155#undef FUNC_NAME
2156}
2157
2158
2159static SCM
2160_wrap_setv__SWIG_2 (int argc, SCM *argv)
2161{
2162#define FUNC_NAME "setv"
2163 Agedge_t *arg1 = (Agedge_t *) 0 ;
2164 char *arg2 = (char *) 0 ;
2165 char *arg3 = (char *) 0 ;
2166 int must_free2 = 0 ;
2167 int must_free3 = 0 ;
2168 SCM gswig_result;
2169 SWIGUNUSED int gswig_list_p = 0;
2170 char *result = 0 ;
2171
2172 {
2173 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2174 }
2175 {
2176 arg2 = (char *)SWIG_scm2str(argv[1]);
2177 must_free2 = 1;
2178 }
2179 {
2180 arg3 = (char *)SWIG_scm2str(argv[2]);
2181 must_free3 = 1;
2182 }
2183 result = (char *)setv(arg1,arg2,arg3);
2184 {
2185 gswig_result = SWIG_str02scm((const char *)result);
2186 }
2187
2188 if (must_free2) SWIG_free(arg2);
2189 if (must_free3) SWIG_free(arg3);
2190
2191 return gswig_result;
2192#undef FUNC_NAME
2193}
2194
2195
2196static SCM
2197_wrap_setv__SWIG_3 (int argc, SCM *argv)
2198{
2199#define FUNC_NAME "setv"
2200 Agraph_t *arg1 = (Agraph_t *) 0 ;
2201 Agsym_t *arg2 = (Agsym_t *) 0 ;
2202 char *arg3 = (char *) 0 ;
2203 int must_free3 = 0 ;
2204 SCM gswig_result;
2205 SWIGUNUSED int gswig_list_p = 0;
2206 char *result = 0 ;
2207
2208 {
2209 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2210 }
2211 {
2212 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2213 }
2214 {
2215 arg3 = (char *)SWIG_scm2str(argv[2]);
2216 must_free3 = 1;
2217 }
2218 result = (char *)setv(arg1,arg2,arg3);
2219 {
2220 gswig_result = SWIG_str02scm((const char *)result);
2221 }
2222
2223
2224 if (must_free3) SWIG_free(arg3);
2225
2226 return gswig_result;
2227#undef FUNC_NAME
2228}
2229
2230
2231static SCM
2232_wrap_setv__SWIG_4 (int argc, SCM *argv)
2233{
2234#define FUNC_NAME "setv"
2235 Agnode_t *arg1 = (Agnode_t *) 0 ;
2236 Agsym_t *arg2 = (Agsym_t *) 0 ;
2237 char *arg3 = (char *) 0 ;
2238 int must_free3 = 0 ;
2239 SCM gswig_result;
2240 SWIGUNUSED int gswig_list_p = 0;
2241 char *result = 0 ;
2242
2243 {
2244 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2245 }
2246 {
2247 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2248 }
2249 {
2250 arg3 = (char *)SWIG_scm2str(argv[2]);
2251 must_free3 = 1;
2252 }
2253 result = (char *)setv(arg1,arg2,arg3);
2254 {
2255 gswig_result = SWIG_str02scm((const char *)result);
2256 }
2257
2258
2259 if (must_free3) SWIG_free(arg3);
2260
2261 return gswig_result;
2262#undef FUNC_NAME
2263}
2264
2265
2266static SCM
2267_wrap_setv__SWIG_5 (int argc, SCM *argv)
2268{
2269#define FUNC_NAME "setv"
2270 Agedge_t *arg1 = (Agedge_t *) 0 ;
2271 Agsym_t *arg2 = (Agsym_t *) 0 ;
2272 char *arg3 = (char *) 0 ;
2273 int must_free3 = 0 ;
2274 SCM gswig_result;
2275 SWIGUNUSED int gswig_list_p = 0;
2276 char *result = 0 ;
2277
2278 {
2279 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2280 }
2281 {
2282 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2283 }
2284 {
2285 arg3 = (char *)SWIG_scm2str(argv[2]);
2286 must_free3 = 1;
2287 }
2288 result = (char *)setv(arg1,arg2,arg3);
2289 {
2290 gswig_result = SWIG_str02scm((const char *)result);
2291 }
2292
2293
2294 if (must_free3) SWIG_free(arg3);
2295
2296 return gswig_result;
2297#undef FUNC_NAME
2298}
2299
2300
2301static SCM
2302_wrap_setv(SCM rest)
2303{
2304#define FUNC_NAME "setv"
2305 SCM argv[3];
2306 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 3, "setv");
2307 if (argc == 3) {
2308 int _v = 0;
2309 {
2310 void *ptr;
2311 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2312 _v = SWIG_CheckState(res);
2313 }
2314 if (_v) {
2315 {
2316 void *ptr;
2317 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2318 _v = SWIG_CheckState(res);
2319 }
2320 if (_v) {
2321 {
2322 _v = scm_is_string(argv[2]) ? 1 : 0;
2323 }
2324 if (_v) {
2325 return _wrap_setv__SWIG_3(argc,argv);
2326 }
2327 }
2328 }
2329 }
2330 if (argc == 3) {
2331 int _v = 0;
2332 {
2333 void *ptr;
2334 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2335 _v = SWIG_CheckState(res);
2336 }
2337 if (_v) {
2338 {
2339 void *ptr;
2340 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2341 _v = SWIG_CheckState(res);
2342 }
2343 if (_v) {
2344 {
2345 _v = scm_is_string(argv[2]) ? 1 : 0;
2346 }
2347 if (_v) {
2348 return _wrap_setv__SWIG_4(argc,argv);
2349 }
2350 }
2351 }
2352 }
2353 if (argc == 3) {
2354 int _v = 0;
2355 {
2356 void *ptr;
2357 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2358 _v = SWIG_CheckState(res);
2359 }
2360 if (_v) {
2361 {
2362 void *ptr;
2363 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2364 _v = SWIG_CheckState(res);
2365 }
2366 if (_v) {
2367 {
2368 _v = scm_is_string(argv[2]) ? 1 : 0;
2369 }
2370 if (_v) {
2371 return _wrap_setv__SWIG_5(argc,argv);
2372 }
2373 }
2374 }
2375 }
2376 if (argc == 3) {
2377 int _v = 0;
2378 {
2379 void *ptr;
2380 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2381 _v = SWIG_CheckState(res);
2382 }
2383 if (_v) {
2384 {
2385 _v = scm_is_string(argv[1]) ? 1 : 0;
2386 }
2387 if (_v) {
2388 {
2389 _v = scm_is_string(argv[2]) ? 1 : 0;
2390 }
2391 if (_v) {
2392 return _wrap_setv__SWIG_0(argc,argv);
2393 }
2394 }
2395 }
2396 }
2397 if (argc == 3) {
2398 int _v = 0;
2399 {
2400 void *ptr;
2401 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2402 _v = SWIG_CheckState(res);
2403 }
2404 if (_v) {
2405 {
2406 _v = scm_is_string(argv[1]) ? 1 : 0;
2407 }
2408 if (_v) {
2409 {
2410 _v = scm_is_string(argv[2]) ? 1 : 0;
2411 }
2412 if (_v) {
2413 return _wrap_setv__SWIG_1(argc,argv);
2414 }
2415 }
2416 }
2417 }
2418 if (argc == 3) {
2419 int _v = 0;
2420 {
2421 void *ptr;
2422 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2423 _v = SWIG_CheckState(res);
2424 }
2425 if (_v) {
2426 {
2427 _v = scm_is_string(argv[1]) ? 1 : 0;
2428 }
2429 if (_v) {
2430 {
2431 _v = scm_is_string(argv[2]) ? 1 : 0;
2432 }
2433 if (_v) {
2434 return _wrap_setv__SWIG_2(argc,argv);
2435 }
2436 }
2437 }
2438 }
2439
2440 scm_misc_error("setv", "No matching method for generic function `setv'", SCM_EOL);
2441#undef FUNC_NAME
2442}
2443
2444
2445static SCM
2446_wrap_getv__SWIG_0 (int argc, SCM *argv)
2447{
2448#define FUNC_NAME "getv"
2449 Agraph_t *arg1 = (Agraph_t *) 0 ;
2450 char *arg2 = (char *) 0 ;
2451 int must_free2 = 0 ;
2452 SCM gswig_result;
2453 SWIGUNUSED int gswig_list_p = 0;
2454 char *result = 0 ;
2455
2456 {
2457 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2458 }
2459 {
2460 arg2 = (char *)SWIG_scm2str(argv[1]);
2461 must_free2 = 1;
2462 }
2463 result = (char *)getv(arg1,arg2);
2464 {
2465 gswig_result = SWIG_str02scm((const char *)result);
2466 }
2467
2468 if (must_free2) SWIG_free(arg2);
2469
2470 return gswig_result;
2471#undef FUNC_NAME
2472}
2473
2474
2475static SCM
2476_wrap_getv__SWIG_1 (int argc, SCM *argv)
2477{
2478#define FUNC_NAME "getv"
2479 Agnode_t *arg1 = (Agnode_t *) 0 ;
2480 char *arg2 = (char *) 0 ;
2481 int must_free2 = 0 ;
2482 SCM gswig_result;
2483 SWIGUNUSED int gswig_list_p = 0;
2484 char *result = 0 ;
2485
2486 {
2487 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2488 }
2489 {
2490 arg2 = (char *)SWIG_scm2str(argv[1]);
2491 must_free2 = 1;
2492 }
2493 result = (char *)getv(arg1,arg2);
2494 {
2495 gswig_result = SWIG_str02scm((const char *)result);
2496 }
2497
2498 if (must_free2) SWIG_free(arg2);
2499
2500 return gswig_result;
2501#undef FUNC_NAME
2502}
2503
2504
2505static SCM
2506_wrap_getv__SWIG_2 (int argc, SCM *argv)
2507{
2508#define FUNC_NAME "getv"
2509 Agedge_t *arg1 = (Agedge_t *) 0 ;
2510 char *arg2 = (char *) 0 ;
2511 int must_free2 = 0 ;
2512 SCM gswig_result;
2513 SWIGUNUSED int gswig_list_p = 0;
2514 char *result = 0 ;
2515
2516 {
2517 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2518 }
2519 {
2520 arg2 = (char *)SWIG_scm2str(argv[1]);
2521 must_free2 = 1;
2522 }
2523 result = (char *)getv(arg1,arg2);
2524 {
2525 gswig_result = SWIG_str02scm((const char *)result);
2526 }
2527
2528 if (must_free2) SWIG_free(arg2);
2529
2530 return gswig_result;
2531#undef FUNC_NAME
2532}
2533
2534
2535static SCM
2536_wrap_getv__SWIG_3 (int argc, SCM *argv)
2537{
2538#define FUNC_NAME "getv"
2539 Agraph_t *arg1 = (Agraph_t *) 0 ;
2540 Agsym_t *arg2 = (Agsym_t *) 0 ;
2541 SCM gswig_result;
2542 SWIGUNUSED int gswig_list_p = 0;
2543 char *result = 0 ;
2544
2545 {
2546 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2547 }
2548 {
2549 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2550 }
2551 result = (char *)getv(arg1,arg2);
2552 {
2553 gswig_result = SWIG_str02scm((const char *)result);
2554 }
2555
2556
2557
2558 return gswig_result;
2559#undef FUNC_NAME
2560}
2561
2562
2563static SCM
2564_wrap_getv__SWIG_4 (int argc, SCM *argv)
2565{
2566#define FUNC_NAME "getv"
2567 Agnode_t *arg1 = (Agnode_t *) 0 ;
2568 Agsym_t *arg2 = (Agsym_t *) 0 ;
2569 SCM gswig_result;
2570 SWIGUNUSED int gswig_list_p = 0;
2571 char *result = 0 ;
2572
2573 {
2574 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2575 }
2576 {
2577 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2578 }
2579 result = (char *)getv(arg1,arg2);
2580 {
2581 gswig_result = SWIG_str02scm((const char *)result);
2582 }
2583
2584
2585
2586 return gswig_result;
2587#undef FUNC_NAME
2588}
2589
2590
2591static SCM
2592_wrap_getv__SWIG_5 (int argc, SCM *argv)
2593{
2594#define FUNC_NAME "getv"
2595 Agedge_t *arg1 = (Agedge_t *) 0 ;
2596 Agsym_t *arg2 = (Agsym_t *) 0 ;
2597 SCM gswig_result;
2598 SWIGUNUSED int gswig_list_p = 0;
2599 char *result = 0 ;
2600
2601 {
2602 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2603 }
2604 {
2605 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2606 }
2607 result = (char *)getv(arg1,arg2);
2608 {
2609 gswig_result = SWIG_str02scm((const char *)result);
2610 }
2611
2612
2613
2614 return gswig_result;
2615#undef FUNC_NAME
2616}
2617
2618
2619static SCM
2620_wrap_getv(SCM rest)
2621{
2622#define FUNC_NAME "getv"
2623 SCM argv[2];
2624 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "getv");
2625 if (argc == 2) {
2626 int _v = 0;
2627 {
2628 void *ptr;
2629 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2630 _v = SWIG_CheckState(res);
2631 }
2632 if (_v) {
2633 {
2634 void *ptr;
2635 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2636 _v = SWIG_CheckState(res);
2637 }
2638 if (_v) {
2639 return _wrap_getv__SWIG_3(argc,argv);
2640 }
2641 }
2642 }
2643 if (argc == 2) {
2644 int _v = 0;
2645 {
2646 void *ptr;
2647 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2648 _v = SWIG_CheckState(res);
2649 }
2650 if (_v) {
2651 {
2652 void *ptr;
2653 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2654 _v = SWIG_CheckState(res);
2655 }
2656 if (_v) {
2657 return _wrap_getv__SWIG_4(argc,argv);
2658 }
2659 }
2660 }
2661 if (argc == 2) {
2662 int _v = 0;
2663 {
2664 void *ptr;
2665 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2666 _v = SWIG_CheckState(res);
2667 }
2668 if (_v) {
2669 {
2670 void *ptr;
2671 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2672 _v = SWIG_CheckState(res);
2673 }
2674 if (_v) {
2675 return _wrap_getv__SWIG_5(argc,argv);
2676 }
2677 }
2678 }
2679 if (argc == 2) {
2680 int _v = 0;
2681 {
2682 void *ptr;
2683 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2684 _v = SWIG_CheckState(res);
2685 }
2686 if (_v) {
2687 {
2688 _v = scm_is_string(argv[1]) ? 1 : 0;
2689 }
2690 if (_v) {
2691 return _wrap_getv__SWIG_0(argc,argv);
2692 }
2693 }
2694 }
2695 if (argc == 2) {
2696 int _v = 0;
2697 {
2698 void *ptr;
2699 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2700 _v = SWIG_CheckState(res);
2701 }
2702 if (_v) {
2703 {
2704 _v = scm_is_string(argv[1]) ? 1 : 0;
2705 }
2706 if (_v) {
2707 return _wrap_getv__SWIG_1(argc,argv);
2708 }
2709 }
2710 }
2711 if (argc == 2) {
2712 int _v = 0;
2713 {
2714 void *ptr;
2715 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2716 _v = SWIG_CheckState(res);
2717 }
2718 if (_v) {
2719 {
2720 _v = scm_is_string(argv[1]) ? 1 : 0;
2721 }
2722 if (_v) {
2723 return _wrap_getv__SWIG_2(argc,argv);
2724 }
2725 }
2726 }
2727
2728 scm_misc_error("getv", "No matching method for generic function `getv'", SCM_EOL);
2729#undef FUNC_NAME
2730}
2731
2732
2733static SCM
2734_wrap_nameof__SWIG_0 (int argc, SCM *argv)
2735{
2736#define FUNC_NAME "nameof"
2737 Agraph_t *arg1 = (Agraph_t *) 0 ;
2738 SCM gswig_result;
2739 SWIGUNUSED int gswig_list_p = 0;
2740 char *result = 0 ;
2741
2742 {
2743 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2744 }
2745 result = (char *)nameof(arg1);
2746 {
2747 gswig_result = SWIG_str02scm((const char *)result);
2748 }
2749
2750
2751 return gswig_result;
2752#undef FUNC_NAME
2753}
2754
2755
2756static SCM
2757_wrap_nameof__SWIG_1 (int argc, SCM *argv)
2758{
2759#define FUNC_NAME "nameof"
2760 Agnode_t *arg1 = (Agnode_t *) 0 ;
2761 SCM gswig_result;
2762 SWIGUNUSED int gswig_list_p = 0;
2763 char *result = 0 ;
2764
2765 {
2766 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2767 }
2768 result = (char *)nameof(arg1);
2769 {
2770 gswig_result = SWIG_str02scm((const char *)result);
2771 }
2772
2773
2774 return gswig_result;
2775#undef FUNC_NAME
2776}
2777
2778
2779static SCM
2780_wrap_nameof__SWIG_2 (int argc, SCM *argv)
2781{
2782#define FUNC_NAME "nameof"
2783 Agsym_t *arg1 = (Agsym_t *) 0 ;
2784 SCM gswig_result;
2785 SWIGUNUSED int gswig_list_p = 0;
2786 char *result = 0 ;
2787
2788 {
2789 arg1 = (Agsym_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agsym_t, 1, 0);
2790 }
2791 result = (char *)nameof(arg1);
2792 {
2793 gswig_result = SWIG_str02scm((const char *)result);
2794 }
2795
2796
2797 return gswig_result;
2798#undef FUNC_NAME
2799}
2800
2801
2802static SCM
2804{
2805#define FUNC_NAME "nameof"
2806 SCM argv[1];
2807 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "nameof");
2808 if (argc == 1) {
2809 int _v = 0;
2810 {
2811 void *ptr;
2812 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2813 _v = SWIG_CheckState(res);
2814 }
2815 if (_v) {
2816 return _wrap_nameof__SWIG_0(argc,argv);
2817 }
2818 }
2819 if (argc == 1) {
2820 int _v = 0;
2821 {
2822 void *ptr;
2823 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2824 _v = SWIG_CheckState(res);
2825 }
2826 if (_v) {
2827 return _wrap_nameof__SWIG_1(argc,argv);
2828 }
2829 }
2830 if (argc == 1) {
2831 int _v = 0;
2832 {
2833 void *ptr;
2834 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agsym_t, 0);
2835 _v = SWIG_CheckState(res);
2836 }
2837 if (_v) {
2838 return _wrap_nameof__SWIG_2(argc,argv);
2839 }
2840 }
2841
2842 scm_misc_error("nameof", "No matching method for generic function `nameof'", SCM_EOL);
2843#undef FUNC_NAME
2844}
2845
2846
2847static SCM
2848_wrap_findsubg (SCM s_0, SCM s_1)
2849{
2850#define FUNC_NAME "findsubg"
2851 Agraph_t *arg1 = (Agraph_t *) 0 ;
2852 char *arg2 = (char *) 0 ;
2853 int must_free2 = 0 ;
2854 SCM gswig_result;
2855 SWIGUNUSED int gswig_list_p = 0;
2856 Agraph_t *result = 0 ;
2857
2858 {
2859 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
2860 }
2861 {
2862 arg2 = (char *)SWIG_scm2str(s_1);
2863 must_free2 = 1;
2864 }
2865 result = (Agraph_t *)findsubg(arg1,arg2);
2866 {
2867 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
2868 }
2869
2870 if (must_free2) SWIG_free(arg2);
2871
2872 return gswig_result;
2873#undef FUNC_NAME
2874}
2875
2876
2877static SCM
2878_wrap_findnode (SCM s_0, SCM s_1)
2879{
2880#define FUNC_NAME "findnode"
2881 Agraph_t *arg1 = (Agraph_t *) 0 ;
2882 char *arg2 = (char *) 0 ;
2883 int must_free2 = 0 ;
2884 SCM gswig_result;
2885 SWIGUNUSED int gswig_list_p = 0;
2886 Agnode_t *result = 0 ;
2887
2888 {
2889 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
2890 }
2891 {
2892 arg2 = (char *)SWIG_scm2str(s_1);
2893 must_free2 = 1;
2894 }
2895 result = (Agnode_t *)findnode(arg1,arg2);
2896 {
2897 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
2898 }
2899
2900 if (must_free2) SWIG_free(arg2);
2901
2902 return gswig_result;
2903#undef FUNC_NAME
2904}
2905
2906
2907static SCM
2908_wrap_findedge (SCM s_0, SCM s_1)
2909{
2910#define FUNC_NAME "findedge"
2911 Agnode_t *arg1 = (Agnode_t *) 0 ;
2912 Agnode_t *arg2 = (Agnode_t *) 0 ;
2913 SCM gswig_result;
2914 SWIGUNUSED int gswig_list_p = 0;
2915 Agedge_t *result = 0 ;
2916
2917 {
2918 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
2919 }
2920 {
2921 arg2 = (Agnode_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agnode_t, 2, 0);
2922 }
2923 result = (Agedge_t *)findedge(arg1,arg2);
2924 {
2925 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
2926 }
2927
2928
2929
2930 return gswig_result;
2931#undef FUNC_NAME
2932}
2933
2934
2935static SCM
2936_wrap_findattr__SWIG_0 (int argc, SCM *argv)
2937{
2938#define FUNC_NAME "findattr"
2939 Agraph_t *arg1 = (Agraph_t *) 0 ;
2940 char *arg2 = (char *) 0 ;
2941 int must_free2 = 0 ;
2942 SCM gswig_result;
2943 SWIGUNUSED int gswig_list_p = 0;
2944 Agsym_t *result = 0 ;
2945
2946 {
2947 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2948 }
2949 {
2950 arg2 = (char *)SWIG_scm2str(argv[1]);
2951 must_free2 = 1;
2952 }
2953 result = (Agsym_t *)findattr(arg1,arg2);
2954 {
2955 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
2956 }
2957
2958 if (must_free2) SWIG_free(arg2);
2959
2960 return gswig_result;
2961#undef FUNC_NAME
2962}
2963
2964
2965static SCM
2966_wrap_findattr__SWIG_1 (int argc, SCM *argv)
2967{
2968#define FUNC_NAME "findattr"
2969 Agnode_t *arg1 = (Agnode_t *) 0 ;
2970 char *arg2 = (char *) 0 ;
2971 int must_free2 = 0 ;
2972 SCM gswig_result;
2973 SWIGUNUSED int gswig_list_p = 0;
2974 Agsym_t *result = 0 ;
2975
2976 {
2977 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2978 }
2979 {
2980 arg2 = (char *)SWIG_scm2str(argv[1]);
2981 must_free2 = 1;
2982 }
2983 result = (Agsym_t *)findattr(arg1,arg2);
2984 {
2985 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
2986 }
2987
2988 if (must_free2) SWIG_free(arg2);
2989
2990 return gswig_result;
2991#undef FUNC_NAME
2992}
2993
2994
2995static SCM
2996_wrap_findattr__SWIG_2 (int argc, SCM *argv)
2997{
2998#define FUNC_NAME "findattr"
2999 Agedge_t *arg1 = (Agedge_t *) 0 ;
3000 char *arg2 = (char *) 0 ;
3001 int must_free2 = 0 ;
3002 SCM gswig_result;
3003 SWIGUNUSED int gswig_list_p = 0;
3004 Agsym_t *result = 0 ;
3005
3006 {
3007 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
3008 }
3009 {
3010 arg2 = (char *)SWIG_scm2str(argv[1]);
3011 must_free2 = 1;
3012 }
3013 result = (Agsym_t *)findattr(arg1,arg2);
3014 {
3015 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
3016 }
3017
3018 if (must_free2) SWIG_free(arg2);
3019
3020 return gswig_result;
3021#undef FUNC_NAME
3022}
3023
3024
3025static SCM
3027{
3028#define FUNC_NAME "findattr"
3029 SCM argv[2];
3030 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "findattr");
3031 if (argc == 2) {
3032 int _v = 0;
3033 {
3034 void *ptr;
3035 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3036 _v = SWIG_CheckState(res);
3037 }
3038 if (_v) {
3039 {
3040 _v = scm_is_string(argv[1]) ? 1 : 0;
3041 }
3042 if (_v) {
3043 return _wrap_findattr__SWIG_0(argc,argv);
3044 }
3045 }
3046 }
3047 if (argc == 2) {
3048 int _v = 0;
3049 {
3050 void *ptr;
3051 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3052 _v = SWIG_CheckState(res);
3053 }
3054 if (_v) {
3055 {
3056 _v = scm_is_string(argv[1]) ? 1 : 0;
3057 }
3058 if (_v) {
3059 return _wrap_findattr__SWIG_1(argc,argv);
3060 }
3061 }
3062 }
3063 if (argc == 2) {
3064 int _v = 0;
3065 {
3066 void *ptr;
3067 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
3068 _v = SWIG_CheckState(res);
3069 }
3070 if (_v) {
3071 {
3072 _v = scm_is_string(argv[1]) ? 1 : 0;
3073 }
3074 if (_v) {
3075 return _wrap_findattr__SWIG_2(argc,argv);
3076 }
3077 }
3078 }
3079
3080 scm_misc_error("findattr", "No matching method for generic function `findattr'", SCM_EOL);
3081#undef FUNC_NAME
3082}
3083
3084
3085static SCM
3087{
3088#define FUNC_NAME "headof"
3089 Agedge_t *arg1 = (Agedge_t *) 0 ;
3090 SCM gswig_result;
3091 SWIGUNUSED int gswig_list_p = 0;
3092 Agnode_t *result = 0 ;
3093
3094 {
3095 arg1 = (Agedge_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agedge_t, 1, 0);
3096 }
3097 result = (Agnode_t *)headof(arg1);
3098 {
3099 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3100 }
3101
3102
3103 return gswig_result;
3104#undef FUNC_NAME
3105}
3106
3107
3108static SCM
3110{
3111#define FUNC_NAME "tailof"
3112 Agedge_t *arg1 = (Agedge_t *) 0 ;
3113 SCM gswig_result;
3114 SWIGUNUSED int gswig_list_p = 0;
3115 Agnode_t *result = 0 ;
3116
3117 {
3118 arg1 = (Agedge_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agedge_t, 1, 0);
3119 }
3120 result = (Agnode_t *)tailof(arg1);
3121 {
3122 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3123 }
3124
3125
3126 return gswig_result;
3127#undef FUNC_NAME
3128}
3129
3130
3131static SCM
3132_wrap_graphof__SWIG_0 (int argc, SCM *argv)
3133{
3134#define FUNC_NAME "graphof"
3135 Agraph_t *arg1 = (Agraph_t *) 0 ;
3136 SCM gswig_result;
3137 SWIGUNUSED int gswig_list_p = 0;
3138 Agraph_t *result = 0 ;
3139
3140 {
3141 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3142 }
3143 result = (Agraph_t *)graphof(arg1);
3144 {
3145 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3146 }
3147
3148
3149 return gswig_result;
3150#undef FUNC_NAME
3151}
3152
3153
3154static SCM
3155_wrap_graphof__SWIG_1 (int argc, SCM *argv)
3156{
3157#define FUNC_NAME "graphof"
3158 Agedge_t *arg1 = (Agedge_t *) 0 ;
3159 SCM gswig_result;
3160 SWIGUNUSED int gswig_list_p = 0;
3161 Agraph_t *result = 0 ;
3162
3163 {
3164 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
3165 }
3166 result = (Agraph_t *)graphof(arg1);
3167 {
3168 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3169 }
3170
3171
3172 return gswig_result;
3173#undef FUNC_NAME
3174}
3175
3176
3177static SCM
3178_wrap_graphof__SWIG_2 (int argc, SCM *argv)
3179{
3180#define FUNC_NAME "graphof"
3181 Agnode_t *arg1 = (Agnode_t *) 0 ;
3182 SCM gswig_result;
3183 SWIGUNUSED int gswig_list_p = 0;
3184 Agraph_t *result = 0 ;
3185
3186 {
3187 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3188 }
3189 result = (Agraph_t *)graphof(arg1);
3190 {
3191 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3192 }
3193
3194
3195 return gswig_result;
3196#undef FUNC_NAME
3197}
3198
3199
3200static SCM
3202{
3203#define FUNC_NAME "graphof"
3204 SCM argv[1];
3205 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "graphof");
3206 if (argc == 1) {
3207 int _v = 0;
3208 {
3209 void *ptr;
3210 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3211 _v = SWIG_CheckState(res);
3212 }
3213 if (_v) {
3214 return _wrap_graphof__SWIG_0(argc,argv);
3215 }
3216 }
3217 if (argc == 1) {
3218 int _v = 0;
3219 {
3220 void *ptr;
3221 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
3222 _v = SWIG_CheckState(res);
3223 }
3224 if (_v) {
3225 return _wrap_graphof__SWIG_1(argc,argv);
3226 }
3227 }
3228 if (argc == 1) {
3229 int _v = 0;
3230 {
3231 void *ptr;
3232 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3233 _v = SWIG_CheckState(res);
3234 }
3235 if (_v) {
3236 return _wrap_graphof__SWIG_2(argc,argv);
3237 }
3238 }
3239
3240 scm_misc_error("graphof", "No matching method for generic function `graphof'", SCM_EOL);
3241#undef FUNC_NAME
3242}
3243
3244
3245static SCM
3247{
3248#define FUNC_NAME "rootof"
3249 Agraph_t *arg1 = (Agraph_t *) 0 ;
3250 SCM gswig_result;
3251 SWIGUNUSED int gswig_list_p = 0;
3252 Agraph_t *result = 0 ;
3253
3254 {
3255 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3256 }
3257 result = (Agraph_t *)rootof(arg1);
3258 {
3259 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3260 }
3261
3262
3263 return gswig_result;
3264#undef FUNC_NAME
3265}
3266
3267
3268static SCM
3270{
3271#define FUNC_NAME "protonode"
3272 Agraph_t *arg1 = (Agraph_t *) 0 ;
3273 SCM gswig_result;
3274 SWIGUNUSED int gswig_list_p = 0;
3275 Agnode_t *result = 0 ;
3276
3277 {
3278 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3279 }
3280 result = (Agnode_t *)protonode(arg1);
3281 {
3282 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3283 }
3284
3285
3286 return gswig_result;
3287#undef FUNC_NAME
3288}
3289
3290
3291static SCM
3293{
3294#define FUNC_NAME "protoedge"
3295 Agraph_t *arg1 = (Agraph_t *) 0 ;
3296 SCM gswig_result;
3297 SWIGUNUSED int gswig_list_p = 0;
3298 Agedge_t *result = 0 ;
3299
3300 {
3301 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3302 }
3303 result = (Agedge_t *)protoedge(arg1);
3304 {
3305 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3306 }
3307
3308
3309 return gswig_result;
3310#undef FUNC_NAME
3311}
3312
3313
3314static SCM
3315_wrap_ok__SWIG_0 (int argc, SCM *argv)
3316{
3317#define FUNC_NAME "ok"
3318 Agraph_t *arg1 = (Agraph_t *) 0 ;
3319 SCM gswig_result;
3320 SWIGUNUSED int gswig_list_p = 0;
3321 bool result;
3322
3323 {
3324 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3325 }
3326 result = (bool)ok(arg1);
3327 {
3328 gswig_result = scm_from_bool(result);
3329 }
3330
3331
3332 return gswig_result;
3333#undef FUNC_NAME
3334}
3335
3336
3337static SCM
3338_wrap_ok__SWIG_1 (int argc, SCM *argv)
3339{
3340#define FUNC_NAME "ok"
3341 Agnode_t *arg1 = (Agnode_t *) 0 ;
3342 SCM gswig_result;
3343 SWIGUNUSED int gswig_list_p = 0;
3344 bool result;
3345
3346 {
3347 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3348 }
3349 result = (bool)ok(arg1);
3350 {
3351 gswig_result = scm_from_bool(result);
3352 }
3353
3354
3355 return gswig_result;
3356#undef FUNC_NAME
3357}
3358
3359
3360static SCM
3361_wrap_ok__SWIG_2 (int argc, SCM *argv)
3362{
3363#define FUNC_NAME "ok"
3364 Agedge_t *arg1 = (Agedge_t *) 0 ;
3365 SCM gswig_result;
3366 SWIGUNUSED int gswig_list_p = 0;
3367 bool result;
3368
3369 {
3370 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
3371 }
3372 result = (bool)ok(arg1);
3373 {
3374 gswig_result = scm_from_bool(result);
3375 }
3376
3377
3378 return gswig_result;
3379#undef FUNC_NAME
3380}
3381
3382
3383static SCM
3384_wrap_ok__SWIG_3 (int argc, SCM *argv)
3385{
3386#define FUNC_NAME "ok"
3387 Agsym_t *arg1 = (Agsym_t *) 0 ;
3388 SCM gswig_result;
3389 SWIGUNUSED int gswig_list_p = 0;
3390 bool result;
3391
3392 {
3393 arg1 = (Agsym_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agsym_t, 1, 0);
3394 }
3395 result = (bool)ok(arg1);
3396 {
3397 gswig_result = scm_from_bool(result);
3398 }
3399
3400
3401 return gswig_result;
3402#undef FUNC_NAME
3403}
3404
3405
3406static SCM
3407_wrap_ok(SCM rest)
3408{
3409#define FUNC_NAME "ok"
3410 SCM argv[1];
3411 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "ok");
3412 if (argc == 1) {
3413 int _v = 0;
3414 {
3415 void *ptr;
3416 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3417 _v = SWIG_CheckState(res);
3418 }
3419 if (_v) {
3420 return _wrap_ok__SWIG_0(argc,argv);
3421 }
3422 }
3423 if (argc == 1) {
3424 int _v = 0;
3425 {
3426 void *ptr;
3427 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3428 _v = SWIG_CheckState(res);
3429 }
3430 if (_v) {
3431 return _wrap_ok__SWIG_1(argc,argv);
3432 }
3433 }
3434 if (argc == 1) {
3435 int _v = 0;
3436 {
3437 void *ptr;
3438 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
3439 _v = SWIG_CheckState(res);
3440 }
3441 if (_v) {
3442 return _wrap_ok__SWIG_2(argc,argv);
3443 }
3444 }
3445 if (argc == 1) {
3446 int _v = 0;
3447 {
3448 void *ptr;
3449 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agsym_t, 0);
3450 _v = SWIG_CheckState(res);
3451 }
3452 if (_v) {
3453 return _wrap_ok__SWIG_3(argc,argv);
3454 }
3455 }
3456
3457 scm_misc_error("ok", "No matching method for generic function `ok'", SCM_EOL);
3458#undef FUNC_NAME
3459}
3460
3461
3462static SCM
3464{
3465#define FUNC_NAME "firstsubg"
3466 Agraph_t *arg1 = (Agraph_t *) 0 ;
3467 SCM gswig_result;
3468 SWIGUNUSED int gswig_list_p = 0;
3469 Agraph_t *result = 0 ;
3470
3471 {
3472 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3473 }
3474 result = (Agraph_t *)firstsubg(arg1);
3475 {
3476 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3477 }
3478
3479
3480 return gswig_result;
3481#undef FUNC_NAME
3482}
3483
3484
3485static SCM
3486_wrap_nextsubg (SCM s_0, SCM s_1)
3487{
3488#define FUNC_NAME "nextsubg"
3489 Agraph_t *arg1 = (Agraph_t *) 0 ;
3490 Agraph_t *arg2 = (Agraph_t *) 0 ;
3491 SCM gswig_result;
3492 SWIGUNUSED int gswig_list_p = 0;
3493 Agraph_t *result = 0 ;
3494
3495 {
3496 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3497 }
3498 {
3499 arg2 = (Agraph_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agraph_t, 2, 0);
3500 }
3501 result = (Agraph_t *)nextsubg(arg1,arg2);
3502 {
3503 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3504 }
3505
3506
3507
3508 return gswig_result;
3509#undef FUNC_NAME
3510}
3511
3512
3513static SCM
3515{
3516#define FUNC_NAME "firstsupg"
3517 Agraph_t *arg1 = (Agraph_t *) 0 ;
3518 SCM gswig_result;
3519 SWIGUNUSED int gswig_list_p = 0;
3520 Agraph_t *result = 0 ;
3521
3522 {
3523 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3524 }
3525 result = (Agraph_t *)firstsupg(arg1);
3526 {
3527 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3528 }
3529
3530
3531 return gswig_result;
3532#undef FUNC_NAME
3533}
3534
3535
3536static SCM
3537_wrap_nextsupg (SCM s_0, SCM s_1)
3538{
3539#define FUNC_NAME "nextsupg"
3540 Agraph_t *arg1 = (Agraph_t *) 0 ;
3541 Agraph_t *arg2 = (Agraph_t *) 0 ;
3542 SCM gswig_result;
3543 SWIGUNUSED int gswig_list_p = 0;
3544 Agraph_t *result = 0 ;
3545
3546 {
3547 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3548 }
3549 {
3550 arg2 = (Agraph_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agraph_t, 2, 0);
3551 }
3552 result = (Agraph_t *)nextsupg(arg1,arg2);
3553 {
3554 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3555 }
3556
3557
3558
3559 return gswig_result;
3560#undef FUNC_NAME
3561}
3562
3563
3564static SCM
3565_wrap_firstedge__SWIG_0 (int argc, SCM *argv)
3566{
3567#define FUNC_NAME "firstedge"
3568 Agraph_t *arg1 = (Agraph_t *) 0 ;
3569 SCM gswig_result;
3570 SWIGUNUSED int gswig_list_p = 0;
3571 Agedge_t *result = 0 ;
3572
3573 {
3574 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3575 }
3576 result = (Agedge_t *)firstedge(arg1);
3577 {
3578 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3579 }
3580
3581
3582 return gswig_result;
3583#undef FUNC_NAME
3584}
3585
3586
3587static SCM
3588_wrap_nextedge__SWIG_0 (int argc, SCM *argv)
3589{
3590#define FUNC_NAME "nextedge"
3591 Agraph_t *arg1 = (Agraph_t *) 0 ;
3592 Agedge_t *arg2 = (Agedge_t *) 0 ;
3593 SCM gswig_result;
3594 SWIGUNUSED int gswig_list_p = 0;
3595 Agedge_t *result = 0 ;
3596
3597 {
3598 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3599 }
3600 {
3601 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3602 }
3603 result = (Agedge_t *)nextedge(arg1,arg2);
3604 {
3605 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3606 }
3607
3608
3609
3610 return gswig_result;
3611#undef FUNC_NAME
3612}
3613
3614
3615static SCM
3616_wrap_firstout__SWIG_0 (int argc, SCM *argv)
3617{
3618#define FUNC_NAME "firstout"
3619 Agraph_t *arg1 = (Agraph_t *) 0 ;
3620 SCM gswig_result;
3621 SWIGUNUSED int gswig_list_p = 0;
3622 Agedge_t *result = 0 ;
3623
3624 {
3625 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3626 }
3627 result = (Agedge_t *)firstout(arg1);
3628 {
3629 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3630 }
3631
3632
3633 return gswig_result;
3634#undef FUNC_NAME
3635}
3636
3637
3638static SCM
3639_wrap_nextout__SWIG_0 (int argc, SCM *argv)
3640{
3641#define FUNC_NAME "nextout"
3642 Agraph_t *arg1 = (Agraph_t *) 0 ;
3643 Agedge_t *arg2 = (Agedge_t *) 0 ;
3644 SCM gswig_result;
3645 SWIGUNUSED int gswig_list_p = 0;
3646 Agedge_t *result = 0 ;
3647
3648 {
3649 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3650 }
3651 {
3652 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3653 }
3654 result = (Agedge_t *)nextout(arg1,arg2);
3655 {
3656 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3657 }
3658
3659
3660
3661 return gswig_result;
3662#undef FUNC_NAME
3663}
3664
3665
3666static SCM
3667_wrap_firstedge__SWIG_1 (int argc, SCM *argv)
3668{
3669#define FUNC_NAME "firstedge"
3670 Agnode_t *arg1 = (Agnode_t *) 0 ;
3671 SCM gswig_result;
3672 SWIGUNUSED int gswig_list_p = 0;
3673 Agedge_t *result = 0 ;
3674
3675 {
3676 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3677 }
3678 result = (Agedge_t *)firstedge(arg1);
3679 {
3680 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3681 }
3682
3683
3684 return gswig_result;
3685#undef FUNC_NAME
3686}
3687
3688
3689static SCM
3691{
3692#define FUNC_NAME "firstedge"
3693 SCM argv[1];
3694 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstedge");
3695 if (argc == 1) {
3696 int _v = 0;
3697 {
3698 void *ptr;
3699 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3700 _v = SWIG_CheckState(res);
3701 }
3702 if (_v) {
3703 return _wrap_firstedge__SWIG_0(argc,argv);
3704 }
3705 }
3706 if (argc == 1) {
3707 int _v = 0;
3708 {
3709 void *ptr;
3710 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3711 _v = SWIG_CheckState(res);
3712 }
3713 if (_v) {
3714 return _wrap_firstedge__SWIG_1(argc,argv);
3715 }
3716 }
3717
3718 scm_misc_error("firstedge", "No matching method for generic function `firstedge'", SCM_EOL);
3719#undef FUNC_NAME
3720}
3721
3722
3723static SCM
3724_wrap_nextedge__SWIG_1 (int argc, SCM *argv)
3725{
3726#define FUNC_NAME "nextedge"
3727 Agnode_t *arg1 = (Agnode_t *) 0 ;
3728 Agedge_t *arg2 = (Agedge_t *) 0 ;
3729 SCM gswig_result;
3730 SWIGUNUSED int gswig_list_p = 0;
3731 Agedge_t *result = 0 ;
3732
3733 {
3734 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3735 }
3736 {
3737 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3738 }
3739 result = (Agedge_t *)nextedge(arg1,arg2);
3740 {
3741 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3742 }
3743
3744
3745
3746 return gswig_result;
3747#undef FUNC_NAME
3748}
3749
3750
3751static SCM
3753{
3754#define FUNC_NAME "nextedge"
3755 SCM argv[2];
3756 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextedge");
3757 if (argc == 2) {
3758 int _v = 0;
3759 {
3760 void *ptr;
3761 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3762 _v = SWIG_CheckState(res);
3763 }
3764 if (_v) {
3765 {
3766 void *ptr;
3767 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3768 _v = SWIG_CheckState(res);
3769 }
3770 if (_v) {
3771 return _wrap_nextedge__SWIG_0(argc,argv);
3772 }
3773 }
3774 }
3775 if (argc == 2) {
3776 int _v = 0;
3777 {
3778 void *ptr;
3779 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3780 _v = SWIG_CheckState(res);
3781 }
3782 if (_v) {
3783 {
3784 void *ptr;
3785 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3786 _v = SWIG_CheckState(res);
3787 }
3788 if (_v) {
3789 return _wrap_nextedge__SWIG_1(argc,argv);
3790 }
3791 }
3792 }
3793
3794 scm_misc_error("nextedge", "No matching method for generic function `nextedge'", SCM_EOL);
3795#undef FUNC_NAME
3796}
3797
3798
3799static SCM
3800_wrap_firstout__SWIG_1 (int argc, SCM *argv)
3801{
3802#define FUNC_NAME "firstout"
3803 Agnode_t *arg1 = (Agnode_t *) 0 ;
3804 SCM gswig_result;
3805 SWIGUNUSED int gswig_list_p = 0;
3806 Agedge_t *result = 0 ;
3807
3808 {
3809 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3810 }
3811 result = (Agedge_t *)firstout(arg1);
3812 {
3813 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3814 }
3815
3816
3817 return gswig_result;
3818#undef FUNC_NAME
3819}
3820
3821
3822static SCM
3824{
3825#define FUNC_NAME "firstout"
3826 SCM argv[1];
3827 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstout");
3828 if (argc == 1) {
3829 int _v = 0;
3830 {
3831 void *ptr;
3832 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3833 _v = SWIG_CheckState(res);
3834 }
3835 if (_v) {
3836 return _wrap_firstout__SWIG_0(argc,argv);
3837 }
3838 }
3839 if (argc == 1) {
3840 int _v = 0;
3841 {
3842 void *ptr;
3843 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3844 _v = SWIG_CheckState(res);
3845 }
3846 if (_v) {
3847 return _wrap_firstout__SWIG_1(argc,argv);
3848 }
3849 }
3850
3851 scm_misc_error("firstout", "No matching method for generic function `firstout'", SCM_EOL);
3852#undef FUNC_NAME
3853}
3854
3855
3856static SCM
3857_wrap_nextout__SWIG_1 (int argc, SCM *argv)
3858{
3859#define FUNC_NAME "nextout"
3860 Agnode_t *arg1 = (Agnode_t *) 0 ;
3861 Agedge_t *arg2 = (Agedge_t *) 0 ;
3862 SCM gswig_result;
3863 SWIGUNUSED int gswig_list_p = 0;
3864 Agedge_t *result = 0 ;
3865
3866 {
3867 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3868 }
3869 {
3870 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3871 }
3872 result = (Agedge_t *)nextout(arg1,arg2);
3873 {
3874 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3875 }
3876
3877
3878
3879 return gswig_result;
3880#undef FUNC_NAME
3881}
3882
3883
3884static SCM
3886{
3887#define FUNC_NAME "nextout"
3888 SCM argv[2];
3889 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextout");
3890 if (argc == 2) {
3891 int _v = 0;
3892 {
3893 void *ptr;
3894 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3895 _v = SWIG_CheckState(res);
3896 }
3897 if (_v) {
3898 {
3899 void *ptr;
3900 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3901 _v = SWIG_CheckState(res);
3902 }
3903 if (_v) {
3904 return _wrap_nextout__SWIG_0(argc,argv);
3905 }
3906 }
3907 }
3908 if (argc == 2) {
3909 int _v = 0;
3910 {
3911 void *ptr;
3912 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3913 _v = SWIG_CheckState(res);
3914 }
3915 if (_v) {
3916 {
3917 void *ptr;
3918 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3919 _v = SWIG_CheckState(res);
3920 }
3921 if (_v) {
3922 return _wrap_nextout__SWIG_1(argc,argv);
3923 }
3924 }
3925 }
3926
3927 scm_misc_error("nextout", "No matching method for generic function `nextout'", SCM_EOL);
3928#undef FUNC_NAME
3929}
3930
3931
3932static SCM
3934{
3935#define FUNC_NAME "firsthead"
3936 Agnode_t *arg1 = (Agnode_t *) 0 ;
3937 SCM gswig_result;
3938 SWIGUNUSED int gswig_list_p = 0;
3939 Agnode_t *result = 0 ;
3940
3941 {
3942 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
3943 }
3944 result = (Agnode_t *)firsthead(arg1);
3945 {
3946 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3947 }
3948
3949
3950 return gswig_result;
3951#undef FUNC_NAME
3952}
3953
3954
3955static SCM
3956_wrap_nexthead (SCM s_0, SCM s_1)
3957{
3958#define FUNC_NAME "nexthead"
3959 Agnode_t *arg1 = (Agnode_t *) 0 ;
3960 Agnode_t *arg2 = (Agnode_t *) 0 ;
3961 SCM gswig_result;
3962 SWIGUNUSED int gswig_list_p = 0;
3963 Agnode_t *result = 0 ;
3964
3965 {
3966 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
3967 }
3968 {
3969 arg2 = (Agnode_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agnode_t, 2, 0);
3970 }
3971 result = (Agnode_t *)nexthead(arg1,arg2);
3972 {
3973 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3974 }
3975
3976
3977
3978 return gswig_result;
3979#undef FUNC_NAME
3980}
3981
3982
3983static SCM
3984_wrap_firstin__SWIG_0 (int argc, SCM *argv)
3985{
3986#define FUNC_NAME "firstin"
3987 Agraph_t *arg1 = (Agraph_t *) 0 ;
3988 SCM gswig_result;
3989 SWIGUNUSED int gswig_list_p = 0;
3990 Agedge_t *result = 0 ;
3991
3992 {
3993 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3994 }
3995 result = (Agedge_t *)firstin(arg1);
3996 {
3997 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3998 }
3999
4000
4001 return gswig_result;
4002#undef FUNC_NAME
4003}
4004
4005
4006static SCM
4007_wrap_nextin__SWIG_0 (int argc, SCM *argv)
4008{
4009#define FUNC_NAME "nextin"
4010 Agnode_t *arg1 = (Agnode_t *) 0 ;
4011 Agedge_t *arg2 = (Agedge_t *) 0 ;
4012 SCM gswig_result;
4013 SWIGUNUSED int gswig_list_p = 0;
4014 Agedge_t *result = 0 ;
4015
4016 {
4017 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4018 }
4019 {
4020 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
4021 }
4022 result = (Agedge_t *)nextin(arg1,arg2);
4023 {
4024 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
4025 }
4026
4027
4028
4029 return gswig_result;
4030#undef FUNC_NAME
4031}
4032
4033
4034static SCM
4035_wrap_firstin__SWIG_1 (int argc, SCM *argv)
4036{
4037#define FUNC_NAME "firstin"
4038 Agnode_t *arg1 = (Agnode_t *) 0 ;
4039 SCM gswig_result;
4040 SWIGUNUSED int gswig_list_p = 0;
4041 Agedge_t *result = 0 ;
4042
4043 {
4044 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4045 }
4046 result = (Agedge_t *)firstin(arg1);
4047 {
4048 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
4049 }
4050
4051
4052 return gswig_result;
4053#undef FUNC_NAME
4054}
4055
4056
4057static SCM
4059{
4060#define FUNC_NAME "firstin"
4061 SCM argv[1];
4062 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstin");
4063 if (argc == 1) {
4064 int _v = 0;
4065 {
4066 void *ptr;
4067 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4068 _v = SWIG_CheckState(res);
4069 }
4070 if (_v) {
4071 return _wrap_firstin__SWIG_0(argc,argv);
4072 }
4073 }
4074 if (argc == 1) {
4075 int _v = 0;
4076 {
4077 void *ptr;
4078 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4079 _v = SWIG_CheckState(res);
4080 }
4081 if (_v) {
4082 return _wrap_firstin__SWIG_1(argc,argv);
4083 }
4084 }
4085
4086 scm_misc_error("firstin", "No matching method for generic function `firstin'", SCM_EOL);
4087#undef FUNC_NAME
4088}
4089
4090
4091static SCM
4092_wrap_nextin__SWIG_1 (int argc, SCM *argv)
4093{
4094#define FUNC_NAME "nextin"
4095 Agraph_t *arg1 = (Agraph_t *) 0 ;
4096 Agedge_t *arg2 = (Agedge_t *) 0 ;
4097 SCM gswig_result;
4098 SWIGUNUSED int gswig_list_p = 0;
4099 Agedge_t *result = 0 ;
4100
4101 {
4102 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4103 }
4104 {
4105 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
4106 }
4107 result = (Agedge_t *)nextin(arg1,arg2);
4108 {
4109 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
4110 }
4111
4112
4113
4114 return gswig_result;
4115#undef FUNC_NAME
4116}
4117
4118
4119static SCM
4121{
4122#define FUNC_NAME "nextin"
4123 SCM argv[2];
4124 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextin");
4125 if (argc == 2) {
4126 int _v = 0;
4127 {
4128 void *ptr;
4129 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4130 _v = SWIG_CheckState(res);
4131 }
4132 if (_v) {
4133 {
4134 void *ptr;
4135 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
4136 _v = SWIG_CheckState(res);
4137 }
4138 if (_v) {
4139 return _wrap_nextin__SWIG_0(argc,argv);
4140 }
4141 }
4142 }
4143 if (argc == 2) {
4144 int _v = 0;
4145 {
4146 void *ptr;
4147 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4148 _v = SWIG_CheckState(res);
4149 }
4150 if (_v) {
4151 {
4152 void *ptr;
4153 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
4154 _v = SWIG_CheckState(res);
4155 }
4156 if (_v) {
4157 return _wrap_nextin__SWIG_1(argc,argv);
4158 }
4159 }
4160 }
4161
4162 scm_misc_error("nextin", "No matching method for generic function `nextin'", SCM_EOL);
4163#undef FUNC_NAME
4164}
4165
4166
4167static SCM
4169{
4170#define FUNC_NAME "firsttail"
4171 Agnode_t *arg1 = (Agnode_t *) 0 ;
4172 SCM gswig_result;
4173 SWIGUNUSED int gswig_list_p = 0;
4174 Agnode_t *result = 0 ;
4175
4176 {
4177 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
4178 }
4179 result = (Agnode_t *)firsttail(arg1);
4180 {
4181 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4182 }
4183
4184
4185 return gswig_result;
4186#undef FUNC_NAME
4187}
4188
4189
4190static SCM
4191_wrap_nexttail (SCM s_0, SCM s_1)
4192{
4193#define FUNC_NAME "nexttail"
4194 Agnode_t *arg1 = (Agnode_t *) 0 ;
4195 Agnode_t *arg2 = (Agnode_t *) 0 ;
4196 SCM gswig_result;
4197 SWIGUNUSED int gswig_list_p = 0;
4198 Agnode_t *result = 0 ;
4199
4200 {
4201 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
4202 }
4203 {
4204 arg2 = (Agnode_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agnode_t, 2, 0);
4205 }
4206 result = (Agnode_t *)nexttail(arg1,arg2);
4207 {
4208 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4209 }
4210
4211
4212
4213 return gswig_result;
4214#undef FUNC_NAME
4215}
4216
4217
4218static SCM
4219_wrap_firstnode__SWIG_0 (int argc, SCM *argv)
4220{
4221#define FUNC_NAME "firstnode"
4222 Agraph_t *arg1 = (Agraph_t *) 0 ;
4223 SCM gswig_result;
4224 SWIGUNUSED int gswig_list_p = 0;
4225 Agnode_t *result = 0 ;
4226
4227 {
4228 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4229 }
4230 result = (Agnode_t *)firstnode(arg1);
4231 {
4232 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4233 }
4234
4235
4236 return gswig_result;
4237#undef FUNC_NAME
4238}
4239
4240
4241static SCM
4242_wrap_nextnode__SWIG_0 (int argc, SCM *argv)
4243{
4244#define FUNC_NAME "nextnode"
4245 Agraph_t *arg1 = (Agraph_t *) 0 ;
4246 Agnode_t *arg2 = (Agnode_t *) 0 ;
4247 SCM gswig_result;
4248 SWIGUNUSED int gswig_list_p = 0;
4249 Agnode_t *result = 0 ;
4250
4251 {
4252 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4253 }
4254 {
4255 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
4256 }
4257 result = (Agnode_t *)nextnode(arg1,arg2);
4258 {
4259 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4260 }
4261
4262
4263
4264 return gswig_result;
4265#undef FUNC_NAME
4266}
4267
4268
4269static SCM
4270_wrap_firstnode__SWIG_1 (int argc, SCM *argv)
4271{
4272#define FUNC_NAME "firstnode"
4273 Agedge_t *arg1 = (Agedge_t *) 0 ;
4274 SCM gswig_result;
4275 SWIGUNUSED int gswig_list_p = 0;
4276 Agnode_t *result = 0 ;
4277
4278 {
4279 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4280 }
4281 result = (Agnode_t *)firstnode(arg1);
4282 {
4283 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4284 }
4285
4286
4287 return gswig_result;
4288#undef FUNC_NAME
4289}
4290
4291
4292static SCM
4294{
4295#define FUNC_NAME "firstnode"
4296 SCM argv[1];
4297 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstnode");
4298 if (argc == 1) {
4299 int _v = 0;
4300 {
4301 void *ptr;
4302 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4303 _v = SWIG_CheckState(res);
4304 }
4305 if (_v) {
4306 return _wrap_firstnode__SWIG_0(argc,argv);
4307 }
4308 }
4309 if (argc == 1) {
4310 int _v = 0;
4311 {
4312 void *ptr;
4313 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4314 _v = SWIG_CheckState(res);
4315 }
4316 if (_v) {
4317 return _wrap_firstnode__SWIG_1(argc,argv);
4318 }
4319 }
4320
4321 scm_misc_error("firstnode", "No matching method for generic function `firstnode'", SCM_EOL);
4322#undef FUNC_NAME
4323}
4324
4325
4326static SCM
4327_wrap_nextnode__SWIG_1 (int argc, SCM *argv)
4328{
4329#define FUNC_NAME "nextnode"
4330 Agedge_t *arg1 = (Agedge_t *) 0 ;
4331 Agnode_t *arg2 = (Agnode_t *) 0 ;
4332 SCM gswig_result;
4333 SWIGUNUSED int gswig_list_p = 0;
4334 Agnode_t *result = 0 ;
4335
4336 {
4337 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4338 }
4339 {
4340 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
4341 }
4342 result = (Agnode_t *)nextnode(arg1,arg2);
4343 {
4344 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4345 }
4346
4347
4348
4349 return gswig_result;
4350#undef FUNC_NAME
4351}
4352
4353
4354static SCM
4356{
4357#define FUNC_NAME "nextnode"
4358 SCM argv[2];
4359 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextnode");
4360 if (argc == 2) {
4361 int _v = 0;
4362 {
4363 void *ptr;
4364 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4365 _v = SWIG_CheckState(res);
4366 }
4367 if (_v) {
4368 {
4369 void *ptr;
4370 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
4371 _v = SWIG_CheckState(res);
4372 }
4373 if (_v) {
4374 return _wrap_nextnode__SWIG_0(argc,argv);
4375 }
4376 }
4377 }
4378 if (argc == 2) {
4379 int _v = 0;
4380 {
4381 void *ptr;
4382 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4383 _v = SWIG_CheckState(res);
4384 }
4385 if (_v) {
4386 {
4387 void *ptr;
4388 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
4389 _v = SWIG_CheckState(res);
4390 }
4391 if (_v) {
4392 return _wrap_nextnode__SWIG_1(argc,argv);
4393 }
4394 }
4395 }
4396
4397 scm_misc_error("nextnode", "No matching method for generic function `nextnode'", SCM_EOL);
4398#undef FUNC_NAME
4399}
4400
4401
4402static SCM
4403_wrap_firstattr__SWIG_0 (int argc, SCM *argv)
4404{
4405#define FUNC_NAME "firstattr"
4406 Agraph_t *arg1 = (Agraph_t *) 0 ;
4407 SCM gswig_result;
4408 SWIGUNUSED int gswig_list_p = 0;
4409 Agsym_t *result = 0 ;
4410
4411 {
4412 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4413 }
4414 result = (Agsym_t *)firstattr(arg1);
4415 {
4416 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4417 }
4418
4419
4420 return gswig_result;
4421#undef FUNC_NAME
4422}
4423
4424
4425static SCM
4426_wrap_nextattr__SWIG_0 (int argc, SCM *argv)
4427{
4428#define FUNC_NAME "nextattr"
4429 Agraph_t *arg1 = (Agraph_t *) 0 ;
4430 Agsym_t *arg2 = (Agsym_t *) 0 ;
4431 SCM gswig_result;
4432 SWIGUNUSED int gswig_list_p = 0;
4433 Agsym_t *result = 0 ;
4434
4435 {
4436 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4437 }
4438 {
4439 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
4440 }
4441 result = (Agsym_t *)nextattr(arg1,arg2);
4442 {
4443 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4444 }
4445
4446
4447
4448 return gswig_result;
4449#undef FUNC_NAME
4450}
4451
4452
4453static SCM
4454_wrap_firstattr__SWIG_1 (int argc, SCM *argv)
4455{
4456#define FUNC_NAME "firstattr"
4457 Agedge_t *arg1 = (Agedge_t *) 0 ;
4458 SCM gswig_result;
4459 SWIGUNUSED int gswig_list_p = 0;
4460 Agsym_t *result = 0 ;
4461
4462 {
4463 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4464 }
4465 result = (Agsym_t *)firstattr(arg1);
4466 {
4467 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4468 }
4469
4470
4471 return gswig_result;
4472#undef FUNC_NAME
4473}
4474
4475
4476static SCM
4477_wrap_nextattr__SWIG_1 (int argc, SCM *argv)
4478{
4479#define FUNC_NAME "nextattr"
4480 Agedge_t *arg1 = (Agedge_t *) 0 ;
4481 Agsym_t *arg2 = (Agsym_t *) 0 ;
4482 SCM gswig_result;
4483 SWIGUNUSED int gswig_list_p = 0;
4484 Agsym_t *result = 0 ;
4485
4486 {
4487 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4488 }
4489 {
4490 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
4491 }
4492 result = (Agsym_t *)nextattr(arg1,arg2);
4493 {
4494 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4495 }
4496
4497
4498
4499 return gswig_result;
4500#undef FUNC_NAME
4501}
4502
4503
4504static SCM
4505_wrap_firstattr__SWIG_2 (int argc, SCM *argv)
4506{
4507#define FUNC_NAME "firstattr"
4508 Agnode_t *arg1 = (Agnode_t *) 0 ;
4509 SCM gswig_result;
4510 SWIGUNUSED int gswig_list_p = 0;
4511 Agsym_t *result = 0 ;
4512
4513 {
4514 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4515 }
4516 result = (Agsym_t *)firstattr(arg1);
4517 {
4518 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4519 }
4520
4521
4522 return gswig_result;
4523#undef FUNC_NAME
4524}
4525
4526
4527static SCM
4529{
4530#define FUNC_NAME "firstattr"
4531 SCM argv[1];
4532 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstattr");
4533 if (argc == 1) {
4534 int _v = 0;
4535 {
4536 void *ptr;
4537 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4538 _v = SWIG_CheckState(res);
4539 }
4540 if (_v) {
4541 return _wrap_firstattr__SWIG_0(argc,argv);
4542 }
4543 }
4544 if (argc == 1) {
4545 int _v = 0;
4546 {
4547 void *ptr;
4548 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4549 _v = SWIG_CheckState(res);
4550 }
4551 if (_v) {
4552 return _wrap_firstattr__SWIG_1(argc,argv);
4553 }
4554 }
4555 if (argc == 1) {
4556 int _v = 0;
4557 {
4558 void *ptr;
4559 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4560 _v = SWIG_CheckState(res);
4561 }
4562 if (_v) {
4563 return _wrap_firstattr__SWIG_2(argc,argv);
4564 }
4565 }
4566
4567 scm_misc_error("firstattr", "No matching method for generic function `firstattr'", SCM_EOL);
4568#undef FUNC_NAME
4569}
4570
4571
4572static SCM
4573_wrap_nextattr__SWIG_2 (int argc, SCM *argv)
4574{
4575#define FUNC_NAME "nextattr"
4576 Agnode_t *arg1 = (Agnode_t *) 0 ;
4577 Agsym_t *arg2 = (Agsym_t *) 0 ;
4578 SCM gswig_result;
4579 SWIGUNUSED int gswig_list_p = 0;
4580 Agsym_t *result = 0 ;
4581
4582 {
4583 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4584 }
4585 {
4586 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
4587 }
4588 result = (Agsym_t *)nextattr(arg1,arg2);
4589 {
4590 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4591 }
4592
4593
4594
4595 return gswig_result;
4596#undef FUNC_NAME
4597}
4598
4599
4600static SCM
4602{
4603#define FUNC_NAME "nextattr"
4604 SCM argv[2];
4605 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextattr");
4606 if (argc == 2) {
4607 int _v = 0;
4608 {
4609 void *ptr;
4610 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4611 _v = SWIG_CheckState(res);
4612 }
4613 if (_v) {
4614 {
4615 void *ptr;
4616 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
4617 _v = SWIG_CheckState(res);
4618 }
4619 if (_v) {
4620 return _wrap_nextattr__SWIG_0(argc,argv);
4621 }
4622 }
4623 }
4624 if (argc == 2) {
4625 int _v = 0;
4626 {
4627 void *ptr;
4628 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4629 _v = SWIG_CheckState(res);
4630 }
4631 if (_v) {
4632 {
4633 void *ptr;
4634 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
4635 _v = SWIG_CheckState(res);
4636 }
4637 if (_v) {
4638 return _wrap_nextattr__SWIG_1(argc,argv);
4639 }
4640 }
4641 }
4642 if (argc == 2) {
4643 int _v = 0;
4644 {
4645 void *ptr;
4646 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4647 _v = SWIG_CheckState(res);
4648 }
4649 if (_v) {
4650 {
4651 void *ptr;
4652 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
4653 _v = SWIG_CheckState(res);
4654 }
4655 if (_v) {
4656 return _wrap_nextattr__SWIG_2(argc,argv);
4657 }
4658 }
4659 }
4660
4661 scm_misc_error("nextattr", "No matching method for generic function `nextattr'", SCM_EOL);
4662#undef FUNC_NAME
4663}
4664
4665
4666static SCM
4667_wrap_rm__SWIG_0 (int argc, SCM *argv)
4668{
4669#define FUNC_NAME "rm"
4670 Agraph_t *arg1 = (Agraph_t *) 0 ;
4671 SCM gswig_result;
4672 SWIGUNUSED int gswig_list_p = 0;
4673 bool result;
4674
4675 {
4676 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4677 }
4678 result = (bool)rm(arg1);
4679 {
4680 gswig_result = scm_from_bool(result);
4681 }
4682
4683
4684 return gswig_result;
4685#undef FUNC_NAME
4686}
4687
4688
4689static SCM
4690_wrap_rm__SWIG_1 (int argc, SCM *argv)
4691{
4692#define FUNC_NAME "rm"
4693 Agnode_t *arg1 = (Agnode_t *) 0 ;
4694 SCM gswig_result;
4695 SWIGUNUSED int gswig_list_p = 0;
4696 bool result;
4697
4698 {
4699 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4700 }
4701 result = (bool)rm(arg1);
4702 {
4703 gswig_result = scm_from_bool(result);
4704 }
4705
4706
4707 return gswig_result;
4708#undef FUNC_NAME
4709}
4710
4711
4712static SCM
4713_wrap_rm__SWIG_2 (int argc, SCM *argv)
4714{
4715#define FUNC_NAME "rm"
4716 Agedge_t *arg1 = (Agedge_t *) 0 ;
4717 SCM gswig_result;
4718 SWIGUNUSED int gswig_list_p = 0;
4719 bool result;
4720
4721 {
4722 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4723 }
4724 result = (bool)rm(arg1);
4725 {
4726 gswig_result = scm_from_bool(result);
4727 }
4728
4729
4730 return gswig_result;
4731#undef FUNC_NAME
4732}
4733
4734
4735static SCM
4736_wrap_rm(SCM rest)
4737{
4738#define FUNC_NAME "rm"
4739 SCM argv[1];
4740 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "rm");
4741 if (argc == 1) {
4742 int _v = 0;
4743 {
4744 void *ptr;
4745 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4746 _v = SWIG_CheckState(res);
4747 }
4748 if (_v) {
4749 return _wrap_rm__SWIG_0(argc,argv);
4750 }
4751 }
4752 if (argc == 1) {
4753 int _v = 0;
4754 {
4755 void *ptr;
4756 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4757 _v = SWIG_CheckState(res);
4758 }
4759 if (_v) {
4760 return _wrap_rm__SWIG_1(argc,argv);
4761 }
4762 }
4763 if (argc == 1) {
4764 int _v = 0;
4765 {
4766 void *ptr;
4767 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4768 _v = SWIG_CheckState(res);
4769 }
4770 if (_v) {
4771 return _wrap_rm__SWIG_2(argc,argv);
4772 }
4773 }
4774
4775 scm_misc_error("rm", "No matching method for generic function `rm'", SCM_EOL);
4776#undef FUNC_NAME
4777}
4778
4779
4780static SCM
4781_wrap_layout (SCM s_0, SCM s_1)
4782{
4783#define FUNC_NAME "layout"
4784 Agraph_t *arg1 = (Agraph_t *) 0 ;
4785 char *arg2 = (char *) 0 ;
4786 int must_free2 = 0 ;
4787 SCM gswig_result;
4788 SWIGUNUSED int gswig_list_p = 0;
4789 bool result;
4790
4791 {
4792 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
4793 }
4794 {
4795 arg2 = (char *)SWIG_scm2str(s_1);
4796 must_free2 = 1;
4797 }
4798 result = (bool)layout(arg1,(char const *)arg2);
4799 {
4800 gswig_result = scm_from_bool(result);
4801 }
4802
4803 if (must_free2) SWIG_free(arg2);
4804
4805 return gswig_result;
4806#undef FUNC_NAME
4807}
4808
4809
4810static SCM
4811_wrap_render__SWIG_0 (int argc, SCM *argv)
4812{
4813#define FUNC_NAME "render"
4814 Agraph_t *arg1 = (Agraph_t *) 0 ;
4815 SCM gswig_result;
4816 SWIGUNUSED int gswig_list_p = 0;
4817 bool result;
4818
4819 {
4820 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4821 }
4822 result = (bool)render(arg1);
4823 {
4824 gswig_result = scm_from_bool(result);
4825 }
4826
4827
4828 return gswig_result;
4829#undef FUNC_NAME
4830}
4831
4832
4833static SCM
4834_wrap_render__SWIG_1 (int argc, SCM *argv)
4835{
4836#define FUNC_NAME "render"
4837 Agraph_t *arg1 = (Agraph_t *) 0 ;
4838 char *arg2 = (char *) 0 ;
4839 int must_free2 = 0 ;
4840 SCM gswig_result;
4841 SWIGUNUSED int gswig_list_p = 0;
4842 bool result;
4843
4844 {
4845 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4846 }
4847 {
4848 arg2 = (char *)SWIG_scm2str(argv[1]);
4849 must_free2 = 1;
4850 }
4851 result = (bool)render(arg1,(char const *)arg2);
4852 {
4853 gswig_result = scm_from_bool(result);
4854 }
4855
4856 if (must_free2) SWIG_free(arg2);
4857
4858 return gswig_result;
4859#undef FUNC_NAME
4860}
4861
4862
4863static SCM
4864_wrap_render__SWIG_2 (int argc, SCM *argv)
4865{
4866#define FUNC_NAME "render"
4867 Agraph_t *arg1 = (Agraph_t *) 0 ;
4868 char *arg2 = (char *) 0 ;
4869 FILE *arg3 = (FILE *) 0 ;
4870 int must_free2 = 0 ;
4871 SCM gswig_result;
4872 SWIGUNUSED int gswig_list_p = 0;
4873 bool result;
4874
4875 {
4876 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4877 }
4878 {
4879 arg2 = (char *)SWIG_scm2str(argv[1]);
4880 must_free2 = 1;
4881 }
4882 {
4883 arg3 = (FILE *)SWIG_MustGetPtr(argv[2], SWIGTYPE_p_FILE, 3, 0);
4884 }
4885 result = (bool)render(arg1,(char const *)arg2,arg3);
4886 {
4887 gswig_result = scm_from_bool(result);
4888 }
4889
4890 if (must_free2) SWIG_free(arg2);
4891
4892
4893 return gswig_result;
4894#undef FUNC_NAME
4895}
4896
4897
4898static SCM
4899_wrap_render__SWIG_3 (int argc, SCM *argv)
4900{
4901#define FUNC_NAME "render"
4902 Agraph_t *arg1 = (Agraph_t *) 0 ;
4903 char *arg2 = (char *) 0 ;
4904 char *arg3 = (char *) 0 ;
4905 int must_free2 = 0 ;
4906 int must_free3 = 0 ;
4907 SCM gswig_result;
4908 SWIGUNUSED int gswig_list_p = 0;
4909 bool result;
4910
4911 {
4912 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4913 }
4914 {
4915 arg2 = (char *)SWIG_scm2str(argv[1]);
4916 must_free2 = 1;
4917 }
4918 {
4919 arg3 = (char *)SWIG_scm2str(argv[2]);
4920 must_free3 = 1;
4921 }
4922 result = (bool)render(arg1,(char const *)arg2,(char const *)arg3);
4923 {
4924 gswig_result = scm_from_bool(result);
4925 }
4926
4927 if (must_free2) SWIG_free(arg2);
4928 if (must_free3) SWIG_free(arg3);
4929
4930 return gswig_result;
4931#undef FUNC_NAME
4932}
4933
4934
4935static SCM
4937{
4938#define FUNC_NAME "render"
4939 SCM argv[3];
4940 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 3, "render");
4941 if (argc == 1) {
4942 int _v = 0;
4943 {
4944 void *ptr;
4945 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4946 _v = SWIG_CheckState(res);
4947 }
4948 if (_v) {
4949 return _wrap_render__SWIG_0(argc,argv);
4950 }
4951 }
4952 if (argc == 2) {
4953 int _v = 0;
4954 {
4955 void *ptr;
4956 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4957 _v = SWIG_CheckState(res);
4958 }
4959 if (_v) {
4960 {
4961 _v = scm_is_string(argv[1]) ? 1 : 0;
4962 }
4963 if (_v) {
4964 return _wrap_render__SWIG_1(argc,argv);
4965 }
4966 }
4967 }
4968 if (argc == 3) {
4969 int _v = 0;
4970 {
4971 void *ptr;
4972 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4973 _v = SWIG_CheckState(res);
4974 }
4975 if (_v) {
4976 {
4977 _v = scm_is_string(argv[1]) ? 1 : 0;
4978 }
4979 if (_v) {
4980 {
4981 void *ptr;
4982 int res = SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_FILE, 0);
4983 _v = SWIG_CheckState(res);
4984 }
4985 if (_v) {
4986 return _wrap_render__SWIG_2(argc,argv);
4987 }
4988 }
4989 }
4990 }
4991 if (argc == 3) {
4992 int _v = 0;
4993 {
4994 void *ptr;
4995 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4996 _v = SWIG_CheckState(res);
4997 }
4998 if (_v) {
4999 {
5000 _v = scm_is_string(argv[1]) ? 1 : 0;
5001 }
5002 if (_v) {
5003 {
5004 _v = scm_is_string(argv[2]) ? 1 : 0;
5005 }
5006 if (_v) {
5007 return _wrap_render__SWIG_3(argc,argv);
5008 }
5009 }
5010 }
5011 }
5012
5013 scm_misc_error("render", "No matching method for generic function `render'", SCM_EOL);
5014#undef FUNC_NAME
5015}
5016
5017
5018static SCM
5019_wrap_renderresult (SCM s_0, SCM s_1, SCM s_2)
5020{
5021#define FUNC_NAME "renderresult"
5022 Agraph_t *arg1 = (Agraph_t *) 0 ;
5023 char *arg2 = (char *) 0 ;
5024 char *arg3 = (char *) 0 ;
5025 int must_free2 = 0 ;
5026 int must_free3 = 0 ;
5027 SCM gswig_result;
5028 SWIGUNUSED int gswig_list_p = 0;
5029
5030 {
5031 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5032 }
5033 {
5034 arg2 = (char *)SWIG_scm2str(s_1);
5035 must_free2 = 1;
5036 }
5037 {
5038 arg3 = (char *)SWIG_scm2str(s_2);
5039 must_free3 = 1;
5040 }
5041 renderresult(arg1,(char const *)arg2,arg3);
5042 gswig_result = SCM_UNSPECIFIED;
5043
5044 if (must_free2) SWIG_free(arg2);
5045 if (must_free3) SWIG_free(arg3);
5046
5047 return gswig_result;
5048#undef FUNC_NAME
5049}
5050
5051
5052static SCM
5053_wrap_renderchannel (SCM s_0, SCM s_1, SCM s_2)
5054{
5055#define FUNC_NAME "renderchannel"
5056 Agraph_t *arg1 = (Agraph_t *) 0 ;
5057 char *arg2 = (char *) 0 ;
5058 char *arg3 = (char *) 0 ;
5059 int must_free2 = 0 ;
5060 int must_free3 = 0 ;
5061 SCM gswig_result;
5062 SWIGUNUSED int gswig_list_p = 0;
5063 bool result;
5064
5065 {
5066 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5067 }
5068 {
5069 arg2 = (char *)SWIG_scm2str(s_1);
5070 must_free2 = 1;
5071 }
5072 {
5073 arg3 = (char *)SWIG_scm2str(s_2);
5074 must_free3 = 1;
5075 }
5076 result = (bool)renderchannel(arg1,(char const *)arg2,(char const *)arg3);
5077 {
5078 gswig_result = scm_from_bool(result);
5079 }
5080
5081 if (must_free2) SWIG_free(arg2);
5082 if (must_free3) SWIG_free(arg3);
5083
5084 return gswig_result;
5085#undef FUNC_NAME
5086}
5087
5088
5089static SCM
5090_wrap_renderdata (SCM s_0, SCM s_1)
5091{
5092#define FUNC_NAME "renderdata"
5093 Agraph_t *arg1 = (Agraph_t *) 0 ;
5094 char *arg2 = (char *) 0 ;
5095 int must_free2 = 0 ;
5096 SCM gswig_result;
5097 SWIGUNUSED int gswig_list_p = 0;
5098 char *result = 0 ;
5099
5100 {
5101 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5102 }
5103 {
5104 arg2 = (char *)SWIG_scm2str(s_1);
5105 must_free2 = 1;
5106 }
5107 result = (char *)renderdata(arg1,(char const *)arg2);
5108 {
5109 gswig_result = SWIG_str02scm((const char *)result);
5110 }
5111
5112 if (must_free2) SWIG_free(arg2);
5113
5114 return gswig_result;
5115#undef FUNC_NAME
5116}
5117
5118
5119static SCM
5120_wrap_write__SWIG_0 (int argc, SCM *argv)
5121{
5122#define FUNC_NAME "write"
5123 Agraph_t *arg1 = (Agraph_t *) 0 ;
5124 char *arg2 = (char *) 0 ;
5125 int must_free2 = 0 ;
5126 SCM gswig_result;
5127 SWIGUNUSED int gswig_list_p = 0;
5128 bool result;
5129
5130 {
5131 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
5132 }
5133 {
5134 arg2 = (char *)SWIG_scm2str(argv[1]);
5135 must_free2 = 1;
5136 }
5137 result = (bool)write(arg1,(char const *)arg2);
5138 {
5139 gswig_result = scm_from_bool(result);
5140 }
5141
5142 if (must_free2) SWIG_free(arg2);
5143
5144 return gswig_result;
5145#undef FUNC_NAME
5146}
5147
5148
5149static SCM
5150_wrap_write__SWIG_1 (int argc, SCM *argv)
5151{
5152#define FUNC_NAME "write"
5153 Agraph_t *arg1 = (Agraph_t *) 0 ;
5154 FILE *arg2 = (FILE *) 0 ;
5155 SCM gswig_result;
5156 SWIGUNUSED int gswig_list_p = 0;
5157 bool result;
5158
5159 {
5160 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
5161 }
5162 {
5163 arg2 = (FILE *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_FILE, 2, 0);
5164 }
5165 result = (bool)write(arg1,arg2);
5166 {
5167 gswig_result = scm_from_bool(result);
5168 }
5169
5170
5171
5172 return gswig_result;
5173#undef FUNC_NAME
5174}
5175
5176
5177static SCM
5179{
5180#define FUNC_NAME "write"
5181 SCM argv[2];
5182 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "write");
5183 if (argc == 2) {
5184 int _v = 0;
5185 {
5186 void *ptr;
5187 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
5188 _v = SWIG_CheckState(res);
5189 }
5190 if (_v) {
5191 {
5192 void *ptr;
5193 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_FILE, 0);
5194 _v = SWIG_CheckState(res);
5195 }
5196 if (_v) {
5197 return _wrap_write__SWIG_1(argc,argv);
5198 }
5199 }
5200 }
5201 if (argc == 2) {
5202 int _v = 0;
5203 {
5204 void *ptr;
5205 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
5206 _v = SWIG_CheckState(res);
5207 }
5208 if (_v) {
5209 {
5210 _v = scm_is_string(argv[1]) ? 1 : 0;
5211 }
5212 if (_v) {
5213 return _wrap_write__SWIG_0(argc,argv);
5214 }
5215 }
5216 }
5217
5218 scm_misc_error("write", "No matching method for generic function `write'", SCM_EOL);
5219#undef FUNC_NAME
5220}
5221
5222
5223static SCM
5224_wrap_tred (SCM s_0)
5225{
5226#define FUNC_NAME "tred"
5227 Agraph_t *arg1 = (Agraph_t *) 0 ;
5228 SCM gswig_result;
5229 SWIGUNUSED int gswig_list_p = 0;
5230 bool result;
5231
5232 {
5233 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5234 }
5235 result = (bool)tred(arg1);
5236 {
5237 gswig_result = scm_from_bool(result);
5238 }
5239
5240
5241 return gswig_result;
5242#undef FUNC_NAME
5243}
5244
5245
5246#ifdef __cplusplus
5247extern "C" {
5248#endif
5249
5250/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5251
5252static swig_type_info _swigt__p_Agedge_t = {"_p_Agedge_t", "Agedge_t *", 0, 0, (void*)0, 0};
5253static swig_type_info _swigt__p_Agnode_t = {"_p_Agnode_t", "Agnode_t *", 0, 0, (void*)0, 0};
5254static swig_type_info _swigt__p_Agraph_t = {"_p_Agraph_t", "Agraph_t *", 0, 0, (void*)0, 0};
5255static swig_type_info _swigt__p_Agsym_t = {"_p_Agsym_t", "Agsym_t *", 0, 0, (void*)0, 0};
5256static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
5257static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "SCM *|unsigned long *", 0, 0, (void*)0, 0};
5258
5267
5268static swig_cast_info _swigc__p_Agedge_t[] = { {&_swigt__p_Agedge_t, 0, 0, 0},{0, 0, 0, 0}};
5269static swig_cast_info _swigc__p_Agnode_t[] = { {&_swigt__p_Agnode_t, 0, 0, 0},{0, 0, 0, 0}};
5270static swig_cast_info _swigc__p_Agraph_t[] = { {&_swigt__p_Agraph_t, 0, 0, 0},{0, 0, 0, 0}};
5271static swig_cast_info _swigc__p_Agsym_t[] = { {&_swigt__p_Agsym_t, 0, 0, 0},{0, 0, 0, 0}};
5272static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
5274
5283
5284
5285/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5286
5287/* -----------------------------------------------------------------------------
5288 * Type initialization:
5289 * This problem is tough by the requirement that no dynamic
5290 * memory is used. Also, since swig_type_info structures store pointers to
5291 * swig_cast_info structures and swig_cast_info structures store pointers back
5292 * to swig_type_info structures, we need some lookup code at initialization.
5293 * The idea is that swig generates all the structures that are needed.
5294 * The runtime then collects these partially filled structures.
5295 * The SWIG_InitializeModule function takes these initial arrays out of
5296 * swig_module, and does all the lookup, filling in the swig_module.types
5297 * array with the correct data and linking the correct swig_cast_info
5298 * structures together.
5299 *
5300 * The generated swig_type_info structures are assigned statically to an initial
5301 * array. We just loop through that array, and handle each type individually.
5302 * First we lookup if this type has been already loaded, and if so, use the
5303 * loaded structure instead of the generated one. Then we have to fill in the
5304 * cast linked list. The cast data is initially stored in something like a
5305 * two-dimensional array. Each row corresponds to a type (there are the same
5306 * number of rows as there are in the swig_type_initial array). Each entry in
5307 * a column is one of the swig_cast_info structures for that type.
5308 * The cast_initial array is actually an array of arrays, because each row has
5309 * a variable number of columns. So to actually build the cast linked list,
5310 * we find the array of casts associated with the type, and loop through it
5311 * adding the casts to the list. The one last trick we need to do is making
5312 * sure the type pointer in the swig_cast_info struct is correct.
5313 *
5314 * First off, we lookup the cast->type name to see if it is already loaded.
5315 * There are three cases to handle:
5316 * 1) If the cast->type has already been loaded AND the type we are adding
5317 * casting info to has not been loaded (it is in this module), THEN we
5318 * replace the cast->type pointer with the type pointer that has already
5319 * been loaded.
5320 * 2) If BOTH types (the one we are adding casting info to, and the
5321 * cast->type) are loaded, THEN the cast info has already been loaded by
5322 * the previous module so we just ignore it.
5323 * 3) Finally, if cast->type has not already been loaded, then we add that
5324 * swig_cast_info to the linked list (because the cast->type) pointer will
5325 * be correct.
5326 * ----------------------------------------------------------------------------- */
5327
5328#ifdef __cplusplus
5329extern "C" {
5330#if 0
5331} /* c-mode */
5332#endif
5333#endif
5334
5335#if 0
5336#define SWIGRUNTIME_DEBUG
5337#endif
5338
5339#ifndef SWIG_INIT_CLIENT_DATA_TYPE
5340#define SWIG_INIT_CLIENT_DATA_TYPE void *
5341#endif
5342
5343SWIGRUNTIME void
5345 size_t i;
5346 swig_module_info *module_head, *iter;
5347 int init;
5348
5349 /* check to see if the circular list has been setup, if not, set it up */
5350 if (swig_module.next==0) {
5351 /* Initialize the swig_module */
5355 init = 1;
5356 } else {
5357 init = 0;
5358 }
5359
5360 /* Try and load any already created modules */
5361 module_head = SWIG_GetModule(clientdata);
5362 if (!module_head) {
5363 /* This is the first module loaded for this interpreter */
5364 /* so set the swig module into the interpreter */
5365 SWIG_SetModule(clientdata, &swig_module);
5366 } else {
5367 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5368 iter=module_head;
5369 do {
5370 if (iter==&swig_module) {
5371 /* Our module is already in the list, so there's nothing more to do. */
5372 return;
5373 }
5374 iter=iter->next;
5375 } while (iter!= module_head);
5376
5377 /* otherwise we must add our module into the list */
5378 swig_module.next = module_head->next;
5379 module_head->next = &swig_module;
5380 }
5381
5382 /* When multiple interpreters are used, a module could have already been initialized in
5383 a different interpreter, but not yet have a pointer in this interpreter.
5384 In this case, we do not want to continue adding types... everything should be
5385 set up already */
5386 if (init == 0) return;
5387
5388 /* Now work on filling in swig_module.types */
5389#ifdef SWIGRUNTIME_DEBUG
5390 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
5391#endif
5392 for (i = 0; i < swig_module.size; ++i) {
5393 swig_type_info *type = 0;
5394 swig_type_info *ret;
5395 swig_cast_info *cast;
5396
5397#ifdef SWIGRUNTIME_DEBUG
5398 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5399#endif
5400
5401 /* if there is another module already loaded */
5402 if (swig_module.next != &swig_module) {
5404 }
5405 if (type) {
5406 /* Overwrite clientdata field */
5407#ifdef SWIGRUNTIME_DEBUG
5408 printf("SWIG_InitializeModule: found type %s\n", type->name);
5409#endif
5411 type->clientdata = swig_module.type_initial[i]->clientdata;
5412#ifdef SWIGRUNTIME_DEBUG
5413 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5414#endif
5415 }
5416 } else {
5418 }
5419
5420 /* Insert casting types */
5421 cast = swig_module.cast_initial[i];
5422 while (cast->type) {
5423 /* Don't need to add information already in the list */
5424 ret = 0;
5425#ifdef SWIGRUNTIME_DEBUG
5426 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5427#endif
5428 if (swig_module.next != &swig_module) {
5430#ifdef SWIGRUNTIME_DEBUG
5431 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5432#endif
5433 }
5434 if (ret) {
5435 if (type == swig_module.type_initial[i]) {
5436#ifdef SWIGRUNTIME_DEBUG
5437 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5438#endif
5439 cast->type = ret;
5440 ret = 0;
5441 } else {
5442 /* Check for casting already in the list */
5443 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5444#ifdef SWIGRUNTIME_DEBUG
5445 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5446#endif
5447 if (!ocast) ret = 0;
5448 }
5449 }
5450
5451 if (!ret) {
5452#ifdef SWIGRUNTIME_DEBUG
5453 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5454#endif
5455 if (type->cast) {
5456 type->cast->prev = cast;
5457 cast->next = type->cast;
5458 }
5459 type->cast = cast;
5460 }
5461 cast++;
5462 }
5463 /* Set entry in modules->types array equal to the type */
5464 swig_module.types[i] = type;
5465 }
5466 swig_module.types[i] = 0;
5467
5468#ifdef SWIGRUNTIME_DEBUG
5469 printf("**** SWIG_InitializeModule: Cast List ******\n");
5470 for (i = 0; i < swig_module.size; ++i) {
5471 int j = 0;
5473 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5474 while (cast->type) {
5475 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5476 cast++;
5477 ++j;
5478 }
5479 printf("---- Total casts: %d\n",j);
5480 }
5481 printf("**** SWIG_InitializeModule: Cast List ******\n");
5482#endif
5483}
5484
5485/* This function will propagate the clientdata field of type to
5486* any new swig_type_info structures that have been added into the list
5487* of equivalent types. It is like calling
5488* SWIG_TypeClientData(type, clientdata) a second time.
5489*/
5490SWIGRUNTIME void
5492 size_t i;
5493 swig_cast_info *equiv;
5494 static int init_run = 0;
5495
5496 if (init_run) return;
5497 init_run = 1;
5498
5499 for (i = 0; i < swig_module.size; i++) {
5500 if (swig_module.types[i]->clientdata) {
5501 equiv = swig_module.types[i]->cast;
5502 while (equiv) {
5503 if (!equiv->converter) {
5504 if (equiv->type && !equiv->type->clientdata)
5506 }
5507 equiv = equiv->next;
5508 }
5509 }
5510 }
5511}
5512
5513#ifdef __cplusplus
5514#if 0
5515{
5516 /* c-mode */
5517#endif
5518}
5519#endif
5520
5521
5524{
5527
5528 scm_c_define_gsubr("digraph", 1, 0, 0, (swig_guile_proc) _wrap_digraph);
5529 scm_c_define_gsubr("strictgraph", 1, 0, 0, (swig_guile_proc) _wrap_strictgraph);
5530 scm_c_define_gsubr("strictdigraph", 1, 0, 0, (swig_guile_proc) _wrap_strictdigraph);
5531 scm_c_define_gsubr("readstring", 1, 0, 0, (swig_guile_proc) _wrap_readstring);
5532 scm_c_define_gsubr("read", 0, 0, 1, (swig_guile_proc) _wrap_read);
5533 scm_c_define_gsubr("graph", 0, 0, 1, (swig_guile_proc) _wrap_graph);
5534 scm_c_define_gsubr("node", 2, 0, 0, (swig_guile_proc) _wrap_node);
5535 scm_c_define_gsubr("edge", 0, 0, 1, (swig_guile_proc) _wrap_edge);
5536 scm_c_define_gsubr("setv", 0, 0, 1, (swig_guile_proc) _wrap_setv);
5537 scm_c_define_gsubr("getv", 0, 0, 1, (swig_guile_proc) _wrap_getv);
5538 scm_c_define_gsubr("nameof", 0, 0, 1, (swig_guile_proc) _wrap_nameof);
5539 scm_c_define_gsubr("findsubg", 2, 0, 0, (swig_guile_proc) _wrap_findsubg);
5540 scm_c_define_gsubr("findnode", 2, 0, 0, (swig_guile_proc) _wrap_findnode);
5541 scm_c_define_gsubr("findedge", 2, 0, 0, (swig_guile_proc) _wrap_findedge);
5542 scm_c_define_gsubr("findattr", 0, 0, 1, (swig_guile_proc) _wrap_findattr);
5543 scm_c_define_gsubr("headof", 1, 0, 0, (swig_guile_proc) _wrap_headof);
5544 scm_c_define_gsubr("tailof", 1, 0, 0, (swig_guile_proc) _wrap_tailof);
5545 scm_c_define_gsubr("graphof", 0, 0, 1, (swig_guile_proc) _wrap_graphof);
5546 scm_c_define_gsubr("rootof", 1, 0, 0, (swig_guile_proc) _wrap_rootof);
5547 scm_c_define_gsubr("protonode", 1, 0, 0, (swig_guile_proc) _wrap_protonode);
5548 scm_c_define_gsubr("protoedge", 1, 0, 0, (swig_guile_proc) _wrap_protoedge);
5549 scm_c_define_gsubr("ok", 0, 0, 1, (swig_guile_proc) _wrap_ok);
5550 scm_c_define_gsubr("firstsubg", 1, 0, 0, (swig_guile_proc) _wrap_firstsubg);
5551 scm_c_define_gsubr("nextsubg", 2, 0, 0, (swig_guile_proc) _wrap_nextsubg);
5552 scm_c_define_gsubr("firstsupg", 1, 0, 0, (swig_guile_proc) _wrap_firstsupg);
5553 scm_c_define_gsubr("nextsupg", 2, 0, 0, (swig_guile_proc) _wrap_nextsupg);
5554 scm_c_define_gsubr("firstedge", 0, 0, 1, (swig_guile_proc) _wrap_firstedge);
5555 scm_c_define_gsubr("nextedge", 0, 0, 1, (swig_guile_proc) _wrap_nextedge);
5556 scm_c_define_gsubr("firstout", 0, 0, 1, (swig_guile_proc) _wrap_firstout);
5557 scm_c_define_gsubr("nextout", 0, 0, 1, (swig_guile_proc) _wrap_nextout);
5558 scm_c_define_gsubr("firsthead", 1, 0, 0, (swig_guile_proc) _wrap_firsthead);
5559 scm_c_define_gsubr("nexthead", 2, 0, 0, (swig_guile_proc) _wrap_nexthead);
5560 scm_c_define_gsubr("firstin", 0, 0, 1, (swig_guile_proc) _wrap_firstin);
5561 scm_c_define_gsubr("nextin", 0, 0, 1, (swig_guile_proc) _wrap_nextin);
5562 scm_c_define_gsubr("firsttail", 1, 0, 0, (swig_guile_proc) _wrap_firsttail);
5563 scm_c_define_gsubr("nexttail", 2, 0, 0, (swig_guile_proc) _wrap_nexttail);
5564 scm_c_define_gsubr("firstnode", 0, 0, 1, (swig_guile_proc) _wrap_firstnode);
5565 scm_c_define_gsubr("nextnode", 0, 0, 1, (swig_guile_proc) _wrap_nextnode);
5566 scm_c_define_gsubr("firstattr", 0, 0, 1, (swig_guile_proc) _wrap_firstattr);
5567 scm_c_define_gsubr("nextattr", 0, 0, 1, (swig_guile_proc) _wrap_nextattr);
5568 scm_c_define_gsubr("rm", 0, 0, 1, (swig_guile_proc) _wrap_rm);
5569 scm_c_define_gsubr("layout", 2, 0, 0, (swig_guile_proc) _wrap_layout);
5570 scm_c_define_gsubr("render", 0, 0, 1, (swig_guile_proc) _wrap_render);
5571 scm_c_define_gsubr("renderresult", 3, 0, 0, (swig_guile_proc) _wrap_renderresult);
5572 scm_c_define_gsubr("renderchannel", 3, 0, 0, (swig_guile_proc) _wrap_renderchannel);
5573 scm_c_define_gsubr("renderdata", 2, 0, 0, (swig_guile_proc) _wrap_renderdata);
5574 scm_c_define_gsubr("write", 0, 0, 1, (swig_guile_proc) _wrap_write);
5575 scm_c_define_gsubr("tred", 1, 0, 0, (swig_guile_proc) _wrap_tred);
5576}
5577
5578#ifdef __cplusplus
5579}
5580#endif
5581extern "C" {
5582/* Linkage: simple */
5583
5584}
5585
int compare(Agobj_t *l, Agobj_t *r)
Definition actions.c:687
Agobj_t * copy(Agraph_t *g, Agobj_t *obj)
Definition actions.c:156
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, char **color_scheme, int *lightness)
expr procedure type
Definition exparse.y:211
#define A(n, t)
Definition expr.h:76
static int flags
Definition gc.c:61
static double len(glCompPoint p)
Definition glutils.c:150
void * malloc(YYSIZE_T)
void free(void *)
edge
Definition gmlparse.y:279
node NULL
Definition grammar.y:149
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
static swig_type_info _swigt__p_Agsym_t
bool ok(Agraph_t *g)
Definition gv.cpp:368
SWIGINTERN int SWIG_Guile_ConvertMember(SCM smob, void *ptr, size_t sz, swig_type_info *type, const char *func_name)
static SCM _wrap_edge__SWIG_3(int argc, SCM *argv)
static swig_cast_info _swigc__p_Agraph_t[]
static SCM _wrap_nextin__SWIG_1(int argc, SCM *argv)
static SCM _wrap_getv__SWIG_4(int argc, SCM *argv)
static SCM _wrap_nameof(SCM rest)
static scm_t_bits swig_destroyed_tag
Definition gv_guile.cpp:874
static swig_cast_info * swig_cast_initial[]
bool tred(Agraph_t *g)
Definition gv.cpp:734
Agraph_t * firstsubg(Agraph_t *g)
Definition gv.cpp:373
static SCM _wrap_ok(SCM rest)
Agraph_t * read(const char *filename)
Definition gv.cpp:67
static SCM _wrap_rm__SWIG_0(int argc, SCM *argv)
static SCM _wrap_firstin(SCM rest)
static SCM swig_make_func
Definition gv_guile.cpp:876
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:379
Agraph_t * readstring(char *string)
Definition gv.cpp:55
#define SWIG_str02scm(str)
Definition gv_guile.cpp:817
char * getv(Agraph_t *g, char *attr)
Definition gv.cpp:136
Agraph_t * findsubg(Agraph_t *g, char *name)
Definition gv.cpp:253
static SCM _wrap_protonode(SCM s_0)
static SCM _wrap_firstnode__SWIG_0(int argc, SCM *argv)
void renderresult(Agraph_t *g, const char *format, char *outdata)
Definition gv.cpp:696
SWIGINTERN void SWIG_Guile_MarkPointerNoncollectable(SCM s)
SWIG_GUILE_INIT_STATIC void SWIG_init(void)
#define SWIG_CheckState(r)
Definition gv_guile.cpp:330
static SCM _wrap_strictdigraph(SCM s_0)
static SCM _wrap_findattr(SCM rest)
static swig_cast_info _swigc__p_FILE[]
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
Definition gv_guile.cpp:432
#define SWIG_GUILE_INIT_STATIC
Definition gv_guile.cpp:12
static SCM _wrap_edge__SWIG_2(int argc, SCM *argv)
static SCM _wrap_edge__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextout__SWIG_1(int argc, SCM *argv)
SWIGINTERN void SWIG_Guile_SetModule(swig_module_info *swig_module)
static SCM _wrap_nameof__SWIG_1(int argc, SCM *argv)
#define SWIGTYPE_p_Agnode_t
struct swig_cast_info swig_cast_info
static SCM _wrap_firstsupg(SCM s_0)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
Definition gv_guile.cpp:398
static SCM _wrap_setv__SWIG_0(int argc, SCM *argv)
Agraph_t * strictgraph(char *name)
Definition gv.cpp:43
static SCM _wrap_node(SCM s_0, SCM s_1)
static SCM _wrap_findattr__SWIG_1(int argc, SCM *argv)
static SCM _wrap_nextsubg(SCM s_0, SCM s_1)
static SCM _wrap_nextattr__SWIG_1(int argc, SCM *argv)
static scm_t_bits swig_finalized_tag
Definition gv_guile.cpp:873
static SCM _wrap_setv__SWIG_1(int argc, SCM *argv)
char * setv(Agraph_t *g, char *attr, char *val)
Definition gv.cpp:158
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:401
static SCM _wrap_setv__SWIG_5(int argc, SCM *argv)
static SCM _wrap_nextnode__SWIG_0(int argc, SCM *argv)
static SCM swig_keyword
Definition gv_guile.cpp:877
static SCM _wrap_findedge(SCM s_0, SCM s_1)
Agraph_t * rootof(Agraph_t *g)
Definition gv.cpp:333
static swig_cast_info _swigc__p_Agnode_t[]
static SCM _wrap_firsthead(SCM s_0)
Agnode_t * headof(Agedge_t *e)
Definition gv.cpp:293
SWIGINTERN int print_collectable_swig(SCM swig_smob, SCM port, scm_print_state *pstate)
#define SWIGRUNTIME
Definition gv_guile.cpp:180
static SCM _wrap_getv__SWIG_5(int argc, SCM *argv)
#define SWIGTYPE_p_Agraph_t
static SCM _wrap_write__SWIG_1(int argc, SCM *argv)
Agnode_t * firsttail(Agnode_t *n)
Definition gv.cpp:500
static SCM _wrap_findsubg(SCM s_0, SCM s_1)
#define SWIG_RUNTIME_VERSION
Definition gv_guile.cpp:159
static SCM _wrap_ok__SWIG_3(int argc, SCM *argv)
#define SWIGTYPE_p_Agsym_t
static SCM _wrap_read__SWIG_0(int argc, SCM *argv)
static SCM _wrap_firsttail(SCM s_0)
Agraph_t * strictdigraph(char *name)
Definition gv.cpp:49
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
Definition gv_guile.cpp:546
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
Definition gv_guile.cpp:621
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
Definition gv.cpp:654
SWIGINTERN unsigned long SWIG_Guile_PointerAddress(SCM object)
Definition gv_guile.cpp:916
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:388
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
Definition gv_guile.cpp:718
#define SWIG_AddCast(r)
Definition gv_guile.cpp:329
static SCM _wrap_nextin(SCM rest)
static SCM _wrap_firstout__SWIG_0(int argc, SCM *argv)
#define SWIG_ConvertPtr(s, result, type, flags)
Definition gv_guile.cpp:823
Agedge_t * firstedge(Agraph_t *g)
Definition gv.cpp:415
static SCM _wrap_getv__SWIG_3(int argc, SCM *argv)
Agraph_t * graphof(Agraph_t *g)
Definition gv.cpp:309
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
Definition gv_guile.cpp:705
SWIGINTERN SCM equalp_swig(SCM A, SCM B)
static swig_module_info swig_module
static SCM _wrap_nextedge(SCM rest)
SWIGINTERN void SWIG_Guile_MarkPointerDestroyed(SCM s)
char * nameof(Agraph_t *g)
Definition gv.cpp:349
#define SWIG_SetModule(clientdata, pointer)
Definition gv_guile.cpp:853
SWIGINTERN int print_swig(SCM swig_smob, SCM port, scm_print_state *pstate)
static SCM _wrap_getv__SWIG_0(int argc, SCM *argv)
SWIGINTERN int SWIG_Guile_IsValidSmob(SCM smob)
Definition gv_guile.cpp:942
Agnode_t * firstnode(Agraph_t *g)
Definition gv.cpp:524
static SCM _wrap_nextnode__SWIG_1(int argc, SCM *argv)
#define SWIG_INIT_CLIENT_DATA_TYPE
static SCM _wrap_renderdata(SCM s_0, SCM s_1)
#define SWIGUNUSEDPARM(p)
Definition gv_guile.cpp:72
Agedge_t * firstout(Agraph_t *g)
Definition gv.cpp:390
static SCM _wrap_firstnode__SWIG_1(int argc, SCM *argv)
#define SWIG_POINTER_RELEASE
Definition gv_guile.cpp:197
static SCM _wrap_render__SWIG_0(int argc, SCM *argv)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
Definition gv_guile.cpp:502
SWIGINTERN int print_destroyed_swig(SCM swig_smob, SCM port, scm_print_state *pstate)
#define SWIGUNUSED
Definition gv_guile.cpp:58
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
Definition gv_guile.cpp:562
SWIGINTERN size_t free_swig(SCM A)
SWIGINTERN int SWIG_Guile_ConvertPtr(SCM s, void **result, swig_type_info *type, int flags)
Definition gv_guile.cpp:954
#define SWIG_POINTER_CLEAR
Definition gv_guile.cpp:196
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
Definition gv_guile.cpp:413
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
Definition gv_guile.cpp:666
static SCM _wrap_protoedge(SCM s_0)
static swig_module_info * SWIG_Guile_GetModule(void *SWIGUNUSEDPARM(clientdata))
static SCM _wrap_firstedge(SCM rest)
static SCM swig_symbol
Definition gv_guile.cpp:878
static SCM _wrap_firstedge__SWIG_0(int argc, SCM *argv)
static SCM _wrap_firstout(SCM rest)
static swig_type_info * swig_types[7]
static SCM _wrap_setv__SWIG_3(int argc, SCM *argv)
static swig_type_info _swigt__p_unsigned_long
static SCM _wrap_firstattr(SCM rest)
static SCM _wrap_digraph(SCM s_0)
static SCM _wrap_firstedge__SWIG_1(int argc, SCM *argv)
static SCM _wrap_firstnode(SCM rest)
#define SWIGINTERN
Definition gv_guile.cpp:78
static SCM _wrap_findnode(SCM s_0, SCM s_1)
static SCM _wrap_firstattr__SWIG_1(int argc, SCM *argv)
bool layout(Agraph_t *g, const char *engine)
Definition gv.cpp:621
SWIGINTERN SCM SWIG_Guile_NewPointerObj(void *ptr, swig_type_info *type, int owner)
Definition gv_guile.cpp:887
static swig_type_info _swigt__p_Agraph_t
static SCM _wrap_firstattr__SWIG_0(int argc, SCM *argv)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
Definition gv_guile.cpp:576
static SCM _wrap_nextout(SCM rest)
static SCM _wrap_graphof__SWIG_0(int argc, SCM *argv)
static SCM _wrap_write(SCM rest)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
Definition gv_guile.cpp:733
static SCM _wrap_edge(SCM rest)
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
Definition gv.cpp:555
#define SWIG_POINTER_NO_NULL
Definition gv_guile.cpp:195
static SCM _wrap_graph(SCM rest)
Agnode_t * tailof(Agedge_t *e)
Definition gv.cpp:301
bool write(Agraph_t *g, const char *filename)
Definition gv.cpp:723
char * renderdata(Agraph_t *g, const char *format)
Definition gv.cpp:705
static SCM _wrap_findattr__SWIG_0(int argc, SCM *argv)
static SCM _wrap_ok__SWIG_2(int argc, SCM *argv)
static int swig_initialized
Definition gv_guile.cpp:870
static SCM _wrap_render__SWIG_1(int argc, SCM *argv)
SWIGINTERN int ensure_smob_tag(SCM swig_module, scm_t_bits *tag_variable, const char *smob_name, const char *scheme_variable_name)
SWIGINTERN swig_type_info * SWIG_Guile_PointerType(SCM object)
Definition gv_guile.cpp:929
#define SWIG_NullReferenceError
Definition gv_guile.cpp:762
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
Definition gv_guile.cpp:516
static SCM _wrap_getv(SCM rest)
static SCM _wrap_nameof__SWIG_0(int argc, SCM *argv)
static SCM _wrap_read__SWIG_1(int argc, SCM *argv)
static SCM _wrap_graphof(SCM rest)
#define SWIG_POINTER_DISOWN
Definition gv_guile.cpp:193
struct swig_type_info swig_type_info
static SCM _wrap_nextout__SWIG_0(int argc, SCM *argv)
SWIGINTERN char * SWIG_Guile_scm2newstr(SCM str, size_t *len)
Definition gv_guile.cpp:856
static SCM _wrap_graph__SWIG_1(int argc, SCM *argv)
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
Definition gv_guile.cpp:694
#define SWIG_NewPointerObj(ptr, type, owner)
Definition gv_guile.cpp:827
static SCM _wrap_graphof__SWIG_1(int argc, SCM *argv)
SWIGINTERNINLINE void * SWIG_Guile_MustGetPtr(SCM s, swig_type_info *type, int argnum, int flags, const char *func_name)
Agnode_t * protonode(Agraph_t *g)
Definition gv.cpp:340
static swig_cast_info _swigc__p_Agedge_t[]
static SCM _wrap_firstattr__SWIG_2(int argc, SCM *argv)
static SCM _wrap_firstout__SWIG_1(int argc, SCM *argv)
static SCM _wrap_graph__SWIG_0(int argc, SCM *argv)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
Definition gv_guile.cpp:650
bool rm(Agraph_t *g)
Definition gv.cpp:590
SWIGINTERN SCM SWIG_Guile_Init()
Agnode_t * findnode(Agraph_t *g, char *name)
Definition gv.cpp:259
static SCM _wrap_nextattr(SCM rest)
#define SWIGTYPE_p_Agedge_t
static SCM _wrap_render(SCM rest)
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
Definition gv.cpp:509
static SCM _wrap_nextsupg(SCM s_0, SCM s_1)
static SCM _wrap_nexttail(SCM s_0, SCM s_1)
Agraph_t * firstsupg(Agraph_t *g)
Definition gv.cpp:386
static scm_t_bits swig_member_function_tag
Definition gv_guile.cpp:875
static scm_t_bits swig_tag
Definition gv_guile.cpp:871
static scm_t_bits swig_collectable_tag
Definition gv_guile.cpp:872
SCM(* guile_destructor)(SCM)
Definition gv_guile.cpp:808
static SCM _wrap_firstin__SWIG_1(int argc, SCM *argv)
static SCM _wrap_nameof__SWIG_2(int argc, SCM *argv)
#define SWIG_GetModule(clientdata)
Definition gv_guile.cpp:852
Agsym_t * findattr(Agraph_t *g, char *name)
Definition gv.cpp:273
static SCM _wrap_nextattr__SWIG_2(int argc, SCM *argv)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
Definition gv_guile.cpp:467
SWIGRUNTIME void SWIG_PropagateClientData(void)
static swig_cast_info _swigc__p_unsigned_long[]
static SCM _wrap_render__SWIG_2(int argc, SCM *argv)
Agraph_t * digraph(char *name)
Definition gv.cpp:37
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
Definition gv_guile.cpp:525
static SCM _wrap_write__SWIG_0(int argc, SCM *argv)
static SCM _wrap_render__SWIG_3(int argc, SCM *argv)
Agedge_t * firstin(Agraph_t *g)
Definition gv.cpp:467
static SCM _wrap_rm__SWIG_1(int argc, SCM *argv)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
Definition gv_guile.cpp:440
#define SWIG_ERROR_RELEASE_NOT_OWNED
Definition gv_guile.cpp:288
SWIGINTERN SCM SWIG_Guile_NewMemberObj(void *ptr, size_t sz, swig_type_info *type, const char *func_name)
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
Definition gv.cpp:530
#define SWIG_TYPE_TABLE_NAME
Definition gv_guile.cpp:167
static SCM _wrap_getv__SWIG_1(int argc, SCM *argv)
static SCM _wrap_readstring(SCM s_0)
static SCM _wrap_firstsubg(SCM s_0)
static swig_type_info _swigt__p_FILE
static SCM _wrap_ok__SWIG_0(int argc, SCM *argv)
Agedge_t * nextin(Agnode_t *n, Agedge_t *e)
Definition gv.cpp:494
Agraph_t * graph(char *name)
Definition gv.cpp:31
static SCM _wrap_nexthead(SCM s_0, SCM s_1)
struct swig_module_info swig_module_info
static SCM _wrap_read(SCM rest)
SWIGINTERN size_t free_swig_member_function(SCM A)
static SCM _wrap_nextattr__SWIG_0(int argc, SCM *argv)
static SCM _wrap_strictgraph(SCM s_0)
#define SWIG_free(mem)
Definition gv_guile.cpp:821
#define SWIG_ERROR
Definition gv_guile.cpp:284
#define SWIGTYPE_p_FILE
Agsym_t * firstattr(Agraph_t *g)
Definition gv.cpp:548
static SCM _wrap_ok__SWIG_1(int argc, SCM *argv)
static SCM _wrap_setv__SWIG_4(int argc, SCM *argv)
static swig_type_info * swig_type_initial[]
SWIGINTERNINLINE int SWIG_Guile_IsPointerOfType(SCM s, swig_type_info *type)
static SCM _wrap_nextedge__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextin__SWIG_0(int argc, SCM *argv)
SWIGINTERNINLINE int SWIG_Guile_IsPointer(SCM s)
SCM(* swig_guile_proc)()
Definition gv_guile.cpp:806
static SCM _wrap_rm(SCM rest)
static SCM _wrap_getv__SWIG_2(int argc, SCM *argv)
SWIGINTERN int SWIG_Guile_GetArgs(SCM *dest, SCM rest, int reqargs, int optargs, const char *procname)
SWIGINTERN int print_swig_aux(SCM swig_smob, SCM port, scm_print_state *pstate, const char *attribute)
static swig_cast_info _swigc__p_Agsym_t[]
static SCM _wrap_setv__SWIG_2(int argc, SCM *argv)
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:417
#define SWIG_Guile_GetSmob(x)
Definition gv_guile.cpp:880
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
Definition gv.cpp:265
static SCM _wrap_renderchannel(SCM s_0, SCM s_1, SCM s_2)
#define SWIG_MustGetPtr(s, type, argnum, flags)
Definition gv_guile.cpp:825
#define SWIG_IsOK(r)
Definition gv_guile.cpp:290
static SCM _wrap_layout(SCM s_0, SCM s_1)
static SCM _wrap_renderresult(SCM s_0, SCM s_1, SCM s_2)
static SCM _wrap_headof(SCM s_0)
Agnode_t * firsthead(Agnode_t *n)
Definition gv.cpp:431
static swig_type_info _swigt__p_Agnode_t
#define FUNC_NAME
static SCM _wrap_nextedge__SWIG_1(int argc, SCM *argv)
static SCM _wrap_edge__SWIG_1(int argc, SCM *argv)
bool render(Agraph_t *g)
Definition gv.cpp:630
static SCM _wrap_setv(SCM rest)
#define SWIG_scm2str(s)
Definition gv_guile.cpp:815
static SCM _wrap_tred(SCM s_0)
static swig_type_info _swigt__p_Agedge_t
static SCM _wrap_rm__SWIG_2(int argc, SCM *argv)
static SCM _wrap_nextnode(SCM rest)
static SCM _wrap_tailof(SCM s_0)
#define SWIG_OK
Definition gv_guile.cpp:282
static SCM _wrap_rootof(SCM s_0)
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
Definition gv.cpp:440
#define SWIGINTERNINLINE
Definition gv_guile.cpp:83
static SCM _wrap_findattr__SWIG_2(int argc, SCM *argv)
static SCM _wrap_graphof__SWIG_2(int argc, SCM *argv)
Agedge_t * protoedge(Agraph_t *g)
Definition gv.cpp:344
static SCM _wrap_firstin__SWIG_0(int argc, SCM *argv)
#define SWIGRUNTIMEINLINE
Definition gv_guile.cpp:184
SWIGINTERN int print_member_function_swig(SCM swig_smob, SCM port, scm_print_state *pstate)
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
Definition gv_guile.cpp:494
#define SWIG_MAXCASTRANK
Definition gv_perl.cpp:312
#define SWIG_CastRank(r)
Definition gv_perl.cpp:315
Graphviz context library.
GVIO_API const char * format
Definition gvio.h:51
static gvloadimage_engine_t engine
#define B
Definition hierarchy.c:117
agxbuf * str
Definition htmlparse.c:97
void *(* swig_converter_func)(void *, int *)
Definition runtime.h:360
struct swig_type_info *(* swig_dycast_func)(void **)
Definition runtime.h:361
void reset(sgraph *G)
Definition sgraph.c:29
graph or subgraph
Definition cgraph.h:425
string attribute descriptor symbol in Agattr_s.dict
Definition cgraph.h:639
Definition types.h:48
swig_type_info * type
Definition gv_guile.cpp:372
struct swig_cast_info * prev
Definition gv_guile.cpp:375
struct swig_cast_info * next
Definition gv_guile.cpp:374
swig_converter_func converter
Definition gv_guile.cpp:373
guile_destructor destroy
Definition gv_guile.cpp:811
swig_type_info ** types
Definition gv_guile.cpp:382
swig_cast_info ** cast_initial
Definition gv_guile.cpp:386
swig_type_info ** type_initial
Definition gv_guile.cpp:385
struct swig_module_info * next
Definition gv_guile.cpp:384
swig_dycast_func dcast
Definition gv_guile.cpp:364
void * clientdata
Definition gv_guile.cpp:366
const char * name
Definition gv_guile.cpp:362
const char * str
Definition gv_guile.cpp:363
struct swig_cast_info * cast
Definition gv_guile.cpp:365
static mytime_t T
Definition timing.c:41
Definition grammar.c:93
char * name
Definition grammar.c:98