Graphviz 13.0.0~dev.20241220.2304
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#include <gvc/gvc.h>
1384
1386/*** New empty graph */
1387extern Agraph_t *graph(char *name);
1388extern Agraph_t *digraph(char *name);
1389extern Agraph_t *strictgraph(char *name);
1390extern Agraph_t *strictdigraph(char *name);
1391/*** New graph from a dot-syntax string or file */
1392extern Agraph_t *readstring(char *string);
1393extern Agraph_t *read(const char *filename);
1394extern Agraph_t *read(FILE *f);
1395/*** Add new subgraph to existing graph */
1396extern Agraph_t *graph(Agraph_t *g, char *name);
1397
1399/*** Add new node to existing graph */
1400extern Agnode_t *node(Agraph_t *g, char *name);
1401
1403/*** Add new edge between existing nodes */
1404extern Agedge_t *edge(Agnode_t *t, Agnode_t *h);
1405/*** 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 */
1406extern Agedge_t *edge(Agnode_t *t, char *hname);
1407/*** 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 */
1408extern Agedge_t *edge(char *tname, Agnode_t *h);
1409/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */
1410extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname);
1411
1413/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */
1414extern char *setv(Agraph_t *g, char *attr, char *val);
1415extern char *setv(Agnode_t *n, char *attr, char *val);
1416extern char *setv(Agedge_t *e, char *attr, char *val);
1417
1418/*** Set value of existing attribute of graph/node/edge (using attribute handle) */
1419extern char *setv(Agraph_t *g, Agsym_t *a, char *val);
1420extern char *setv(Agnode_t *n, Agsym_t *a, char *val);
1421extern char *setv(Agedge_t *e, Agsym_t *a, char *val);
1422
1424/*** Get value of named attribute of graph/node/edge */
1425extern char *getv(Agraph_t *g, char *attr);
1426extern char *getv(Agnode_t *n, char *attr);
1427extern char *getv(Agedge_t *e, char *attr);
1428
1429/*** Get value of attribute of graph/node/edge (using attribute handle) */
1430extern char *getv(Agraph_t *g, Agsym_t *a);
1431extern char *getv(Agnode_t *n, Agsym_t *a);
1432extern char *getv(Agedge_t *e, Agsym_t *a);
1433
1435extern char *nameof(Agraph_t *g);
1436extern char *nameof(Agnode_t *n);
1437extern char *nameof(Agsym_t *a);
1438
1440extern Agraph_t *findsubg(Agraph_t *g, char *name);
1441extern Agnode_t *findnode(Agraph_t *g, char *name);
1442extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h);
1443
1445extern Agsym_t *findattr(Agraph_t *g, char *name);
1446extern Agsym_t *findattr(Agnode_t *n, char *name);
1447extern Agsym_t *findattr(Agedge_t *e, char *name);
1448
1450extern Agnode_t *headof(Agedge_t *e);
1451extern Agnode_t *tailof(Agedge_t *e);
1452extern Agraph_t *graphof(Agraph_t *g);
1453extern Agraph_t *graphof(Agedge_t *e);
1454extern Agraph_t *graphof(Agnode_t *n);
1455extern Agraph_t *rootof(Agraph_t *g);
1456
1458extern Agnode_t *protonode(Agraph_t *g);
1459extern Agedge_t *protoedge(Agraph_t *g);
1460
1462/*** Iteration termination tests */
1463extern bool ok(Agraph_t *g);
1464extern bool ok(Agnode_t *n);
1465extern bool ok(Agedge_t *e);
1466extern bool ok(Agsym_t *a);
1467
1468/*** Iterate over subgraphs of a graph */
1469extern Agraph_t *firstsubg(Agraph_t *g);
1470extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
1471
1472/*** Iterate over supergraphs of a graph (obscure and rarely useful) */
1473extern Agraph_t *firstsupg(Agraph_t *g);
1474extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
1475
1476/*** Iterate over edges of a graph */
1477extern Agedge_t *firstedge(Agraph_t *g);
1478extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e);
1479
1480/*** Iterate over outedges of a graph */
1481extern Agedge_t *firstout(Agraph_t *g);
1482extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
1483
1484/*** Iterate over edges of a node */
1485extern Agedge_t *firstedge(Agnode_t *n);
1486extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e);
1487
1488/*** Iterate over out-edges of a node */
1489extern Agedge_t *firstout(Agnode_t *n);
1490extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
1491
1492/*** Iterate over head nodes reachable from out-edges of a node */
1493extern Agnode_t *firsthead(Agnode_t *n);
1494extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h);
1495
1496/*** Iterate over in-edges of a graph */
1497extern Agedge_t *firstin(Agraph_t *g);
1498extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
1499
1500/*** Iterate over in-edges of a node */
1501extern Agedge_t *firstin(Agnode_t *n);
1502extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
1503
1504/*** Iterate over tail nodes reachable from in-edges of a node */
1505extern Agnode_t *firsttail(Agnode_t *n);
1506extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t);
1507
1508/*** Iterate over nodes of a graph */
1509extern Agnode_t *firstnode(Agraph_t *g);
1510extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n);
1511
1512/*** Iterate over nodes of an edge */
1513extern Agnode_t *firstnode(Agedge_t *e);
1514extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n);
1515
1516/*** Iterate over attributes of a graph */
1517extern Agsym_t *firstattr(Agraph_t *g);
1518extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a);
1519
1520/*** Iterate over attributes of an edge */
1521extern Agsym_t *firstattr(Agedge_t *e);
1522extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a);
1523
1524/*** Iterate over attributes of a node */
1525extern Agsym_t *firstattr(Agnode_t *n);
1526extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a);
1527
1529extern bool rm(Agraph_t *g);
1530extern bool rm(Agnode_t *n);
1531extern bool rm(Agedge_t *e);
1532
1534/*** Annotate a graph with layout attributes and values using a specific layout engine */
1535extern bool layout(Agraph_t *g, const char *engine);
1536
1538/*** Render a layout into attributes of the graph */
1539extern bool render(Agraph_t *g);
1540/*** Render a layout to stdout */
1541extern bool render(Agraph_t *g, const char *format);
1542/*** Render to an open file */
1543extern bool render(Agraph_t *g, const char *format, FILE *fout);
1544/*** Render a layout to an unopened file by name */
1545extern bool render(Agraph_t *g, const char *format, const char *filename);
1546/*** Render to a string result */
1547#ifdef SWIGJAVA
1548extern char* renderresult(Agraph_t *ing, const char *format);
1549#else
1550extern void renderresult(Agraph_t *g, const char *format, char *outdata);
1551/*** Render to an open channel */
1552extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname);
1553#endif
1554/*** Render a layout to a malloc'ed string, to be free'd by the caller */
1555/*** (deprecated - too easy to leak memory) */
1556/*** (still needed for "eval [gv::renderdata $G tk]" ) */
1557extern char* renderdata(Agraph_t *g, const char *format);
1558
1559/*** Writing graph back to file */
1560extern bool write(Agraph_t *g, const char *filename);
1561extern bool write(Agraph_t *g, FILE *f);
1562
1563/*** Graph transformation tools */
1564extern bool tred(Agraph_t *g);
1565
1566
1567static SCM
1568_wrap_graph__SWIG_0 (int argc, SCM *argv)
1569{
1570#define FUNC_NAME "graph"
1571 char *arg1 = (char *) 0 ;
1572 int must_free1 = 0 ;
1573 SCM gswig_result;
1574 SWIGUNUSED int gswig_list_p = 0;
1575 Agraph_t *result = 0 ;
1576
1577 {
1578 arg1 = (char *)SWIG_scm2str(argv[0]);
1579 must_free1 = 1;
1580 }
1581 result = (Agraph_t *)graph(arg1);
1582 {
1583 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1584 }
1585 if (must_free1) SWIG_free(arg1);
1586
1587 return gswig_result;
1588#undef FUNC_NAME
1589}
1590
1591
1592static SCM
1594{
1595#define FUNC_NAME "digraph"
1596 char *arg1 = (char *) 0 ;
1597 int must_free1 = 0 ;
1598 SCM gswig_result;
1599 SWIGUNUSED int gswig_list_p = 0;
1600 Agraph_t *result = 0 ;
1601
1602 {
1603 arg1 = (char *)SWIG_scm2str(s_0);
1604 must_free1 = 1;
1605 }
1606 result = (Agraph_t *)digraph(arg1);
1607 {
1608 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1609 }
1610 if (must_free1) SWIG_free(arg1);
1611
1612 return gswig_result;
1613#undef FUNC_NAME
1614}
1615
1616
1617static SCM
1619{
1620#define FUNC_NAME "strictgraph"
1621 char *arg1 = (char *) 0 ;
1622 int must_free1 = 0 ;
1623 SCM gswig_result;
1624 SWIGUNUSED int gswig_list_p = 0;
1625 Agraph_t *result = 0 ;
1626
1627 {
1628 arg1 = (char *)SWIG_scm2str(s_0);
1629 must_free1 = 1;
1630 }
1631 result = (Agraph_t *)strictgraph(arg1);
1632 {
1633 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1634 }
1635 if (must_free1) SWIG_free(arg1);
1636
1637 return gswig_result;
1638#undef FUNC_NAME
1639}
1640
1641
1642static SCM
1644{
1645#define FUNC_NAME "strictdigraph"
1646 char *arg1 = (char *) 0 ;
1647 int must_free1 = 0 ;
1648 SCM gswig_result;
1649 SWIGUNUSED int gswig_list_p = 0;
1650 Agraph_t *result = 0 ;
1651
1652 {
1653 arg1 = (char *)SWIG_scm2str(s_0);
1654 must_free1 = 1;
1655 }
1656 result = (Agraph_t *)strictdigraph(arg1);
1657 {
1658 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1659 }
1660 if (must_free1) SWIG_free(arg1);
1661
1662 return gswig_result;
1663#undef FUNC_NAME
1664}
1665
1666
1667static SCM
1669{
1670#define FUNC_NAME "readstring"
1671 char *arg1 = (char *) 0 ;
1672 int must_free1 = 0 ;
1673 SCM gswig_result;
1674 SWIGUNUSED int gswig_list_p = 0;
1675 Agraph_t *result = 0 ;
1676
1677 {
1678 arg1 = (char *)SWIG_scm2str(s_0);
1679 must_free1 = 1;
1680 }
1681 result = (Agraph_t *)readstring(arg1);
1682 {
1683 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1684 }
1685 if (must_free1) SWIG_free(arg1);
1686
1687 return gswig_result;
1688#undef FUNC_NAME
1689}
1690
1691
1692static SCM
1693_wrap_read__SWIG_0 (int argc, SCM *argv)
1694{
1695#define FUNC_NAME "read"
1696 char *arg1 = (char *) 0 ;
1697 int must_free1 = 0 ;
1698 SCM gswig_result;
1699 SWIGUNUSED int gswig_list_p = 0;
1700 Agraph_t *result = 0 ;
1701
1702 {
1703 arg1 = (char *)SWIG_scm2str(argv[0]);
1704 must_free1 = 1;
1705 }
1706 result = (Agraph_t *)read((char const *)arg1);
1707 {
1708 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1709 }
1710 if (must_free1) SWIG_free(arg1);
1711
1712 return gswig_result;
1713#undef FUNC_NAME
1714}
1715
1716
1717static SCM
1718_wrap_read__SWIG_1 (int argc, SCM *argv)
1719{
1720#define FUNC_NAME "read"
1721 FILE *arg1 = (FILE *) 0 ;
1722 SCM gswig_result;
1723 SWIGUNUSED int gswig_list_p = 0;
1724 Agraph_t *result = 0 ;
1725
1726 {
1727 arg1 = (FILE *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_FILE, 1, 0);
1728 }
1729 result = (Agraph_t *)read(arg1);
1730 {
1731 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1732 }
1733
1734
1735 return gswig_result;
1736#undef FUNC_NAME
1737}
1738
1739
1740static SCM
1741_wrap_read(SCM rest)
1742{
1743#define FUNC_NAME "read"
1744 SCM argv[1];
1745 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "read");
1746 if (argc == 1) {
1747 int _v = 0;
1748 {
1749 void *ptr;
1750 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_FILE, 0);
1751 _v = SWIG_CheckState(res);
1752 }
1753 if (_v) {
1754 return _wrap_read__SWIG_1(argc,argv);
1755 }
1756 }
1757 if (argc == 1) {
1758 int _v = 0;
1759 {
1760 _v = scm_is_string(argv[0]) ? 1 : 0;
1761 }
1762 if (_v) {
1763 return _wrap_read__SWIG_0(argc,argv);
1764 }
1765 }
1766
1767 scm_misc_error("read", "No matching method for generic function `read'", SCM_EOL);
1768#undef FUNC_NAME
1769}
1770
1771
1772static SCM
1773_wrap_graph__SWIG_1 (int argc, SCM *argv)
1774{
1775#define FUNC_NAME "graph"
1776 Agraph_t *arg1 = (Agraph_t *) 0 ;
1777 char *arg2 = (char *) 0 ;
1778 int must_free2 = 0 ;
1779 SCM gswig_result;
1780 SWIGUNUSED int gswig_list_p = 0;
1781 Agraph_t *result = 0 ;
1782
1783 {
1784 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
1785 }
1786 {
1787 arg2 = (char *)SWIG_scm2str(argv[1]);
1788 must_free2 = 1;
1789 }
1790 result = (Agraph_t *)graph(arg1,arg2);
1791 {
1792 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
1793 }
1794
1795 if (must_free2) SWIG_free(arg2);
1796
1797 return gswig_result;
1798#undef FUNC_NAME
1799}
1800
1801
1802static SCM
1804{
1805#define FUNC_NAME "graph"
1806 SCM argv[2];
1807 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "graph");
1808 if (argc == 1) {
1809 int _v = 0;
1810 {
1811 _v = scm_is_string(argv[0]) ? 1 : 0;
1812 }
1813 if (_v) {
1814 return _wrap_graph__SWIG_0(argc,argv);
1815 }
1816 }
1817 if (argc == 2) {
1818 int _v = 0;
1819 {
1820 void *ptr;
1821 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
1822 _v = SWIG_CheckState(res);
1823 }
1824 if (_v) {
1825 {
1826 _v = scm_is_string(argv[1]) ? 1 : 0;
1827 }
1828 if (_v) {
1829 return _wrap_graph__SWIG_1(argc,argv);
1830 }
1831 }
1832 }
1833
1834 scm_misc_error("graph", "No matching method for generic function `graph'", SCM_EOL);
1835#undef FUNC_NAME
1836}
1837
1838
1839static SCM
1840_wrap_node (SCM s_0, SCM s_1)
1841{
1842#define FUNC_NAME "node"
1843 Agraph_t *arg1 = (Agraph_t *) 0 ;
1844 char *arg2 = (char *) 0 ;
1845 int must_free2 = 0 ;
1846 SCM gswig_result;
1847 SWIGUNUSED int gswig_list_p = 0;
1848 Agnode_t *result = 0 ;
1849
1850 {
1851 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
1852 }
1853 {
1854 arg2 = (char *)SWIG_scm2str(s_1);
1855 must_free2 = 1;
1856 }
1857 result = (Agnode_t *)node(arg1,arg2);
1858 {
1859 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
1860 }
1861
1862 if (must_free2) SWIG_free(arg2);
1863
1864 return gswig_result;
1865#undef FUNC_NAME
1866}
1867
1868
1869static SCM
1870_wrap_edge__SWIG_0 (int argc, SCM *argv)
1871{
1872#define FUNC_NAME "edge"
1873 Agnode_t *arg1 = (Agnode_t *) 0 ;
1874 Agnode_t *arg2 = (Agnode_t *) 0 ;
1875 SCM gswig_result;
1876 SWIGUNUSED int gswig_list_p = 0;
1877 Agedge_t *result = 0 ;
1878
1879 {
1880 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
1881 }
1882 {
1883 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
1884 }
1885 result = (Agedge_t *)edge(arg1,arg2);
1886 {
1887 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1888 }
1889
1890
1891
1892 return gswig_result;
1893#undef FUNC_NAME
1894}
1895
1896
1897static SCM
1898_wrap_edge__SWIG_1 (int argc, SCM *argv)
1899{
1900#define FUNC_NAME "edge"
1901 Agnode_t *arg1 = (Agnode_t *) 0 ;
1902 char *arg2 = (char *) 0 ;
1903 int must_free2 = 0 ;
1904 SCM gswig_result;
1905 SWIGUNUSED int gswig_list_p = 0;
1906 Agedge_t *result = 0 ;
1907
1908 {
1909 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
1910 }
1911 {
1912 arg2 = (char *)SWIG_scm2str(argv[1]);
1913 must_free2 = 1;
1914 }
1915 result = (Agedge_t *)edge(arg1,arg2);
1916 {
1917 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1918 }
1919
1920 if (must_free2) SWIG_free(arg2);
1921
1922 return gswig_result;
1923#undef FUNC_NAME
1924}
1925
1926
1927static SCM
1928_wrap_edge__SWIG_2 (int argc, SCM *argv)
1929{
1930#define FUNC_NAME "edge"
1931 char *arg1 = (char *) 0 ;
1932 Agnode_t *arg2 = (Agnode_t *) 0 ;
1933 int must_free1 = 0 ;
1934 SCM gswig_result;
1935 SWIGUNUSED int gswig_list_p = 0;
1936 Agedge_t *result = 0 ;
1937
1938 {
1939 arg1 = (char *)SWIG_scm2str(argv[0]);
1940 must_free1 = 1;
1941 }
1942 {
1943 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
1944 }
1945 result = (Agedge_t *)edge(arg1,arg2);
1946 {
1947 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1948 }
1949 if (must_free1) SWIG_free(arg1);
1950
1951
1952 return gswig_result;
1953#undef FUNC_NAME
1954}
1955
1956
1957static SCM
1958_wrap_edge__SWIG_3 (int argc, SCM *argv)
1959{
1960#define FUNC_NAME "edge"
1961 Agraph_t *arg1 = (Agraph_t *) 0 ;
1962 char *arg2 = (char *) 0 ;
1963 char *arg3 = (char *) 0 ;
1964 int must_free2 = 0 ;
1965 int must_free3 = 0 ;
1966 SCM gswig_result;
1967 SWIGUNUSED int gswig_list_p = 0;
1968 Agedge_t *result = 0 ;
1969
1970 {
1971 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
1972 }
1973 {
1974 arg2 = (char *)SWIG_scm2str(argv[1]);
1975 must_free2 = 1;
1976 }
1977 {
1978 arg3 = (char *)SWIG_scm2str(argv[2]);
1979 must_free3 = 1;
1980 }
1981 result = (Agedge_t *)edge(arg1,arg2,arg3);
1982 {
1983 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
1984 }
1985
1986 if (must_free2) SWIG_free(arg2);
1987 if (must_free3) SWIG_free(arg3);
1988
1989 return gswig_result;
1990#undef FUNC_NAME
1991}
1992
1993
1994static SCM
1995_wrap_edge(SCM rest)
1996{
1997#define FUNC_NAME "edge"
1998 SCM argv[3];
1999 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 3, "edge");
2000 if (argc == 2) {
2001 int _v = 0;
2002 {
2003 void *ptr;
2004 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2005 _v = SWIG_CheckState(res);
2006 }
2007 if (_v) {
2008 {
2009 void *ptr;
2010 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
2011 _v = SWIG_CheckState(res);
2012 }
2013 if (_v) {
2014 return _wrap_edge__SWIG_0(argc,argv);
2015 }
2016 }
2017 }
2018 if (argc == 2) {
2019 int _v = 0;
2020 {
2021 void *ptr;
2022 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2023 _v = SWIG_CheckState(res);
2024 }
2025 if (_v) {
2026 {
2027 _v = scm_is_string(argv[1]) ? 1 : 0;
2028 }
2029 if (_v) {
2030 return _wrap_edge__SWIG_1(argc,argv);
2031 }
2032 }
2033 }
2034 if (argc == 2) {
2035 int _v = 0;
2036 {
2037 _v = scm_is_string(argv[0]) ? 1 : 0;
2038 }
2039 if (_v) {
2040 {
2041 void *ptr;
2042 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
2043 _v = SWIG_CheckState(res);
2044 }
2045 if (_v) {
2046 return _wrap_edge__SWIG_2(argc,argv);
2047 }
2048 }
2049 }
2050 if (argc == 3) {
2051 int _v = 0;
2052 {
2053 void *ptr;
2054 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2055 _v = SWIG_CheckState(res);
2056 }
2057 if (_v) {
2058 {
2059 _v = scm_is_string(argv[1]) ? 1 : 0;
2060 }
2061 if (_v) {
2062 {
2063 _v = scm_is_string(argv[2]) ? 1 : 0;
2064 }
2065 if (_v) {
2066 return _wrap_edge__SWIG_3(argc,argv);
2067 }
2068 }
2069 }
2070 }
2071
2072 scm_misc_error("edge", "No matching method for generic function `edge'", SCM_EOL);
2073#undef FUNC_NAME
2074}
2075
2076
2077static SCM
2078_wrap_setv__SWIG_0 (int argc, SCM *argv)
2079{
2080#define FUNC_NAME "setv"
2081 Agraph_t *arg1 = (Agraph_t *) 0 ;
2082 char *arg2 = (char *) 0 ;
2083 char *arg3 = (char *) 0 ;
2084 int must_free2 = 0 ;
2085 int must_free3 = 0 ;
2086 SCM gswig_result;
2087 SWIGUNUSED int gswig_list_p = 0;
2088 char *result = 0 ;
2089
2090 {
2091 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2092 }
2093 {
2094 arg2 = (char *)SWIG_scm2str(argv[1]);
2095 must_free2 = 1;
2096 }
2097 {
2098 arg3 = (char *)SWIG_scm2str(argv[2]);
2099 must_free3 = 1;
2100 }
2101 result = (char *)setv(arg1,arg2,arg3);
2102 {
2103 gswig_result = SWIG_str02scm((const char *)result);
2104 }
2105
2106 if (must_free2) SWIG_free(arg2);
2107 if (must_free3) SWIG_free(arg3);
2108
2109 return gswig_result;
2110#undef FUNC_NAME
2111}
2112
2113
2114static SCM
2115_wrap_setv__SWIG_1 (int argc, SCM *argv)
2116{
2117#define FUNC_NAME "setv"
2118 Agnode_t *arg1 = (Agnode_t *) 0 ;
2119 char *arg2 = (char *) 0 ;
2120 char *arg3 = (char *) 0 ;
2121 int must_free2 = 0 ;
2122 int must_free3 = 0 ;
2123 SCM gswig_result;
2124 SWIGUNUSED int gswig_list_p = 0;
2125 char *result = 0 ;
2126
2127 {
2128 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2129 }
2130 {
2131 arg2 = (char *)SWIG_scm2str(argv[1]);
2132 must_free2 = 1;
2133 }
2134 {
2135 arg3 = (char *)SWIG_scm2str(argv[2]);
2136 must_free3 = 1;
2137 }
2138 result = (char *)setv(arg1,arg2,arg3);
2139 {
2140 gswig_result = SWIG_str02scm((const char *)result);
2141 }
2142
2143 if (must_free2) SWIG_free(arg2);
2144 if (must_free3) SWIG_free(arg3);
2145
2146 return gswig_result;
2147#undef FUNC_NAME
2148}
2149
2150
2151static SCM
2152_wrap_setv__SWIG_2 (int argc, SCM *argv)
2153{
2154#define FUNC_NAME "setv"
2155 Agedge_t *arg1 = (Agedge_t *) 0 ;
2156 char *arg2 = (char *) 0 ;
2157 char *arg3 = (char *) 0 ;
2158 int must_free2 = 0 ;
2159 int must_free3 = 0 ;
2160 SCM gswig_result;
2161 SWIGUNUSED int gswig_list_p = 0;
2162 char *result = 0 ;
2163
2164 {
2165 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2166 }
2167 {
2168 arg2 = (char *)SWIG_scm2str(argv[1]);
2169 must_free2 = 1;
2170 }
2171 {
2172 arg3 = (char *)SWIG_scm2str(argv[2]);
2173 must_free3 = 1;
2174 }
2175 result = (char *)setv(arg1,arg2,arg3);
2176 {
2177 gswig_result = SWIG_str02scm((const char *)result);
2178 }
2179
2180 if (must_free2) SWIG_free(arg2);
2181 if (must_free3) SWIG_free(arg3);
2182
2183 return gswig_result;
2184#undef FUNC_NAME
2185}
2186
2187
2188static SCM
2189_wrap_setv__SWIG_3 (int argc, SCM *argv)
2190{
2191#define FUNC_NAME "setv"
2192 Agraph_t *arg1 = (Agraph_t *) 0 ;
2193 Agsym_t *arg2 = (Agsym_t *) 0 ;
2194 char *arg3 = (char *) 0 ;
2195 int must_free3 = 0 ;
2196 SCM gswig_result;
2197 SWIGUNUSED int gswig_list_p = 0;
2198 char *result = 0 ;
2199
2200 {
2201 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2202 }
2203 {
2204 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2205 }
2206 {
2207 arg3 = (char *)SWIG_scm2str(argv[2]);
2208 must_free3 = 1;
2209 }
2210 result = (char *)setv(arg1,arg2,arg3);
2211 {
2212 gswig_result = SWIG_str02scm((const char *)result);
2213 }
2214
2215
2216 if (must_free3) SWIG_free(arg3);
2217
2218 return gswig_result;
2219#undef FUNC_NAME
2220}
2221
2222
2223static SCM
2224_wrap_setv__SWIG_4 (int argc, SCM *argv)
2225{
2226#define FUNC_NAME "setv"
2227 Agnode_t *arg1 = (Agnode_t *) 0 ;
2228 Agsym_t *arg2 = (Agsym_t *) 0 ;
2229 char *arg3 = (char *) 0 ;
2230 int must_free3 = 0 ;
2231 SCM gswig_result;
2232 SWIGUNUSED int gswig_list_p = 0;
2233 char *result = 0 ;
2234
2235 {
2236 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2237 }
2238 {
2239 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2240 }
2241 {
2242 arg3 = (char *)SWIG_scm2str(argv[2]);
2243 must_free3 = 1;
2244 }
2245 result = (char *)setv(arg1,arg2,arg3);
2246 {
2247 gswig_result = SWIG_str02scm((const char *)result);
2248 }
2249
2250
2251 if (must_free3) SWIG_free(arg3);
2252
2253 return gswig_result;
2254#undef FUNC_NAME
2255}
2256
2257
2258static SCM
2259_wrap_setv__SWIG_5 (int argc, SCM *argv)
2260{
2261#define FUNC_NAME "setv"
2262 Agedge_t *arg1 = (Agedge_t *) 0 ;
2263 Agsym_t *arg2 = (Agsym_t *) 0 ;
2264 char *arg3 = (char *) 0 ;
2265 int must_free3 = 0 ;
2266 SCM gswig_result;
2267 SWIGUNUSED int gswig_list_p = 0;
2268 char *result = 0 ;
2269
2270 {
2271 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2272 }
2273 {
2274 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2275 }
2276 {
2277 arg3 = (char *)SWIG_scm2str(argv[2]);
2278 must_free3 = 1;
2279 }
2280 result = (char *)setv(arg1,arg2,arg3);
2281 {
2282 gswig_result = SWIG_str02scm((const char *)result);
2283 }
2284
2285
2286 if (must_free3) SWIG_free(arg3);
2287
2288 return gswig_result;
2289#undef FUNC_NAME
2290}
2291
2292
2293static SCM
2294_wrap_setv(SCM rest)
2295{
2296#define FUNC_NAME "setv"
2297 SCM argv[3];
2298 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 3, "setv");
2299 if (argc == 3) {
2300 int _v = 0;
2301 {
2302 void *ptr;
2303 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2304 _v = SWIG_CheckState(res);
2305 }
2306 if (_v) {
2307 {
2308 void *ptr;
2309 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2310 _v = SWIG_CheckState(res);
2311 }
2312 if (_v) {
2313 {
2314 _v = scm_is_string(argv[2]) ? 1 : 0;
2315 }
2316 if (_v) {
2317 return _wrap_setv__SWIG_3(argc,argv);
2318 }
2319 }
2320 }
2321 }
2322 if (argc == 3) {
2323 int _v = 0;
2324 {
2325 void *ptr;
2326 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2327 _v = SWIG_CheckState(res);
2328 }
2329 if (_v) {
2330 {
2331 void *ptr;
2332 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2333 _v = SWIG_CheckState(res);
2334 }
2335 if (_v) {
2336 {
2337 _v = scm_is_string(argv[2]) ? 1 : 0;
2338 }
2339 if (_v) {
2340 return _wrap_setv__SWIG_4(argc,argv);
2341 }
2342 }
2343 }
2344 }
2345 if (argc == 3) {
2346 int _v = 0;
2347 {
2348 void *ptr;
2349 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2350 _v = SWIG_CheckState(res);
2351 }
2352 if (_v) {
2353 {
2354 void *ptr;
2355 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2356 _v = SWIG_CheckState(res);
2357 }
2358 if (_v) {
2359 {
2360 _v = scm_is_string(argv[2]) ? 1 : 0;
2361 }
2362 if (_v) {
2363 return _wrap_setv__SWIG_5(argc,argv);
2364 }
2365 }
2366 }
2367 }
2368 if (argc == 3) {
2369 int _v = 0;
2370 {
2371 void *ptr;
2372 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2373 _v = SWIG_CheckState(res);
2374 }
2375 if (_v) {
2376 {
2377 _v = scm_is_string(argv[1]) ? 1 : 0;
2378 }
2379 if (_v) {
2380 {
2381 _v = scm_is_string(argv[2]) ? 1 : 0;
2382 }
2383 if (_v) {
2384 return _wrap_setv__SWIG_0(argc,argv);
2385 }
2386 }
2387 }
2388 }
2389 if (argc == 3) {
2390 int _v = 0;
2391 {
2392 void *ptr;
2393 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2394 _v = SWIG_CheckState(res);
2395 }
2396 if (_v) {
2397 {
2398 _v = scm_is_string(argv[1]) ? 1 : 0;
2399 }
2400 if (_v) {
2401 {
2402 _v = scm_is_string(argv[2]) ? 1 : 0;
2403 }
2404 if (_v) {
2405 return _wrap_setv__SWIG_1(argc,argv);
2406 }
2407 }
2408 }
2409 }
2410 if (argc == 3) {
2411 int _v = 0;
2412 {
2413 void *ptr;
2414 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2415 _v = SWIG_CheckState(res);
2416 }
2417 if (_v) {
2418 {
2419 _v = scm_is_string(argv[1]) ? 1 : 0;
2420 }
2421 if (_v) {
2422 {
2423 _v = scm_is_string(argv[2]) ? 1 : 0;
2424 }
2425 if (_v) {
2426 return _wrap_setv__SWIG_2(argc,argv);
2427 }
2428 }
2429 }
2430 }
2431
2432 scm_misc_error("setv", "No matching method for generic function `setv'", SCM_EOL);
2433#undef FUNC_NAME
2434}
2435
2436
2437static SCM
2438_wrap_getv__SWIG_0 (int argc, SCM *argv)
2439{
2440#define FUNC_NAME "getv"
2441 Agraph_t *arg1 = (Agraph_t *) 0 ;
2442 char *arg2 = (char *) 0 ;
2443 int must_free2 = 0 ;
2444 SCM gswig_result;
2445 SWIGUNUSED int gswig_list_p = 0;
2446 char *result = 0 ;
2447
2448 {
2449 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2450 }
2451 {
2452 arg2 = (char *)SWIG_scm2str(argv[1]);
2453 must_free2 = 1;
2454 }
2455 result = (char *)getv(arg1,arg2);
2456 {
2457 gswig_result = SWIG_str02scm((const char *)result);
2458 }
2459
2460 if (must_free2) SWIG_free(arg2);
2461
2462 return gswig_result;
2463#undef FUNC_NAME
2464}
2465
2466
2467static SCM
2468_wrap_getv__SWIG_1 (int argc, SCM *argv)
2469{
2470#define FUNC_NAME "getv"
2471 Agnode_t *arg1 = (Agnode_t *) 0 ;
2472 char *arg2 = (char *) 0 ;
2473 int must_free2 = 0 ;
2474 SCM gswig_result;
2475 SWIGUNUSED int gswig_list_p = 0;
2476 char *result = 0 ;
2477
2478 {
2479 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2480 }
2481 {
2482 arg2 = (char *)SWIG_scm2str(argv[1]);
2483 must_free2 = 1;
2484 }
2485 result = (char *)getv(arg1,arg2);
2486 {
2487 gswig_result = SWIG_str02scm((const char *)result);
2488 }
2489
2490 if (must_free2) SWIG_free(arg2);
2491
2492 return gswig_result;
2493#undef FUNC_NAME
2494}
2495
2496
2497static SCM
2498_wrap_getv__SWIG_2 (int argc, SCM *argv)
2499{
2500#define FUNC_NAME "getv"
2501 Agedge_t *arg1 = (Agedge_t *) 0 ;
2502 char *arg2 = (char *) 0 ;
2503 int must_free2 = 0 ;
2504 SCM gswig_result;
2505 SWIGUNUSED int gswig_list_p = 0;
2506 char *result = 0 ;
2507
2508 {
2509 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2510 }
2511 {
2512 arg2 = (char *)SWIG_scm2str(argv[1]);
2513 must_free2 = 1;
2514 }
2515 result = (char *)getv(arg1,arg2);
2516 {
2517 gswig_result = SWIG_str02scm((const char *)result);
2518 }
2519
2520 if (must_free2) SWIG_free(arg2);
2521
2522 return gswig_result;
2523#undef FUNC_NAME
2524}
2525
2526
2527static SCM
2528_wrap_getv__SWIG_3 (int argc, SCM *argv)
2529{
2530#define FUNC_NAME "getv"
2531 Agraph_t *arg1 = (Agraph_t *) 0 ;
2532 Agsym_t *arg2 = (Agsym_t *) 0 ;
2533 SCM gswig_result;
2534 SWIGUNUSED int gswig_list_p = 0;
2535 char *result = 0 ;
2536
2537 {
2538 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2539 }
2540 {
2541 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2542 }
2543 result = (char *)getv(arg1,arg2);
2544 {
2545 gswig_result = SWIG_str02scm((const char *)result);
2546 }
2547
2548
2549
2550 return gswig_result;
2551#undef FUNC_NAME
2552}
2553
2554
2555static SCM
2556_wrap_getv__SWIG_4 (int argc, SCM *argv)
2557{
2558#define FUNC_NAME "getv"
2559 Agnode_t *arg1 = (Agnode_t *) 0 ;
2560 Agsym_t *arg2 = (Agsym_t *) 0 ;
2561 SCM gswig_result;
2562 SWIGUNUSED int gswig_list_p = 0;
2563 char *result = 0 ;
2564
2565 {
2566 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2567 }
2568 {
2569 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2570 }
2571 result = (char *)getv(arg1,arg2);
2572 {
2573 gswig_result = SWIG_str02scm((const char *)result);
2574 }
2575
2576
2577
2578 return gswig_result;
2579#undef FUNC_NAME
2580}
2581
2582
2583static SCM
2584_wrap_getv__SWIG_5 (int argc, SCM *argv)
2585{
2586#define FUNC_NAME "getv"
2587 Agedge_t *arg1 = (Agedge_t *) 0 ;
2588 Agsym_t *arg2 = (Agsym_t *) 0 ;
2589 SCM gswig_result;
2590 SWIGUNUSED int gswig_list_p = 0;
2591 char *result = 0 ;
2592
2593 {
2594 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
2595 }
2596 {
2597 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
2598 }
2599 result = (char *)getv(arg1,arg2);
2600 {
2601 gswig_result = SWIG_str02scm((const char *)result);
2602 }
2603
2604
2605
2606 return gswig_result;
2607#undef FUNC_NAME
2608}
2609
2610
2611static SCM
2612_wrap_getv(SCM rest)
2613{
2614#define FUNC_NAME "getv"
2615 SCM argv[2];
2616 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "getv");
2617 if (argc == 2) {
2618 int _v = 0;
2619 {
2620 void *ptr;
2621 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2622 _v = SWIG_CheckState(res);
2623 }
2624 if (_v) {
2625 {
2626 void *ptr;
2627 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2628 _v = SWIG_CheckState(res);
2629 }
2630 if (_v) {
2631 return _wrap_getv__SWIG_3(argc,argv);
2632 }
2633 }
2634 }
2635 if (argc == 2) {
2636 int _v = 0;
2637 {
2638 void *ptr;
2639 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2640 _v = SWIG_CheckState(res);
2641 }
2642 if (_v) {
2643 {
2644 void *ptr;
2645 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2646 _v = SWIG_CheckState(res);
2647 }
2648 if (_v) {
2649 return _wrap_getv__SWIG_4(argc,argv);
2650 }
2651 }
2652 }
2653 if (argc == 2) {
2654 int _v = 0;
2655 {
2656 void *ptr;
2657 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2658 _v = SWIG_CheckState(res);
2659 }
2660 if (_v) {
2661 {
2662 void *ptr;
2663 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
2664 _v = SWIG_CheckState(res);
2665 }
2666 if (_v) {
2667 return _wrap_getv__SWIG_5(argc,argv);
2668 }
2669 }
2670 }
2671 if (argc == 2) {
2672 int _v = 0;
2673 {
2674 void *ptr;
2675 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2676 _v = SWIG_CheckState(res);
2677 }
2678 if (_v) {
2679 {
2680 _v = scm_is_string(argv[1]) ? 1 : 0;
2681 }
2682 if (_v) {
2683 return _wrap_getv__SWIG_0(argc,argv);
2684 }
2685 }
2686 }
2687 if (argc == 2) {
2688 int _v = 0;
2689 {
2690 void *ptr;
2691 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2692 _v = SWIG_CheckState(res);
2693 }
2694 if (_v) {
2695 {
2696 _v = scm_is_string(argv[1]) ? 1 : 0;
2697 }
2698 if (_v) {
2699 return _wrap_getv__SWIG_1(argc,argv);
2700 }
2701 }
2702 }
2703 if (argc == 2) {
2704 int _v = 0;
2705 {
2706 void *ptr;
2707 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
2708 _v = SWIG_CheckState(res);
2709 }
2710 if (_v) {
2711 {
2712 _v = scm_is_string(argv[1]) ? 1 : 0;
2713 }
2714 if (_v) {
2715 return _wrap_getv__SWIG_2(argc,argv);
2716 }
2717 }
2718 }
2719
2720 scm_misc_error("getv", "No matching method for generic function `getv'", SCM_EOL);
2721#undef FUNC_NAME
2722}
2723
2724
2725static SCM
2726_wrap_nameof__SWIG_0 (int argc, SCM *argv)
2727{
2728#define FUNC_NAME "nameof"
2729 Agraph_t *arg1 = (Agraph_t *) 0 ;
2730 SCM gswig_result;
2731 SWIGUNUSED int gswig_list_p = 0;
2732 char *result = 0 ;
2733
2734 {
2735 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2736 }
2737 result = (char *)nameof(arg1);
2738 {
2739 gswig_result = SWIG_str02scm((const char *)result);
2740 }
2741
2742
2743 return gswig_result;
2744#undef FUNC_NAME
2745}
2746
2747
2748static SCM
2749_wrap_nameof__SWIG_1 (int argc, SCM *argv)
2750{
2751#define FUNC_NAME "nameof"
2752 Agnode_t *arg1 = (Agnode_t *) 0 ;
2753 SCM gswig_result;
2754 SWIGUNUSED int gswig_list_p = 0;
2755 char *result = 0 ;
2756
2757 {
2758 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2759 }
2760 result = (char *)nameof(arg1);
2761 {
2762 gswig_result = SWIG_str02scm((const char *)result);
2763 }
2764
2765
2766 return gswig_result;
2767#undef FUNC_NAME
2768}
2769
2770
2771static SCM
2772_wrap_nameof__SWIG_2 (int argc, SCM *argv)
2773{
2774#define FUNC_NAME "nameof"
2775 Agsym_t *arg1 = (Agsym_t *) 0 ;
2776 SCM gswig_result;
2777 SWIGUNUSED int gswig_list_p = 0;
2778 char *result = 0 ;
2779
2780 {
2781 arg1 = (Agsym_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agsym_t, 1, 0);
2782 }
2783 result = (char *)nameof(arg1);
2784 {
2785 gswig_result = SWIG_str02scm((const char *)result);
2786 }
2787
2788
2789 return gswig_result;
2790#undef FUNC_NAME
2791}
2792
2793
2794static SCM
2796{
2797#define FUNC_NAME "nameof"
2798 SCM argv[1];
2799 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "nameof");
2800 if (argc == 1) {
2801 int _v = 0;
2802 {
2803 void *ptr;
2804 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
2805 _v = SWIG_CheckState(res);
2806 }
2807 if (_v) {
2808 return _wrap_nameof__SWIG_0(argc,argv);
2809 }
2810 }
2811 if (argc == 1) {
2812 int _v = 0;
2813 {
2814 void *ptr;
2815 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
2816 _v = SWIG_CheckState(res);
2817 }
2818 if (_v) {
2819 return _wrap_nameof__SWIG_1(argc,argv);
2820 }
2821 }
2822 if (argc == 1) {
2823 int _v = 0;
2824 {
2825 void *ptr;
2826 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agsym_t, 0);
2827 _v = SWIG_CheckState(res);
2828 }
2829 if (_v) {
2830 return _wrap_nameof__SWIG_2(argc,argv);
2831 }
2832 }
2833
2834 scm_misc_error("nameof", "No matching method for generic function `nameof'", SCM_EOL);
2835#undef FUNC_NAME
2836}
2837
2838
2839static SCM
2840_wrap_findsubg (SCM s_0, SCM s_1)
2841{
2842#define FUNC_NAME "findsubg"
2843 Agraph_t *arg1 = (Agraph_t *) 0 ;
2844 char *arg2 = (char *) 0 ;
2845 int must_free2 = 0 ;
2846 SCM gswig_result;
2847 SWIGUNUSED int gswig_list_p = 0;
2848 Agraph_t *result = 0 ;
2849
2850 {
2851 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
2852 }
2853 {
2854 arg2 = (char *)SWIG_scm2str(s_1);
2855 must_free2 = 1;
2856 }
2857 result = (Agraph_t *)findsubg(arg1,arg2);
2858 {
2859 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
2860 }
2861
2862 if (must_free2) SWIG_free(arg2);
2863
2864 return gswig_result;
2865#undef FUNC_NAME
2866}
2867
2868
2869static SCM
2870_wrap_findnode (SCM s_0, SCM s_1)
2871{
2872#define FUNC_NAME "findnode"
2873 Agraph_t *arg1 = (Agraph_t *) 0 ;
2874 char *arg2 = (char *) 0 ;
2875 int must_free2 = 0 ;
2876 SCM gswig_result;
2877 SWIGUNUSED int gswig_list_p = 0;
2878 Agnode_t *result = 0 ;
2879
2880 {
2881 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
2882 }
2883 {
2884 arg2 = (char *)SWIG_scm2str(s_1);
2885 must_free2 = 1;
2886 }
2887 result = (Agnode_t *)findnode(arg1,arg2);
2888 {
2889 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
2890 }
2891
2892 if (must_free2) SWIG_free(arg2);
2893
2894 return gswig_result;
2895#undef FUNC_NAME
2896}
2897
2898
2899static SCM
2900_wrap_findedge (SCM s_0, SCM s_1)
2901{
2902#define FUNC_NAME "findedge"
2903 Agnode_t *arg1 = (Agnode_t *) 0 ;
2904 Agnode_t *arg2 = (Agnode_t *) 0 ;
2905 SCM gswig_result;
2906 SWIGUNUSED int gswig_list_p = 0;
2907 Agedge_t *result = 0 ;
2908
2909 {
2910 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
2911 }
2912 {
2913 arg2 = (Agnode_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agnode_t, 2, 0);
2914 }
2915 result = (Agedge_t *)findedge(arg1,arg2);
2916 {
2917 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
2918 }
2919
2920
2921
2922 return gswig_result;
2923#undef FUNC_NAME
2924}
2925
2926
2927static SCM
2928_wrap_findattr__SWIG_0 (int argc, SCM *argv)
2929{
2930#define FUNC_NAME "findattr"
2931 Agraph_t *arg1 = (Agraph_t *) 0 ;
2932 char *arg2 = (char *) 0 ;
2933 int must_free2 = 0 ;
2934 SCM gswig_result;
2935 SWIGUNUSED int gswig_list_p = 0;
2936 Agsym_t *result = 0 ;
2937
2938 {
2939 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
2940 }
2941 {
2942 arg2 = (char *)SWIG_scm2str(argv[1]);
2943 must_free2 = 1;
2944 }
2945 result = (Agsym_t *)findattr(arg1,arg2);
2946 {
2947 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
2948 }
2949
2950 if (must_free2) SWIG_free(arg2);
2951
2952 return gswig_result;
2953#undef FUNC_NAME
2954}
2955
2956
2957static SCM
2958_wrap_findattr__SWIG_1 (int argc, SCM *argv)
2959{
2960#define FUNC_NAME "findattr"
2961 Agnode_t *arg1 = (Agnode_t *) 0 ;
2962 char *arg2 = (char *) 0 ;
2963 int must_free2 = 0 ;
2964 SCM gswig_result;
2965 SWIGUNUSED int gswig_list_p = 0;
2966 Agsym_t *result = 0 ;
2967
2968 {
2969 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
2970 }
2971 {
2972 arg2 = (char *)SWIG_scm2str(argv[1]);
2973 must_free2 = 1;
2974 }
2975 result = (Agsym_t *)findattr(arg1,arg2);
2976 {
2977 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
2978 }
2979
2980 if (must_free2) SWIG_free(arg2);
2981
2982 return gswig_result;
2983#undef FUNC_NAME
2984}
2985
2986
2987static SCM
2988_wrap_findattr__SWIG_2 (int argc, SCM *argv)
2989{
2990#define FUNC_NAME "findattr"
2991 Agedge_t *arg1 = (Agedge_t *) 0 ;
2992 char *arg2 = (char *) 0 ;
2993 int must_free2 = 0 ;
2994 SCM gswig_result;
2995 SWIGUNUSED int gswig_list_p = 0;
2996 Agsym_t *result = 0 ;
2997
2998 {
2999 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
3000 }
3001 {
3002 arg2 = (char *)SWIG_scm2str(argv[1]);
3003 must_free2 = 1;
3004 }
3005 result = (Agsym_t *)findattr(arg1,arg2);
3006 {
3007 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
3008 }
3009
3010 if (must_free2) SWIG_free(arg2);
3011
3012 return gswig_result;
3013#undef FUNC_NAME
3014}
3015
3016
3017static SCM
3019{
3020#define FUNC_NAME "findattr"
3021 SCM argv[2];
3022 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "findattr");
3023 if (argc == 2) {
3024 int _v = 0;
3025 {
3026 void *ptr;
3027 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3028 _v = SWIG_CheckState(res);
3029 }
3030 if (_v) {
3031 {
3032 _v = scm_is_string(argv[1]) ? 1 : 0;
3033 }
3034 if (_v) {
3035 return _wrap_findattr__SWIG_0(argc,argv);
3036 }
3037 }
3038 }
3039 if (argc == 2) {
3040 int _v = 0;
3041 {
3042 void *ptr;
3043 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3044 _v = SWIG_CheckState(res);
3045 }
3046 if (_v) {
3047 {
3048 _v = scm_is_string(argv[1]) ? 1 : 0;
3049 }
3050 if (_v) {
3051 return _wrap_findattr__SWIG_1(argc,argv);
3052 }
3053 }
3054 }
3055 if (argc == 2) {
3056 int _v = 0;
3057 {
3058 void *ptr;
3059 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
3060 _v = SWIG_CheckState(res);
3061 }
3062 if (_v) {
3063 {
3064 _v = scm_is_string(argv[1]) ? 1 : 0;
3065 }
3066 if (_v) {
3067 return _wrap_findattr__SWIG_2(argc,argv);
3068 }
3069 }
3070 }
3071
3072 scm_misc_error("findattr", "No matching method for generic function `findattr'", SCM_EOL);
3073#undef FUNC_NAME
3074}
3075
3076
3077static SCM
3079{
3080#define FUNC_NAME "headof"
3081 Agedge_t *arg1 = (Agedge_t *) 0 ;
3082 SCM gswig_result;
3083 SWIGUNUSED int gswig_list_p = 0;
3084 Agnode_t *result = 0 ;
3085
3086 {
3087 arg1 = (Agedge_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agedge_t, 1, 0);
3088 }
3089 result = (Agnode_t *)headof(arg1);
3090 {
3091 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3092 }
3093
3094
3095 return gswig_result;
3096#undef FUNC_NAME
3097}
3098
3099
3100static SCM
3102{
3103#define FUNC_NAME "tailof"
3104 Agedge_t *arg1 = (Agedge_t *) 0 ;
3105 SCM gswig_result;
3106 SWIGUNUSED int gswig_list_p = 0;
3107 Agnode_t *result = 0 ;
3108
3109 {
3110 arg1 = (Agedge_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agedge_t, 1, 0);
3111 }
3112 result = (Agnode_t *)tailof(arg1);
3113 {
3114 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3115 }
3116
3117
3118 return gswig_result;
3119#undef FUNC_NAME
3120}
3121
3122
3123static SCM
3124_wrap_graphof__SWIG_0 (int argc, SCM *argv)
3125{
3126#define FUNC_NAME "graphof"
3127 Agraph_t *arg1 = (Agraph_t *) 0 ;
3128 SCM gswig_result;
3129 SWIGUNUSED int gswig_list_p = 0;
3130 Agraph_t *result = 0 ;
3131
3132 {
3133 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3134 }
3135 result = (Agraph_t *)graphof(arg1);
3136 {
3137 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3138 }
3139
3140
3141 return gswig_result;
3142#undef FUNC_NAME
3143}
3144
3145
3146static SCM
3147_wrap_graphof__SWIG_1 (int argc, SCM *argv)
3148{
3149#define FUNC_NAME "graphof"
3150 Agedge_t *arg1 = (Agedge_t *) 0 ;
3151 SCM gswig_result;
3152 SWIGUNUSED int gswig_list_p = 0;
3153 Agraph_t *result = 0 ;
3154
3155 {
3156 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
3157 }
3158 result = (Agraph_t *)graphof(arg1);
3159 {
3160 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3161 }
3162
3163
3164 return gswig_result;
3165#undef FUNC_NAME
3166}
3167
3168
3169static SCM
3170_wrap_graphof__SWIG_2 (int argc, SCM *argv)
3171{
3172#define FUNC_NAME "graphof"
3173 Agnode_t *arg1 = (Agnode_t *) 0 ;
3174 SCM gswig_result;
3175 SWIGUNUSED int gswig_list_p = 0;
3176 Agraph_t *result = 0 ;
3177
3178 {
3179 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3180 }
3181 result = (Agraph_t *)graphof(arg1);
3182 {
3183 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3184 }
3185
3186
3187 return gswig_result;
3188#undef FUNC_NAME
3189}
3190
3191
3192static SCM
3194{
3195#define FUNC_NAME "graphof"
3196 SCM argv[1];
3197 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "graphof");
3198 if (argc == 1) {
3199 int _v = 0;
3200 {
3201 void *ptr;
3202 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3203 _v = SWIG_CheckState(res);
3204 }
3205 if (_v) {
3206 return _wrap_graphof__SWIG_0(argc,argv);
3207 }
3208 }
3209 if (argc == 1) {
3210 int _v = 0;
3211 {
3212 void *ptr;
3213 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
3214 _v = SWIG_CheckState(res);
3215 }
3216 if (_v) {
3217 return _wrap_graphof__SWIG_1(argc,argv);
3218 }
3219 }
3220 if (argc == 1) {
3221 int _v = 0;
3222 {
3223 void *ptr;
3224 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3225 _v = SWIG_CheckState(res);
3226 }
3227 if (_v) {
3228 return _wrap_graphof__SWIG_2(argc,argv);
3229 }
3230 }
3231
3232 scm_misc_error("graphof", "No matching method for generic function `graphof'", SCM_EOL);
3233#undef FUNC_NAME
3234}
3235
3236
3237static SCM
3239{
3240#define FUNC_NAME "rootof"
3241 Agraph_t *arg1 = (Agraph_t *) 0 ;
3242 SCM gswig_result;
3243 SWIGUNUSED int gswig_list_p = 0;
3244 Agraph_t *result = 0 ;
3245
3246 {
3247 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3248 }
3249 result = (Agraph_t *)rootof(arg1);
3250 {
3251 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3252 }
3253
3254
3255 return gswig_result;
3256#undef FUNC_NAME
3257}
3258
3259
3260static SCM
3262{
3263#define FUNC_NAME "protonode"
3264 Agraph_t *arg1 = (Agraph_t *) 0 ;
3265 SCM gswig_result;
3266 SWIGUNUSED int gswig_list_p = 0;
3267 Agnode_t *result = 0 ;
3268
3269 {
3270 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3271 }
3272 result = (Agnode_t *)protonode(arg1);
3273 {
3274 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3275 }
3276
3277
3278 return gswig_result;
3279#undef FUNC_NAME
3280}
3281
3282
3283static SCM
3285{
3286#define FUNC_NAME "protoedge"
3287 Agraph_t *arg1 = (Agraph_t *) 0 ;
3288 SCM gswig_result;
3289 SWIGUNUSED int gswig_list_p = 0;
3290 Agedge_t *result = 0 ;
3291
3292 {
3293 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3294 }
3295 result = (Agedge_t *)protoedge(arg1);
3296 {
3297 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3298 }
3299
3300
3301 return gswig_result;
3302#undef FUNC_NAME
3303}
3304
3305
3306static SCM
3307_wrap_ok__SWIG_0 (int argc, SCM *argv)
3308{
3309#define FUNC_NAME "ok"
3310 Agraph_t *arg1 = (Agraph_t *) 0 ;
3311 SCM gswig_result;
3312 SWIGUNUSED int gswig_list_p = 0;
3313 bool result;
3314
3315 {
3316 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3317 }
3318 result = (bool)ok(arg1);
3319 {
3320 gswig_result = scm_from_bool(result);
3321 }
3322
3323
3324 return gswig_result;
3325#undef FUNC_NAME
3326}
3327
3328
3329static SCM
3330_wrap_ok__SWIG_1 (int argc, SCM *argv)
3331{
3332#define FUNC_NAME "ok"
3333 Agnode_t *arg1 = (Agnode_t *) 0 ;
3334 SCM gswig_result;
3335 SWIGUNUSED int gswig_list_p = 0;
3336 bool result;
3337
3338 {
3339 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3340 }
3341 result = (bool)ok(arg1);
3342 {
3343 gswig_result = scm_from_bool(result);
3344 }
3345
3346
3347 return gswig_result;
3348#undef FUNC_NAME
3349}
3350
3351
3352static SCM
3353_wrap_ok__SWIG_2 (int argc, SCM *argv)
3354{
3355#define FUNC_NAME "ok"
3356 Agedge_t *arg1 = (Agedge_t *) 0 ;
3357 SCM gswig_result;
3358 SWIGUNUSED int gswig_list_p = 0;
3359 bool result;
3360
3361 {
3362 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
3363 }
3364 result = (bool)ok(arg1);
3365 {
3366 gswig_result = scm_from_bool(result);
3367 }
3368
3369
3370 return gswig_result;
3371#undef FUNC_NAME
3372}
3373
3374
3375static SCM
3376_wrap_ok__SWIG_3 (int argc, SCM *argv)
3377{
3378#define FUNC_NAME "ok"
3379 Agsym_t *arg1 = (Agsym_t *) 0 ;
3380 SCM gswig_result;
3381 SWIGUNUSED int gswig_list_p = 0;
3382 bool result;
3383
3384 {
3385 arg1 = (Agsym_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agsym_t, 1, 0);
3386 }
3387 result = (bool)ok(arg1);
3388 {
3389 gswig_result = scm_from_bool(result);
3390 }
3391
3392
3393 return gswig_result;
3394#undef FUNC_NAME
3395}
3396
3397
3398static SCM
3399_wrap_ok(SCM rest)
3400{
3401#define FUNC_NAME "ok"
3402 SCM argv[1];
3403 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "ok");
3404 if (argc == 1) {
3405 int _v = 0;
3406 {
3407 void *ptr;
3408 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3409 _v = SWIG_CheckState(res);
3410 }
3411 if (_v) {
3412 return _wrap_ok__SWIG_0(argc,argv);
3413 }
3414 }
3415 if (argc == 1) {
3416 int _v = 0;
3417 {
3418 void *ptr;
3419 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3420 _v = SWIG_CheckState(res);
3421 }
3422 if (_v) {
3423 return _wrap_ok__SWIG_1(argc,argv);
3424 }
3425 }
3426 if (argc == 1) {
3427 int _v = 0;
3428 {
3429 void *ptr;
3430 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
3431 _v = SWIG_CheckState(res);
3432 }
3433 if (_v) {
3434 return _wrap_ok__SWIG_2(argc,argv);
3435 }
3436 }
3437 if (argc == 1) {
3438 int _v = 0;
3439 {
3440 void *ptr;
3441 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agsym_t, 0);
3442 _v = SWIG_CheckState(res);
3443 }
3444 if (_v) {
3445 return _wrap_ok__SWIG_3(argc,argv);
3446 }
3447 }
3448
3449 scm_misc_error("ok", "No matching method for generic function `ok'", SCM_EOL);
3450#undef FUNC_NAME
3451}
3452
3453
3454static SCM
3456{
3457#define FUNC_NAME "firstsubg"
3458 Agraph_t *arg1 = (Agraph_t *) 0 ;
3459 SCM gswig_result;
3460 SWIGUNUSED int gswig_list_p = 0;
3461 Agraph_t *result = 0 ;
3462
3463 {
3464 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3465 }
3466 result = (Agraph_t *)firstsubg(arg1);
3467 {
3468 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3469 }
3470
3471
3472 return gswig_result;
3473#undef FUNC_NAME
3474}
3475
3476
3477static SCM
3478_wrap_nextsubg (SCM s_0, SCM s_1)
3479{
3480#define FUNC_NAME "nextsubg"
3481 Agraph_t *arg1 = (Agraph_t *) 0 ;
3482 Agraph_t *arg2 = (Agraph_t *) 0 ;
3483 SCM gswig_result;
3484 SWIGUNUSED int gswig_list_p = 0;
3485 Agraph_t *result = 0 ;
3486
3487 {
3488 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3489 }
3490 {
3491 arg2 = (Agraph_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agraph_t, 2, 0);
3492 }
3493 result = (Agraph_t *)nextsubg(arg1,arg2);
3494 {
3495 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3496 }
3497
3498
3499
3500 return gswig_result;
3501#undef FUNC_NAME
3502}
3503
3504
3505static SCM
3507{
3508#define FUNC_NAME "firstsupg"
3509 Agraph_t *arg1 = (Agraph_t *) 0 ;
3510 SCM gswig_result;
3511 SWIGUNUSED int gswig_list_p = 0;
3512 Agraph_t *result = 0 ;
3513
3514 {
3515 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3516 }
3517 result = (Agraph_t *)firstsupg(arg1);
3518 {
3519 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3520 }
3521
3522
3523 return gswig_result;
3524#undef FUNC_NAME
3525}
3526
3527
3528static SCM
3529_wrap_nextsupg (SCM s_0, SCM s_1)
3530{
3531#define FUNC_NAME "nextsupg"
3532 Agraph_t *arg1 = (Agraph_t *) 0 ;
3533 Agraph_t *arg2 = (Agraph_t *) 0 ;
3534 SCM gswig_result;
3535 SWIGUNUSED int gswig_list_p = 0;
3536 Agraph_t *result = 0 ;
3537
3538 {
3539 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
3540 }
3541 {
3542 arg2 = (Agraph_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agraph_t, 2, 0);
3543 }
3544 result = (Agraph_t *)nextsupg(arg1,arg2);
3545 {
3546 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agraph_t, 0);
3547 }
3548
3549
3550
3551 return gswig_result;
3552#undef FUNC_NAME
3553}
3554
3555
3556static SCM
3557_wrap_firstedge__SWIG_0 (int argc, SCM *argv)
3558{
3559#define FUNC_NAME "firstedge"
3560 Agraph_t *arg1 = (Agraph_t *) 0 ;
3561 SCM gswig_result;
3562 SWIGUNUSED int gswig_list_p = 0;
3563 Agedge_t *result = 0 ;
3564
3565 {
3566 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3567 }
3568 result = (Agedge_t *)firstedge(arg1);
3569 {
3570 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3571 }
3572
3573
3574 return gswig_result;
3575#undef FUNC_NAME
3576}
3577
3578
3579static SCM
3580_wrap_nextedge__SWIG_0 (int argc, SCM *argv)
3581{
3582#define FUNC_NAME "nextedge"
3583 Agraph_t *arg1 = (Agraph_t *) 0 ;
3584 Agedge_t *arg2 = (Agedge_t *) 0 ;
3585 SCM gswig_result;
3586 SWIGUNUSED int gswig_list_p = 0;
3587 Agedge_t *result = 0 ;
3588
3589 {
3590 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3591 }
3592 {
3593 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3594 }
3595 result = (Agedge_t *)nextedge(arg1,arg2);
3596 {
3597 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3598 }
3599
3600
3601
3602 return gswig_result;
3603#undef FUNC_NAME
3604}
3605
3606
3607static SCM
3608_wrap_firstout__SWIG_0 (int argc, SCM *argv)
3609{
3610#define FUNC_NAME "firstout"
3611 Agraph_t *arg1 = (Agraph_t *) 0 ;
3612 SCM gswig_result;
3613 SWIGUNUSED int gswig_list_p = 0;
3614 Agedge_t *result = 0 ;
3615
3616 {
3617 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3618 }
3619 result = (Agedge_t *)firstout(arg1);
3620 {
3621 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3622 }
3623
3624
3625 return gswig_result;
3626#undef FUNC_NAME
3627}
3628
3629
3630static SCM
3631_wrap_nextout__SWIG_0 (int argc, SCM *argv)
3632{
3633#define FUNC_NAME "nextout"
3634 Agraph_t *arg1 = (Agraph_t *) 0 ;
3635 Agedge_t *arg2 = (Agedge_t *) 0 ;
3636 SCM gswig_result;
3637 SWIGUNUSED int gswig_list_p = 0;
3638 Agedge_t *result = 0 ;
3639
3640 {
3641 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3642 }
3643 {
3644 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3645 }
3646 result = (Agedge_t *)nextout(arg1,arg2);
3647 {
3648 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3649 }
3650
3651
3652
3653 return gswig_result;
3654#undef FUNC_NAME
3655}
3656
3657
3658static SCM
3659_wrap_firstedge__SWIG_1 (int argc, SCM *argv)
3660{
3661#define FUNC_NAME "firstedge"
3662 Agnode_t *arg1 = (Agnode_t *) 0 ;
3663 SCM gswig_result;
3664 SWIGUNUSED int gswig_list_p = 0;
3665 Agedge_t *result = 0 ;
3666
3667 {
3668 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3669 }
3670 result = (Agedge_t *)firstedge(arg1);
3671 {
3672 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3673 }
3674
3675
3676 return gswig_result;
3677#undef FUNC_NAME
3678}
3679
3680
3681static SCM
3683{
3684#define FUNC_NAME "firstedge"
3685 SCM argv[1];
3686 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstedge");
3687 if (argc == 1) {
3688 int _v = 0;
3689 {
3690 void *ptr;
3691 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3692 _v = SWIG_CheckState(res);
3693 }
3694 if (_v) {
3695 return _wrap_firstedge__SWIG_0(argc,argv);
3696 }
3697 }
3698 if (argc == 1) {
3699 int _v = 0;
3700 {
3701 void *ptr;
3702 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3703 _v = SWIG_CheckState(res);
3704 }
3705 if (_v) {
3706 return _wrap_firstedge__SWIG_1(argc,argv);
3707 }
3708 }
3709
3710 scm_misc_error("firstedge", "No matching method for generic function `firstedge'", SCM_EOL);
3711#undef FUNC_NAME
3712}
3713
3714
3715static SCM
3716_wrap_nextedge__SWIG_1 (int argc, SCM *argv)
3717{
3718#define FUNC_NAME "nextedge"
3719 Agnode_t *arg1 = (Agnode_t *) 0 ;
3720 Agedge_t *arg2 = (Agedge_t *) 0 ;
3721 SCM gswig_result;
3722 SWIGUNUSED int gswig_list_p = 0;
3723 Agedge_t *result = 0 ;
3724
3725 {
3726 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3727 }
3728 {
3729 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3730 }
3731 result = (Agedge_t *)nextedge(arg1,arg2);
3732 {
3733 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3734 }
3735
3736
3737
3738 return gswig_result;
3739#undef FUNC_NAME
3740}
3741
3742
3743static SCM
3745{
3746#define FUNC_NAME "nextedge"
3747 SCM argv[2];
3748 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextedge");
3749 if (argc == 2) {
3750 int _v = 0;
3751 {
3752 void *ptr;
3753 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3754 _v = SWIG_CheckState(res);
3755 }
3756 if (_v) {
3757 {
3758 void *ptr;
3759 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3760 _v = SWIG_CheckState(res);
3761 }
3762 if (_v) {
3763 return _wrap_nextedge__SWIG_0(argc,argv);
3764 }
3765 }
3766 }
3767 if (argc == 2) {
3768 int _v = 0;
3769 {
3770 void *ptr;
3771 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3772 _v = SWIG_CheckState(res);
3773 }
3774 if (_v) {
3775 {
3776 void *ptr;
3777 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3778 _v = SWIG_CheckState(res);
3779 }
3780 if (_v) {
3781 return _wrap_nextedge__SWIG_1(argc,argv);
3782 }
3783 }
3784 }
3785
3786 scm_misc_error("nextedge", "No matching method for generic function `nextedge'", SCM_EOL);
3787#undef FUNC_NAME
3788}
3789
3790
3791static SCM
3792_wrap_firstout__SWIG_1 (int argc, SCM *argv)
3793{
3794#define FUNC_NAME "firstout"
3795 Agnode_t *arg1 = (Agnode_t *) 0 ;
3796 SCM gswig_result;
3797 SWIGUNUSED int gswig_list_p = 0;
3798 Agedge_t *result = 0 ;
3799
3800 {
3801 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3802 }
3803 result = (Agedge_t *)firstout(arg1);
3804 {
3805 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3806 }
3807
3808
3809 return gswig_result;
3810#undef FUNC_NAME
3811}
3812
3813
3814static SCM
3816{
3817#define FUNC_NAME "firstout"
3818 SCM argv[1];
3819 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstout");
3820 if (argc == 1) {
3821 int _v = 0;
3822 {
3823 void *ptr;
3824 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3825 _v = SWIG_CheckState(res);
3826 }
3827 if (_v) {
3828 return _wrap_firstout__SWIG_0(argc,argv);
3829 }
3830 }
3831 if (argc == 1) {
3832 int _v = 0;
3833 {
3834 void *ptr;
3835 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3836 _v = SWIG_CheckState(res);
3837 }
3838 if (_v) {
3839 return _wrap_firstout__SWIG_1(argc,argv);
3840 }
3841 }
3842
3843 scm_misc_error("firstout", "No matching method for generic function `firstout'", SCM_EOL);
3844#undef FUNC_NAME
3845}
3846
3847
3848static SCM
3849_wrap_nextout__SWIG_1 (int argc, SCM *argv)
3850{
3851#define FUNC_NAME "nextout"
3852 Agnode_t *arg1 = (Agnode_t *) 0 ;
3853 Agedge_t *arg2 = (Agedge_t *) 0 ;
3854 SCM gswig_result;
3855 SWIGUNUSED int gswig_list_p = 0;
3856 Agedge_t *result = 0 ;
3857
3858 {
3859 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
3860 }
3861 {
3862 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
3863 }
3864 result = (Agedge_t *)nextout(arg1,arg2);
3865 {
3866 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3867 }
3868
3869
3870
3871 return gswig_result;
3872#undef FUNC_NAME
3873}
3874
3875
3876static SCM
3878{
3879#define FUNC_NAME "nextout"
3880 SCM argv[2];
3881 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextout");
3882 if (argc == 2) {
3883 int _v = 0;
3884 {
3885 void *ptr;
3886 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
3887 _v = SWIG_CheckState(res);
3888 }
3889 if (_v) {
3890 {
3891 void *ptr;
3892 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3893 _v = SWIG_CheckState(res);
3894 }
3895 if (_v) {
3896 return _wrap_nextout__SWIG_0(argc,argv);
3897 }
3898 }
3899 }
3900 if (argc == 2) {
3901 int _v = 0;
3902 {
3903 void *ptr;
3904 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
3905 _v = SWIG_CheckState(res);
3906 }
3907 if (_v) {
3908 {
3909 void *ptr;
3910 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
3911 _v = SWIG_CheckState(res);
3912 }
3913 if (_v) {
3914 return _wrap_nextout__SWIG_1(argc,argv);
3915 }
3916 }
3917 }
3918
3919 scm_misc_error("nextout", "No matching method for generic function `nextout'", SCM_EOL);
3920#undef FUNC_NAME
3921}
3922
3923
3924static SCM
3926{
3927#define FUNC_NAME "firsthead"
3928 Agnode_t *arg1 = (Agnode_t *) 0 ;
3929 SCM gswig_result;
3930 SWIGUNUSED int gswig_list_p = 0;
3931 Agnode_t *result = 0 ;
3932
3933 {
3934 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
3935 }
3936 result = (Agnode_t *)firsthead(arg1);
3937 {
3938 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3939 }
3940
3941
3942 return gswig_result;
3943#undef FUNC_NAME
3944}
3945
3946
3947static SCM
3948_wrap_nexthead (SCM s_0, SCM s_1)
3949{
3950#define FUNC_NAME "nexthead"
3951 Agnode_t *arg1 = (Agnode_t *) 0 ;
3952 Agnode_t *arg2 = (Agnode_t *) 0 ;
3953 SCM gswig_result;
3954 SWIGUNUSED int gswig_list_p = 0;
3955 Agnode_t *result = 0 ;
3956
3957 {
3958 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
3959 }
3960 {
3961 arg2 = (Agnode_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agnode_t, 2, 0);
3962 }
3963 result = (Agnode_t *)nexthead(arg1,arg2);
3964 {
3965 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
3966 }
3967
3968
3969
3970 return gswig_result;
3971#undef FUNC_NAME
3972}
3973
3974
3975static SCM
3976_wrap_firstin__SWIG_0 (int argc, SCM *argv)
3977{
3978#define FUNC_NAME "firstin"
3979 Agraph_t *arg1 = (Agraph_t *) 0 ;
3980 SCM gswig_result;
3981 SWIGUNUSED int gswig_list_p = 0;
3982 Agedge_t *result = 0 ;
3983
3984 {
3985 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
3986 }
3987 result = (Agedge_t *)firstin(arg1);
3988 {
3989 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
3990 }
3991
3992
3993 return gswig_result;
3994#undef FUNC_NAME
3995}
3996
3997
3998static SCM
3999_wrap_nextin__SWIG_0 (int argc, SCM *argv)
4000{
4001#define FUNC_NAME "nextin"
4002 Agnode_t *arg1 = (Agnode_t *) 0 ;
4003 Agedge_t *arg2 = (Agedge_t *) 0 ;
4004 SCM gswig_result;
4005 SWIGUNUSED int gswig_list_p = 0;
4006 Agedge_t *result = 0 ;
4007
4008 {
4009 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4010 }
4011 {
4012 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
4013 }
4014 result = (Agedge_t *)nextin(arg1,arg2);
4015 {
4016 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
4017 }
4018
4019
4020
4021 return gswig_result;
4022#undef FUNC_NAME
4023}
4024
4025
4026static SCM
4027_wrap_firstin__SWIG_1 (int argc, SCM *argv)
4028{
4029#define FUNC_NAME "firstin"
4030 Agnode_t *arg1 = (Agnode_t *) 0 ;
4031 SCM gswig_result;
4032 SWIGUNUSED int gswig_list_p = 0;
4033 Agedge_t *result = 0 ;
4034
4035 {
4036 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4037 }
4038 result = (Agedge_t *)firstin(arg1);
4039 {
4040 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
4041 }
4042
4043
4044 return gswig_result;
4045#undef FUNC_NAME
4046}
4047
4048
4049static SCM
4051{
4052#define FUNC_NAME "firstin"
4053 SCM argv[1];
4054 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstin");
4055 if (argc == 1) {
4056 int _v = 0;
4057 {
4058 void *ptr;
4059 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4060 _v = SWIG_CheckState(res);
4061 }
4062 if (_v) {
4063 return _wrap_firstin__SWIG_0(argc,argv);
4064 }
4065 }
4066 if (argc == 1) {
4067 int _v = 0;
4068 {
4069 void *ptr;
4070 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4071 _v = SWIG_CheckState(res);
4072 }
4073 if (_v) {
4074 return _wrap_firstin__SWIG_1(argc,argv);
4075 }
4076 }
4077
4078 scm_misc_error("firstin", "No matching method for generic function `firstin'", SCM_EOL);
4079#undef FUNC_NAME
4080}
4081
4082
4083static SCM
4084_wrap_nextin__SWIG_1 (int argc, SCM *argv)
4085{
4086#define FUNC_NAME "nextin"
4087 Agraph_t *arg1 = (Agraph_t *) 0 ;
4088 Agedge_t *arg2 = (Agedge_t *) 0 ;
4089 SCM gswig_result;
4090 SWIGUNUSED int gswig_list_p = 0;
4091 Agedge_t *result = 0 ;
4092
4093 {
4094 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4095 }
4096 {
4097 arg2 = (Agedge_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agedge_t, 2, 0);
4098 }
4099 result = (Agedge_t *)nextin(arg1,arg2);
4100 {
4101 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agedge_t, 0);
4102 }
4103
4104
4105
4106 return gswig_result;
4107#undef FUNC_NAME
4108}
4109
4110
4111static SCM
4113{
4114#define FUNC_NAME "nextin"
4115 SCM argv[2];
4116 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextin");
4117 if (argc == 2) {
4118 int _v = 0;
4119 {
4120 void *ptr;
4121 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4122 _v = SWIG_CheckState(res);
4123 }
4124 if (_v) {
4125 {
4126 void *ptr;
4127 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
4128 _v = SWIG_CheckState(res);
4129 }
4130 if (_v) {
4131 return _wrap_nextin__SWIG_0(argc,argv);
4132 }
4133 }
4134 }
4135 if (argc == 2) {
4136 int _v = 0;
4137 {
4138 void *ptr;
4139 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4140 _v = SWIG_CheckState(res);
4141 }
4142 if (_v) {
4143 {
4144 void *ptr;
4145 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agedge_t, 0);
4146 _v = SWIG_CheckState(res);
4147 }
4148 if (_v) {
4149 return _wrap_nextin__SWIG_1(argc,argv);
4150 }
4151 }
4152 }
4153
4154 scm_misc_error("nextin", "No matching method for generic function `nextin'", SCM_EOL);
4155#undef FUNC_NAME
4156}
4157
4158
4159static SCM
4161{
4162#define FUNC_NAME "firsttail"
4163 Agnode_t *arg1 = (Agnode_t *) 0 ;
4164 SCM gswig_result;
4165 SWIGUNUSED int gswig_list_p = 0;
4166 Agnode_t *result = 0 ;
4167
4168 {
4169 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
4170 }
4171 result = (Agnode_t *)firsttail(arg1);
4172 {
4173 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4174 }
4175
4176
4177 return gswig_result;
4178#undef FUNC_NAME
4179}
4180
4181
4182static SCM
4183_wrap_nexttail (SCM s_0, SCM s_1)
4184{
4185#define FUNC_NAME "nexttail"
4186 Agnode_t *arg1 = (Agnode_t *) 0 ;
4187 Agnode_t *arg2 = (Agnode_t *) 0 ;
4188 SCM gswig_result;
4189 SWIGUNUSED int gswig_list_p = 0;
4190 Agnode_t *result = 0 ;
4191
4192 {
4193 arg1 = (Agnode_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agnode_t, 1, 0);
4194 }
4195 {
4196 arg2 = (Agnode_t *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Agnode_t, 2, 0);
4197 }
4198 result = (Agnode_t *)nexttail(arg1,arg2);
4199 {
4200 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4201 }
4202
4203
4204
4205 return gswig_result;
4206#undef FUNC_NAME
4207}
4208
4209
4210static SCM
4211_wrap_firstnode__SWIG_0 (int argc, SCM *argv)
4212{
4213#define FUNC_NAME "firstnode"
4214 Agraph_t *arg1 = (Agraph_t *) 0 ;
4215 SCM gswig_result;
4216 SWIGUNUSED int gswig_list_p = 0;
4217 Agnode_t *result = 0 ;
4218
4219 {
4220 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4221 }
4222 result = (Agnode_t *)firstnode(arg1);
4223 {
4224 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4225 }
4226
4227
4228 return gswig_result;
4229#undef FUNC_NAME
4230}
4231
4232
4233static SCM
4234_wrap_nextnode__SWIG_0 (int argc, SCM *argv)
4235{
4236#define FUNC_NAME "nextnode"
4237 Agraph_t *arg1 = (Agraph_t *) 0 ;
4238 Agnode_t *arg2 = (Agnode_t *) 0 ;
4239 SCM gswig_result;
4240 SWIGUNUSED int gswig_list_p = 0;
4241 Agnode_t *result = 0 ;
4242
4243 {
4244 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4245 }
4246 {
4247 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
4248 }
4249 result = (Agnode_t *)nextnode(arg1,arg2);
4250 {
4251 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4252 }
4253
4254
4255
4256 return gswig_result;
4257#undef FUNC_NAME
4258}
4259
4260
4261static SCM
4262_wrap_firstnode__SWIG_1 (int argc, SCM *argv)
4263{
4264#define FUNC_NAME "firstnode"
4265 Agedge_t *arg1 = (Agedge_t *) 0 ;
4266 SCM gswig_result;
4267 SWIGUNUSED int gswig_list_p = 0;
4268 Agnode_t *result = 0 ;
4269
4270 {
4271 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4272 }
4273 result = (Agnode_t *)firstnode(arg1);
4274 {
4275 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4276 }
4277
4278
4279 return gswig_result;
4280#undef FUNC_NAME
4281}
4282
4283
4284static SCM
4286{
4287#define FUNC_NAME "firstnode"
4288 SCM argv[1];
4289 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstnode");
4290 if (argc == 1) {
4291 int _v = 0;
4292 {
4293 void *ptr;
4294 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4295 _v = SWIG_CheckState(res);
4296 }
4297 if (_v) {
4298 return _wrap_firstnode__SWIG_0(argc,argv);
4299 }
4300 }
4301 if (argc == 1) {
4302 int _v = 0;
4303 {
4304 void *ptr;
4305 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4306 _v = SWIG_CheckState(res);
4307 }
4308 if (_v) {
4309 return _wrap_firstnode__SWIG_1(argc,argv);
4310 }
4311 }
4312
4313 scm_misc_error("firstnode", "No matching method for generic function `firstnode'", SCM_EOL);
4314#undef FUNC_NAME
4315}
4316
4317
4318static SCM
4319_wrap_nextnode__SWIG_1 (int argc, SCM *argv)
4320{
4321#define FUNC_NAME "nextnode"
4322 Agedge_t *arg1 = (Agedge_t *) 0 ;
4323 Agnode_t *arg2 = (Agnode_t *) 0 ;
4324 SCM gswig_result;
4325 SWIGUNUSED int gswig_list_p = 0;
4326 Agnode_t *result = 0 ;
4327
4328 {
4329 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4330 }
4331 {
4332 arg2 = (Agnode_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agnode_t, 2, 0);
4333 }
4334 result = (Agnode_t *)nextnode(arg1,arg2);
4335 {
4336 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agnode_t, 0);
4337 }
4338
4339
4340
4341 return gswig_result;
4342#undef FUNC_NAME
4343}
4344
4345
4346static SCM
4348{
4349#define FUNC_NAME "nextnode"
4350 SCM argv[2];
4351 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextnode");
4352 if (argc == 2) {
4353 int _v = 0;
4354 {
4355 void *ptr;
4356 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4357 _v = SWIG_CheckState(res);
4358 }
4359 if (_v) {
4360 {
4361 void *ptr;
4362 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
4363 _v = SWIG_CheckState(res);
4364 }
4365 if (_v) {
4366 return _wrap_nextnode__SWIG_0(argc,argv);
4367 }
4368 }
4369 }
4370 if (argc == 2) {
4371 int _v = 0;
4372 {
4373 void *ptr;
4374 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4375 _v = SWIG_CheckState(res);
4376 }
4377 if (_v) {
4378 {
4379 void *ptr;
4380 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agnode_t, 0);
4381 _v = SWIG_CheckState(res);
4382 }
4383 if (_v) {
4384 return _wrap_nextnode__SWIG_1(argc,argv);
4385 }
4386 }
4387 }
4388
4389 scm_misc_error("nextnode", "No matching method for generic function `nextnode'", SCM_EOL);
4390#undef FUNC_NAME
4391}
4392
4393
4394static SCM
4395_wrap_firstattr__SWIG_0 (int argc, SCM *argv)
4396{
4397#define FUNC_NAME "firstattr"
4398 Agraph_t *arg1 = (Agraph_t *) 0 ;
4399 SCM gswig_result;
4400 SWIGUNUSED int gswig_list_p = 0;
4401 Agsym_t *result = 0 ;
4402
4403 {
4404 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4405 }
4406 result = (Agsym_t *)firstattr(arg1);
4407 {
4408 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4409 }
4410
4411
4412 return gswig_result;
4413#undef FUNC_NAME
4414}
4415
4416
4417static SCM
4418_wrap_nextattr__SWIG_0 (int argc, SCM *argv)
4419{
4420#define FUNC_NAME "nextattr"
4421 Agraph_t *arg1 = (Agraph_t *) 0 ;
4422 Agsym_t *arg2 = (Agsym_t *) 0 ;
4423 SCM gswig_result;
4424 SWIGUNUSED int gswig_list_p = 0;
4425 Agsym_t *result = 0 ;
4426
4427 {
4428 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4429 }
4430 {
4431 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
4432 }
4433 result = (Agsym_t *)nextattr(arg1,arg2);
4434 {
4435 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4436 }
4437
4438
4439
4440 return gswig_result;
4441#undef FUNC_NAME
4442}
4443
4444
4445static SCM
4446_wrap_firstattr__SWIG_1 (int argc, SCM *argv)
4447{
4448#define FUNC_NAME "firstattr"
4449 Agedge_t *arg1 = (Agedge_t *) 0 ;
4450 SCM gswig_result;
4451 SWIGUNUSED int gswig_list_p = 0;
4452 Agsym_t *result = 0 ;
4453
4454 {
4455 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4456 }
4457 result = (Agsym_t *)firstattr(arg1);
4458 {
4459 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4460 }
4461
4462
4463 return gswig_result;
4464#undef FUNC_NAME
4465}
4466
4467
4468static SCM
4469_wrap_nextattr__SWIG_1 (int argc, SCM *argv)
4470{
4471#define FUNC_NAME "nextattr"
4472 Agedge_t *arg1 = (Agedge_t *) 0 ;
4473 Agsym_t *arg2 = (Agsym_t *) 0 ;
4474 SCM gswig_result;
4475 SWIGUNUSED int gswig_list_p = 0;
4476 Agsym_t *result = 0 ;
4477
4478 {
4479 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4480 }
4481 {
4482 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
4483 }
4484 result = (Agsym_t *)nextattr(arg1,arg2);
4485 {
4486 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4487 }
4488
4489
4490
4491 return gswig_result;
4492#undef FUNC_NAME
4493}
4494
4495
4496static SCM
4497_wrap_firstattr__SWIG_2 (int argc, SCM *argv)
4498{
4499#define FUNC_NAME "firstattr"
4500 Agnode_t *arg1 = (Agnode_t *) 0 ;
4501 SCM gswig_result;
4502 SWIGUNUSED int gswig_list_p = 0;
4503 Agsym_t *result = 0 ;
4504
4505 {
4506 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4507 }
4508 result = (Agsym_t *)firstattr(arg1);
4509 {
4510 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4511 }
4512
4513
4514 return gswig_result;
4515#undef FUNC_NAME
4516}
4517
4518
4519static SCM
4521{
4522#define FUNC_NAME "firstattr"
4523 SCM argv[1];
4524 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "firstattr");
4525 if (argc == 1) {
4526 int _v = 0;
4527 {
4528 void *ptr;
4529 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4530 _v = SWIG_CheckState(res);
4531 }
4532 if (_v) {
4533 return _wrap_firstattr__SWIG_0(argc,argv);
4534 }
4535 }
4536 if (argc == 1) {
4537 int _v = 0;
4538 {
4539 void *ptr;
4540 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4541 _v = SWIG_CheckState(res);
4542 }
4543 if (_v) {
4544 return _wrap_firstattr__SWIG_1(argc,argv);
4545 }
4546 }
4547 if (argc == 1) {
4548 int _v = 0;
4549 {
4550 void *ptr;
4551 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4552 _v = SWIG_CheckState(res);
4553 }
4554 if (_v) {
4555 return _wrap_firstattr__SWIG_2(argc,argv);
4556 }
4557 }
4558
4559 scm_misc_error("firstattr", "No matching method for generic function `firstattr'", SCM_EOL);
4560#undef FUNC_NAME
4561}
4562
4563
4564static SCM
4565_wrap_nextattr__SWIG_2 (int argc, SCM *argv)
4566{
4567#define FUNC_NAME "nextattr"
4568 Agnode_t *arg1 = (Agnode_t *) 0 ;
4569 Agsym_t *arg2 = (Agsym_t *) 0 ;
4570 SCM gswig_result;
4571 SWIGUNUSED int gswig_list_p = 0;
4572 Agsym_t *result = 0 ;
4573
4574 {
4575 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4576 }
4577 {
4578 arg2 = (Agsym_t *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_Agsym_t, 2, 0);
4579 }
4580 result = (Agsym_t *)nextattr(arg1,arg2);
4581 {
4582 gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Agsym_t, 0);
4583 }
4584
4585
4586
4587 return gswig_result;
4588#undef FUNC_NAME
4589}
4590
4591
4592static SCM
4594{
4595#define FUNC_NAME "nextattr"
4596 SCM argv[2];
4597 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "nextattr");
4598 if (argc == 2) {
4599 int _v = 0;
4600 {
4601 void *ptr;
4602 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4603 _v = SWIG_CheckState(res);
4604 }
4605 if (_v) {
4606 {
4607 void *ptr;
4608 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
4609 _v = SWIG_CheckState(res);
4610 }
4611 if (_v) {
4612 return _wrap_nextattr__SWIG_0(argc,argv);
4613 }
4614 }
4615 }
4616 if (argc == 2) {
4617 int _v = 0;
4618 {
4619 void *ptr;
4620 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4621 _v = SWIG_CheckState(res);
4622 }
4623 if (_v) {
4624 {
4625 void *ptr;
4626 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
4627 _v = SWIG_CheckState(res);
4628 }
4629 if (_v) {
4630 return _wrap_nextattr__SWIG_1(argc,argv);
4631 }
4632 }
4633 }
4634 if (argc == 2) {
4635 int _v = 0;
4636 {
4637 void *ptr;
4638 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4639 _v = SWIG_CheckState(res);
4640 }
4641 if (_v) {
4642 {
4643 void *ptr;
4644 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Agsym_t, 0);
4645 _v = SWIG_CheckState(res);
4646 }
4647 if (_v) {
4648 return _wrap_nextattr__SWIG_2(argc,argv);
4649 }
4650 }
4651 }
4652
4653 scm_misc_error("nextattr", "No matching method for generic function `nextattr'", SCM_EOL);
4654#undef FUNC_NAME
4655}
4656
4657
4658static SCM
4659_wrap_rm__SWIG_0 (int argc, SCM *argv)
4660{
4661#define FUNC_NAME "rm"
4662 Agraph_t *arg1 = (Agraph_t *) 0 ;
4663 SCM gswig_result;
4664 SWIGUNUSED int gswig_list_p = 0;
4665 bool result;
4666
4667 {
4668 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4669 }
4670 result = (bool)rm(arg1);
4671 {
4672 gswig_result = scm_from_bool(result);
4673 }
4674
4675
4676 return gswig_result;
4677#undef FUNC_NAME
4678}
4679
4680
4681static SCM
4682_wrap_rm__SWIG_1 (int argc, SCM *argv)
4683{
4684#define FUNC_NAME "rm"
4685 Agnode_t *arg1 = (Agnode_t *) 0 ;
4686 SCM gswig_result;
4687 SWIGUNUSED int gswig_list_p = 0;
4688 bool result;
4689
4690 {
4691 arg1 = (Agnode_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agnode_t, 1, 0);
4692 }
4693 result = (bool)rm(arg1);
4694 {
4695 gswig_result = scm_from_bool(result);
4696 }
4697
4698
4699 return gswig_result;
4700#undef FUNC_NAME
4701}
4702
4703
4704static SCM
4705_wrap_rm__SWIG_2 (int argc, SCM *argv)
4706{
4707#define FUNC_NAME "rm"
4708 Agedge_t *arg1 = (Agedge_t *) 0 ;
4709 SCM gswig_result;
4710 SWIGUNUSED int gswig_list_p = 0;
4711 bool result;
4712
4713 {
4714 arg1 = (Agedge_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agedge_t, 1, 0);
4715 }
4716 result = (bool)rm(arg1);
4717 {
4718 gswig_result = scm_from_bool(result);
4719 }
4720
4721
4722 return gswig_result;
4723#undef FUNC_NAME
4724}
4725
4726
4727static SCM
4728_wrap_rm(SCM rest)
4729{
4730#define FUNC_NAME "rm"
4731 SCM argv[1];
4732 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 1, "rm");
4733 if (argc == 1) {
4734 int _v = 0;
4735 {
4736 void *ptr;
4737 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4738 _v = SWIG_CheckState(res);
4739 }
4740 if (_v) {
4741 return _wrap_rm__SWIG_0(argc,argv);
4742 }
4743 }
4744 if (argc == 1) {
4745 int _v = 0;
4746 {
4747 void *ptr;
4748 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agnode_t, 0);
4749 _v = SWIG_CheckState(res);
4750 }
4751 if (_v) {
4752 return _wrap_rm__SWIG_1(argc,argv);
4753 }
4754 }
4755 if (argc == 1) {
4756 int _v = 0;
4757 {
4758 void *ptr;
4759 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agedge_t, 0);
4760 _v = SWIG_CheckState(res);
4761 }
4762 if (_v) {
4763 return _wrap_rm__SWIG_2(argc,argv);
4764 }
4765 }
4766
4767 scm_misc_error("rm", "No matching method for generic function `rm'", SCM_EOL);
4768#undef FUNC_NAME
4769}
4770
4771
4772static SCM
4773_wrap_layout (SCM s_0, SCM s_1)
4774{
4775#define FUNC_NAME "layout"
4776 Agraph_t *arg1 = (Agraph_t *) 0 ;
4777 char *arg2 = (char *) 0 ;
4778 int must_free2 = 0 ;
4779 SCM gswig_result;
4780 SWIGUNUSED int gswig_list_p = 0;
4781 bool result;
4782
4783 {
4784 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
4785 }
4786 {
4787 arg2 = (char *)SWIG_scm2str(s_1);
4788 must_free2 = 1;
4789 }
4790 result = (bool)layout(arg1,(char const *)arg2);
4791 {
4792 gswig_result = scm_from_bool(result);
4793 }
4794
4795 if (must_free2) SWIG_free(arg2);
4796
4797 return gswig_result;
4798#undef FUNC_NAME
4799}
4800
4801
4802static SCM
4803_wrap_render__SWIG_0 (int argc, SCM *argv)
4804{
4805#define FUNC_NAME "render"
4806 Agraph_t *arg1 = (Agraph_t *) 0 ;
4807 SCM gswig_result;
4808 SWIGUNUSED int gswig_list_p = 0;
4809 bool result;
4810
4811 {
4812 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4813 }
4814 result = (bool)render(arg1);
4815 {
4816 gswig_result = scm_from_bool(result);
4817 }
4818
4819
4820 return gswig_result;
4821#undef FUNC_NAME
4822}
4823
4824
4825static SCM
4826_wrap_render__SWIG_1 (int argc, SCM *argv)
4827{
4828#define FUNC_NAME "render"
4829 Agraph_t *arg1 = (Agraph_t *) 0 ;
4830 char *arg2 = (char *) 0 ;
4831 int must_free2 = 0 ;
4832 SCM gswig_result;
4833 SWIGUNUSED int gswig_list_p = 0;
4834 bool result;
4835
4836 {
4837 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4838 }
4839 {
4840 arg2 = (char *)SWIG_scm2str(argv[1]);
4841 must_free2 = 1;
4842 }
4843 result = (bool)render(arg1,(char const *)arg2);
4844 {
4845 gswig_result = scm_from_bool(result);
4846 }
4847
4848 if (must_free2) SWIG_free(arg2);
4849
4850 return gswig_result;
4851#undef FUNC_NAME
4852}
4853
4854
4855static SCM
4856_wrap_render__SWIG_2 (int argc, SCM *argv)
4857{
4858#define FUNC_NAME "render"
4859 Agraph_t *arg1 = (Agraph_t *) 0 ;
4860 char *arg2 = (char *) 0 ;
4861 FILE *arg3 = (FILE *) 0 ;
4862 int must_free2 = 0 ;
4863 SCM gswig_result;
4864 SWIGUNUSED int gswig_list_p = 0;
4865 bool result;
4866
4867 {
4868 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4869 }
4870 {
4871 arg2 = (char *)SWIG_scm2str(argv[1]);
4872 must_free2 = 1;
4873 }
4874 {
4875 arg3 = (FILE *)SWIG_MustGetPtr(argv[2], SWIGTYPE_p_FILE, 3, 0);
4876 }
4877 result = (bool)render(arg1,(char const *)arg2,arg3);
4878 {
4879 gswig_result = scm_from_bool(result);
4880 }
4881
4882 if (must_free2) SWIG_free(arg2);
4883
4884
4885 return gswig_result;
4886#undef FUNC_NAME
4887}
4888
4889
4890static SCM
4891_wrap_render__SWIG_3 (int argc, SCM *argv)
4892{
4893#define FUNC_NAME "render"
4894 Agraph_t *arg1 = (Agraph_t *) 0 ;
4895 char *arg2 = (char *) 0 ;
4896 char *arg3 = (char *) 0 ;
4897 int must_free2 = 0 ;
4898 int must_free3 = 0 ;
4899 SCM gswig_result;
4900 SWIGUNUSED int gswig_list_p = 0;
4901 bool result;
4902
4903 {
4904 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
4905 }
4906 {
4907 arg2 = (char *)SWIG_scm2str(argv[1]);
4908 must_free2 = 1;
4909 }
4910 {
4911 arg3 = (char *)SWIG_scm2str(argv[2]);
4912 must_free3 = 1;
4913 }
4914 result = (bool)render(arg1,(char const *)arg2,(char const *)arg3);
4915 {
4916 gswig_result = scm_from_bool(result);
4917 }
4918
4919 if (must_free2) SWIG_free(arg2);
4920 if (must_free3) SWIG_free(arg3);
4921
4922 return gswig_result;
4923#undef FUNC_NAME
4924}
4925
4926
4927static SCM
4929{
4930#define FUNC_NAME "render"
4931 SCM argv[3];
4932 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 3, "render");
4933 if (argc == 1) {
4934 int _v = 0;
4935 {
4936 void *ptr;
4937 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4938 _v = SWIG_CheckState(res);
4939 }
4940 if (_v) {
4941 return _wrap_render__SWIG_0(argc,argv);
4942 }
4943 }
4944 if (argc == 2) {
4945 int _v = 0;
4946 {
4947 void *ptr;
4948 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4949 _v = SWIG_CheckState(res);
4950 }
4951 if (_v) {
4952 {
4953 _v = scm_is_string(argv[1]) ? 1 : 0;
4954 }
4955 if (_v) {
4956 return _wrap_render__SWIG_1(argc,argv);
4957 }
4958 }
4959 }
4960 if (argc == 3) {
4961 int _v = 0;
4962 {
4963 void *ptr;
4964 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4965 _v = SWIG_CheckState(res);
4966 }
4967 if (_v) {
4968 {
4969 _v = scm_is_string(argv[1]) ? 1 : 0;
4970 }
4971 if (_v) {
4972 {
4973 void *ptr;
4974 int res = SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_FILE, 0);
4975 _v = SWIG_CheckState(res);
4976 }
4977 if (_v) {
4978 return _wrap_render__SWIG_2(argc,argv);
4979 }
4980 }
4981 }
4982 }
4983 if (argc == 3) {
4984 int _v = 0;
4985 {
4986 void *ptr;
4987 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
4988 _v = SWIG_CheckState(res);
4989 }
4990 if (_v) {
4991 {
4992 _v = scm_is_string(argv[1]) ? 1 : 0;
4993 }
4994 if (_v) {
4995 {
4996 _v = scm_is_string(argv[2]) ? 1 : 0;
4997 }
4998 if (_v) {
4999 return _wrap_render__SWIG_3(argc,argv);
5000 }
5001 }
5002 }
5003 }
5004
5005 scm_misc_error("render", "No matching method for generic function `render'", SCM_EOL);
5006#undef FUNC_NAME
5007}
5008
5009
5010static SCM
5011_wrap_renderresult (SCM s_0, SCM s_1, SCM s_2)
5012{
5013#define FUNC_NAME "renderresult"
5014 Agraph_t *arg1 = (Agraph_t *) 0 ;
5015 char *arg2 = (char *) 0 ;
5016 char *arg3 = (char *) 0 ;
5017 int must_free2 = 0 ;
5018 int must_free3 = 0 ;
5019 SCM gswig_result;
5020 SWIGUNUSED int gswig_list_p = 0;
5021
5022 {
5023 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5024 }
5025 {
5026 arg2 = (char *)SWIG_scm2str(s_1);
5027 must_free2 = 1;
5028 }
5029 {
5030 arg3 = (char *)SWIG_scm2str(s_2);
5031 must_free3 = 1;
5032 }
5033 renderresult(arg1,(char const *)arg2,arg3);
5034 gswig_result = SCM_UNSPECIFIED;
5035
5036 if (must_free2) SWIG_free(arg2);
5037 if (must_free3) SWIG_free(arg3);
5038
5039 return gswig_result;
5040#undef FUNC_NAME
5041}
5042
5043
5044static SCM
5045_wrap_renderchannel (SCM s_0, SCM s_1, SCM s_2)
5046{
5047#define FUNC_NAME "renderchannel"
5048 Agraph_t *arg1 = (Agraph_t *) 0 ;
5049 char *arg2 = (char *) 0 ;
5050 char *arg3 = (char *) 0 ;
5051 int must_free2 = 0 ;
5052 int must_free3 = 0 ;
5053 SCM gswig_result;
5054 SWIGUNUSED int gswig_list_p = 0;
5055 bool result;
5056
5057 {
5058 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5059 }
5060 {
5061 arg2 = (char *)SWIG_scm2str(s_1);
5062 must_free2 = 1;
5063 }
5064 {
5065 arg3 = (char *)SWIG_scm2str(s_2);
5066 must_free3 = 1;
5067 }
5068 result = (bool)renderchannel(arg1,(char const *)arg2,(char const *)arg3);
5069 {
5070 gswig_result = scm_from_bool(result);
5071 }
5072
5073 if (must_free2) SWIG_free(arg2);
5074 if (must_free3) SWIG_free(arg3);
5075
5076 return gswig_result;
5077#undef FUNC_NAME
5078}
5079
5080
5081static SCM
5082_wrap_renderdata (SCM s_0, SCM s_1)
5083{
5084#define FUNC_NAME "renderdata"
5085 Agraph_t *arg1 = (Agraph_t *) 0 ;
5086 char *arg2 = (char *) 0 ;
5087 int must_free2 = 0 ;
5088 SCM gswig_result;
5089 SWIGUNUSED int gswig_list_p = 0;
5090 char *result = 0 ;
5091
5092 {
5093 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5094 }
5095 {
5096 arg2 = (char *)SWIG_scm2str(s_1);
5097 must_free2 = 1;
5098 }
5099 result = (char *)renderdata(arg1,(char const *)arg2);
5100 {
5101 gswig_result = SWIG_str02scm((const char *)result);
5102 }
5103
5104 if (must_free2) SWIG_free(arg2);
5105
5106 return gswig_result;
5107#undef FUNC_NAME
5108}
5109
5110
5111static SCM
5112_wrap_write__SWIG_0 (int argc, SCM *argv)
5113{
5114#define FUNC_NAME "write"
5115 Agraph_t *arg1 = (Agraph_t *) 0 ;
5116 char *arg2 = (char *) 0 ;
5117 int must_free2 = 0 ;
5118 SCM gswig_result;
5119 SWIGUNUSED int gswig_list_p = 0;
5120 bool result;
5121
5122 {
5123 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
5124 }
5125 {
5126 arg2 = (char *)SWIG_scm2str(argv[1]);
5127 must_free2 = 1;
5128 }
5129 result = (bool)write(arg1,(char const *)arg2);
5130 {
5131 gswig_result = scm_from_bool(result);
5132 }
5133
5134 if (must_free2) SWIG_free(arg2);
5135
5136 return gswig_result;
5137#undef FUNC_NAME
5138}
5139
5140
5141static SCM
5142_wrap_write__SWIG_1 (int argc, SCM *argv)
5143{
5144#define FUNC_NAME "write"
5145 Agraph_t *arg1 = (Agraph_t *) 0 ;
5146 FILE *arg2 = (FILE *) 0 ;
5147 SCM gswig_result;
5148 SWIGUNUSED int gswig_list_p = 0;
5149 bool result;
5150
5151 {
5152 arg1 = (Agraph_t *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_Agraph_t, 1, 0);
5153 }
5154 {
5155 arg2 = (FILE *)SWIG_MustGetPtr(argv[1], SWIGTYPE_p_FILE, 2, 0);
5156 }
5157 result = (bool)write(arg1,arg2);
5158 {
5159 gswig_result = scm_from_bool(result);
5160 }
5161
5162
5163
5164 return gswig_result;
5165#undef FUNC_NAME
5166}
5167
5168
5169static SCM
5171{
5172#define FUNC_NAME "write"
5173 SCM argv[2];
5174 int argc = SWIG_Guile_GetArgs (argv, rest, 0, 2, "write");
5175 if (argc == 2) {
5176 int _v = 0;
5177 {
5178 void *ptr;
5179 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
5180 _v = SWIG_CheckState(res);
5181 }
5182 if (_v) {
5183 {
5184 void *ptr;
5185 int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_FILE, 0);
5186 _v = SWIG_CheckState(res);
5187 }
5188 if (_v) {
5189 return _wrap_write__SWIG_1(argc,argv);
5190 }
5191 }
5192 }
5193 if (argc == 2) {
5194 int _v = 0;
5195 {
5196 void *ptr;
5197 int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Agraph_t, 0);
5198 _v = SWIG_CheckState(res);
5199 }
5200 if (_v) {
5201 {
5202 _v = scm_is_string(argv[1]) ? 1 : 0;
5203 }
5204 if (_v) {
5205 return _wrap_write__SWIG_0(argc,argv);
5206 }
5207 }
5208 }
5209
5210 scm_misc_error("write", "No matching method for generic function `write'", SCM_EOL);
5211#undef FUNC_NAME
5212}
5213
5214
5215static SCM
5216_wrap_tred (SCM s_0)
5217{
5218#define FUNC_NAME "tred"
5219 Agraph_t *arg1 = (Agraph_t *) 0 ;
5220 SCM gswig_result;
5221 SWIGUNUSED int gswig_list_p = 0;
5222 bool result;
5223
5224 {
5225 arg1 = (Agraph_t *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Agraph_t, 1, 0);
5226 }
5227 result = (bool)tred(arg1);
5228 {
5229 gswig_result = scm_from_bool(result);
5230 }
5231
5232
5233 return gswig_result;
5234#undef FUNC_NAME
5235}
5236
5237
5238#ifdef __cplusplus
5239extern "C" {
5240#endif
5241
5242/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5243
5244static swig_type_info _swigt__p_Agedge_t = {"_p_Agedge_t", "Agedge_t *", 0, 0, (void*)0, 0};
5245static swig_type_info _swigt__p_Agnode_t = {"_p_Agnode_t", "Agnode_t *", 0, 0, (void*)0, 0};
5246static swig_type_info _swigt__p_Agraph_t = {"_p_Agraph_t", "Agraph_t *", 0, 0, (void*)0, 0};
5247static swig_type_info _swigt__p_Agsym_t = {"_p_Agsym_t", "Agsym_t *", 0, 0, (void*)0, 0};
5248static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
5249static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "SCM *|unsigned long *", 0, 0, (void*)0, 0};
5250
5259
5260static swig_cast_info _swigc__p_Agedge_t[] = { {&_swigt__p_Agedge_t, 0, 0, 0},{0, 0, 0, 0}};
5261static swig_cast_info _swigc__p_Agnode_t[] = { {&_swigt__p_Agnode_t, 0, 0, 0},{0, 0, 0, 0}};
5262static swig_cast_info _swigc__p_Agraph_t[] = { {&_swigt__p_Agraph_t, 0, 0, 0},{0, 0, 0, 0}};
5263static swig_cast_info _swigc__p_Agsym_t[] = { {&_swigt__p_Agsym_t, 0, 0, 0},{0, 0, 0, 0}};
5264static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
5266
5275
5276
5277/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5278
5279/* -----------------------------------------------------------------------------
5280 * Type initialization:
5281 * This problem is tough by the requirement that no dynamic
5282 * memory is used. Also, since swig_type_info structures store pointers to
5283 * swig_cast_info structures and swig_cast_info structures store pointers back
5284 * to swig_type_info structures, we need some lookup code at initialization.
5285 * The idea is that swig generates all the structures that are needed.
5286 * The runtime then collects these partially filled structures.
5287 * The SWIG_InitializeModule function takes these initial arrays out of
5288 * swig_module, and does all the lookup, filling in the swig_module.types
5289 * array with the correct data and linking the correct swig_cast_info
5290 * structures together.
5291 *
5292 * The generated swig_type_info structures are assigned statically to an initial
5293 * array. We just loop through that array, and handle each type individually.
5294 * First we lookup if this type has been already loaded, and if so, use the
5295 * loaded structure instead of the generated one. Then we have to fill in the
5296 * cast linked list. The cast data is initially stored in something like a
5297 * two-dimensional array. Each row corresponds to a type (there are the same
5298 * number of rows as there are in the swig_type_initial array). Each entry in
5299 * a column is one of the swig_cast_info structures for that type.
5300 * The cast_initial array is actually an array of arrays, because each row has
5301 * a variable number of columns. So to actually build the cast linked list,
5302 * we find the array of casts associated with the type, and loop through it
5303 * adding the casts to the list. The one last trick we need to do is making
5304 * sure the type pointer in the swig_cast_info struct is correct.
5305 *
5306 * First off, we lookup the cast->type name to see if it is already loaded.
5307 * There are three cases to handle:
5308 * 1) If the cast->type has already been loaded AND the type we are adding
5309 * casting info to has not been loaded (it is in this module), THEN we
5310 * replace the cast->type pointer with the type pointer that has already
5311 * been loaded.
5312 * 2) If BOTH types (the one we are adding casting info to, and the
5313 * cast->type) are loaded, THEN the cast info has already been loaded by
5314 * the previous module so we just ignore it.
5315 * 3) Finally, if cast->type has not already been loaded, then we add that
5316 * swig_cast_info to the linked list (because the cast->type) pointer will
5317 * be correct.
5318 * ----------------------------------------------------------------------------- */
5319
5320#ifdef __cplusplus
5321extern "C" {
5322#if 0
5323} /* c-mode */
5324#endif
5325#endif
5326
5327#if 0
5328#define SWIGRUNTIME_DEBUG
5329#endif
5330
5331#ifndef SWIG_INIT_CLIENT_DATA_TYPE
5332#define SWIG_INIT_CLIENT_DATA_TYPE void *
5333#endif
5334
5335SWIGRUNTIME void
5337 size_t i;
5338 swig_module_info *module_head, *iter;
5339 int init;
5340
5341 /* check to see if the circular list has been setup, if not, set it up */
5342 if (swig_module.next==0) {
5343 /* Initialize the swig_module */
5347 init = 1;
5348 } else {
5349 init = 0;
5350 }
5351
5352 /* Try and load any already created modules */
5353 module_head = SWIG_GetModule(clientdata);
5354 if (!module_head) {
5355 /* This is the first module loaded for this interpreter */
5356 /* so set the swig module into the interpreter */
5357 SWIG_SetModule(clientdata, &swig_module);
5358 } else {
5359 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5360 iter=module_head;
5361 do {
5362 if (iter==&swig_module) {
5363 /* Our module is already in the list, so there's nothing more to do. */
5364 return;
5365 }
5366 iter=iter->next;
5367 } while (iter!= module_head);
5368
5369 /* otherwise we must add our module into the list */
5370 swig_module.next = module_head->next;
5371 module_head->next = &swig_module;
5372 }
5373
5374 /* When multiple interpreters are used, a module could have already been initialized in
5375 a different interpreter, but not yet have a pointer in this interpreter.
5376 In this case, we do not want to continue adding types... everything should be
5377 set up already */
5378 if (init == 0) return;
5379
5380 /* Now work on filling in swig_module.types */
5381#ifdef SWIGRUNTIME_DEBUG
5382 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
5383#endif
5384 for (i = 0; i < swig_module.size; ++i) {
5385 swig_type_info *type = 0;
5386 swig_type_info *ret;
5387 swig_cast_info *cast;
5388
5389#ifdef SWIGRUNTIME_DEBUG
5390 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5391#endif
5392
5393 /* if there is another module already loaded */
5394 if (swig_module.next != &swig_module) {
5396 }
5397 if (type) {
5398 /* Overwrite clientdata field */
5399#ifdef SWIGRUNTIME_DEBUG
5400 printf("SWIG_InitializeModule: found type %s\n", type->name);
5401#endif
5403 type->clientdata = swig_module.type_initial[i]->clientdata;
5404#ifdef SWIGRUNTIME_DEBUG
5405 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5406#endif
5407 }
5408 } else {
5410 }
5411
5412 /* Insert casting types */
5413 cast = swig_module.cast_initial[i];
5414 while (cast->type) {
5415 /* Don't need to add information already in the list */
5416 ret = 0;
5417#ifdef SWIGRUNTIME_DEBUG
5418 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5419#endif
5420 if (swig_module.next != &swig_module) {
5422#ifdef SWIGRUNTIME_DEBUG
5423 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5424#endif
5425 }
5426 if (ret) {
5427 if (type == swig_module.type_initial[i]) {
5428#ifdef SWIGRUNTIME_DEBUG
5429 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5430#endif
5431 cast->type = ret;
5432 ret = 0;
5433 } else {
5434 /* Check for casting already in the list */
5435 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5436#ifdef SWIGRUNTIME_DEBUG
5437 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5438#endif
5439 if (!ocast) ret = 0;
5440 }
5441 }
5442
5443 if (!ret) {
5444#ifdef SWIGRUNTIME_DEBUG
5445 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5446#endif
5447 if (type->cast) {
5448 type->cast->prev = cast;
5449 cast->next = type->cast;
5450 }
5451 type->cast = cast;
5452 }
5453 cast++;
5454 }
5455 /* Set entry in modules->types array equal to the type */
5456 swig_module.types[i] = type;
5457 }
5458 swig_module.types[i] = 0;
5459
5460#ifdef SWIGRUNTIME_DEBUG
5461 printf("**** SWIG_InitializeModule: Cast List ******\n");
5462 for (i = 0; i < swig_module.size; ++i) {
5463 int j = 0;
5465 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5466 while (cast->type) {
5467 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5468 cast++;
5469 ++j;
5470 }
5471 printf("---- Total casts: %d\n",j);
5472 }
5473 printf("**** SWIG_InitializeModule: Cast List ******\n");
5474#endif
5475}
5476
5477/* This function will propagate the clientdata field of type to
5478* any new swig_type_info structures that have been added into the list
5479* of equivalent types. It is like calling
5480* SWIG_TypeClientData(type, clientdata) a second time.
5481*/
5482SWIGRUNTIME void
5484 size_t i;
5485 swig_cast_info *equiv;
5486 static int init_run = 0;
5487
5488 if (init_run) return;
5489 init_run = 1;
5490
5491 for (i = 0; i < swig_module.size; i++) {
5492 if (swig_module.types[i]->clientdata) {
5493 equiv = swig_module.types[i]->cast;
5494 while (equiv) {
5495 if (!equiv->converter) {
5496 if (equiv->type && !equiv->type->clientdata)
5498 }
5499 equiv = equiv->next;
5500 }
5501 }
5502 }
5503}
5504
5505#ifdef __cplusplus
5506#if 0
5507{
5508 /* c-mode */
5509#endif
5510}
5511#endif
5512
5513
5516{
5519
5520 scm_c_define_gsubr("digraph", 1, 0, 0, (swig_guile_proc) _wrap_digraph);
5521 scm_c_define_gsubr("strictgraph", 1, 0, 0, (swig_guile_proc) _wrap_strictgraph);
5522 scm_c_define_gsubr("strictdigraph", 1, 0, 0, (swig_guile_proc) _wrap_strictdigraph);
5523 scm_c_define_gsubr("readstring", 1, 0, 0, (swig_guile_proc) _wrap_readstring);
5524 scm_c_define_gsubr("read", 0, 0, 1, (swig_guile_proc) _wrap_read);
5525 scm_c_define_gsubr("graph", 0, 0, 1, (swig_guile_proc) _wrap_graph);
5526 scm_c_define_gsubr("node", 2, 0, 0, (swig_guile_proc) _wrap_node);
5527 scm_c_define_gsubr("edge", 0, 0, 1, (swig_guile_proc) _wrap_edge);
5528 scm_c_define_gsubr("setv", 0, 0, 1, (swig_guile_proc) _wrap_setv);
5529 scm_c_define_gsubr("getv", 0, 0, 1, (swig_guile_proc) _wrap_getv);
5530 scm_c_define_gsubr("nameof", 0, 0, 1, (swig_guile_proc) _wrap_nameof);
5531 scm_c_define_gsubr("findsubg", 2, 0, 0, (swig_guile_proc) _wrap_findsubg);
5532 scm_c_define_gsubr("findnode", 2, 0, 0, (swig_guile_proc) _wrap_findnode);
5533 scm_c_define_gsubr("findedge", 2, 0, 0, (swig_guile_proc) _wrap_findedge);
5534 scm_c_define_gsubr("findattr", 0, 0, 1, (swig_guile_proc) _wrap_findattr);
5535 scm_c_define_gsubr("headof", 1, 0, 0, (swig_guile_proc) _wrap_headof);
5536 scm_c_define_gsubr("tailof", 1, 0, 0, (swig_guile_proc) _wrap_tailof);
5537 scm_c_define_gsubr("graphof", 0, 0, 1, (swig_guile_proc) _wrap_graphof);
5538 scm_c_define_gsubr("rootof", 1, 0, 0, (swig_guile_proc) _wrap_rootof);
5539 scm_c_define_gsubr("protonode", 1, 0, 0, (swig_guile_proc) _wrap_protonode);
5540 scm_c_define_gsubr("protoedge", 1, 0, 0, (swig_guile_proc) _wrap_protoedge);
5541 scm_c_define_gsubr("ok", 0, 0, 1, (swig_guile_proc) _wrap_ok);
5542 scm_c_define_gsubr("firstsubg", 1, 0, 0, (swig_guile_proc) _wrap_firstsubg);
5543 scm_c_define_gsubr("nextsubg", 2, 0, 0, (swig_guile_proc) _wrap_nextsubg);
5544 scm_c_define_gsubr("firstsupg", 1, 0, 0, (swig_guile_proc) _wrap_firstsupg);
5545 scm_c_define_gsubr("nextsupg", 2, 0, 0, (swig_guile_proc) _wrap_nextsupg);
5546 scm_c_define_gsubr("firstedge", 0, 0, 1, (swig_guile_proc) _wrap_firstedge);
5547 scm_c_define_gsubr("nextedge", 0, 0, 1, (swig_guile_proc) _wrap_nextedge);
5548 scm_c_define_gsubr("firstout", 0, 0, 1, (swig_guile_proc) _wrap_firstout);
5549 scm_c_define_gsubr("nextout", 0, 0, 1, (swig_guile_proc) _wrap_nextout);
5550 scm_c_define_gsubr("firsthead", 1, 0, 0, (swig_guile_proc) _wrap_firsthead);
5551 scm_c_define_gsubr("nexthead", 2, 0, 0, (swig_guile_proc) _wrap_nexthead);
5552 scm_c_define_gsubr("firstin", 0, 0, 1, (swig_guile_proc) _wrap_firstin);
5553 scm_c_define_gsubr("nextin", 0, 0, 1, (swig_guile_proc) _wrap_nextin);
5554 scm_c_define_gsubr("firsttail", 1, 0, 0, (swig_guile_proc) _wrap_firsttail);
5555 scm_c_define_gsubr("nexttail", 2, 0, 0, (swig_guile_proc) _wrap_nexttail);
5556 scm_c_define_gsubr("firstnode", 0, 0, 1, (swig_guile_proc) _wrap_firstnode);
5557 scm_c_define_gsubr("nextnode", 0, 0, 1, (swig_guile_proc) _wrap_nextnode);
5558 scm_c_define_gsubr("firstattr", 0, 0, 1, (swig_guile_proc) _wrap_firstattr);
5559 scm_c_define_gsubr("nextattr", 0, 0, 1, (swig_guile_proc) _wrap_nextattr);
5560 scm_c_define_gsubr("rm", 0, 0, 1, (swig_guile_proc) _wrap_rm);
5561 scm_c_define_gsubr("layout", 2, 0, 0, (swig_guile_proc) _wrap_layout);
5562 scm_c_define_gsubr("render", 0, 0, 1, (swig_guile_proc) _wrap_render);
5563 scm_c_define_gsubr("renderresult", 3, 0, 0, (swig_guile_proc) _wrap_renderresult);
5564 scm_c_define_gsubr("renderchannel", 3, 0, 0, (swig_guile_proc) _wrap_renderchannel);
5565 scm_c_define_gsubr("renderdata", 2, 0, 0, (swig_guile_proc) _wrap_renderdata);
5566 scm_c_define_gsubr("write", 0, 0, 1, (swig_guile_proc) _wrap_write);
5567 scm_c_define_gsubr("tred", 1, 0, 0, (swig_guile_proc) _wrap_tred);
5568}
5569
5570#ifdef __cplusplus
5571}
5572#endif
5573extern "C" {
5574/* Linkage: simple */
5575
5576}
5577
int compare(Agobj_t *l, Agobj_t *r)
Definition actions.c:686
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, const char **color_scheme, int *lightness)
expr procedure type
Definition exparse.y:208
#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:240
node NULL
Definition grammar.y:163
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:362
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:728
Agraph_t * firstsubg(Agraph_t *g)
Definition gv.cpp:367
static SCM _wrap_ok(SCM rest)
Agraph_t * read(const char *filename)
Definition gv.cpp:66
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:373
Agraph_t * readstring(char *string)
Definition gv.cpp:54
#define SWIG_str02scm(str)
Definition gv_guile.cpp:817
char * getv(Agraph_t *g, char *attr)
Definition gv.cpp:130
Agraph_t * findsubg(Agraph_t *g, char *name)
Definition gv.cpp:247
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:690
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:42
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:152
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:395
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:327
static swig_cast_info _swigc__p_Agnode_t[]
static SCM _wrap_firsthead(SCM s_0)
Agnode_t * headof(Agedge_t *e)
Definition gv.cpp:287
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:494
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:48
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:648
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:382
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:409
static SCM _wrap_getv__SWIG_3(int argc, SCM *argv)
Agraph_t * graphof(Agraph_t *g)
Definition gv.cpp:303
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:343
#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:518
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:384
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:615
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:549
#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:295
bool write(Agraph_t *g, const char *filename)
Definition gv.cpp:717
char * renderdata(Agraph_t *g, const char *format)
Definition gv.cpp:699
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:334
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:584
SWIGINTERN SCM SWIG_Guile_Init()
Agnode_t * findnode(Agraph_t *g, char *name)
Definition gv.cpp:253
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:503
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:380
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:267
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:36
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:461
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:524
#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:488
Agraph_t * graph(char *name)
Definition gv.cpp:30
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:542
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:411
#define SWIG_Guile_GetSmob(x)
Definition gv_guile.cpp:880
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
Definition gv.cpp:259
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:425
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:624
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:434
#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:338
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
textitem scanner parser str
Definition htmlparse.y:224
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:637
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