Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gv_python3.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 SWIGPYTHON
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14/* -----------------------------------------------------------------------------
15 * This section contains generic SWIG labels for method/variable
16 * declarations/attributes, and other compiler dependent labels.
17 * ----------------------------------------------------------------------------- */
18
19/* template workaround for compilers that cannot correctly implement the C++ standard */
20#ifndef SWIGTEMPLATEDISAMBIGUATOR
21# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
22# define SWIGTEMPLATEDISAMBIGUATOR template
23# elif defined(__HP_aCC)
24/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
25/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
26# define SWIGTEMPLATEDISAMBIGUATOR template
27# else
28# define SWIGTEMPLATEDISAMBIGUATOR
29# endif
30#endif
31
32/* inline attribute */
33#ifndef SWIGINLINE
34# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
35# define SWIGINLINE inline
36# else
37# define SWIGINLINE
38# endif
39#endif
40
41/* attribute recognised by some compilers to avoid 'unused' warnings */
42#ifndef SWIGUNUSED
43# if defined(__GNUC__)
44# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
45# define SWIGUNUSED __attribute__ ((__unused__))
46# else
47# define SWIGUNUSED
48# endif
49# elif defined(__ICC)
50# define SWIGUNUSED __attribute__ ((__unused__))
51# else
52# define SWIGUNUSED
53# endif
54#endif
55
56#ifndef SWIG_MSC_UNSUPPRESS_4505
57# if defined(_MSC_VER)
58# pragma warning(disable : 4505) /* unreferenced local function has been removed */
59# endif
60#endif
61
62#ifndef SWIGUNUSEDPARM
63# ifdef __cplusplus
64# define SWIGUNUSEDPARM(p)
65# else
66# define SWIGUNUSEDPARM(p) p SWIGUNUSED
67# endif
68#endif
69
70/* internal SWIG method */
71#ifndef SWIGINTERN
72# define SWIGINTERN static SWIGUNUSED
73#endif
74
75/* internal inline SWIG method */
76#ifndef SWIGINTERNINLINE
77# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
78#endif
79
80/* exporting methods */
81#if defined(__GNUC__)
82# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
83# ifndef GCC_HASCLASSVISIBILITY
84# define GCC_HASCLASSVISIBILITY
85# endif
86# endif
87#endif
88
89#ifndef SWIGEXPORT
90# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
91# if defined(STATIC_LINKED)
92# define SWIGEXPORT
93# else
94# define SWIGEXPORT __declspec(dllexport)
95# endif
96# else
97# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
98# define SWIGEXPORT __attribute__ ((visibility("default")))
99# else
100# define SWIGEXPORT
101# endif
102# endif
103#endif
104
105/* calling conventions for Windows */
106#ifndef SWIGSTDCALL
107# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
108# define SWIGSTDCALL __stdcall
109# else
110# define SWIGSTDCALL
111# endif
112#endif
113
114/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
115#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
116# define _CRT_SECURE_NO_DEPRECATE
117#endif
118
119/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
120#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
121# define _SCL_SECURE_NO_DEPRECATE
122#endif
123
124/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
125#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
126# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
127#endif
128
129/* Intel's compiler complains if a variable which was never initialised is
130 * cast to void, which is a common idiom which we use to indicate that we
131 * are aware a variable isn't used. So we just silence that warning.
132 * See: https://github.com/swig/swig/issues/192 for more discussion.
133 */
134#ifdef __INTEL_COMPILER
135# pragma warning disable 592
136#endif
137
138#if __cplusplus >=201103L
139# define SWIG_NULLPTR nullptr
140#else
141# define SWIG_NULLPTR NULL
142#endif
143
144
145#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
146/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
147# include <math.h>
148#endif
149
150#if !defined(PY_SSIZE_T_CLEAN) && !defined(SWIG_NO_PY_SSIZE_T_CLEAN)
151#define PY_SSIZE_T_CLEAN
152#endif
153
154#if __GNUC__ >= 7
155#pragma GCC diagnostic push
156#if defined(__cplusplus) && __cplusplus >=201703L
157#pragma GCC diagnostic ignored "-Wregister" /* For python-2.7 headers that use register */
158#endif
159#endif
160
161#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
162/* Use debug wrappers with the Python release dll */
163
164#if defined(_MSC_VER) && _MSC_VER >= 1929
165/* Workaround compilation errors when redefining _DEBUG in MSVC 2019 version 16.10 and later
166 * See https://github.com/swig/swig/issues/2090 */
167# include <corecrt.h>
168#endif
169
170# undef _DEBUG
171# include <Python.h>
172# define _DEBUG 1
173#else
174# include <Python.h>
175#endif
176
177#if __GNUC__ >= 7
178#pragma GCC diagnostic pop
179#endif
180
181#include <stdio.h>
182
183/* -----------------------------------------------------------------------------
184 * swigrun.swg
185 *
186 * This file contains generic C API SWIG runtime support for pointer
187 * type checking.
188 * ----------------------------------------------------------------------------- */
189
190/* This should only be incremented when either the layout of swig_type_info changes,
191 or for whatever reason, the runtime changes incompatibly */
192#define SWIG_RUNTIME_VERSION "4"
193
194/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
195#ifdef SWIG_TYPE_TABLE
196# define SWIG_QUOTE_STRING(x) #x
197# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
198# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
199#else
200# define SWIG_TYPE_TABLE_NAME
201#endif
202
203/*
204 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
205 creating a static or dynamic library from the SWIG runtime code.
206 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
207
208 But only do this if strictly necessary, ie, if you have problems
209 with your compiler or suchlike.
210*/
211
212#ifndef SWIGRUNTIME
213# define SWIGRUNTIME SWIGINTERN
214#endif
215
216#ifndef SWIGRUNTIMEINLINE
217# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
218#endif
219
220/* Generic buffer size */
221#ifndef SWIG_BUFFER_SIZE
222# define SWIG_BUFFER_SIZE 1024
223#endif
224
225/* Flags for pointer conversions */
226#define SWIG_POINTER_DISOWN 0x1
227#define SWIG_CAST_NEW_MEMORY 0x2
228#define SWIG_POINTER_NO_NULL 0x4
229#define SWIG_POINTER_CLEAR 0x8
230#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
231
232/* Flags for new pointer objects */
233#define SWIG_POINTER_OWN 0x1
234
235
236/*
237 Flags/methods for returning states.
238
239 The SWIG conversion methods, as ConvertPtr, return an integer
240 that tells if the conversion was successful or not. And if not,
241 an error code can be returned (see swigerrors.swg for the codes).
242
243 Use the following macros/flags to set or process the returning
244 states.
245
246 In old versions of SWIG, code such as the following was usually written:
247
248 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
249 // success code
250 } else {
251 //fail code
252 }
253
254 Now you can be more explicit:
255
256 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
257 if (SWIG_IsOK(res)) {
258 // success code
259 } else {
260 // fail code
261 }
262
263 which is the same really, but now you can also do
264
265 Type *ptr;
266 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
267 if (SWIG_IsOK(res)) {
268 // success code
269 if (SWIG_IsNewObj(res) {
270 ...
271 delete *ptr;
272 } else {
273 ...
274 }
275 } else {
276 // fail code
277 }
278
279 I.e., now SWIG_ConvertPtr can return new objects and you can
280 identify the case and take care of the deallocation. Of course that
281 also requires SWIG_ConvertPtr to return new result values, such as
282
283 int SWIG_ConvertPtr(obj, ptr,...) {
284 if (<obj is ok>) {
285 if (<need new object>) {
286 *ptr = <ptr to new allocated object>;
287 return SWIG_NEWOBJ;
288 } else {
289 *ptr = <ptr to old object>;
290 return SWIG_OLDOBJ;
291 }
292 } else {
293 return SWIG_BADOBJ;
294 }
295 }
296
297 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
298 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
299 SWIG errors code.
300
301 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
302 allows returning the 'cast rank', for example, if you have this
303
304 int food(double)
305 int fooi(int);
306
307 and you call
308
309 food(1) // cast rank '1' (1 -> 1.0)
310 fooi(1) // cast rank '0'
311
312 just use the SWIG_AddCast()/SWIG_CheckState()
313*/
314
315#define SWIG_OK (0)
316/* Runtime errors are < 0 */
317#define SWIG_ERROR (-1)
318/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
319/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
320/* Errors < -200 are generic runtime specific errors */
321#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
322
323#define SWIG_IsOK(r) (r >= 0)
324#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
325
326/* The CastRankLimit says how many bits are used for the cast rank */
327#define SWIG_CASTRANKLIMIT (1 << 8)
328/* The NewMask denotes the object was created (using new/malloc) */
329#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
330/* The TmpMask is for in/out typemaps that use temporary objects */
331#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
332/* Simple returning values */
333#define SWIG_BADOBJ (SWIG_ERROR)
334#define SWIG_OLDOBJ (SWIG_OK)
335#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
336#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
337/* Check, add and del object mask methods */
338#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
339#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
340#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
341#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
342#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
343#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
344
345/* Cast-Rank Mode */
346#if defined(SWIG_CASTRANK_MODE)
347# ifndef SWIG_TypeRank
348# define SWIG_TypeRank unsigned long
349# endif
350# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
351# define SWIG_MAXCASTRANK (2)
352# endif
353# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
354# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
356 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
357}
359 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
360}
361#else /* no cast-rank mode */
362# define SWIG_AddCast(r) (r)
363# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
364#endif
365
366/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
367 * if you're missing it.
368 */
369#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
370 (defined __cplusplus && __cplusplus >= 201103L) || \
371 defined SWIG_HAVE_SNPRINTF) && \
372 !defined SWIG_NO_SNPRINTF
373# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
374# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
375#else
376/* Fallback versions ignore the buffer size, but most of our uses either have a
377 * fixed maximum possible size or dynamically allocate a buffer that's large
378 * enough.
379 */
380# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
381# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
382#endif
383
384#include <string.h>
385
386#ifdef __cplusplus
387extern "C" {
388#endif
389
390typedef void *(*swig_converter_func)(void *, int *);
391typedef struct swig_type_info *(*swig_dycast_func)(void **);
392
393/* Structure to store information on one type */
394typedef struct swig_type_info {
395 const char *name; /* mangled name of this type */
396 const char *str; /* human readable name of this type */
397 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
398 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
399 void *clientdata; /* language specific type data */
400 int owndata; /* flag if the structure owns the clientdata */
402
403/* Structure to store a type and conversion function used for casting */
404typedef struct swig_cast_info {
405 swig_type_info *type; /* pointer to type that is equivalent to this type */
406 swig_converter_func converter; /* function to cast the void pointers */
407 struct swig_cast_info *next; /* pointer to next cast in linked list */
408 struct swig_cast_info *prev; /* pointer to the previous cast */
410
411/* Structure used to store module information
412 * Each module generates one structure like this, and the runtime collects
413 * all of these structures and stores them in a circularly linked list.*/
414typedef struct swig_module_info {
415 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
416 size_t size; /* Number of types in this module */
417 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
418 swig_type_info **type_initial; /* Array of initially generated type structures */
419 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
420 void *clientdata; /* Language specific module data */
422
423/*
424 Compare two type names skipping the space characters, therefore
425 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
426
427 Return 0 when the two name types are equivalent, as in
428 strncmp, but skipping ' '.
429*/
430SWIGRUNTIME int
431SWIG_TypeNameComp(const char *f1, const char *l1,
432 const char *f2, const char *l2) {
433 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
434 while ((*f1 == ' ') && (f1 != l1)) ++f1;
435 while ((*f2 == ' ') && (f2 != l2)) ++f2;
436 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
437 }
438 return (int)((l1 - f1) - (l2 - f2));
439}
440
441/*
442 Check type equivalence in a name list like <name1>|<name2>|...
443 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
444*/
445SWIGRUNTIME int
446SWIG_TypeCmp(const char *nb, const char *tb) {
447 int equiv = 1;
448 const char* te = tb + strlen(tb);
449 const char* ne = nb;
450 while (equiv != 0 && *ne) {
451 for (nb = ne; *ne; ++ne) {
452 if (*ne == '|') break;
453 }
454 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
455 if (*ne) ++ne;
456 }
457 return equiv;
458}
459
460/*
461 Check type equivalence in a name list like <name1>|<name2>|...
462 Return 0 if not equal, 1 if equal
463*/
464SWIGRUNTIME int
465SWIG_TypeEquiv(const char *nb, const char *tb) {
466 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
467}
468
469/*
470 Check the typename
471*/
473SWIG_TypeCheck(const char *c, swig_type_info *ty) {
474 if (ty) {
475 swig_cast_info *iter = ty->cast;
476 while (iter) {
477 if (strcmp(iter->type->name, c) == 0) {
478 if (iter == ty->cast)
479 return iter;
480 /* Move iter to the top of the linked list */
481 iter->prev->next = iter->next;
482 if (iter->next)
483 iter->next->prev = iter->prev;
484 iter->next = ty->cast;
485 iter->prev = 0;
486 if (ty->cast) ty->cast->prev = iter;
487 ty->cast = iter;
488 return iter;
489 }
490 iter = iter->next;
491 }
492 }
493 return 0;
494}
495
496/*
497 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
498*/
501 if (ty) {
502 swig_cast_info *iter = ty->cast;
503 while (iter) {
504 if (iter->type == from) {
505 if (iter == ty->cast)
506 return iter;
507 /* Move iter to the top of the linked list */
508 iter->prev->next = iter->next;
509 if (iter->next)
510 iter->next->prev = iter->prev;
511 iter->next = ty->cast;
512 iter->prev = 0;
513 if (ty->cast) ty->cast->prev = iter;
514 ty->cast = iter;
515 return iter;
516 }
517 iter = iter->next;
518 }
519 }
520 return 0;
521}
522
523/*
524 Cast a pointer up an inheritance hierarchy
525*/
527SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
528 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
529}
530
531/*
532 Dynamic pointer casting. Down an inheritance hierarchy
533*/
536 swig_type_info *lastty = ty;
537 if (!ty || !ty->dcast) return ty;
538 while (ty && (ty->dcast)) {
539 ty = (*ty->dcast)(ptr);
540 if (ty) lastty = ty;
541 }
542 return lastty;
543}
544
545/*
546 Return the name associated with this type
547*/
548SWIGRUNTIMEINLINE const char *
550 return ty->name;
551}
552
553/*
554 Return the pretty name associated with this type,
555 that is an unmangled type name in a form presentable to the user.
556*/
557SWIGRUNTIME const char *
559 /* The "str" field contains the equivalent pretty names of the
560 type, separated by vertical-bar characters. Choose the last
561 name. It should be the most specific; a fully resolved name
562 but not necessarily with default template parameters expanded. */
563 if (!type) return NULL;
564 if (type->str != NULL) {
565 const char *last_name = type->str;
566 const char *s;
567 for (s = type->str; *s; s++)
568 if (*s == '|') last_name = s+1;
569 return last_name;
570 }
571 else
572 return type->name;
573}
574
575/*
576 Set the clientdata field for a type
577*/
578SWIGRUNTIME void
580 swig_cast_info *cast = ti->cast;
581 /* if (ti->clientdata == clientdata) return; */
583
584 while (cast) {
585 if (!cast->converter) {
586 swig_type_info *tc = cast->type;
587 if (!tc->clientdata) {
589 }
590 }
591 cast = cast->next;
592 }
593}
594SWIGRUNTIME void
599
600/*
601 Search for a swig_type_info structure only by mangled name
602 Search is a O(log #types)
603
604 We start searching at module start, and finish searching when start == end.
605 Note: if start == end at the beginning of the function, we go all the way around
606 the circular list.
607*/
610 swig_module_info *end,
611 const char *name) {
612 swig_module_info *iter = start;
613 do {
614 if (iter->size) {
615 size_t l = 0;
616 size_t r = iter->size - 1;
617 do {
618 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
619 size_t i = (l + r) >> 1;
620 const char *iname = iter->types[i]->name;
621 if (iname) {
622 int compare = strcmp(name, iname);
623 if (compare == 0) {
624 return iter->types[i];
625 } else if (compare < 0) {
626 if (i) {
627 r = i - 1;
628 } else {
629 break;
630 }
631 } else if (compare > 0) {
632 l = i + 1;
633 }
634 } else {
635 break; /* should never happen */
636 }
637 } while (l <= r);
638 }
639 iter = iter->next;
640 } while (iter != end);
641 return 0;
642}
643
644/*
645 Search for a swig_type_info structure for either a mangled name or a human readable name.
646 It first searches the mangled names of the types, which is a O(log #types)
647 If a type is not found it then searches the human readable names, which is O(#types).
648
649 We start searching at module start, and finish searching when start == end.
650 Note: if start == end at the beginning of the function, we go all the way around
651 the circular list.
652*/
655 swig_module_info *end,
656 const char *name) {
657 /* STEP 1: Search the name field using binary search */
658 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
659 if (ret) {
660 return ret;
661 } else {
662 /* STEP 2: If the type hasn't been found, do a complete search
663 of the str field (the human readable name) */
664 swig_module_info *iter = start;
665 do {
666 size_t i = 0;
667 for (; i < iter->size; ++i) {
668 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
669 return iter->types[i];
670 }
671 iter = iter->next;
672 } while (iter != end);
673 }
674
675 /* neither found a match */
676 return 0;
677}
678
679/*
680 Pack binary data into a string
681*/
682SWIGRUNTIME char *
683SWIG_PackData(char *c, void *ptr, size_t sz) {
684 static const char hex[17] = "0123456789abcdef";
685 const unsigned char *u = (unsigned char *) ptr;
686 const unsigned char *eu = u + sz;
687 for (; u != eu; ++u) {
688 unsigned char uu = *u;
689 *(c++) = hex[(uu & 0xf0) >> 4];
690 *(c++) = hex[uu & 0xf];
691 }
692 return c;
693}
694
695/*
696 Unpack binary data from a string
697*/
698SWIGRUNTIME const char *
699SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
700 unsigned char *u = (unsigned char *) ptr;
701 const unsigned char *eu = u + sz;
702 for (; u != eu; ++u) {
703 char d = *(c++);
704 unsigned char uu;
705 if ((d >= '0') && (d <= '9'))
706 uu = (unsigned char)((d - '0') << 4);
707 else if ((d >= 'a') && (d <= 'f'))
708 uu = (unsigned char)((d - ('a'-10)) << 4);
709 else
710 return (char *) 0;
711 d = *(c++);
712 if ((d >= '0') && (d <= '9'))
713 uu |= (unsigned char)(d - '0');
714 else if ((d >= 'a') && (d <= 'f'))
715 uu |= (unsigned char)(d - ('a'-10));
716 else
717 return (char *) 0;
718 *u = uu;
719 }
720 return c;
721}
722
723/*
724 Pack 'void *' into a string buffer.
725*/
726SWIGRUNTIME char *
727SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
728 char *r = buff;
729 if ((2*sizeof(void *) + 2) > bsz) return 0;
730 *(r++) = '_';
731 r = SWIG_PackData(r,&ptr,sizeof(void *));
732 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
733 strcpy(r,name);
734 return buff;
735}
736
737SWIGRUNTIME const char *
738SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
739 if (*c != '_') {
740 if (strcmp(c,"NULL") == 0) {
741 *ptr = (void *) 0;
742 return name;
743 } else {
744 return 0;
745 }
746 }
747 return SWIG_UnpackData(++c,ptr,sizeof(void *));
748}
749
750SWIGRUNTIME char *
751SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
752 char *r = buff;
753 size_t lname = (name ? strlen(name) : 0);
754 if ((2*sz + 2 + lname) > bsz) return 0;
755 *(r++) = '_';
756 r = SWIG_PackData(r,ptr,sz);
757 if (lname) {
758 strncpy(r,name,lname+1);
759 } else {
760 *r = 0;
761 }
762 return buff;
763}
764
765SWIGRUNTIME const char *
766SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
767 if (*c != '_') {
768 if (strcmp(c,"NULL") == 0) {
769 memset(ptr,0,sz);
770 return name;
771 } else {
772 return 0;
773 }
774 }
775 return SWIG_UnpackData(++c,ptr,sz);
776}
777
778#ifdef __cplusplus
779}
780#endif
781
782/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
783#define SWIG_UnknownError -1
784#define SWIG_IOError -2
785#define SWIG_RuntimeError -3
786#define SWIG_IndexError -4
787#define SWIG_TypeError -5
788#define SWIG_DivisionByZero -6
789#define SWIG_OverflowError -7
790#define SWIG_SyntaxError -8
791#define SWIG_ValueError -9
792#define SWIG_SystemError -10
793#define SWIG_AttributeError -11
794#define SWIG_MemoryError -12
795#define SWIG_NullReferenceError -13
796
797
798/* Compatibility macros for Python 3 */
799#if PY_VERSION_HEX >= 0x03000000
800
801#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
802#define PyInt_Check(x) PyLong_Check(x)
803#define PyInt_AsLong(x) PyLong_AsLong(x)
804#define PyInt_FromLong(x) PyLong_FromLong(x)
805#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
806#define PyString_Check(name) PyBytes_Check(name)
807#define PyString_FromString(x) PyUnicode_FromString(x)
808#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
809#define PyString_AsString(str) PyBytes_AsString(str)
810#define PyString_Size(str) PyBytes_Size(str)
811#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
812#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
813#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
814
815#endif
816
817#ifndef Py_TYPE
818# define Py_TYPE(op) ((op)->ob_type)
819#endif
820
821/* SWIG APIs for compatibility of both Python 2 & 3 */
822
823#if PY_VERSION_HEX >= 0x03000000
824# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
825#else
826# define SWIG_Python_str_FromFormat PyString_FromFormat
827#endif
828
829
830/* Wrapper around PyUnicode_AsUTF8AndSize - call Py_XDECREF on the returned pbytes when finished with the returned string */
831SWIGINTERN const char *
832SWIG_PyUnicode_AsUTF8AndSize(PyObject *str, Py_ssize_t *psize, PyObject **pbytes)
833{
834#if PY_VERSION_HEX >= 0x03030000
835# if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
836 *pbytes = NULL;
837 return PyUnicode_AsUTF8AndSize(str, psize);
838# else
839 *pbytes = PyUnicode_AsUTF8String(str);
840 const char *chars = *pbytes ? PyBytes_AsString(*pbytes) : NULL;
841 if (chars && psize)
842 *psize = PyBytes_Size(*pbytes);
843 return chars;
844# endif
845#else
846 char *chars = NULL;
847 *pbytes = NULL;
848 PyString_AsStringAndSize(str, &chars, psize);
849 return chars;
850#endif
851}
852
853SWIGINTERN PyObject*
855{
856#if PY_VERSION_HEX >= 0x03000000
857 return PyUnicode_FromString(c);
858#else
859 return PyString_FromString(c);
860#endif
861}
862
863#ifndef PyObject_DEL
864# define PyObject_DEL PyObject_Del
865#endif
866
867/* SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user interface files check for it. */
868# define SWIGPY_USE_CAPSULE
869#ifdef SWIGPYTHON_BUILTIN
870# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule_builtin" SWIG_TYPE_TABLE_NAME
871#else
872# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule" SWIG_TYPE_TABLE_NAME
873#endif
874# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION "." SWIGPY_CAPSULE_ATTR_NAME)
875
876#if PY_VERSION_HEX < 0x03020000
877#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
878#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
879#define Py_hash_t long
880#endif
881
882#ifdef Py_LIMITED_API
883# define PyTuple_GET_ITEM PyTuple_GetItem
884/* Note that PyTuple_SetItem() has different semantics from PyTuple_SET_ITEM as it decref's the original tuple item, so in general they cannot be used
885 interchangeably. However in SWIG-generated code PyTuple_SET_ITEM is only used with newly initialized tuples without any items and for them this does work. */
886# define PyTuple_SET_ITEM PyTuple_SetItem
887# define PyTuple_GET_SIZE PyTuple_Size
888# define PyCFunction_GET_FLAGS PyCFunction_GetFlags
889# define PyCFunction_GET_FUNCTION PyCFunction_GetFunction
890# define PyCFunction_GET_SELF PyCFunction_GetSelf
891# define PyList_GET_ITEM PyList_GetItem
892# define PyList_SET_ITEM PyList_SetItem
893# define PySliceObject PyObject
894#endif
895
896/* -----------------------------------------------------------------------------
897 * error manipulation
898 * ----------------------------------------------------------------------------- */
899
900SWIGRUNTIME PyObject*
902 PyObject* type = 0;
903 switch(code) {
904 case SWIG_MemoryError:
905 type = PyExc_MemoryError;
906 break;
907 case SWIG_IOError:
908 type = PyExc_IOError;
909 break;
911 type = PyExc_RuntimeError;
912 break;
913 case SWIG_IndexError:
914 type = PyExc_IndexError;
915 break;
916 case SWIG_TypeError:
917 type = PyExc_TypeError;
918 break;
920 type = PyExc_ZeroDivisionError;
921 break;
923 type = PyExc_OverflowError;
924 break;
925 case SWIG_SyntaxError:
926 type = PyExc_SyntaxError;
927 break;
928 case SWIG_ValueError:
929 type = PyExc_ValueError;
930 break;
931 case SWIG_SystemError:
932 type = PyExc_SystemError;
933 break;
935 type = PyExc_AttributeError;
936 break;
937 default:
938 type = PyExc_RuntimeError;
939 }
940 return type;
941}
942
943
944SWIGRUNTIME void
945SWIG_Python_AddErrorMsg(const char* mesg)
946{
947 PyObject *type = 0;
948 PyObject *value = 0;
949 PyObject *traceback = 0;
950
951 if (PyErr_Occurred())
952 PyErr_Fetch(&type, &value, &traceback);
953 if (value) {
954 PyObject *old_str = PyObject_Str(value);
955 PyObject *bytes = NULL;
956 const char *tmp = SWIG_PyUnicode_AsUTF8AndSize(old_str, NULL, &bytes);
957 PyErr_Clear();
958 Py_XINCREF(type);
959 if (tmp)
960 PyErr_Format(type, "%s %s", tmp, mesg);
961 else
962 PyErr_Format(type, "%s", mesg);
963 Py_XDECREF(bytes);
964 Py_DECREF(old_str);
965 Py_DECREF(value);
966 } else {
967 PyErr_SetString(PyExc_RuntimeError, mesg);
968 }
969}
970
971SWIGRUNTIME int
973{
974 PyObject *error;
975 if (obj)
976 return 0;
977 error = PyErr_Occurred();
978 return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
979}
980
981SWIGRUNTIME void
983{
985 /* Use existing TypeError to preserve stacktrace and enhance with given message */
986 PyObject *newvalue;
987 PyObject *type = NULL, *value = NULL, *traceback = NULL;
988 PyErr_Fetch(&type, &value, &traceback);
989#if PY_VERSION_HEX >= 0x03000000
990 newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
991#else
992 newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
993#endif
994 if (newvalue) {
995 Py_XDECREF(value);
996 PyErr_Restore(type, newvalue, traceback);
997 } else {
998 PyErr_Restore(type, value, traceback);
999 }
1000 } else {
1001 /* Raise TypeError using given message */
1002 PyErr_SetString(PyExc_TypeError, message);
1003 }
1004}
1005
1006#if defined(SWIG_PYTHON_NO_THREADS)
1007# if defined(SWIG_PYTHON_THREADS)
1008# undef SWIG_PYTHON_THREADS
1009# endif
1010#endif
1011#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1012# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1013# define SWIG_PYTHON_USE_GIL
1014# endif
1015# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1016# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1017# if PY_VERSION_HEX < 0x03070000
1018# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1019# else
1020# define SWIG_PYTHON_INITIALIZE_THREADS
1021# endif
1022# endif
1023# ifdef __cplusplus /* C++ code */
1024 class SWIG_Python_Thread_Block {
1025 bool status;
1026 PyGILState_STATE state;
1027 public:
1028 void end() { if (status) { PyGILState_Release(state); status = false;} }
1029 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1030 ~SWIG_Python_Thread_Block() { end(); }
1031 };
1032 class SWIG_Python_Thread_Allow {
1033 bool status;
1034 PyThreadState *save;
1035 public:
1036 void end() { if (status) { status = false; PyEval_RestoreThread(save); }}
1037 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1038 ~SWIG_Python_Thread_Allow() { end(); }
1039 };
1040# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1041# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1042# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1043# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1044# else /* C code */
1045# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1046# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1047# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1048# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1049# endif
1050# else /* Old thread way, not implemented, user must provide it */
1051# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1052# define SWIG_PYTHON_INITIALIZE_THREADS
1053# endif
1054# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1055# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1056# endif
1057# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1058# define SWIG_PYTHON_THREAD_END_BLOCK
1059# endif
1060# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1061# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1062# endif
1063# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1064# define SWIG_PYTHON_THREAD_END_ALLOW
1065# endif
1066# endif
1067#else /* No thread support */
1068# define SWIG_PYTHON_INITIALIZE_THREADS
1069# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1070# define SWIG_PYTHON_THREAD_END_BLOCK
1071# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1072# define SWIG_PYTHON_THREAD_END_ALLOW
1073#endif
1074
1075/* -----------------------------------------------------------------------------
1076 * Python API portion that goes into the runtime
1077 * ----------------------------------------------------------------------------- */
1078
1079#ifdef __cplusplus
1080extern "C" {
1081#endif
1082
1083/* -----------------------------------------------------------------------------
1084 * Constant declarations
1085 * ----------------------------------------------------------------------------- */
1086
1087/* Constant Types */
1088#define SWIG_PY_POINTER 4
1089#define SWIG_PY_BINARY 5
1090
1091/* Constant information structure */
1100
1101#ifdef __cplusplus
1102}
1103#endif
1104
1105
1106/* -----------------------------------------------------------------------------
1107 * pyrun.swg
1108 *
1109 * This file contains the runtime support for Python modules
1110 * and includes code for managing global variables and pointer
1111 * type checking.
1112 *
1113 * ----------------------------------------------------------------------------- */
1114
1115#if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
1116# error "This version of SWIG only supports Python >= 2.7"
1117#endif
1118
1119#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03030000
1120# error "This version of SWIG only supports Python 3 >= 3.3"
1121#endif
1122
1123/* Common SWIG API */
1124
1125/* for raw pointers */
1126#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1127#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1128#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1129
1130#ifdef SWIGPYTHON_BUILTIN
1131#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1132#else
1133#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1134#endif
1135
1136#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1137
1138#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1139#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1140#define swig_owntype int
1141
1142/* for raw packed data */
1143#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1144#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1145
1146/* for class or struct pointers */
1147#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1148#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1149
1150/* for C or C++ function pointers */
1151#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1152#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1153
1154/* for C++ member pointers, ie, member methods */
1155#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1156#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1157
1158
1159/* Runtime API */
1160
1161#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1162#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1163#define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
1164
1165#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1166#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1167#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1168#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1169#define SWIG_fail goto fail
1170
1171
1172/* Runtime API implementation */
1173
1174/* Error manipulation */
1175
1176SWIGINTERN void
1177SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1179 PyErr_SetObject(errtype, obj);
1180 Py_DECREF(obj);
1182}
1183
1184SWIGINTERN void
1185SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1187 PyErr_SetString(errtype, msg);
1189}
1190
1191#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1192
1193/* Set a constant value */
1194
1195#if defined(SWIGPYTHON_BUILTIN)
1196
1197SWIGINTERN void
1198SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1199 PyObject *s = PyString_InternFromString(key);
1200 PyList_Append(seq, s);
1201 Py_DECREF(s);
1202}
1203
1204SWIGINTERN void
1205SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1206 PyDict_SetItemString(d, name, obj);
1207 Py_DECREF(obj);
1208 if (public_interface)
1209 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1210}
1211
1212#else
1213
1214SWIGINTERN void
1215SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1216 PyDict_SetItemString(d, name, obj);
1217 Py_DECREF(obj);
1218}
1219
1220#endif
1221
1222/* Append a value to the result obj */
1223
1224SWIGINTERN PyObject*
1225SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1226 if (!result) {
1227 result = obj;
1228 } else if (result == Py_None) {
1229 Py_DECREF(result);
1230 result = obj;
1231 } else {
1232 if (!PyList_Check(result)) {
1233 PyObject *o2 = result;
1234 result = PyList_New(1);
1235 if (result) {
1236 PyList_SET_ITEM(result, 0, o2);
1237 } else {
1238 Py_DECREF(obj);
1239 return o2;
1240 }
1241 }
1242 PyList_Append(result,obj);
1243 Py_DECREF(obj);
1244 }
1245 return result;
1246}
1247
1248/* Unpack the argument tuple */
1249
1250SWIGINTERN Py_ssize_t
1251SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1252{
1253 if (!args) {
1254 if (!min && !max) {
1255 return 1;
1256 } else {
1257 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1258 name, (min == max ? "" : "at least "), (int)min);
1259 return 0;
1260 }
1261 }
1262 if (!PyTuple_Check(args)) {
1263 if (min <= 1 && max >= 1) {
1264 Py_ssize_t i;
1265 objs[0] = args;
1266 for (i = 1; i < max; ++i) {
1267 objs[i] = 0;
1268 }
1269 return 2;
1270 }
1271 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1272 return 0;
1273 } else {
1274 Py_ssize_t l = PyTuple_GET_SIZE(args);
1275 if (l < min) {
1276 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1277 name, (min == max ? "" : "at least "), (int)min, (int)l);
1278 return 0;
1279 } else if (l > max) {
1280 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1281 name, (min == max ? "" : "at most "), (int)max, (int)l);
1282 return 0;
1283 } else {
1284 Py_ssize_t i;
1285 for (i = 0; i < l; ++i) {
1286 objs[i] = PyTuple_GET_ITEM(args, i);
1287 }
1288 for (; l < max; ++l) {
1289 objs[l] = 0;
1290 }
1291 return i + 1;
1292 }
1293 }
1294}
1295
1296SWIGINTERN int
1297SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
1298 int no_kwargs = 1;
1299 if (kwargs) {
1300 assert(PyDict_Check(kwargs));
1301 if (PyDict_Size(kwargs) > 0) {
1302 PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
1303 no_kwargs = 0;
1304 }
1305 }
1306 return no_kwargs;
1307}
1308
1309/* A functor is a function object with one single object argument */
1310#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1311
1312/*
1313 Helper for static pointer initialization for both C and C++ code, for example
1314 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1315*/
1316#ifdef __cplusplus
1317#define SWIG_STATIC_POINTER(var) var
1318#else
1319#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1320#endif
1321
1322#ifdef __cplusplus
1323extern "C" {
1324#endif
1325
1326/* Python-specific SWIG API */
1327#define SWIG_newvarlink() SWIG_Python_newvarlink()
1328#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
1329#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
1330
1331/* -----------------------------------------------------------------------------
1332 * global variable support code.
1333 * ----------------------------------------------------------------------------- */
1334
1335typedef struct swig_globalvar {
1336 char *name; /* Name of global variable */
1337 PyObject *(*get_attr)(void); /* Return the current value */
1338 int (*set_attr)(PyObject *); /* Set the value */
1341
1346
1347SWIGINTERN PyObject *
1349#if PY_VERSION_HEX >= 0x03000000
1350 return PyUnicode_InternFromString("<Swig global variables>");
1351#else
1352 return PyString_FromString("<Swig global variables>");
1353#endif
1354}
1355
1356SWIGINTERN PyObject *
1357swig_varlink_str(PyObject *o) {
1359#if PY_VERSION_HEX >= 0x03000000
1360 PyObject *str = PyUnicode_InternFromString("(");
1361 PyObject *tail;
1362 PyObject *joined;
1363 swig_globalvar *var;
1364 for (var = v->vars; var; var=var->next) {
1365 tail = PyUnicode_FromString(var->name);
1366 joined = PyUnicode_Concat(str, tail);
1367 Py_DecRef(str);
1368 Py_DecRef(tail);
1369 str = joined;
1370 if (var->next) {
1371 tail = PyUnicode_InternFromString(", ");
1372 joined = PyUnicode_Concat(str, tail);
1373 Py_DecRef(str);
1374 Py_DecRef(tail);
1375 str = joined;
1376 }
1377 }
1378 tail = PyUnicode_InternFromString(")");
1379 joined = PyUnicode_Concat(str, tail);
1380 Py_DecRef(str);
1381 Py_DecRef(tail);
1382 str = joined;
1383#else
1384 PyObject *str = PyString_FromString("(");
1385 swig_globalvar *var;
1386 for (var = v->vars; var; var=var->next) {
1387 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
1388 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
1389 }
1390 PyString_ConcatAndDel(&str,PyString_FromString(")"));
1391#endif
1392 return str;
1393}
1394
1395SWIGINTERN void
1398 swig_globalvar *var = v->vars;
1399 while (var) {
1400 swig_globalvar *n = var->next;
1401 free(var->name);
1402 free(var);
1403 var = n;
1404 }
1405}
1406
1407SWIGINTERN PyObject *
1408swig_varlink_getattr(PyObject *o, char *n) {
1410 PyObject *res = NULL;
1411 swig_globalvar *var = v->vars;
1412 while (var) {
1413 if (strcmp(var->name,n) == 0) {
1414 res = (*var->get_attr)();
1415 break;
1416 }
1417 var = var->next;
1418 }
1419 if (res == NULL && !PyErr_Occurred()) {
1420 PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
1421 }
1422 return res;
1423}
1424
1425SWIGINTERN int
1426swig_varlink_setattr(PyObject *o, char *n, PyObject *p) {
1428 int res = 1;
1429 swig_globalvar *var = v->vars;
1430 while (var) {
1431 if (strcmp(var->name,n) == 0) {
1432 res = (*var->set_attr)(p);
1433 break;
1434 }
1435 var = var->next;
1436 }
1437 if (res == 1 && !PyErr_Occurred()) {
1438 PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
1439 }
1440 return res;
1441}
1442
1443SWIGINTERN PyTypeObject*
1445 static char varlink__doc__[] = "Swig var link object";
1446#ifndef Py_LIMITED_API
1447 static PyTypeObject varlink_type;
1448 static int type_init = 0;
1449 if (!type_init) {
1450 const PyTypeObject tmp = {
1451#if PY_VERSION_HEX >= 0x03000000
1452 PyVarObject_HEAD_INIT(NULL, 0)
1453#else
1454 PyObject_HEAD_INIT(NULL)
1455 0, /* ob_size */
1456#endif
1457 "swigvarlink", /* tp_name */
1458 sizeof(swig_varlinkobject), /* tp_basicsize */
1459 0, /* tp_itemsize */
1460 (destructor) swig_varlink_dealloc, /* tp_dealloc */
1461#if PY_VERSION_HEX < 0x030800b4
1462 (printfunc)0, /*tp_print*/
1463#else
1464 (Py_ssize_t)0, /*tp_vectorcall_offset*/
1465#endif
1466 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
1467 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
1468 0, /* tp_compare */
1469 (reprfunc) swig_varlink_repr, /* tp_repr */
1470 0, /* tp_as_number */
1471 0, /* tp_as_sequence */
1472 0, /* tp_as_mapping */
1473 0, /* tp_hash */
1474 0, /* tp_call */
1475 (reprfunc) swig_varlink_str, /* tp_str */
1476 0, /* tp_getattro */
1477 0, /* tp_setattro */
1478 0, /* tp_as_buffer */
1479 0, /* tp_flags */
1480 varlink__doc__, /* tp_doc */
1481 0, /* tp_traverse */
1482 0, /* tp_clear */
1483 0, /* tp_richcompare */
1484 0, /* tp_weaklistoffset */
1485 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
1486 0, /* tp_del */
1487 0, /* tp_version_tag */
1488#if PY_VERSION_HEX >= 0x03040000
1489 0, /* tp_finalize */
1490#endif
1491#if PY_VERSION_HEX >= 0x03080000
1492 0, /* tp_vectorcall */
1493#endif
1494#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1495 0, /* tp_print */
1496#endif
1497#if PY_VERSION_HEX >= 0x030C0000
1498 0, /* tp_watched */
1499#endif
1500#ifdef COUNT_ALLOCS
1501 0, /* tp_allocs */
1502 0, /* tp_frees */
1503 0, /* tp_maxalloc */
1504 0, /* tp_prev */
1505 0 /* tp_next */
1506#endif
1507 };
1508 varlink_type = tmp;
1509 type_init = 1;
1510 if (PyType_Ready(&varlink_type) < 0)
1511 return NULL;
1512 }
1513 return &varlink_type;
1514#else
1515 PyType_Slot slots[] = {
1516 { Py_tp_dealloc, (void *)swig_varlink_dealloc },
1517 { Py_tp_repr, (void *)swig_varlink_repr },
1518 { Py_tp_getattr, (void *)swig_varlink_getattr },
1519 { Py_tp_setattr, (void *)swig_varlink_setattr },
1520 { Py_tp_str, (void *)swig_varlink_str },
1521 { Py_tp_doc, (void *)varlink__doc__ },
1522 { 0, NULL }
1523 };
1524 PyType_Spec spec = {
1525 "swigvarlink",
1526 sizeof(swig_varlinkobject),
1527 0,
1528 Py_TPFLAGS_DEFAULT,
1529 slots
1530 };
1531 return (PyTypeObject *)PyType_FromSpec(&spec);
1532#endif
1533}
1534
1535/* Create a variable linking object for use later */
1536SWIGINTERN PyObject *
1538 swig_varlinkobject *result = PyObject_New(swig_varlinkobject, swig_varlink_type());
1539 if (result) {
1540 result->vars = 0;
1541 }
1542 return ((PyObject*) result);
1543}
1544
1545SWIGINTERN void
1546SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
1549 if (gv) {
1550 size_t size = strlen(name)+1;
1551 gv->name = (char *)malloc(size);
1552 if (gv->name) {
1553 memcpy(gv->name, name, size);
1554 gv->get_attr = get_attr;
1555 gv->set_attr = set_attr;
1556 gv->next = v->vars;
1557 }
1558 }
1559 v->vars = gv;
1560}
1561
1562
1563static PyObject *Swig_Globals_global = NULL;
1564
1565SWIGINTERN PyObject *
1567 if (Swig_Globals_global == NULL) {
1569 }
1570 return Swig_Globals_global;
1571}
1572
1573#ifdef __cplusplus
1574}
1575#endif
1576
1577/* -----------------------------------------------------------------------------
1578 * Pointer declarations
1579 * ----------------------------------------------------------------------------- */
1580
1581/* Flags for new pointer objects */
1582#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1583#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1584
1585#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1586
1587#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1588#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1589
1590#ifdef __cplusplus
1591extern "C" {
1592#endif
1593
1594/* The python void return value */
1595
1596SWIGRUNTIMEINLINE PyObject *
1598{
1599 PyObject *none = Py_None;
1600 Py_INCREF(none);
1601 return none;
1602}
1603
1604/* SwigPyClientData */
1605
1606typedef struct {
1607 PyObject *klass;
1608 PyObject *newraw;
1609 PyObject *newargs;
1610 PyObject *destroy;
1613 PyTypeObject *pytype;
1615
1618{
1620 int fail = data ? data->implicitconv : 0;
1621 if (fail)
1622 PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
1623 return fail;
1624}
1625
1626SWIGRUNTIMEINLINE PyObject *
1628 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1629 PyObject *klass = data ? data->klass : 0;
1630 return (klass ? klass : PyExc_RuntimeError);
1631}
1632
1633
1636{
1637 if (!obj) {
1638 return 0;
1639 } else {
1641 /* the klass element */
1642 data->klass = obj;
1643 Py_INCREF(data->klass);
1644 /* the newraw method and newargs arguments used to create a new raw instance */
1645 if (PyClass_Check(obj)) {
1646 data->newraw = 0;
1647 Py_INCREF(obj);
1648 data->newargs = obj;
1649 } else {
1650 data->newraw = PyObject_GetAttrString(data->klass, "__new__");
1651 if (data->newraw) {
1652 data->newargs = PyTuple_New(1);
1653 if (data->newargs) {
1654 Py_INCREF(obj);
1655 PyTuple_SET_ITEM(data->newargs, 0, obj);
1656 } else {
1657 Py_DECREF(data->newraw);
1658 Py_DECREF(data->klass);
1659 free(data);
1660 return 0;
1661 }
1662 } else {
1663 Py_INCREF(obj);
1664 data->newargs = obj;
1665 }
1666 }
1667 /* the destroy method, aka as the C++ delete method */
1668 data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
1669 if (PyErr_Occurred()) {
1670 PyErr_Clear();
1671 data->destroy = 0;
1672 }
1673 if (data->destroy) {
1674 data->delargs = !(PyCFunction_GET_FLAGS(data->destroy) & METH_O);
1675 } else {
1676 data->delargs = 0;
1677 }
1678 data->implicitconv = 0;
1679 data->pytype = 0;
1680 return data;
1681 }
1682}
1683
1684SWIGRUNTIME void
1686{
1687 Py_XDECREF(data->klass);
1688 Py_XDECREF(data->newraw);
1689 Py_XDECREF(data->newargs);
1690 Py_XDECREF(data->destroy);
1691 free(data);
1692}
1693
1694/* =============== SwigPyObject =====================*/
1695
1696typedef struct {
1697 PyObject_HEAD
1698 void *ptr;
1700 int own;
1701 PyObject *next;
1702#ifdef SWIGPYTHON_BUILTIN
1703 PyObject *dict;
1704#endif
1705} SwigPyObject;
1706
1707
1708#ifdef SWIGPYTHON_BUILTIN
1709
1710SWIGRUNTIME PyObject *
1711SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1712{
1713 SwigPyObject *sobj = (SwigPyObject *)v;
1714
1715 if (!sobj->dict)
1716 sobj->dict = PyDict_New();
1717
1718 Py_XINCREF(sobj->dict);
1719 return sobj->dict;
1720}
1721
1722#endif
1723
1724SWIGRUNTIME PyObject *
1726{
1727 return PyLong_FromVoidPtr(v->ptr);
1728}
1729
1730SWIGRUNTIME PyObject *
1732{
1733 PyObject *res = NULL;
1734 PyObject *args = PyTuple_New(1);
1735 if (args) {
1736 PyObject *val = SwigPyObject_long(v);
1737 if (val) {
1738 PyObject *ofmt;
1739 PyTuple_SET_ITEM(args, 0, val);
1740 ofmt = SWIG_Python_str_FromChar(fmt);
1741 if (ofmt) {
1742#if PY_VERSION_HEX >= 0x03000000
1743 res = PyUnicode_Format(ofmt,args);
1744#else
1745 res = PyString_Format(ofmt,args);
1746#endif
1747 Py_DECREF(ofmt);
1748 }
1749 }
1750 Py_DECREF(args);
1751 }
1752 return res;
1753}
1754
1755SWIGRUNTIME PyObject *
1757{
1758 return SwigPyObject_format("%o",v);
1759}
1760
1761SWIGRUNTIME PyObject *
1763{
1764 return SwigPyObject_format("%x",v);
1765}
1766
1767SWIGRUNTIME PyObject *
1769{
1770 const char *name = SWIG_TypePrettyName(v->ty);
1771 PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1772 if (repr && v->next) {
1773 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1774 if (nrep) {
1775# if PY_VERSION_HEX >= 0x03000000
1776 PyObject *joined = PyUnicode_Concat(repr, nrep);
1777 Py_DecRef(repr);
1778 Py_DecRef(nrep);
1779 repr = joined;
1780# else
1781 PyString_ConcatAndDel(&repr,nrep);
1782# endif
1783 } else {
1784 Py_DecRef(repr);
1785 repr = NULL;
1786 }
1787 }
1788 return repr;
1789}
1790
1791/* We need a version taking two PyObject* parameters so it's a valid
1792 * PyCFunction to use in swigobject_methods[]. */
1793SWIGRUNTIME PyObject *
1794SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1795{
1796 return SwigPyObject_repr((SwigPyObject*)v);
1797}
1798
1799SWIGRUNTIME int
1801{
1802 void *i = v->ptr;
1803 void *j = w->ptr;
1804 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1805}
1806
1807/* Added for Python 3.x, would it also be useful for Python 2.x? */
1808SWIGRUNTIME PyObject*
1810{
1811 PyObject* res = NULL;
1812 if (!PyErr_Occurred()) {
1813 if (op != Py_EQ && op != Py_NE) {
1814 Py_INCREF(Py_NotImplemented);
1815 return Py_NotImplemented;
1816 }
1817 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1818 }
1819 return res;
1820}
1821
1822
1823SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1824
1825#ifdef SWIGPYTHON_BUILTIN
1826static swig_type_info *SwigPyObject_stype = 0;
1827SWIGRUNTIME PyTypeObject*
1828SwigPyObject_type(void) {
1829 SwigPyClientData *cd;
1830 assert(SwigPyObject_stype);
1831 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1832 assert(cd);
1833 assert(cd->pytype);
1834 return cd->pytype;
1835}
1836#else
1837SWIGRUNTIME PyTypeObject*
1839 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1840 return type;
1841}
1842#endif
1843
1845SwigPyObject_Check(PyObject *op) {
1846 PyTypeObject *target_tp = SwigPyObject_type();
1847 PyTypeObject *op_type = Py_TYPE(op);
1848#ifdef SWIGPYTHON_BUILTIN
1849 if (PyType_IsSubtype(op_type, target_tp))
1850 return 1;
1851 return (strcmp(op_type->tp_name, "SwigPyObject") == 0);
1852#else
1853 if (op_type == target_tp)
1854 return 1;
1855# ifdef Py_LIMITED_API
1856 int cmp;
1857 PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type, "__name__");
1858 if (!tp_name)
1859 return 0;
1860 cmp = PyUnicode_CompareWithASCIIString(tp_name, "SwigPyObject");
1861 Py_DECREF(tp_name);
1862 return cmp == 0;
1863# else
1864 return (strcmp(op_type->tp_name, "SwigPyObject") == 0);
1865# endif
1866#endif
1867}
1868
1869SWIGRUNTIME PyObject *
1870SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1871
1872static PyObject* Swig_Capsule_global = NULL;
1873
1874SWIGRUNTIME void
1876{
1877 SwigPyObject *sobj = (SwigPyObject *) v;
1878 PyObject *next = sobj->next;
1879 if (sobj->own == SWIG_POINTER_OWN) {
1880 swig_type_info *ty = sobj->ty;
1882 PyObject *destroy = data ? data->destroy : 0;
1883 if (destroy) {
1884 /* destroy is always a VARARGS method */
1885 PyObject *res;
1886
1887 /* PyObject_CallFunction() has the potential to silently drop
1888 the active exception. In cases of unnamed temporary
1889 variable or where we just finished iterating over a generator
1890 StopIteration will be active right now, and this needs to
1891 remain true upon return from SwigPyObject_dealloc. So save
1892 and restore. */
1893
1894 PyObject *type = NULL, *value = NULL, *traceback = NULL;
1895 PyErr_Fetch(&type, &value, &traceback);
1896
1897 if (data->delargs) {
1898 /* we need to create a temporary object to carry the destroy operation */
1899 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1900 if (tmp) {
1901 res = SWIG_Python_CallFunctor(destroy, tmp);
1902 } else {
1903 res = 0;
1904 }
1905 Py_XDECREF(tmp);
1906 } else {
1907 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1908 PyObject *mself = PyCFunction_GET_SELF(destroy);
1909 res = ((*meth)(mself, v));
1910 }
1911 if (!res)
1912 PyErr_WriteUnraisable(destroy);
1913
1914 PyErr_Restore(type, value, traceback);
1915
1916 Py_XDECREF(res);
1917 }
1918#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1919 else {
1920 const char *name = SWIG_TypePrettyName(ty);
1921 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1922 }
1923#endif
1924 Py_XDECREF(Swig_Capsule_global);
1925 }
1926 Py_XDECREF(next);
1927#ifdef SWIGPYTHON_BUILTIN
1928 Py_XDECREF(sobj->dict);
1929#endif
1930 PyObject_DEL(v);
1931}
1932
1933SWIGRUNTIME PyObject*
1934SwigPyObject_append(PyObject* v, PyObject* next)
1935{
1936 SwigPyObject *sobj = (SwigPyObject *) v;
1937 if (!SwigPyObject_Check(next)) {
1938 PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1939 return NULL;
1940 }
1941 ((SwigPyObject *)next)->next = sobj->next;
1942 sobj->next = next;
1943 Py_INCREF(next);
1944 return SWIG_Py_Void();
1945}
1946
1947SWIGRUNTIME PyObject*
1948SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1949{
1950 SwigPyObject *sobj = (SwigPyObject *) v;
1951 if (sobj->next) {
1952 Py_INCREF(sobj->next);
1953 return sobj->next;
1954 } else {
1955 return SWIG_Py_Void();
1956 }
1957}
1958
1959SWIGINTERN PyObject*
1960SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1961{
1962 SwigPyObject *sobj = (SwigPyObject *)v;
1963 sobj->own = 0;
1964 return SWIG_Py_Void();
1965}
1966
1967SWIGINTERN PyObject*
1968SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1969{
1970 SwigPyObject *sobj = (SwigPyObject *)v;
1971 sobj->own = SWIG_POINTER_OWN;
1972 return SWIG_Py_Void();
1973}
1974
1975SWIGINTERN PyObject*
1976SwigPyObject_own(PyObject *v, PyObject *args)
1977{
1978 PyObject *val = 0;
1979 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
1980 return NULL;
1981 } else {
1982 SwigPyObject *sobj = (SwigPyObject *)v;
1983 PyObject *obj = PyBool_FromLong(sobj->own);
1984 if (val) {
1985 if (PyObject_IsTrue(val)) {
1986 Py_DECREF(SwigPyObject_acquire(v,args));
1987 } else {
1988 Py_DECREF(SwigPyObject_disown(v,args));
1989 }
1990 }
1991 return obj;
1992 }
1993}
1994
1995static PyMethodDef
1997 {"disown", SwigPyObject_disown, METH_NOARGS, "releases ownership of the pointer"},
1998 {"acquire", SwigPyObject_acquire, METH_NOARGS, "acquires ownership of the pointer"},
1999 {"own", SwigPyObject_own, METH_VARARGS, "returns/sets ownership of the pointer"},
2000 {"append", SwigPyObject_append, METH_O, "appends another 'this' object"},
2001 {"next", SwigPyObject_next, METH_NOARGS, "returns the next 'this' object"},
2002 {"__repr__",SwigPyObject_repr2, METH_NOARGS, "returns object representation"},
2003 {0, 0, 0, 0}
2004};
2005
2006SWIGRUNTIME PyTypeObject*
2008 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
2009#ifndef Py_LIMITED_API
2010 static PyNumberMethods SwigPyObject_as_number = {
2011 (binaryfunc)0, /*nb_add*/
2012 (binaryfunc)0, /*nb_subtract*/
2013 (binaryfunc)0, /*nb_multiply*/
2014 /* nb_divide removed in Python 3 */
2015#if PY_VERSION_HEX < 0x03000000
2016 (binaryfunc)0, /*nb_divide*/
2017#endif
2018 (binaryfunc)0, /*nb_remainder*/
2019 (binaryfunc)0, /*nb_divmod*/
2020 (ternaryfunc)0,/*nb_power*/
2021 (unaryfunc)0, /*nb_negative*/
2022 (unaryfunc)0, /*nb_positive*/
2023 (unaryfunc)0, /*nb_absolute*/
2024 (inquiry)0, /*nb_nonzero*/
2025 0, /*nb_invert*/
2026 0, /*nb_lshift*/
2027 0, /*nb_rshift*/
2028 0, /*nb_and*/
2029 0, /*nb_xor*/
2030 0, /*nb_or*/
2031#if PY_VERSION_HEX < 0x03000000
2032 0, /*nb_coerce*/
2033#endif
2034 (unaryfunc)SwigPyObject_long, /*nb_int*/
2035#if PY_VERSION_HEX < 0x03000000
2036 (unaryfunc)SwigPyObject_long, /*nb_long*/
2037#else
2038 0, /*nb_reserved*/
2039#endif
2040 (unaryfunc)0, /*nb_float*/
2041#if PY_VERSION_HEX < 0x03000000
2042 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
2043 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
2044#endif
2045#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
2046 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
2047#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
2048 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
2049#else
2050 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
2051#endif
2052 };
2053
2054 static PyTypeObject swigpyobject_type;
2055 static int type_init = 0;
2056 if (!type_init) {
2057 const PyTypeObject tmp = {
2058#if PY_VERSION_HEX >= 0x03000000
2059 PyVarObject_HEAD_INIT(NULL, 0)
2060#else
2061 PyObject_HEAD_INIT(NULL)
2062 0, /* ob_size */
2063#endif
2064 "SwigPyObject", /* tp_name */
2065 sizeof(SwigPyObject), /* tp_basicsize */
2066 0, /* tp_itemsize */
2067 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
2068#if PY_VERSION_HEX < 0x030800b4
2069 (printfunc)0, /*tp_print*/
2070#else
2071 (Py_ssize_t)0, /*tp_vectorcall_offset*/
2072#endif
2073 (getattrfunc)0, /* tp_getattr */
2074 (setattrfunc)0, /* tp_setattr */
2075#if PY_VERSION_HEX >= 0x03000000
2076 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
2077#else
2078 (cmpfunc)SwigPyObject_compare, /* tp_compare */
2079#endif
2080 (reprfunc)SwigPyObject_repr, /* tp_repr */
2081 &SwigPyObject_as_number, /* tp_as_number */
2082 0, /* tp_as_sequence */
2083 0, /* tp_as_mapping */
2084 (hashfunc)0, /* tp_hash */
2085 (ternaryfunc)0, /* tp_call */
2086 0, /* tp_str */
2087 PyObject_GenericGetAttr, /* tp_getattro */
2088 0, /* tp_setattro */
2089 0, /* tp_as_buffer */
2090 Py_TPFLAGS_DEFAULT, /* tp_flags */
2091 swigobject_doc, /* tp_doc */
2092 0, /* tp_traverse */
2093 0, /* tp_clear */
2094 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
2095 0, /* tp_weaklistoffset */
2096 0, /* tp_iter */
2097 0, /* tp_iternext */
2098 swigobject_methods, /* tp_methods */
2099 0, /* tp_members */
2100 0, /* tp_getset */
2101 0, /* tp_base */
2102 0, /* tp_dict */
2103 0, /* tp_descr_get */
2104 0, /* tp_descr_set */
2105 0, /* tp_dictoffset */
2106 0, /* tp_init */
2107 0, /* tp_alloc */
2108 0, /* tp_new */
2109 0, /* tp_free */
2110 0, /* tp_is_gc */
2111 0, /* tp_bases */
2112 0, /* tp_mro */
2113 0, /* tp_cache */
2114 0, /* tp_subclasses */
2115 0, /* tp_weaklist */
2116 0, /* tp_del */
2117 0, /* tp_version_tag */
2118#if PY_VERSION_HEX >= 0x03040000
2119 0, /* tp_finalize */
2120#endif
2121#if PY_VERSION_HEX >= 0x03080000
2122 0, /* tp_vectorcall */
2123#endif
2124#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2125 0, /* tp_print */
2126#endif
2127#if PY_VERSION_HEX >= 0x030C0000
2128 0, /* tp_watched */
2129#endif
2130#ifdef COUNT_ALLOCS
2131 0, /* tp_allocs */
2132 0, /* tp_frees */
2133 0, /* tp_maxalloc */
2134 0, /* tp_prev */
2135 0 /* tp_next */
2136#endif
2137 };
2138 swigpyobject_type = tmp;
2139 type_init = 1;
2140 if (PyType_Ready(&swigpyobject_type) != 0)
2141 return NULL;
2142 }
2143 return &swigpyobject_type;
2144#else
2145 PyType_Slot slots[] = {
2146 { Py_tp_dealloc, (void *)SwigPyObject_dealloc },
2147 { Py_tp_repr, (void *)SwigPyObject_repr },
2148 { Py_tp_getattro, (void *)PyObject_GenericGetAttr },
2149 { Py_tp_doc, (void *)swigobject_doc },
2150 { Py_tp_richcompare, (void *)SwigPyObject_richcompare },
2151 { Py_tp_methods, (void *)swigobject_methods },
2152 { Py_nb_int, (void *)SwigPyObject_long },
2153 { 0, NULL }
2154 };
2155 PyType_Spec spec = {
2156 "SwigPyObject",
2157 sizeof(SwigPyObject),
2158 0,
2159 Py_TPFLAGS_DEFAULT,
2160 slots
2161 };
2162 return (PyTypeObject *)PyType_FromSpec(&spec);
2163#endif
2164}
2165
2166SWIGRUNTIME PyObject *
2167SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2168{
2169 SwigPyObject *sobj = PyObject_New(SwigPyObject, SwigPyObject_type());
2170 if (sobj) {
2171 sobj->ptr = ptr;
2172 sobj->ty = ty;
2173 sobj->own = own;
2174 sobj->next = 0;
2175#ifdef SWIGPYTHON_BUILTIN
2176 sobj->dict = 0;
2177#endif
2178 if (own == SWIG_POINTER_OWN) {
2179 /* Obtain a reference to the Python capsule wrapping the module information, so that the
2180 * module information is correctly destroyed after all SWIG python objects have been freed
2181 * by the GC (and corresponding destructors invoked) */
2182 Py_XINCREF(Swig_Capsule_global);
2183 }
2184 }
2185 return (PyObject *)sobj;
2186}
2187
2188/* -----------------------------------------------------------------------------
2189 * Implements a simple Swig Packed type, and use it instead of string
2190 * ----------------------------------------------------------------------------- */
2191
2192typedef struct {
2193 PyObject_HEAD
2194 void *pack;
2196 size_t size;
2197} SwigPyPacked;
2198
2199SWIGRUNTIME PyObject *
2201{
2202 char result[SWIG_BUFFER_SIZE];
2203 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2204 return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2205 } else {
2206 return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
2207 }
2208}
2209
2210SWIGRUNTIME PyObject *
2212{
2213 char result[SWIG_BUFFER_SIZE];
2214 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2215 return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
2216 } else {
2217 return SWIG_Python_str_FromChar(v->ty->name);
2218 }
2219}
2220
2221SWIGRUNTIME int
2223{
2224 size_t i = v->size;
2225 size_t j = w->size;
2226 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2227 return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
2228}
2229
2230SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
2231
2232SWIGRUNTIME PyTypeObject*
2234 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2235 return type;
2236}
2237
2239SwigPyPacked_Check(PyObject *op) {
2240 PyTypeObject* op_type = Py_TYPE(op);
2241 if (op_type == SwigPyPacked_TypeOnce())
2242 return 1;
2243#ifdef Py_LIMITED_API
2244 int cmp;
2245 PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type, "__name__");
2246 if (!tp_name)
2247 return 0;
2248 cmp = PyUnicode_CompareWithASCIIString(tp_name, "SwigPyPacked");
2249 Py_DECREF(tp_name);
2250 return cmp == 0;
2251#else
2252 return (strcmp(op_type->tp_name, "SwigPyPacked") == 0);
2253#endif
2254}
2255
2256SWIGRUNTIME void
2258{
2259 if (SwigPyPacked_Check(v)) {
2260 SwigPyPacked *sobj = (SwigPyPacked *) v;
2261 free(sobj->pack);
2262 }
2263 PyObject_DEL(v);
2264}
2265
2266SWIGRUNTIME PyTypeObject*
2268 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2269#ifndef Py_LIMITED_API
2270 static PyTypeObject swigpypacked_type;
2271 static int type_init = 0;
2272 if (!type_init) {
2273 const PyTypeObject tmp = {
2274#if PY_VERSION_HEX>=0x03000000
2275 PyVarObject_HEAD_INIT(NULL, 0)
2276#else
2277 PyObject_HEAD_INIT(NULL)
2278 0, /* ob_size */
2279#endif
2280 "SwigPyPacked", /* tp_name */
2281 sizeof(SwigPyPacked), /* tp_basicsize */
2282 0, /* tp_itemsize */
2283 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2284#if PY_VERSION_HEX < 0x030800b4
2285 (printfunc)0, /*tp_print*/
2286#else
2287 (Py_ssize_t)0, /*tp_vectorcall_offset*/
2288#endif
2289 (getattrfunc)0, /* tp_getattr */
2290 (setattrfunc)0, /* tp_setattr */
2291#if PY_VERSION_HEX>=0x03000000
2292 0, /* tp_reserved in 3.0.1 */
2293#else
2294 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2295#endif
2296 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2297 0, /* tp_as_number */
2298 0, /* tp_as_sequence */
2299 0, /* tp_as_mapping */
2300 (hashfunc)0, /* tp_hash */
2301 (ternaryfunc)0, /* tp_call */
2302 (reprfunc)SwigPyPacked_str, /* tp_str */
2303 PyObject_GenericGetAttr, /* tp_getattro */
2304 0, /* tp_setattro */
2305 0, /* tp_as_buffer */
2306 Py_TPFLAGS_DEFAULT, /* tp_flags */
2307 swigpacked_doc, /* tp_doc */
2308 0, /* tp_traverse */
2309 0, /* tp_clear */
2310 0, /* tp_richcompare */
2311 0, /* tp_weaklistoffset */
2312 0, /* tp_iter */
2313 0, /* tp_iternext */
2314 0, /* tp_methods */
2315 0, /* tp_members */
2316 0, /* tp_getset */
2317 0, /* tp_base */
2318 0, /* tp_dict */
2319 0, /* tp_descr_get */
2320 0, /* tp_descr_set */
2321 0, /* tp_dictoffset */
2322 0, /* tp_init */
2323 0, /* tp_alloc */
2324 0, /* tp_new */
2325 0, /* tp_free */
2326 0, /* tp_is_gc */
2327 0, /* tp_bases */
2328 0, /* tp_mro */
2329 0, /* tp_cache */
2330 0, /* tp_subclasses */
2331 0, /* tp_weaklist */
2332 0, /* tp_del */
2333 0, /* tp_version_tag */
2334#if PY_VERSION_HEX >= 0x03040000
2335 0, /* tp_finalize */
2336#endif
2337#if PY_VERSION_HEX >= 0x03080000
2338 0, /* tp_vectorcall */
2339#endif
2340#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2341 0, /* tp_print */
2342#endif
2343#if PY_VERSION_HEX >= 0x030C0000
2344 0, /* tp_watched */
2345#endif
2346#ifdef COUNT_ALLOCS
2347 0, /* tp_allocs */
2348 0, /* tp_frees */
2349 0, /* tp_maxalloc */
2350 0, /* tp_prev */
2351 0 /* tp_next */
2352#endif
2353 };
2354 swigpypacked_type = tmp;
2355 type_init = 1;
2356 if (PyType_Ready(&swigpypacked_type) != 0)
2357 return NULL;
2358 }
2359 return &swigpypacked_type;
2360#else
2361 PyType_Slot slots[] = {
2362 { Py_tp_dealloc, (void *)SwigPyPacked_dealloc },
2363 { Py_tp_repr, (void *)SwigPyPacked_repr },
2364 { Py_tp_str, (void *)SwigPyPacked_str },
2365 { Py_tp_getattro, (void *)PyObject_GenericGetAttr },
2366 { Py_tp_doc, (void *)swigpacked_doc },
2367 { 0, NULL }
2368 };
2369 PyType_Spec spec = {
2370 "SwigPyPacked",
2371 sizeof(SwigPyPacked),
2372 0,
2373 Py_TPFLAGS_DEFAULT,
2374 slots
2375 };
2376 return (PyTypeObject *)PyType_FromSpec(&spec);
2377#endif
2378}
2379
2380SWIGRUNTIME PyObject *
2381SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2382{
2383 SwigPyPacked *sobj = PyObject_New(SwigPyPacked, SwigPyPacked_type());
2384 if (sobj) {
2385 void *pack = malloc(size);
2386 if (pack) {
2387 memcpy(pack, ptr, size);
2388 sobj->pack = pack;
2389 sobj->ty = ty;
2390 sobj->size = size;
2391 } else {
2392 PyObject_DEL((PyObject *) sobj);
2393 sobj = 0;
2394 }
2395 }
2396 return (PyObject *) sobj;
2397}
2398
2400SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2401{
2402 if (SwigPyPacked_Check(obj)) {
2403 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2404 if (sobj->size != size) return 0;
2405 memcpy(ptr, sobj->pack, size);
2406 return sobj->ty;
2407 } else {
2408 return 0;
2409 }
2410}
2411
2412/* -----------------------------------------------------------------------------
2413 * pointers/data manipulation
2414 * ----------------------------------------------------------------------------- */
2415
2416static PyObject *Swig_This_global = NULL;
2417
2418SWIGRUNTIME PyObject *
2420{
2421 if (Swig_This_global == NULL)
2423 return Swig_This_global;
2424}
2425
2426/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2427
2428/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2429#if PY_VERSION_HEX>=0x03000000
2430#define SWIG_PYTHON_SLOW_GETSET_THIS
2431#endif
2432
2435{
2436 PyObject *obj;
2437
2438 if (SwigPyObject_Check(pyobj))
2439 return (SwigPyObject *) pyobj;
2440
2441#ifdef SWIGPYTHON_BUILTIN
2442 (void)obj;
2443# ifdef PyWeakref_CheckProxy
2444 if (PyWeakref_CheckProxy(pyobj)) {
2445 pyobj = PyWeakref_GET_OBJECT(pyobj);
2446 if (pyobj && SwigPyObject_Check(pyobj))
2447 return (SwigPyObject*) pyobj;
2448 }
2449# endif
2450 return NULL;
2451#else
2452
2453 obj = 0;
2454
2455#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2456 if (PyInstance_Check(pyobj)) {
2457 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2458 } else {
2459 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2460 if (dictptr != NULL) {
2461 PyObject *dict = *dictptr;
2462 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2463 } else {
2464#ifdef PyWeakref_CheckProxy
2465 if (PyWeakref_CheckProxy(pyobj)) {
2466 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2467 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2468 }
2469#endif
2470 obj = PyObject_GetAttr(pyobj,SWIG_This());
2471 if (obj) {
2472 Py_DECREF(obj);
2473 } else {
2474 if (PyErr_Occurred()) PyErr_Clear();
2475 return 0;
2476 }
2477 }
2478 }
2479#else
2480 obj = PyObject_GetAttr(pyobj,SWIG_This());
2481 if (obj) {
2482 Py_DECREF(obj);
2483 } else {
2484 if (PyErr_Occurred()) PyErr_Clear();
2485 return 0;
2486 }
2487#endif
2488 if (obj && !SwigPyObject_Check(obj)) {
2489 /* a PyObject is called 'this', try to get the 'real this'
2490 SwigPyObject from it */
2491 return SWIG_Python_GetSwigThis(obj);
2492 }
2493 return (SwigPyObject *)obj;
2494#endif
2495}
2496
2497/* Acquire a pointer value */
2498
2499SWIGRUNTIME int
2500SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2501 if (own == SWIG_POINTER_OWN) {
2503 if (sobj) {
2504 int oldown = sobj->own;
2505 sobj->own = own;
2506 return oldown;
2507 }
2508 }
2509 return 0;
2510}
2511
2512/* Convert a pointer value */
2513
2514SWIGRUNTIME int
2515SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2516 int res;
2517 SwigPyObject *sobj;
2518 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2519
2520 if (!obj)
2521 return SWIG_ERROR;
2522 if (obj == Py_None && !implicit_conv) {
2523 if (ptr)
2524 *ptr = 0;
2526 }
2527
2528 res = SWIG_ERROR;
2529
2530 sobj = SWIG_Python_GetSwigThis(obj);
2531 if (own)
2532 *own = 0;
2533 while (sobj) {
2534 void *vptr = sobj->ptr;
2535 if (ty) {
2536 swig_type_info *to = sobj->ty;
2537 if (to == ty) {
2538 /* no type cast needed */
2539 if (ptr) *ptr = vptr;
2540 break;
2541 } else {
2542 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2543 if (!tc) {
2544 sobj = (SwigPyObject *)sobj->next;
2545 } else {
2546 if (ptr) {
2547 int newmemory = 0;
2548 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2549 if (newmemory == SWIG_CAST_NEW_MEMORY) {
2550 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2551 if (own)
2552 *own = *own | SWIG_CAST_NEW_MEMORY;
2553 }
2554 }
2555 break;
2556 }
2557 }
2558 } else {
2559 if (ptr) *ptr = vptr;
2560 break;
2561 }
2562 }
2563 if (sobj) {
2564 if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE) && !sobj->own) {
2566 } else {
2567 if (own)
2568 *own = *own | sobj->own;
2569 if (flags & SWIG_POINTER_DISOWN) {
2570 sobj->own = 0;
2571 }
2572 if (flags & SWIG_POINTER_CLEAR) {
2573 sobj->ptr = 0;
2574 }
2575 res = SWIG_OK;
2576 }
2577 } else {
2578 if (implicit_conv) {
2580 if (data && !data->implicitconv) {
2581 PyObject *klass = data->klass;
2582 if (klass) {
2583 PyObject *impconv;
2584 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2585 impconv = SWIG_Python_CallFunctor(klass, obj);
2586 data->implicitconv = 0;
2587 if (PyErr_Occurred()) {
2588 PyErr_Clear();
2589 impconv = 0;
2590 }
2591 if (impconv) {
2592 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2593 if (iobj) {
2594 void *vptr;
2595 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2596 if (SWIG_IsOK(res)) {
2597 if (ptr) {
2598 *ptr = vptr;
2599 /* transfer the ownership to 'ptr' */
2600 iobj->own = 0;
2601 res = SWIG_AddCast(res);
2602 res = SWIG_AddNewMask(res);
2603 } else {
2604 res = SWIG_AddCast(res);
2605 }
2606 }
2607 }
2608 Py_DECREF(impconv);
2609 }
2610 }
2611 }
2612 if (!SWIG_IsOK(res) && obj == Py_None) {
2613 if (ptr)
2614 *ptr = 0;
2615 if (PyErr_Occurred())
2616 PyErr_Clear();
2617 res = SWIG_OK;
2618 }
2619 }
2620 }
2621 return res;
2622}
2623
2624/* Convert a function ptr value */
2625
2626SWIGRUNTIME int
2627SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2628 if (!PyCFunction_Check(obj)) {
2629 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2630 } else {
2631 void *vptr = 0;
2632 swig_cast_info *tc;
2633
2634 /* here we get the method pointer for callbacks */
2635#ifndef Py_LIMITED_API
2636 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2637#else
2638 PyObject* pystr_doc = PyObject_GetAttrString(obj, "__doc__");
2639 PyObject *bytes = NULL;
2640 const char *doc = pystr_doc ? SWIG_PyUnicode_AsUTF8AndSize(pystr_doc, NULL, &bytes) : 0;
2641#endif
2642 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2643 if (desc)
2644 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2645#ifdef Py_LIMITED_API
2646 Py_XDECREF(bytes);
2647 Py_XDECREF(pystr_doc);
2648#endif
2649 if (!desc)
2650 return SWIG_ERROR;
2651 tc = SWIG_TypeCheck(desc,ty);
2652 if (tc) {
2653 int newmemory = 0;
2654 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2655 assert(!newmemory); /* newmemory handling not yet implemented */
2656 } else {
2657 return SWIG_ERROR;
2658 }
2659 return SWIG_OK;
2660 }
2661}
2662
2663/* Convert a packed pointer value */
2664
2665SWIGRUNTIME int
2666SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2667 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2668 if (!to) return SWIG_ERROR;
2669 if (ty) {
2670 if (to != ty) {
2671 /* check type cast? */
2672 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2673 if (!tc) return SWIG_ERROR;
2674 }
2675 }
2676 return SWIG_OK;
2677}
2678
2679/* -----------------------------------------------------------------------------
2680 * Create a new pointer object
2681 * ----------------------------------------------------------------------------- */
2682
2683/*
2684 Create a new instance object, without calling __init__, and set the
2685 'this' attribute.
2686*/
2687
2688SWIGRUNTIME PyObject*
2690{
2691 PyObject *inst = 0;
2692 PyObject *newraw = data->newraw;
2693 if (newraw) {
2694 inst = PyObject_Call(newraw, data->newargs, NULL);
2695 if (inst) {
2696#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2697 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2698 if (dictptr != NULL) {
2699 PyObject *dict = *dictptr;
2700 if (dict == NULL) {
2701 dict = PyDict_New();
2702 *dictptr = dict;
2703 }
2704 if (dict) {
2705 PyDict_SetItem(dict, SWIG_This(), swig_this);
2706 } else{
2707 Py_DECREF(inst);
2708 inst = 0;
2709 }
2710 }
2711#else
2712 if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2713 Py_DECREF(inst);
2714 inst = 0;
2715 }
2716#endif
2717 }
2718 } else {
2719#if PY_VERSION_HEX >= 0x03000000
2720 PyObject *empty_args = PyTuple_New(0);
2721 if (empty_args) {
2722 PyObject *empty_kwargs = PyDict_New();
2723 if (empty_kwargs) {
2724#ifndef Py_LIMITED_API
2725 newfunc newfn = ((PyTypeObject *)data->newargs)->tp_new;
2726#else
2727 newfunc newfn = (newfunc)PyType_GetSlot((PyTypeObject *)data->newargs, Py_tp_new);
2728#endif
2729 inst = newfn((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
2730 Py_DECREF(empty_kwargs);
2731 if (inst) {
2732 if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2733 Py_DECREF(inst);
2734 inst = 0;
2735 } else {
2736 PyType_Modified(Py_TYPE(inst));
2737 }
2738 }
2739 }
2740 Py_DECREF(empty_args);
2741 }
2742#else
2743 PyObject *dict = PyDict_New();
2744 if (dict) {
2745 PyDict_SetItem(dict, SWIG_This(), swig_this);
2746 inst = PyInstance_NewRaw(data->newargs, dict);
2747 Py_DECREF(dict);
2748 }
2749#endif
2750 }
2751 return inst;
2752}
2753
2754SWIGRUNTIME int
2755SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2756{
2757#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2758 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2759 if (dictptr != NULL) {
2760 PyObject *dict = *dictptr;
2761 if (dict == NULL) {
2762 dict = PyDict_New();
2763 *dictptr = dict;
2764 }
2765 if (dict) {
2766 return PyDict_SetItem(dict, SWIG_This(), swig_this);
2767 } else{
2768 return -1;
2769 }
2770 }
2771#endif
2772 return PyObject_SetAttr(inst, SWIG_This(), swig_this);
2773}
2774
2775
2776SWIGINTERN PyObject *
2778 PyObject *obj[2];
2779 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2780 return NULL;
2781 } else {
2782 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2783 if (sthis) {
2784 Py_DECREF(SwigPyObject_append((PyObject*) sthis, obj[1]));
2785 } else {
2786 if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
2787 return NULL;
2788 }
2789 return SWIG_Py_Void();
2790 }
2791}
2792
2793/* Create a new pointer object */
2794
2795SWIGRUNTIME PyObject *
2796SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2797 SwigPyClientData *clientdata;
2798 PyObject * robj;
2799 int own;
2800
2801 if (!ptr)
2802 return SWIG_Py_Void();
2803
2804 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2805 own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2806 if (clientdata && clientdata->pytype) {
2807 SwigPyObject *newobj;
2809 newobj = (SwigPyObject*) self;
2810 if (newobj->ptr) {
2811#ifndef Py_LIMITED_API
2812 allocfunc alloc = clientdata->pytype->tp_alloc;
2813#else
2814 allocfunc alloc = (allocfunc)PyType_GetSlot(clientdata->pytype, Py_tp_alloc);
2815#endif
2816 PyObject *next_self = alloc(clientdata->pytype, 0);
2817 while (newobj->next)
2818 newobj = (SwigPyObject *) newobj->next;
2819 newobj->next = next_self;
2820 newobj = (SwigPyObject *)next_self;
2821#ifdef SWIGPYTHON_BUILTIN
2822 newobj->dict = 0;
2823#endif
2824 }
2825 } else {
2826 newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2827#ifdef SWIGPYTHON_BUILTIN
2828 if (newobj) {
2829 newobj->dict = 0;
2830 }
2831#endif
2832 }
2833 if (newobj) {
2834 newobj->ptr = ptr;
2835 newobj->ty = type;
2836 newobj->own = own;
2837 newobj->next = 0;
2838 return (PyObject*) newobj;
2839 }
2840 return SWIG_Py_Void();
2841 }
2842
2843 assert(!(flags & SWIG_BUILTIN_TP_INIT));
2844
2845 robj = SwigPyObject_New(ptr, type, own);
2846 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2847 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2848 Py_DECREF(robj);
2849 robj = inst;
2850 }
2851 return robj;
2852}
2853
2854/* Create a new packed object */
2855
2856SWIGRUNTIMEINLINE PyObject *
2858 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2859}
2860
2861/* -----------------------------------------------------------------------------*
2862 * Get type list
2863 * -----------------------------------------------------------------------------*/
2864
2865#ifdef SWIG_LINK_RUNTIME
2866void *SWIG_ReturnGlobalTypeList(void *);
2867#endif
2868
2869static PyObject *Swig_TypeCache_global = NULL;
2870
2871/* The python cached type query */
2872SWIGRUNTIME PyObject *
2874 if (Swig_TypeCache_global == NULL) {
2875 Swig_TypeCache_global = PyDict_New();
2876 }
2877 return Swig_TypeCache_global;
2878}
2879
2882#ifdef SWIG_LINK_RUNTIME
2883 static void *type_pointer = (void *)0;
2884 /* first check if module already created */
2885 if (!type_pointer) {
2886 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2887 }
2888#else
2889 void *type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2890 if (PyErr_Occurred()) {
2891 PyErr_Clear();
2892 type_pointer = (void *)0;
2893 }
2894#endif
2895 return (swig_module_info *) type_pointer;
2896}
2897
2898
2899static int interpreter_counter = 0; /* how many (sub-)interpreters are using swig_module's types */
2900
2901SWIGRUNTIME void
2903{
2904 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2905 swig_type_info **types = swig_module->types;
2906 size_t i;
2907 if (--interpreter_counter != 0) /* another sub-interpreter may still be using the swig_module's types */
2908 return;
2909 for (i =0; i < swig_module->size; ++i) {
2910 swig_type_info *ty = types[i];
2911 if (ty->owndata) {
2913 ty->clientdata = 0;
2915 }
2916 }
2917 Py_DECREF(SWIG_This());
2919 Py_DECREF(SWIG_globals());
2921 Py_DECREF(SWIG_Python_TypeCache());
2924}
2925
2926SWIGRUNTIME void
2928#if PY_VERSION_HEX >= 0x03000000
2929 /* Add a dummy module object into sys.modules */
2930 PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2931#else
2932 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2933 PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2934#endif
2935 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2936 if (pointer && module) {
2937 if (PyModule_AddObject(module, SWIGPY_CAPSULE_ATTR_NAME, pointer) == 0) {
2939 Swig_Capsule_global = pointer;
2940 } else {
2941 Py_DECREF(pointer);
2942 }
2943 } else {
2944 Py_XDECREF(pointer);
2945 }
2946}
2947
2950{
2951 PyObject *cache = SWIG_Python_TypeCache();
2952 PyObject *key = SWIG_Python_str_FromChar(type);
2953 PyObject *obj = PyDict_GetItem(cache, key);
2954 swig_type_info *descriptor;
2955 if (obj) {
2956 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2957 } else {
2960 if (descriptor) {
2961 obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2962 if (obj) {
2963 PyDict_SetItem(cache, key, obj);
2964 Py_DECREF(obj);
2965 }
2966 }
2967 }
2968 Py_DECREF(key);
2969 return descriptor;
2970}
2971
2972/*
2973 For backward compatibility only
2974*/
2975#define SWIG_POINTER_EXCEPTION 0
2976#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2977#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2978
2979SWIGRUNTIME int
2980SWIG_Python_AddErrMesg(const char* mesg, int infront)
2981{
2982 if (PyErr_Occurred()) {
2983 PyObject *type = 0;
2984 PyObject *value = 0;
2985 PyObject *traceback = 0;
2986 PyErr_Fetch(&type, &value, &traceback);
2987 if (value) {
2988 PyObject *old_str = PyObject_Str(value);
2989 PyObject *bytes = NULL;
2990 const char *tmp = SWIG_PyUnicode_AsUTF8AndSize(old_str, NULL, &bytes);
2991 const char *errmesg = tmp ? tmp : "Invalid error message";
2992 Py_XINCREF(type);
2993 PyErr_Clear();
2994 if (infront) {
2995 PyErr_Format(type, "%s %s", mesg, errmesg);
2996 } else {
2997 PyErr_Format(type, "%s %s", errmesg, mesg);
2998 }
2999 Py_XDECREF(bytes);
3000 Py_DECREF(old_str);
3001 }
3002 return 1;
3003 } else {
3004 return 0;
3005 }
3006}
3007
3008SWIGRUNTIME int
3010{
3011 if (PyErr_Occurred()) {
3012 /* add information about failing argument */
3013 char mesg[256];
3014 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
3015 return SWIG_Python_AddErrMesg(mesg, 1);
3016 } else {
3017 return 0;
3018 }
3019}
3020
3021SWIGRUNTIMEINLINE const char *
3023{
3024 SwigPyObject *v = (SwigPyObject *)self;
3025 swig_type_info *ty = v ? v->ty : 0;
3026 return ty ? ty->str : "";
3027}
3028
3029SWIGRUNTIME void
3030SWIG_Python_TypeError(const char *type, PyObject *obj)
3031{
3032 if (type) {
3033#if defined(SWIG_COBJECT_TYPES)
3034 if (obj && SwigPyObject_Check(obj)) {
3035 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
3036 if (otype) {
3037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
3038 type, otype);
3039 return;
3040 }
3041 } else
3042#endif
3043 {
3044#ifndef Py_LIMITED_API
3045 /* tp_name is not accessible */
3046 const char *otype = (obj ? obj->ob_type->tp_name : 0);
3047 if (otype) {
3048 PyObject *str = PyObject_Str(obj);
3049 PyObject *bytes = NULL;
3050 const char *cstr = str ? SWIG_PyUnicode_AsUTF8AndSize(str, NULL, &bytes) : 0;
3051 if (cstr) {
3052 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
3053 type, otype, cstr);
3054 } else {
3055 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
3056 type, otype);
3057 }
3058 Py_XDECREF(bytes);
3059 Py_XDECREF(str);
3060 return;
3061 }
3062#endif
3063 }
3064 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
3065 } else {
3066 PyErr_Format(PyExc_TypeError, "unexpected type is received");
3067 }
3068}
3069
3070
3071/* Convert a pointer value, signal an exception on a type mismatch */
3072SWIGRUNTIME void *
3073SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
3074 void *result;
3075 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
3076 PyErr_Clear();
3077 }
3078 return result;
3079}
3080
3081#ifdef SWIGPYTHON_BUILTIN
3082SWIGRUNTIME int
3083SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
3084 PyTypeObject *tp = obj->ob_type;
3085 PyObject *descr;
3086 PyObject *encoded_name;
3087 descrsetfunc f;
3088 int res = -1;
3089
3090# ifdef Py_USING_UNICODE
3091 if (PyString_Check(name)) {
3092 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
3093 if (!name)
3094 return -1;
3095 } else if (!PyUnicode_Check(name))
3096# else
3097 if (!PyString_Check(name))
3098# endif
3099 {
3100 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
3101 return -1;
3102 } else {
3103 Py_INCREF(name);
3104 }
3105
3106 if (!tp->tp_dict) {
3107 if (PyType_Ready(tp) != 0)
3108 goto done;
3109 }
3110
3111 descr = _PyType_Lookup(tp, name);
3112 f = NULL;
3113 if (descr != NULL)
3114 f = descr->ob_type->tp_descr_set;
3115 if (!f) {
3116 if (PyString_Check(name)) {
3117 encoded_name = name;
3118 Py_INCREF(name);
3119 } else {
3120 encoded_name = PyUnicode_AsUTF8String(name);
3121 if (!encoded_name)
3122 goto done;
3123 }
3124 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
3125 Py_DECREF(encoded_name);
3126 } else {
3127 res = f(descr, obj, value);
3128 }
3129
3130 done:
3131 Py_DECREF(name);
3132 return res;
3133}
3134#endif
3135
3136
3137#ifdef __cplusplus
3138}
3139#endif
3140
3141
3142
3143#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3144
3145#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
3146
3147
3148
3149/* -------- TYPES TABLE (BEGIN) -------- */
3150
3151#define SWIGTYPE_p_Agedge_t swig_types[0]
3152#define SWIGTYPE_p_Agnode_t swig_types[1]
3153#define SWIGTYPE_p_Agraph_t swig_types[2]
3154#define SWIGTYPE_p_Agsym_t swig_types[3]
3155#define SWIGTYPE_p_FILE swig_types[4]
3156#define SWIGTYPE_p_char swig_types[5]
3158static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};
3159#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3160#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3161
3162/* -------- TYPES TABLE (END) -------- */
3163
3164#ifdef SWIG_TypeQuery
3165# undef SWIG_TypeQuery
3166#endif
3167#define SWIG_TypeQuery SWIG_Python_TypeQuery
3168
3169/*-----------------------------------------------
3170 @(target):= _gv.so
3171 ------------------------------------------------*/
3172#if PY_VERSION_HEX >= 0x03000000
3173# define SWIG_init PyInit__gv
3174
3175#else
3176# define SWIG_init init_gv
3177
3178#endif
3179#define SWIG_name "_gv"
3180
3181#ifdef __cplusplus
3182#include <utility>
3183/* SwigValueWrapper is described in swig.swg */
3184template<typename T> class SwigValueWrapper {
3185 struct SwigSmartPointer {
3186 T *ptr;
3187 SwigSmartPointer(T *p) : ptr(p) { }
3188 ~SwigSmartPointer() { delete ptr; }
3189 SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
3190 void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
3191 } pointer;
3192 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
3193 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
3194public:
3195 SwigValueWrapper() : pointer(0) { }
3196 SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
3197#if __cplusplus >=201103L
3198 SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
3199 operator T&&() const { return std::move(*pointer.ptr); }
3200#else
3201 operator T&() const { return *pointer.ptr; }
3202#endif
3203 T *operator&() const { return pointer.ptr; }
3204 static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
3205};
3206
3207/*
3208 * SwigValueInit() is a generic initialisation solution as the following approach:
3209 *
3210 * T c_result = T();
3211 *
3212 * doesn't compile for all types for example:
3213 *
3214 * unsigned int c_result = unsigned int();
3215 */
3216template <typename T> T SwigValueInit() {
3217 return T();
3218}
3219
3220#if __cplusplus >=201103L
3221# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
3222#else
3223# define SWIG_STD_MOVE(OBJ) OBJ
3224#endif
3225
3226#endif
3227
3228
3229#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3230#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3231
3232
3233#include <stdexcept>
3234
3235
3236namespace swig {
3238 protected:
3239 PyObject *_obj;
3240
3241 public:
3243 {
3244 }
3245
3252
3253 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3254 {
3255 if (initial_ref) {
3257 Py_XINCREF(_obj);
3259 }
3260 }
3261
3263 {
3265 Py_XINCREF(item._obj);
3266 Py_XDECREF(_obj);
3267 _obj = item._obj;
3269 return *this;
3270 }
3271
3278
3279 operator PyObject *() const
3280 {
3281 return _obj;
3282 }
3283
3284 PyObject *operator->() const
3285 {
3286 return _obj;
3287 }
3288 };
3289}
3290
3291
3292namespace swig {
3294 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3295
3297 {
3298 Py_XDECREF(_obj);
3299 _obj = obj;
3300 return *this;
3301 }
3302 };
3303}
3304
3305
3306/* some language headers (e.g. php.h, ruby.h) leave these defined */
3307#undef PACKAGE_BUGREPORT
3308#undef PACKAGE_STRING
3309#undef PACKAGE_TARNAME
3310#undef PACKAGE_VERSION
3311#undef PACKAGE_NAME
3312
3313#include "config.h"
3314#include <gvc/gvc.h>
3315
3317/*** New empty graph */
3318extern Agraph_t *graph(char *name);
3319extern Agraph_t *digraph(char *name);
3320extern Agraph_t *strictgraph(char *name);
3321extern Agraph_t *strictdigraph(char *name);
3322/*** New graph from a dot-syntax string or file */
3323extern Agraph_t *readstring(char *string);
3324extern Agraph_t *read(const char *filename);
3325extern Agraph_t *read(FILE *f);
3326/*** Add new subgraph to existing graph */
3327extern Agraph_t *graph(Agraph_t *g, char *name);
3328
3330/*** Add new node to existing graph */
3331extern Agnode_t *node(Agraph_t *g, char *name);
3332
3334/*** Add new edge between existing nodes */
3335extern Agedge_t *edge(Agnode_t *t, Agnode_t *h);
3336/*** 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 */
3337extern Agedge_t *edge(Agnode_t *t, char *hname);
3338/*** 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 */
3339extern Agedge_t *edge(char *tname, Agnode_t *h);
3340/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */
3341extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname);
3342
3344/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */
3345extern char *setv(Agraph_t *g, char *attr, char *val);
3346extern char *setv(Agnode_t *n, char *attr, char *val);
3347extern char *setv(Agedge_t *e, char *attr, char *val);
3348
3349/*** Set value of existing attribute of graph/node/edge (using attribute handle) */
3350extern char *setv(Agraph_t *g, Agsym_t *a, char *val);
3351extern char *setv(Agnode_t *n, Agsym_t *a, char *val);
3352extern char *setv(Agedge_t *e, Agsym_t *a, char *val);
3353
3355/*** Get value of named attribute of graph/node/edge */
3356extern char *getv(Agraph_t *g, char *attr);
3357extern char *getv(Agnode_t *n, char *attr);
3358extern char *getv(Agedge_t *e, char *attr);
3359
3360/*** Get value of attribute of graph/node/edge (using attribute handle) */
3361extern char *getv(Agraph_t *g, Agsym_t *a);
3362extern char *getv(Agnode_t *n, Agsym_t *a);
3363extern char *getv(Agedge_t *e, Agsym_t *a);
3364
3366extern char *nameof(Agraph_t *g);
3367extern char *nameof(Agnode_t *n);
3368extern char *nameof(Agsym_t *a);
3369
3371extern Agraph_t *findsubg(Agraph_t *g, char *name);
3372extern Agnode_t *findnode(Agraph_t *g, char *name);
3373extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h);
3374
3376extern Agsym_t *findattr(Agraph_t *g, char *name);
3377extern Agsym_t *findattr(Agnode_t *n, char *name);
3378extern Agsym_t *findattr(Agedge_t *e, char *name);
3379
3381extern Agnode_t *headof(Agedge_t *e);
3382extern Agnode_t *tailof(Agedge_t *e);
3383extern Agraph_t *graphof(Agraph_t *g);
3384extern Agraph_t *graphof(Agedge_t *e);
3385extern Agraph_t *graphof(Agnode_t *n);
3386extern Agraph_t *rootof(Agraph_t *g);
3387
3389extern Agnode_t *protonode(Agraph_t *g);
3390extern Agedge_t *protoedge(Agraph_t *g);
3391
3393/*** Iteration termination tests */
3394extern bool ok(Agraph_t *g);
3395extern bool ok(Agnode_t *n);
3396extern bool ok(Agedge_t *e);
3397extern bool ok(Agsym_t *a);
3398
3399/*** Iterate over subgraphs of a graph */
3400extern Agraph_t *firstsubg(Agraph_t *g);
3401extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
3402
3403/*** Iterate over supergraphs of a graph (obscure and rarely useful) */
3404extern Agraph_t *firstsupg(Agraph_t *g);
3405extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
3406
3407/*** Iterate over edges of a graph */
3408extern Agedge_t *firstedge(Agraph_t *g);
3409extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e);
3410
3411/*** Iterate over outedges of a graph */
3412extern Agedge_t *firstout(Agraph_t *g);
3413extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
3414
3415/*** Iterate over edges of a node */
3416extern Agedge_t *firstedge(Agnode_t *n);
3417extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e);
3418
3419/*** Iterate over out-edges of a node */
3420extern Agedge_t *firstout(Agnode_t *n);
3421extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
3422
3423/*** Iterate over head nodes reachable from out-edges of a node */
3424extern Agnode_t *firsthead(Agnode_t *n);
3425extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h);
3426
3427/*** Iterate over in-edges of a graph */
3428extern Agedge_t *firstin(Agraph_t *g);
3429extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
3430
3431/*** Iterate over in-edges of a node */
3432extern Agedge_t *firstin(Agnode_t *n);
3433extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
3434
3435/*** Iterate over tail nodes reachable from in-edges of a node */
3436extern Agnode_t *firsttail(Agnode_t *n);
3437extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t);
3438
3439/*** Iterate over nodes of a graph */
3440extern Agnode_t *firstnode(Agraph_t *g);
3441extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n);
3442
3443/*** Iterate over nodes of an edge */
3444extern Agnode_t *firstnode(Agedge_t *e);
3445extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n);
3446
3447/*** Iterate over attributes of a graph */
3448extern Agsym_t *firstattr(Agraph_t *g);
3449extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a);
3450
3451/*** Iterate over attributes of an edge */
3452extern Agsym_t *firstattr(Agedge_t *e);
3453extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a);
3454
3455/*** Iterate over attributes of a node */
3456extern Agsym_t *firstattr(Agnode_t *n);
3457extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a);
3458
3460extern bool rm(Agraph_t *g);
3461extern bool rm(Agnode_t *n);
3462extern bool rm(Agedge_t *e);
3463
3465/*** Annotate a graph with layout attributes and values using a specific layout engine */
3466extern bool layout(Agraph_t *g, const char *engine);
3467
3469/*** Render a layout into attributes of the graph */
3470extern bool render(Agraph_t *g);
3471/*** Render a layout to stdout */
3472extern bool render(Agraph_t *g, const char *format);
3473/*** Render to an open file */
3474extern bool render(Agraph_t *g, const char *format, FILE *fout);
3475/*** Render a layout to an unopened file by name */
3476extern bool render(Agraph_t *g, const char *format, const char *filename);
3477/*** Render to a string result */
3478#ifdef SWIGJAVA
3479extern char* renderresult(Agraph_t *ing, const char *format);
3480#else
3481extern void renderresult(Agraph_t *g, const char *format, char *outdata);
3482/*** Render to an open channel */
3483extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname);
3484#endif
3485/*** Render a layout to a malloc'ed string, to be free'd by the caller */
3486/*** (deprecated - too easy to leak memory) */
3487/*** (still needed for "eval [gv::renderdata $G tk]" ) */
3488extern char* renderdata(Agraph_t *g, const char *format);
3489
3490/*** Writing graph back to file */
3491extern bool write(Agraph_t *g, const char *filename);
3492extern bool write(Agraph_t *g, FILE *f);
3493
3494/*** Graph transformation tools */
3495extern bool tred(Agraph_t *g);
3496
3497
3498
3501{
3502 static int init = 0;
3503 static swig_type_info* info = 0;
3504 if (!init) {
3505 info = SWIG_TypeQuery("_p_char");
3506 init = 1;
3507 }
3508 return info;
3509}
3510
3511
3512/* Return string from Python obj. NOTE: obj must remain in scope in order
3513 to use the returned cptr (but only when alloc is set to SWIG_OLDOBJ) */
3514SWIGINTERN int
3515SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc)
3516{
3517#if PY_VERSION_HEX>=0x03000000
3518#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3519 if (PyBytes_Check(obj))
3520#else
3521 if (PyUnicode_Check(obj))
3522#endif
3523#else
3524 if (PyString_Check(obj))
3525#endif
3526 {
3527 char *cstr; Py_ssize_t len;
3528 PyObject *bytes = NULL;
3529 int ret = SWIG_OK;
3530 if (alloc)
3531 *alloc = SWIG_OLDOBJ;
3532#if PY_VERSION_HEX>=0x03000000 && defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3533 if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
3534 return SWIG_TypeError;
3535#else
3536 cstr = (char *)SWIG_PyUnicode_AsUTF8AndSize(obj, &len, &bytes);
3537 if (!cstr)
3538 return SWIG_TypeError;
3539 /* The returned string is only duplicated if the char * returned is not owned and memory managed by obj */
3540 if (bytes && cptr) {
3541 if (alloc) {
3542 cstr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
3543 *alloc = SWIG_NEWOBJ;
3544 } else {
3545 /* alloc must be set in order to clean up allocated memory */
3546 return SWIG_RuntimeError;
3547 }
3548 }
3549#endif
3550 if (cptr) *cptr = cstr;
3551 if (psize) *psize = len + 1;
3552 Py_XDECREF(bytes);
3553 return ret;
3554 } else {
3555#if defined(SWIG_PYTHON_2_UNICODE)
3556#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3557#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3558#endif
3559#if PY_VERSION_HEX<0x03000000
3560 if (PyUnicode_Check(obj)) {
3561 char *cstr; Py_ssize_t len;
3562 if (!alloc && cptr) {
3563 return SWIG_RuntimeError;
3564 }
3565 obj = PyUnicode_AsUTF8String(obj);
3566 if (!obj)
3567 return SWIG_TypeError;
3568 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3569 if (cptr) {
3570 if (alloc) *alloc = SWIG_NEWOBJ;
3571 *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
3572 }
3573 if (psize) *psize = len + 1;
3574
3575 Py_XDECREF(obj);
3576 return SWIG_OK;
3577 } else {
3578 Py_XDECREF(obj);
3579 }
3580 }
3581#endif
3582#endif
3583
3584 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3585 if (pchar_descriptor) {
3586 void* vptr = 0;
3587 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3588 if (cptr) *cptr = (char *) vptr;
3589 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3590 if (alloc) *alloc = SWIG_OLDOBJ;
3591 return SWIG_OK;
3592 }
3593 }
3594 }
3595 return SWIG_TypeError;
3596}
3597
3598
3599
3600
3601
3602SWIGINTERNINLINE PyObject *
3603SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3604{
3605 if (carray) {
3606 if (size > INT_MAX) {
3607 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3608 return pchar_descriptor ?
3609 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3610 } else {
3611#if PY_VERSION_HEX >= 0x03000000
3612#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3613 return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3614#else
3615 return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
3616#endif
3617#else
3618 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3619#endif
3620 }
3621 } else {
3622 return SWIG_Py_Void();
3623 }
3624}
3625
3626
3627SWIGINTERNINLINE PyObject *
3628SWIG_FromCharPtr(const char *cptr)
3629{
3630 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3631}
3632
3633
3634SWIGINTERNINLINE PyObject*
3635 SWIG_From_bool (bool value)
3636{
3637 return PyBool_FromLong(value ? 1 : 0);
3638}
3639
3640#ifdef __cplusplus
3641extern "C" {
3642#endif
3643SWIGINTERN PyObject *_wrap_graph__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3644 PyObject *resultobj = 0;
3645 char *arg1 = (char *) 0 ;
3646 int res1 ;
3647 char *buf1 = 0 ;
3648 int alloc1 = 0 ;
3649 Agraph_t *result = 0 ;
3650
3651 (void)self;
3652 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
3653 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
3654 if (!SWIG_IsOK(res1)) {
3655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graph" "', argument " "1"" of type '" "char *""'");
3656 }
3657 arg1 = reinterpret_cast< char * >(buf1);
3658 result = (Agraph_t *)graph(arg1);
3659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3660 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3661 return resultobj;
3662fail:
3663 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3664 return NULL;
3665}
3666
3667
3668SWIGINTERN PyObject *_wrap_digraph(PyObject *self, PyObject *args) {
3669 PyObject *resultobj = 0;
3670 char *arg1 = (char *) 0 ;
3671 int res1 ;
3672 char *buf1 = 0 ;
3673 int alloc1 = 0 ;
3674 PyObject *swig_obj[1] ;
3675 Agraph_t *result = 0 ;
3676
3677 (void)self;
3678 if (!args) SWIG_fail;
3679 swig_obj[0] = args;
3680 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
3681 if (!SWIG_IsOK(res1)) {
3682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "digraph" "', argument " "1"" of type '" "char *""'");
3683 }
3684 arg1 = reinterpret_cast< char * >(buf1);
3685 result = (Agraph_t *)digraph(arg1);
3686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3687 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3688 return resultobj;
3689fail:
3690 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3691 return NULL;
3692}
3693
3694
3695SWIGINTERN PyObject *_wrap_strictgraph(PyObject *self, PyObject *args) {
3696 PyObject *resultobj = 0;
3697 char *arg1 = (char *) 0 ;
3698 int res1 ;
3699 char *buf1 = 0 ;
3700 int alloc1 = 0 ;
3701 PyObject *swig_obj[1] ;
3702 Agraph_t *result = 0 ;
3703
3704 (void)self;
3705 if (!args) SWIG_fail;
3706 swig_obj[0] = args;
3707 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
3708 if (!SWIG_IsOK(res1)) {
3709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strictgraph" "', argument " "1"" of type '" "char *""'");
3710 }
3711 arg1 = reinterpret_cast< char * >(buf1);
3712 result = (Agraph_t *)strictgraph(arg1);
3713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3714 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3715 return resultobj;
3716fail:
3717 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3718 return NULL;
3719}
3720
3721
3722SWIGINTERN PyObject *_wrap_strictdigraph(PyObject *self, PyObject *args) {
3723 PyObject *resultobj = 0;
3724 char *arg1 = (char *) 0 ;
3725 int res1 ;
3726 char *buf1 = 0 ;
3727 int alloc1 = 0 ;
3728 PyObject *swig_obj[1] ;
3729 Agraph_t *result = 0 ;
3730
3731 (void)self;
3732 if (!args) SWIG_fail;
3733 swig_obj[0] = args;
3734 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
3735 if (!SWIG_IsOK(res1)) {
3736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strictdigraph" "', argument " "1"" of type '" "char *""'");
3737 }
3738 arg1 = reinterpret_cast< char * >(buf1);
3739 result = (Agraph_t *)strictdigraph(arg1);
3740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3741 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3742 return resultobj;
3743fail:
3744 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3745 return NULL;
3746}
3747
3748
3749SWIGINTERN PyObject *_wrap_readstring(PyObject *self, PyObject *args) {
3750 PyObject *resultobj = 0;
3751 char *arg1 = (char *) 0 ;
3752 int res1 ;
3753 char *buf1 = 0 ;
3754 int alloc1 = 0 ;
3755 PyObject *swig_obj[1] ;
3756 Agraph_t *result = 0 ;
3757
3758 (void)self;
3759 if (!args) SWIG_fail;
3760 swig_obj[0] = args;
3761 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
3762 if (!SWIG_IsOK(res1)) {
3763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "readstring" "', argument " "1"" of type '" "char *""'");
3764 }
3765 arg1 = reinterpret_cast< char * >(buf1);
3766 result = (Agraph_t *)readstring(arg1);
3767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3768 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3769 return resultobj;
3770fail:
3771 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3772 return NULL;
3773}
3774
3775
3776SWIGINTERN PyObject *_wrap_read__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3777 PyObject *resultobj = 0;
3778 char *arg1 = (char *) 0 ;
3779 int res1 ;
3780 char *buf1 = 0 ;
3781 int alloc1 = 0 ;
3782 Agraph_t *result = 0 ;
3783
3784 (void)self;
3785 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
3786 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
3787 if (!SWIG_IsOK(res1)) {
3788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read" "', argument " "1"" of type '" "char const *""'");
3789 }
3790 arg1 = reinterpret_cast< char * >(buf1);
3791 result = (Agraph_t *)read((char const *)arg1);
3792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3793 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3794 return resultobj;
3795fail:
3796 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
3797 return NULL;
3798}
3799
3800
3801SWIGINTERN PyObject *_wrap_read__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3802 PyObject *resultobj = 0;
3803 FILE *arg1 = (FILE *) 0 ;
3804 void *argp1 = 0 ;
3805 int res1 = 0 ;
3806 Agraph_t *result = 0 ;
3807
3808 (void)self;
3809 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read" "', argument " "1"" of type '" "FILE *""'");
3813 }
3814 arg1 = reinterpret_cast< FILE * >(argp1);
3815 result = (Agraph_t *)read(arg1);
3816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3817 return resultobj;
3818fail:
3819 return NULL;
3820}
3821
3822
3823SWIGINTERN PyObject *_wrap_read(PyObject *self, PyObject *args) {
3824 Py_ssize_t argc;
3825 PyObject *argv[2] = {
3826 0
3827 };
3828
3829 if (!(argc = SWIG_Python_UnpackTuple(args, "read", 0, 1, argv))) SWIG_fail;
3830 --argc;
3831 if (argc == 1) {
3832 int _v = 0;
3833 void *vptr = 0;
3834 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
3835 _v = SWIG_CheckState(res);
3836 if (_v) {
3837 return _wrap_read__SWIG_1(self, argc, argv);
3838 }
3839 }
3840 if (argc == 1) {
3841 int _v = 0;
3842 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3843 _v = SWIG_CheckState(res);
3844 if (_v) {
3845 return _wrap_read__SWIG_0(self, argc, argv);
3846 }
3847 }
3848
3849fail:
3850 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'read'.\n"
3851 " Possible C/C++ prototypes are:\n"
3852 " read(char const *)\n"
3853 " read(FILE *)\n");
3854 return 0;
3855}
3856
3857
3858SWIGINTERN PyObject *_wrap_graph__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3859 PyObject *resultobj = 0;
3860 Agraph_t *arg1 = (Agraph_t *) 0 ;
3861 char *arg2 = (char *) 0 ;
3862 void *argp1 = 0 ;
3863 int res1 = 0 ;
3864 int res2 ;
3865 char *buf2 = 0 ;
3866 int alloc2 = 0 ;
3867 Agraph_t *result = 0 ;
3868
3869 (void)self;
3870 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
3871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3872 if (!SWIG_IsOK(res1)) {
3873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graph" "', argument " "1"" of type '" "Agraph_t *""'");
3874 }
3875 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3876 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
3877 if (!SWIG_IsOK(res2)) {
3878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "graph" "', argument " "2"" of type '" "char *""'");
3879 }
3880 arg2 = reinterpret_cast< char * >(buf2);
3881 result = (Agraph_t *)graph(arg1,arg2);
3882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3883 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3884 return resultobj;
3885fail:
3886 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3887 return NULL;
3888}
3889
3890
3891SWIGINTERN PyObject *_wrap_graph(PyObject *self, PyObject *args) {
3892 Py_ssize_t argc;
3893 PyObject *argv[3] = {
3894 0
3895 };
3896
3897 if (!(argc = SWIG_Python_UnpackTuple(args, "graph", 0, 2, argv))) SWIG_fail;
3898 --argc;
3899 if (argc == 1) {
3900 int _v = 0;
3901 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3902 _v = SWIG_CheckState(res);
3903 if (_v) {
3904 return _wrap_graph__SWIG_0(self, argc, argv);
3905 }
3906 }
3907 if (argc == 2) {
3908 int _v = 0;
3909 void *vptr = 0;
3910 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3911 _v = SWIG_CheckState(res);
3912 if (_v) {
3913 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3914 _v = SWIG_CheckState(res);
3915 if (_v) {
3916 return _wrap_graph__SWIG_1(self, argc, argv);
3917 }
3918 }
3919 }
3920
3921fail:
3922 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'graph'.\n"
3923 " Possible C/C++ prototypes are:\n"
3924 " graph(char *)\n"
3925 " graph(Agraph_t *,char *)\n");
3926 return 0;
3927}
3928
3929
3930SWIGINTERN PyObject *_wrap_node(PyObject *self, PyObject *args) {
3931 PyObject *resultobj = 0;
3932 Agraph_t *arg1 = (Agraph_t *) 0 ;
3933 char *arg2 = (char *) 0 ;
3934 void *argp1 = 0 ;
3935 int res1 = 0 ;
3936 int res2 ;
3937 char *buf2 = 0 ;
3938 int alloc2 = 0 ;
3939 PyObject *swig_obj[2] ;
3940 Agnode_t *result = 0 ;
3941
3942 (void)self;
3943 if (!SWIG_Python_UnpackTuple(args, "node", 2, 2, swig_obj)) SWIG_fail;
3944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3945 if (!SWIG_IsOK(res1)) {
3946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "node" "', argument " "1"" of type '" "Agraph_t *""'");
3947 }
3948 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3949 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
3950 if (!SWIG_IsOK(res2)) {
3951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "node" "', argument " "2"" of type '" "char *""'");
3952 }
3953 arg2 = reinterpret_cast< char * >(buf2);
3954 result = (Agnode_t *)node(arg1,arg2);
3955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
3956 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3957 return resultobj;
3958fail:
3959 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3960 return NULL;
3961}
3962
3963
3964SWIGINTERN PyObject *_wrap_edge__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3965 PyObject *resultobj = 0;
3966 Agnode_t *arg1 = (Agnode_t *) 0 ;
3967 Agnode_t *arg2 = (Agnode_t *) 0 ;
3968 void *argp1 = 0 ;
3969 int res1 = 0 ;
3970 void *argp2 = 0 ;
3971 int res2 = 0 ;
3972 Agedge_t *result = 0 ;
3973
3974 (void)self;
3975 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
3976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3977 if (!SWIG_IsOK(res1)) {
3978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "Agnode_t *""'");
3979 }
3980 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3981 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
3982 if (!SWIG_IsOK(res2)) {
3983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "Agnode_t *""'");
3984 }
3985 arg2 = reinterpret_cast< Agnode_t * >(argp2);
3986 result = (Agedge_t *)edge(arg1,arg2);
3987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
3988 return resultobj;
3989fail:
3990 return NULL;
3991}
3992
3993
3994SWIGINTERN PyObject *_wrap_edge__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3995 PyObject *resultobj = 0;
3996 Agnode_t *arg1 = (Agnode_t *) 0 ;
3997 char *arg2 = (char *) 0 ;
3998 void *argp1 = 0 ;
3999 int res1 = 0 ;
4000 int res2 ;
4001 char *buf2 = 0 ;
4002 int alloc2 = 0 ;
4003 Agedge_t *result = 0 ;
4004
4005 (void)self;
4006 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4008 if (!SWIG_IsOK(res1)) {
4009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "Agnode_t *""'");
4010 }
4011 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4012 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4013 if (!SWIG_IsOK(res2)) {
4014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "char *""'");
4015 }
4016 arg2 = reinterpret_cast< char * >(buf2);
4017 result = (Agedge_t *)edge(arg1,arg2);
4018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4019 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4020 return resultobj;
4021fail:
4022 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4023 return NULL;
4024}
4025
4026
4027SWIGINTERN PyObject *_wrap_edge__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4028 PyObject *resultobj = 0;
4029 char *arg1 = (char *) 0 ;
4030 Agnode_t *arg2 = (Agnode_t *) 0 ;
4031 int res1 ;
4032 char *buf1 = 0 ;
4033 int alloc1 = 0 ;
4034 void *argp2 = 0 ;
4035 int res2 = 0 ;
4036 Agedge_t *result = 0 ;
4037
4038 (void)self;
4039 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4040 res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
4041 if (!SWIG_IsOK(res1)) {
4042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "char *""'");
4043 }
4044 arg1 = reinterpret_cast< char * >(buf1);
4045 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
4046 if (!SWIG_IsOK(res2)) {
4047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "Agnode_t *""'");
4048 }
4049 arg2 = reinterpret_cast< Agnode_t * >(argp2);
4050 result = (Agedge_t *)edge(arg1,arg2);
4051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4052 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4053 return resultobj;
4054fail:
4055 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4056 return NULL;
4057}
4058
4059
4060SWIGINTERN PyObject *_wrap_edge__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4061 PyObject *resultobj = 0;
4062 Agraph_t *arg1 = (Agraph_t *) 0 ;
4063 char *arg2 = (char *) 0 ;
4064 char *arg3 = (char *) 0 ;
4065 void *argp1 = 0 ;
4066 int res1 = 0 ;
4067 int res2 ;
4068 char *buf2 = 0 ;
4069 int alloc2 = 0 ;
4070 int res3 ;
4071 char *buf3 = 0 ;
4072 int alloc3 = 0 ;
4073 Agedge_t *result = 0 ;
4074
4075 (void)self;
4076 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4078 if (!SWIG_IsOK(res1)) {
4079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "Agraph_t *""'");
4080 }
4081 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4082 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4083 if (!SWIG_IsOK(res2)) {
4084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "char *""'");
4085 }
4086 arg2 = reinterpret_cast< char * >(buf2);
4087 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4088 if (!SWIG_IsOK(res3)) {
4089 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "edge" "', argument " "3"" of type '" "char *""'");
4090 }
4091 arg3 = reinterpret_cast< char * >(buf3);
4092 result = (Agedge_t *)edge(arg1,arg2,arg3);
4093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4094 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4095 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4096 return resultobj;
4097fail:
4098 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4099 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4100 return NULL;
4101}
4102
4103
4104SWIGINTERN PyObject *_wrap_edge(PyObject *self, PyObject *args) {
4105 Py_ssize_t argc;
4106 PyObject *argv[4] = {
4107 0
4108 };
4109
4110 if (!(argc = SWIG_Python_UnpackTuple(args, "edge", 0, 3, argv))) SWIG_fail;
4111 --argc;
4112 if (argc == 2) {
4113 int _v = 0;
4114 void *vptr = 0;
4115 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4116 _v = SWIG_CheckState(res);
4117 if (_v) {
4118 void *vptr = 0;
4119 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
4120 _v = SWIG_CheckState(res);
4121 if (_v) {
4122 return _wrap_edge__SWIG_0(self, argc, argv);
4123 }
4124 }
4125 }
4126 if (argc == 2) {
4127 int _v = 0;
4128 void *vptr = 0;
4129 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4130 _v = SWIG_CheckState(res);
4131 if (_v) {
4132 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4133 _v = SWIG_CheckState(res);
4134 if (_v) {
4135 return _wrap_edge__SWIG_1(self, argc, argv);
4136 }
4137 }
4138 }
4139 if (argc == 2) {
4140 int _v = 0;
4141 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4142 _v = SWIG_CheckState(res);
4143 if (_v) {
4144 void *vptr = 0;
4145 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
4146 _v = SWIG_CheckState(res);
4147 if (_v) {
4148 return _wrap_edge__SWIG_2(self, argc, argv);
4149 }
4150 }
4151 }
4152 if (argc == 3) {
4153 int _v = 0;
4154 void *vptr = 0;
4155 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4156 _v = SWIG_CheckState(res);
4157 if (_v) {
4158 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4159 _v = SWIG_CheckState(res);
4160 if (_v) {
4161 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4162 _v = SWIG_CheckState(res);
4163 if (_v) {
4164 return _wrap_edge__SWIG_3(self, argc, argv);
4165 }
4166 }
4167 }
4168 }
4169
4170fail:
4171 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'edge'.\n"
4172 " Possible C/C++ prototypes are:\n"
4173 " edge(Agnode_t *,Agnode_t *)\n"
4174 " edge(Agnode_t *,char *)\n"
4175 " edge(char *,Agnode_t *)\n"
4176 " edge(Agraph_t *,char *,char *)\n");
4177 return 0;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_setv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4182 PyObject *resultobj = 0;
4183 Agraph_t *arg1 = (Agraph_t *) 0 ;
4184 char *arg2 = (char *) 0 ;
4185 char *arg3 = (char *) 0 ;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 int res2 ;
4189 char *buf2 = 0 ;
4190 int alloc2 = 0 ;
4191 int res3 ;
4192 char *buf3 = 0 ;
4193 int alloc3 = 0 ;
4194 char *result = 0 ;
4195
4196 (void)self;
4197 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4199 if (!SWIG_IsOK(res1)) {
4200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agraph_t *""'");
4201 }
4202 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4203 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4204 if (!SWIG_IsOK(res2)) {
4205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "char *""'");
4206 }
4207 arg2 = reinterpret_cast< char * >(buf2);
4208 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4209 if (!SWIG_IsOK(res3)) {
4210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
4211 }
4212 arg3 = reinterpret_cast< char * >(buf3);
4213 result = (char *)setv(arg1,arg2,arg3);
4214 resultobj = SWIG_FromCharPtr((const char *)result);
4215 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4216 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4217 return resultobj;
4218fail:
4219 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4220 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4221 return NULL;
4222}
4223
4224
4225SWIGINTERN PyObject *_wrap_setv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4226 PyObject *resultobj = 0;
4227 Agnode_t *arg1 = (Agnode_t *) 0 ;
4228 char *arg2 = (char *) 0 ;
4229 char *arg3 = (char *) 0 ;
4230 void *argp1 = 0 ;
4231 int res1 = 0 ;
4232 int res2 ;
4233 char *buf2 = 0 ;
4234 int alloc2 = 0 ;
4235 int res3 ;
4236 char *buf3 = 0 ;
4237 int alloc3 = 0 ;
4238 char *result = 0 ;
4239
4240 (void)self;
4241 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4243 if (!SWIG_IsOK(res1)) {
4244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agnode_t *""'");
4245 }
4246 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4247 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4248 if (!SWIG_IsOK(res2)) {
4249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "char *""'");
4250 }
4251 arg2 = reinterpret_cast< char * >(buf2);
4252 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4253 if (!SWIG_IsOK(res3)) {
4254 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
4255 }
4256 arg3 = reinterpret_cast< char * >(buf3);
4257 result = (char *)setv(arg1,arg2,arg3);
4258 resultobj = SWIG_FromCharPtr((const char *)result);
4259 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4260 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4261 return resultobj;
4262fail:
4263 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4264 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4265 return NULL;
4266}
4267
4268
4269SWIGINTERN PyObject *_wrap_setv__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4270 PyObject *resultobj = 0;
4271 Agedge_t *arg1 = (Agedge_t *) 0 ;
4272 char *arg2 = (char *) 0 ;
4273 char *arg3 = (char *) 0 ;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 int res2 ;
4277 char *buf2 = 0 ;
4278 int alloc2 = 0 ;
4279 int res3 ;
4280 char *buf3 = 0 ;
4281 int alloc3 = 0 ;
4282 char *result = 0 ;
4283
4284 (void)self;
4285 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4287 if (!SWIG_IsOK(res1)) {
4288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agedge_t *""'");
4289 }
4290 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4291 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4292 if (!SWIG_IsOK(res2)) {
4293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "char *""'");
4294 }
4295 arg2 = reinterpret_cast< char * >(buf2);
4296 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4297 if (!SWIG_IsOK(res3)) {
4298 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
4299 }
4300 arg3 = reinterpret_cast< char * >(buf3);
4301 result = (char *)setv(arg1,arg2,arg3);
4302 resultobj = SWIG_FromCharPtr((const char *)result);
4303 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4304 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4305 return resultobj;
4306fail:
4307 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4308 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4309 return NULL;
4310}
4311
4312
4313SWIGINTERN PyObject *_wrap_setv__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4314 PyObject *resultobj = 0;
4315 Agraph_t *arg1 = (Agraph_t *) 0 ;
4316 Agsym_t *arg2 = (Agsym_t *) 0 ;
4317 char *arg3 = (char *) 0 ;
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 void *argp2 = 0 ;
4321 int res2 = 0 ;
4322 int res3 ;
4323 char *buf3 = 0 ;
4324 int alloc3 = 0 ;
4325 char *result = 0 ;
4326
4327 (void)self;
4328 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agraph_t *""'");
4332 }
4333 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4334 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4335 if (!SWIG_IsOK(res2)) {
4336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "Agsym_t *""'");
4337 }
4338 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4339 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4340 if (!SWIG_IsOK(res3)) {
4341 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
4342 }
4343 arg3 = reinterpret_cast< char * >(buf3);
4344 result = (char *)setv(arg1,arg2,arg3);
4345 resultobj = SWIG_FromCharPtr((const char *)result);
4346 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4347 return resultobj;
4348fail:
4349 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4350 return NULL;
4351}
4352
4353
4354SWIGINTERN PyObject *_wrap_setv__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4355 PyObject *resultobj = 0;
4356 Agnode_t *arg1 = (Agnode_t *) 0 ;
4357 Agsym_t *arg2 = (Agsym_t *) 0 ;
4358 char *arg3 = (char *) 0 ;
4359 void *argp1 = 0 ;
4360 int res1 = 0 ;
4361 void *argp2 = 0 ;
4362 int res2 = 0 ;
4363 int res3 ;
4364 char *buf3 = 0 ;
4365 int alloc3 = 0 ;
4366 char *result = 0 ;
4367
4368 (void)self;
4369 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agnode_t *""'");
4373 }
4374 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4375 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4376 if (!SWIG_IsOK(res2)) {
4377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "Agsym_t *""'");
4378 }
4379 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4380 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4381 if (!SWIG_IsOK(res3)) {
4382 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
4383 }
4384 arg3 = reinterpret_cast< char * >(buf3);
4385 result = (char *)setv(arg1,arg2,arg3);
4386 resultobj = SWIG_FromCharPtr((const char *)result);
4387 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4388 return resultobj;
4389fail:
4390 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4391 return NULL;
4392}
4393
4394
4395SWIGINTERN PyObject *_wrap_setv__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4396 PyObject *resultobj = 0;
4397 Agedge_t *arg1 = (Agedge_t *) 0 ;
4398 Agsym_t *arg2 = (Agsym_t *) 0 ;
4399 char *arg3 = (char *) 0 ;
4400 void *argp1 = 0 ;
4401 int res1 = 0 ;
4402 void *argp2 = 0 ;
4403 int res2 = 0 ;
4404 int res3 ;
4405 char *buf3 = 0 ;
4406 int alloc3 = 0 ;
4407 char *result = 0 ;
4408
4409 (void)self;
4410 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
4411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4412 if (!SWIG_IsOK(res1)) {
4413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agedge_t *""'");
4414 }
4415 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4416 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4417 if (!SWIG_IsOK(res2)) {
4418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "Agsym_t *""'");
4419 }
4420 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4421 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
4422 if (!SWIG_IsOK(res3)) {
4423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
4424 }
4425 arg3 = reinterpret_cast< char * >(buf3);
4426 result = (char *)setv(arg1,arg2,arg3);
4427 resultobj = SWIG_FromCharPtr((const char *)result);
4428 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4429 return resultobj;
4430fail:
4431 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4432 return NULL;
4433}
4434
4435
4436SWIGINTERN PyObject *_wrap_setv(PyObject *self, PyObject *args) {
4437 Py_ssize_t argc;
4438 PyObject *argv[4] = {
4439 0
4440 };
4441
4442 if (!(argc = SWIG_Python_UnpackTuple(args, "setv", 0, 3, argv))) SWIG_fail;
4443 --argc;
4444 if (argc == 3) {
4445 int _v = 0;
4446 void *vptr = 0;
4447 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4448 _v = SWIG_CheckState(res);
4449 if (_v) {
4450 void *vptr = 0;
4451 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4452 _v = SWIG_CheckState(res);
4453 if (_v) {
4454 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4455 _v = SWIG_CheckState(res);
4456 if (_v) {
4457 return _wrap_setv__SWIG_3(self, argc, argv);
4458 }
4459 }
4460 }
4461 }
4462 if (argc == 3) {
4463 int _v = 0;
4464 void *vptr = 0;
4465 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4466 _v = SWIG_CheckState(res);
4467 if (_v) {
4468 void *vptr = 0;
4469 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4470 _v = SWIG_CheckState(res);
4471 if (_v) {
4472 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4473 _v = SWIG_CheckState(res);
4474 if (_v) {
4475 return _wrap_setv__SWIG_4(self, argc, argv);
4476 }
4477 }
4478 }
4479 }
4480 if (argc == 3) {
4481 int _v = 0;
4482 void *vptr = 0;
4483 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4484 _v = SWIG_CheckState(res);
4485 if (_v) {
4486 void *vptr = 0;
4487 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4488 _v = SWIG_CheckState(res);
4489 if (_v) {
4490 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4491 _v = SWIG_CheckState(res);
4492 if (_v) {
4493 return _wrap_setv__SWIG_5(self, argc, argv);
4494 }
4495 }
4496 }
4497 }
4498 if (argc == 3) {
4499 int _v = 0;
4500 void *vptr = 0;
4501 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4502 _v = SWIG_CheckState(res);
4503 if (_v) {
4504 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4505 _v = SWIG_CheckState(res);
4506 if (_v) {
4507 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4508 _v = SWIG_CheckState(res);
4509 if (_v) {
4510 return _wrap_setv__SWIG_0(self, argc, argv);
4511 }
4512 }
4513 }
4514 }
4515 if (argc == 3) {
4516 int _v = 0;
4517 void *vptr = 0;
4518 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4519 _v = SWIG_CheckState(res);
4520 if (_v) {
4521 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4522 _v = SWIG_CheckState(res);
4523 if (_v) {
4524 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4525 _v = SWIG_CheckState(res);
4526 if (_v) {
4527 return _wrap_setv__SWIG_1(self, argc, argv);
4528 }
4529 }
4530 }
4531 }
4532 if (argc == 3) {
4533 int _v = 0;
4534 void *vptr = 0;
4535 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4536 _v = SWIG_CheckState(res);
4537 if (_v) {
4538 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4539 _v = SWIG_CheckState(res);
4540 if (_v) {
4541 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
4542 _v = SWIG_CheckState(res);
4543 if (_v) {
4544 return _wrap_setv__SWIG_2(self, argc, argv);
4545 }
4546 }
4547 }
4548 }
4549
4550fail:
4551 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'setv'.\n"
4552 " Possible C/C++ prototypes are:\n"
4553 " setv(Agraph_t *,char *,char *)\n"
4554 " setv(Agnode_t *,char *,char *)\n"
4555 " setv(Agedge_t *,char *,char *)\n"
4556 " setv(Agraph_t *,Agsym_t *,char *)\n"
4557 " setv(Agnode_t *,Agsym_t *,char *)\n"
4558 " setv(Agedge_t *,Agsym_t *,char *)\n");
4559 return 0;
4560}
4561
4562
4563SWIGINTERN PyObject *_wrap_getv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4564 PyObject *resultobj = 0;
4565 Agraph_t *arg1 = (Agraph_t *) 0 ;
4566 char *arg2 = (char *) 0 ;
4567 void *argp1 = 0 ;
4568 int res1 = 0 ;
4569 int res2 ;
4570 char *buf2 = 0 ;
4571 int alloc2 = 0 ;
4572 char *result = 0 ;
4573
4574 (void)self;
4575 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4577 if (!SWIG_IsOK(res1)) {
4578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agraph_t *""'");
4579 }
4580 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4581 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4582 if (!SWIG_IsOK(res2)) {
4583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "char *""'");
4584 }
4585 arg2 = reinterpret_cast< char * >(buf2);
4586 result = (char *)getv(arg1,arg2);
4587 resultobj = SWIG_FromCharPtr((const char *)result);
4588 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4589 return resultobj;
4590fail:
4591 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4592 return NULL;
4593}
4594
4595
4596SWIGINTERN PyObject *_wrap_getv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4597 PyObject *resultobj = 0;
4598 Agnode_t *arg1 = (Agnode_t *) 0 ;
4599 char *arg2 = (char *) 0 ;
4600 void *argp1 = 0 ;
4601 int res1 = 0 ;
4602 int res2 ;
4603 char *buf2 = 0 ;
4604 int alloc2 = 0 ;
4605 char *result = 0 ;
4606
4607 (void)self;
4608 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4610 if (!SWIG_IsOK(res1)) {
4611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agnode_t *""'");
4612 }
4613 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4614 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4615 if (!SWIG_IsOK(res2)) {
4616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "char *""'");
4617 }
4618 arg2 = reinterpret_cast< char * >(buf2);
4619 result = (char *)getv(arg1,arg2);
4620 resultobj = SWIG_FromCharPtr((const char *)result);
4621 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4622 return resultobj;
4623fail:
4624 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4625 return NULL;
4626}
4627
4628
4629SWIGINTERN PyObject *_wrap_getv__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4630 PyObject *resultobj = 0;
4631 Agedge_t *arg1 = (Agedge_t *) 0 ;
4632 char *arg2 = (char *) 0 ;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
4635 int res2 ;
4636 char *buf2 = 0 ;
4637 int alloc2 = 0 ;
4638 char *result = 0 ;
4639
4640 (void)self;
4641 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4643 if (!SWIG_IsOK(res1)) {
4644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agedge_t *""'");
4645 }
4646 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4647 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4648 if (!SWIG_IsOK(res2)) {
4649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "char *""'");
4650 }
4651 arg2 = reinterpret_cast< char * >(buf2);
4652 result = (char *)getv(arg1,arg2);
4653 resultobj = SWIG_FromCharPtr((const char *)result);
4654 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4655 return resultobj;
4656fail:
4657 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4658 return NULL;
4659}
4660
4661
4662SWIGINTERN PyObject *_wrap_getv__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4663 PyObject *resultobj = 0;
4664 Agraph_t *arg1 = (Agraph_t *) 0 ;
4665 Agsym_t *arg2 = (Agsym_t *) 0 ;
4666 void *argp1 = 0 ;
4667 int res1 = 0 ;
4668 void *argp2 = 0 ;
4669 int res2 = 0 ;
4670 char *result = 0 ;
4671
4672 (void)self;
4673 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4675 if (!SWIG_IsOK(res1)) {
4676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agraph_t *""'");
4677 }
4678 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4679 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4680 if (!SWIG_IsOK(res2)) {
4681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "Agsym_t *""'");
4682 }
4683 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4684 result = (char *)getv(arg1,arg2);
4685 resultobj = SWIG_FromCharPtr((const char *)result);
4686 return resultobj;
4687fail:
4688 return NULL;
4689}
4690
4691
4692SWIGINTERN PyObject *_wrap_getv__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4693 PyObject *resultobj = 0;
4694 Agnode_t *arg1 = (Agnode_t *) 0 ;
4695 Agsym_t *arg2 = (Agsym_t *) 0 ;
4696 void *argp1 = 0 ;
4697 int res1 = 0 ;
4698 void *argp2 = 0 ;
4699 int res2 = 0 ;
4700 char *result = 0 ;
4701
4702 (void)self;
4703 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4705 if (!SWIG_IsOK(res1)) {
4706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agnode_t *""'");
4707 }
4708 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4709 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4710 if (!SWIG_IsOK(res2)) {
4711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "Agsym_t *""'");
4712 }
4713 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4714 result = (char *)getv(arg1,arg2);
4715 resultobj = SWIG_FromCharPtr((const char *)result);
4716 return resultobj;
4717fail:
4718 return NULL;
4719}
4720
4721
4722SWIGINTERN PyObject *_wrap_getv__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4723 PyObject *resultobj = 0;
4724 Agedge_t *arg1 = (Agedge_t *) 0 ;
4725 Agsym_t *arg2 = (Agsym_t *) 0 ;
4726 void *argp1 = 0 ;
4727 int res1 = 0 ;
4728 void *argp2 = 0 ;
4729 int res2 = 0 ;
4730 char *result = 0 ;
4731
4732 (void)self;
4733 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
4734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4735 if (!SWIG_IsOK(res1)) {
4736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agedge_t *""'");
4737 }
4738 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4739 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4740 if (!SWIG_IsOK(res2)) {
4741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "Agsym_t *""'");
4742 }
4743 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4744 result = (char *)getv(arg1,arg2);
4745 resultobj = SWIG_FromCharPtr((const char *)result);
4746 return resultobj;
4747fail:
4748 return NULL;
4749}
4750
4751
4752SWIGINTERN PyObject *_wrap_getv(PyObject *self, PyObject *args) {
4753 Py_ssize_t argc;
4754 PyObject *argv[3] = {
4755 0
4756 };
4757
4758 if (!(argc = SWIG_Python_UnpackTuple(args, "getv", 0, 2, argv))) SWIG_fail;
4759 --argc;
4760 if (argc == 2) {
4761 int _v = 0;
4762 void *vptr = 0;
4763 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4764 _v = SWIG_CheckState(res);
4765 if (_v) {
4766 void *vptr = 0;
4767 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4768 _v = SWIG_CheckState(res);
4769 if (_v) {
4770 return _wrap_getv__SWIG_3(self, argc, argv);
4771 }
4772 }
4773 }
4774 if (argc == 2) {
4775 int _v = 0;
4776 void *vptr = 0;
4777 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4778 _v = SWIG_CheckState(res);
4779 if (_v) {
4780 void *vptr = 0;
4781 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4782 _v = SWIG_CheckState(res);
4783 if (_v) {
4784 return _wrap_getv__SWIG_4(self, argc, argv);
4785 }
4786 }
4787 }
4788 if (argc == 2) {
4789 int _v = 0;
4790 void *vptr = 0;
4791 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4792 _v = SWIG_CheckState(res);
4793 if (_v) {
4794 void *vptr = 0;
4795 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4796 _v = SWIG_CheckState(res);
4797 if (_v) {
4798 return _wrap_getv__SWIG_5(self, argc, argv);
4799 }
4800 }
4801 }
4802 if (argc == 2) {
4803 int _v = 0;
4804 void *vptr = 0;
4805 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4806 _v = SWIG_CheckState(res);
4807 if (_v) {
4808 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4809 _v = SWIG_CheckState(res);
4810 if (_v) {
4811 return _wrap_getv__SWIG_0(self, argc, argv);
4812 }
4813 }
4814 }
4815 if (argc == 2) {
4816 int _v = 0;
4817 void *vptr = 0;
4818 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4819 _v = SWIG_CheckState(res);
4820 if (_v) {
4821 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4822 _v = SWIG_CheckState(res);
4823 if (_v) {
4824 return _wrap_getv__SWIG_1(self, argc, argv);
4825 }
4826 }
4827 }
4828 if (argc == 2) {
4829 int _v = 0;
4830 void *vptr = 0;
4831 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4832 _v = SWIG_CheckState(res);
4833 if (_v) {
4834 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4835 _v = SWIG_CheckState(res);
4836 if (_v) {
4837 return _wrap_getv__SWIG_2(self, argc, argv);
4838 }
4839 }
4840 }
4841
4842fail:
4843 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'getv'.\n"
4844 " Possible C/C++ prototypes are:\n"
4845 " getv(Agraph_t *,char *)\n"
4846 " getv(Agnode_t *,char *)\n"
4847 " getv(Agedge_t *,char *)\n"
4848 " getv(Agraph_t *,Agsym_t *)\n"
4849 " getv(Agnode_t *,Agsym_t *)\n"
4850 " getv(Agedge_t *,Agsym_t *)\n");
4851 return 0;
4852}
4853
4854
4855SWIGINTERN PyObject *_wrap_nameof__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4856 PyObject *resultobj = 0;
4857 Agraph_t *arg1 = (Agraph_t *) 0 ;
4858 void *argp1 = 0 ;
4859 int res1 = 0 ;
4860 char *result = 0 ;
4861
4862 (void)self;
4863 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
4864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4865 if (!SWIG_IsOK(res1)) {
4866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nameof" "', argument " "1"" of type '" "Agraph_t *""'");
4867 }
4868 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4869 result = (char *)nameof(arg1);
4870 resultobj = SWIG_FromCharPtr((const char *)result);
4871 return resultobj;
4872fail:
4873 return NULL;
4874}
4875
4876
4877SWIGINTERN PyObject *_wrap_nameof__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4878 PyObject *resultobj = 0;
4879 Agnode_t *arg1 = (Agnode_t *) 0 ;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 char *result = 0 ;
4883
4884 (void)self;
4885 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
4886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nameof" "', argument " "1"" of type '" "Agnode_t *""'");
4889 }
4890 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4891 result = (char *)nameof(arg1);
4892 resultobj = SWIG_FromCharPtr((const char *)result);
4893 return resultobj;
4894fail:
4895 return NULL;
4896}
4897
4898
4899SWIGINTERN PyObject *_wrap_nameof__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4900 PyObject *resultobj = 0;
4901 Agsym_t *arg1 = (Agsym_t *) 0 ;
4902 void *argp1 = 0 ;
4903 int res1 = 0 ;
4904 char *result = 0 ;
4905
4906 (void)self;
4907 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
4908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agsym_t, 0 | 0 );
4909 if (!SWIG_IsOK(res1)) {
4910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nameof" "', argument " "1"" of type '" "Agsym_t *""'");
4911 }
4912 arg1 = reinterpret_cast< Agsym_t * >(argp1);
4913 result = (char *)nameof(arg1);
4914 resultobj = SWIG_FromCharPtr((const char *)result);
4915 return resultobj;
4916fail:
4917 return NULL;
4918}
4919
4920
4921SWIGINTERN PyObject *_wrap_nameof(PyObject *self, PyObject *args) {
4922 Py_ssize_t argc;
4923 PyObject *argv[2] = {
4924 0
4925 };
4926
4927 if (!(argc = SWIG_Python_UnpackTuple(args, "nameof", 0, 1, argv))) SWIG_fail;
4928 --argc;
4929 if (argc == 1) {
4930 int _v = 0;
4931 void *vptr = 0;
4932 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4933 _v = SWIG_CheckState(res);
4934 if (_v) {
4935 return _wrap_nameof__SWIG_0(self, argc, argv);
4936 }
4937 }
4938 if (argc == 1) {
4939 int _v = 0;
4940 void *vptr = 0;
4941 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4942 _v = SWIG_CheckState(res);
4943 if (_v) {
4944 return _wrap_nameof__SWIG_1(self, argc, argv);
4945 }
4946 }
4947 if (argc == 1) {
4948 int _v = 0;
4949 void *vptr = 0;
4950 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agsym_t, 0);
4951 _v = SWIG_CheckState(res);
4952 if (_v) {
4953 return _wrap_nameof__SWIG_2(self, argc, argv);
4954 }
4955 }
4956
4957fail:
4958 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'nameof'.\n"
4959 " Possible C/C++ prototypes are:\n"
4960 " nameof(Agraph_t *)\n"
4961 " nameof(Agnode_t *)\n"
4962 " nameof(Agsym_t *)\n");
4963 return 0;
4964}
4965
4966
4967SWIGINTERN PyObject *_wrap_findsubg(PyObject *self, PyObject *args) {
4968 PyObject *resultobj = 0;
4969 Agraph_t *arg1 = (Agraph_t *) 0 ;
4970 char *arg2 = (char *) 0 ;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 int res2 ;
4974 char *buf2 = 0 ;
4975 int alloc2 = 0 ;
4976 PyObject *swig_obj[2] ;
4977 Agraph_t *result = 0 ;
4978
4979 (void)self;
4980 if (!SWIG_Python_UnpackTuple(args, "findsubg", 2, 2, swig_obj)) SWIG_fail;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findsubg" "', argument " "1"" of type '" "Agraph_t *""'");
4984 }
4985 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4986 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
4987 if (!SWIG_IsOK(res2)) {
4988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findsubg" "', argument " "2"" of type '" "char *""'");
4989 }
4990 arg2 = reinterpret_cast< char * >(buf2);
4991 result = (Agraph_t *)findsubg(arg1,arg2);
4992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4993 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4994 return resultobj;
4995fail:
4996 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4997 return NULL;
4998}
4999
5000
5001SWIGINTERN PyObject *_wrap_findnode(PyObject *self, PyObject *args) {
5002 PyObject *resultobj = 0;
5003 Agraph_t *arg1 = (Agraph_t *) 0 ;
5004 char *arg2 = (char *) 0 ;
5005 void *argp1 = 0 ;
5006 int res1 = 0 ;
5007 int res2 ;
5008 char *buf2 = 0 ;
5009 int alloc2 = 0 ;
5010 PyObject *swig_obj[2] ;
5011 Agnode_t *result = 0 ;
5012
5013 (void)self;
5014 if (!SWIG_Python_UnpackTuple(args, "findnode", 2, 2, swig_obj)) SWIG_fail;
5015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5016 if (!SWIG_IsOK(res1)) {
5017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findnode" "', argument " "1"" of type '" "Agraph_t *""'");
5018 }
5019 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5020 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
5021 if (!SWIG_IsOK(res2)) {
5022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findnode" "', argument " "2"" of type '" "char *""'");
5023 }
5024 arg2 = reinterpret_cast< char * >(buf2);
5025 result = (Agnode_t *)findnode(arg1,arg2);
5026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5027 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5028 return resultobj;
5029fail:
5030 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5031 return NULL;
5032}
5033
5034
5035SWIGINTERN PyObject *_wrap_findedge(PyObject *self, PyObject *args) {
5036 PyObject *resultobj = 0;
5037 Agnode_t *arg1 = (Agnode_t *) 0 ;
5038 Agnode_t *arg2 = (Agnode_t *) 0 ;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 void *argp2 = 0 ;
5042 int res2 = 0 ;
5043 PyObject *swig_obj[2] ;
5044 Agedge_t *result = 0 ;
5045
5046 (void)self;
5047 if (!SWIG_Python_UnpackTuple(args, "findedge", 2, 2, swig_obj)) SWIG_fail;
5048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5049 if (!SWIG_IsOK(res1)) {
5050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findedge" "', argument " "1"" of type '" "Agnode_t *""'");
5051 }
5052 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5053 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
5054 if (!SWIG_IsOK(res2)) {
5055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findedge" "', argument " "2"" of type '" "Agnode_t *""'");
5056 }
5057 arg2 = reinterpret_cast< Agnode_t * >(argp2);
5058 result = (Agedge_t *)findedge(arg1,arg2);
5059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5060 return resultobj;
5061fail:
5062 return NULL;
5063}
5064
5065
5066SWIGINTERN PyObject *_wrap_findattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5067 PyObject *resultobj = 0;
5068 Agraph_t *arg1 = (Agraph_t *) 0 ;
5069 char *arg2 = (char *) 0 ;
5070 void *argp1 = 0 ;
5071 int res1 = 0 ;
5072 int res2 ;
5073 char *buf2 = 0 ;
5074 int alloc2 = 0 ;
5075 Agsym_t *result = 0 ;
5076
5077 (void)self;
5078 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
5079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5080 if (!SWIG_IsOK(res1)) {
5081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findattr" "', argument " "1"" of type '" "Agraph_t *""'");
5082 }
5083 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5084 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
5085 if (!SWIG_IsOK(res2)) {
5086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findattr" "', argument " "2"" of type '" "char *""'");
5087 }
5088 arg2 = reinterpret_cast< char * >(buf2);
5089 result = (Agsym_t *)findattr(arg1,arg2);
5090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5091 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5092 return resultobj;
5093fail:
5094 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5095 return NULL;
5096}
5097
5098
5099SWIGINTERN PyObject *_wrap_findattr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5100 PyObject *resultobj = 0;
5101 Agnode_t *arg1 = (Agnode_t *) 0 ;
5102 char *arg2 = (char *) 0 ;
5103 void *argp1 = 0 ;
5104 int res1 = 0 ;
5105 int res2 ;
5106 char *buf2 = 0 ;
5107 int alloc2 = 0 ;
5108 Agsym_t *result = 0 ;
5109
5110 (void)self;
5111 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
5112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5113 if (!SWIG_IsOK(res1)) {
5114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findattr" "', argument " "1"" of type '" "Agnode_t *""'");
5115 }
5116 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5117 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
5118 if (!SWIG_IsOK(res2)) {
5119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findattr" "', argument " "2"" of type '" "char *""'");
5120 }
5121 arg2 = reinterpret_cast< char * >(buf2);
5122 result = (Agsym_t *)findattr(arg1,arg2);
5123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5124 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5125 return resultobj;
5126fail:
5127 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5128 return NULL;
5129}
5130
5131
5132SWIGINTERN PyObject *_wrap_findattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5133 PyObject *resultobj = 0;
5134 Agedge_t *arg1 = (Agedge_t *) 0 ;
5135 char *arg2 = (char *) 0 ;
5136 void *argp1 = 0 ;
5137 int res1 = 0 ;
5138 int res2 ;
5139 char *buf2 = 0 ;
5140 int alloc2 = 0 ;
5141 Agsym_t *result = 0 ;
5142
5143 (void)self;
5144 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
5145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5146 if (!SWIG_IsOK(res1)) {
5147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findattr" "', argument " "1"" of type '" "Agedge_t *""'");
5148 }
5149 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5150 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
5151 if (!SWIG_IsOK(res2)) {
5152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findattr" "', argument " "2"" of type '" "char *""'");
5153 }
5154 arg2 = reinterpret_cast< char * >(buf2);
5155 result = (Agsym_t *)findattr(arg1,arg2);
5156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5157 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5158 return resultobj;
5159fail:
5160 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5161 return NULL;
5162}
5163
5164
5165SWIGINTERN PyObject *_wrap_findattr(PyObject *self, PyObject *args) {
5166 Py_ssize_t argc;
5167 PyObject *argv[3] = {
5168 0
5169 };
5170
5171 if (!(argc = SWIG_Python_UnpackTuple(args, "findattr", 0, 2, argv))) SWIG_fail;
5172 --argc;
5173 if (argc == 2) {
5174 int _v = 0;
5175 void *vptr = 0;
5176 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5177 _v = SWIG_CheckState(res);
5178 if (_v) {
5179 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5180 _v = SWIG_CheckState(res);
5181 if (_v) {
5182 return _wrap_findattr__SWIG_0(self, argc, argv);
5183 }
5184 }
5185 }
5186 if (argc == 2) {
5187 int _v = 0;
5188 void *vptr = 0;
5189 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5190 _v = SWIG_CheckState(res);
5191 if (_v) {
5192 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5193 _v = SWIG_CheckState(res);
5194 if (_v) {
5195 return _wrap_findattr__SWIG_1(self, argc, argv);
5196 }
5197 }
5198 }
5199 if (argc == 2) {
5200 int _v = 0;
5201 void *vptr = 0;
5202 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5203 _v = SWIG_CheckState(res);
5204 if (_v) {
5205 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5206 _v = SWIG_CheckState(res);
5207 if (_v) {
5208 return _wrap_findattr__SWIG_2(self, argc, argv);
5209 }
5210 }
5211 }
5212
5213fail:
5214 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'findattr'.\n"
5215 " Possible C/C++ prototypes are:\n"
5216 " findattr(Agraph_t *,char *)\n"
5217 " findattr(Agnode_t *,char *)\n"
5218 " findattr(Agedge_t *,char *)\n");
5219 return 0;
5220}
5221
5222
5223SWIGINTERN PyObject *_wrap_headof(PyObject *self, PyObject *args) {
5224 PyObject *resultobj = 0;
5225 Agedge_t *arg1 = (Agedge_t *) 0 ;
5226 void *argp1 = 0 ;
5227 int res1 = 0 ;
5228 PyObject *swig_obj[1] ;
5229 Agnode_t *result = 0 ;
5230
5231 (void)self;
5232 if (!args) SWIG_fail;
5233 swig_obj[0] = args;
5234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5235 if (!SWIG_IsOK(res1)) {
5236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "headof" "', argument " "1"" of type '" "Agedge_t *""'");
5237 }
5238 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5239 result = (Agnode_t *)headof(arg1);
5240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5241 return resultobj;
5242fail:
5243 return NULL;
5244}
5245
5246
5247SWIGINTERN PyObject *_wrap_tailof(PyObject *self, PyObject *args) {
5248 PyObject *resultobj = 0;
5249 Agedge_t *arg1 = (Agedge_t *) 0 ;
5250 void *argp1 = 0 ;
5251 int res1 = 0 ;
5252 PyObject *swig_obj[1] ;
5253 Agnode_t *result = 0 ;
5254
5255 (void)self;
5256 if (!args) SWIG_fail;
5257 swig_obj[0] = args;
5258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5259 if (!SWIG_IsOK(res1)) {
5260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tailof" "', argument " "1"" of type '" "Agedge_t *""'");
5261 }
5262 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5263 result = (Agnode_t *)tailof(arg1);
5264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5265 return resultobj;
5266fail:
5267 return NULL;
5268}
5269
5270
5271SWIGINTERN PyObject *_wrap_graphof__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5272 PyObject *resultobj = 0;
5273 Agraph_t *arg1 = (Agraph_t *) 0 ;
5274 void *argp1 = 0 ;
5275 int res1 = 0 ;
5276 Agraph_t *result = 0 ;
5277
5278 (void)self;
5279 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5281 if (!SWIG_IsOK(res1)) {
5282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graphof" "', argument " "1"" of type '" "Agraph_t *""'");
5283 }
5284 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5285 result = (Agraph_t *)graphof(arg1);
5286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5287 return resultobj;
5288fail:
5289 return NULL;
5290}
5291
5292
5293SWIGINTERN PyObject *_wrap_graphof__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5294 PyObject *resultobj = 0;
5295 Agedge_t *arg1 = (Agedge_t *) 0 ;
5296 void *argp1 = 0 ;
5297 int res1 = 0 ;
5298 Agraph_t *result = 0 ;
5299
5300 (void)self;
5301 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5303 if (!SWIG_IsOK(res1)) {
5304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graphof" "', argument " "1"" of type '" "Agedge_t *""'");
5305 }
5306 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5307 result = (Agraph_t *)graphof(arg1);
5308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5309 return resultobj;
5310fail:
5311 return NULL;
5312}
5313
5314
5315SWIGINTERN PyObject *_wrap_graphof__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5316 PyObject *resultobj = 0;
5317 Agnode_t *arg1 = (Agnode_t *) 0 ;
5318 void *argp1 = 0 ;
5319 int res1 = 0 ;
5320 Agraph_t *result = 0 ;
5321
5322 (void)self;
5323 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5325 if (!SWIG_IsOK(res1)) {
5326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graphof" "', argument " "1"" of type '" "Agnode_t *""'");
5327 }
5328 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5329 result = (Agraph_t *)graphof(arg1);
5330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5331 return resultobj;
5332fail:
5333 return NULL;
5334}
5335
5336
5337SWIGINTERN PyObject *_wrap_graphof(PyObject *self, PyObject *args) {
5338 Py_ssize_t argc;
5339 PyObject *argv[2] = {
5340 0
5341 };
5342
5343 if (!(argc = SWIG_Python_UnpackTuple(args, "graphof", 0, 1, argv))) SWIG_fail;
5344 --argc;
5345 if (argc == 1) {
5346 int _v = 0;
5347 void *vptr = 0;
5348 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5349 _v = SWIG_CheckState(res);
5350 if (_v) {
5351 return _wrap_graphof__SWIG_0(self, argc, argv);
5352 }
5353 }
5354 if (argc == 1) {
5355 int _v = 0;
5356 void *vptr = 0;
5357 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5358 _v = SWIG_CheckState(res);
5359 if (_v) {
5360 return _wrap_graphof__SWIG_1(self, argc, argv);
5361 }
5362 }
5363 if (argc == 1) {
5364 int _v = 0;
5365 void *vptr = 0;
5366 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5367 _v = SWIG_CheckState(res);
5368 if (_v) {
5369 return _wrap_graphof__SWIG_2(self, argc, argv);
5370 }
5371 }
5372
5373fail:
5374 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'graphof'.\n"
5375 " Possible C/C++ prototypes are:\n"
5376 " graphof(Agraph_t *)\n"
5377 " graphof(Agedge_t *)\n"
5378 " graphof(Agnode_t *)\n");
5379 return 0;
5380}
5381
5382
5383SWIGINTERN PyObject *_wrap_rootof(PyObject *self, PyObject *args) {
5384 PyObject *resultobj = 0;
5385 Agraph_t *arg1 = (Agraph_t *) 0 ;
5386 void *argp1 = 0 ;
5387 int res1 = 0 ;
5388 PyObject *swig_obj[1] ;
5389 Agraph_t *result = 0 ;
5390
5391 (void)self;
5392 if (!args) SWIG_fail;
5393 swig_obj[0] = args;
5394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5395 if (!SWIG_IsOK(res1)) {
5396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rootof" "', argument " "1"" of type '" "Agraph_t *""'");
5397 }
5398 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5399 result = (Agraph_t *)rootof(arg1);
5400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5401 return resultobj;
5402fail:
5403 return NULL;
5404}
5405
5406
5407SWIGINTERN PyObject *_wrap_protonode(PyObject *self, PyObject *args) {
5408 PyObject *resultobj = 0;
5409 Agraph_t *arg1 = (Agraph_t *) 0 ;
5410 void *argp1 = 0 ;
5411 int res1 = 0 ;
5412 PyObject *swig_obj[1] ;
5413 Agnode_t *result = 0 ;
5414
5415 (void)self;
5416 if (!args) SWIG_fail;
5417 swig_obj[0] = args;
5418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5419 if (!SWIG_IsOK(res1)) {
5420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "protonode" "', argument " "1"" of type '" "Agraph_t *""'");
5421 }
5422 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5423 result = (Agnode_t *)protonode(arg1);
5424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5425 return resultobj;
5426fail:
5427 return NULL;
5428}
5429
5430
5431SWIGINTERN PyObject *_wrap_protoedge(PyObject *self, PyObject *args) {
5432 PyObject *resultobj = 0;
5433 Agraph_t *arg1 = (Agraph_t *) 0 ;
5434 void *argp1 = 0 ;
5435 int res1 = 0 ;
5436 PyObject *swig_obj[1] ;
5437 Agedge_t *result = 0 ;
5438
5439 (void)self;
5440 if (!args) SWIG_fail;
5441 swig_obj[0] = args;
5442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5443 if (!SWIG_IsOK(res1)) {
5444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "protoedge" "', argument " "1"" of type '" "Agraph_t *""'");
5445 }
5446 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5447 result = (Agedge_t *)protoedge(arg1);
5448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5449 return resultobj;
5450fail:
5451 return NULL;
5452}
5453
5454
5455SWIGINTERN PyObject *_wrap_ok__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5456 PyObject *resultobj = 0;
5457 Agraph_t *arg1 = (Agraph_t *) 0 ;
5458 void *argp1 = 0 ;
5459 int res1 = 0 ;
5460 bool result;
5461
5462 (void)self;
5463 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5465 if (!SWIG_IsOK(res1)) {
5466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agraph_t *""'");
5467 }
5468 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5469 result = (bool)ok(arg1);
5470 resultobj = SWIG_From_bool(static_cast< bool >(result));
5471 return resultobj;
5472fail:
5473 return NULL;
5474}
5475
5476
5477SWIGINTERN PyObject *_wrap_ok__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5478 PyObject *resultobj = 0;
5479 Agnode_t *arg1 = (Agnode_t *) 0 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 bool result;
5483
5484 (void)self;
5485 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5487 if (!SWIG_IsOK(res1)) {
5488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agnode_t *""'");
5489 }
5490 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5491 result = (bool)ok(arg1);
5492 resultobj = SWIG_From_bool(static_cast< bool >(result));
5493 return resultobj;
5494fail:
5495 return NULL;
5496}
5497
5498
5499SWIGINTERN PyObject *_wrap_ok__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5500 PyObject *resultobj = 0;
5501 Agedge_t *arg1 = (Agedge_t *) 0 ;
5502 void *argp1 = 0 ;
5503 int res1 = 0 ;
5504 bool result;
5505
5506 (void)self;
5507 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5509 if (!SWIG_IsOK(res1)) {
5510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agedge_t *""'");
5511 }
5512 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5513 result = (bool)ok(arg1);
5514 resultobj = SWIG_From_bool(static_cast< bool >(result));
5515 return resultobj;
5516fail:
5517 return NULL;
5518}
5519
5520
5521SWIGINTERN PyObject *_wrap_ok__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5522 PyObject *resultobj = 0;
5523 Agsym_t *arg1 = (Agsym_t *) 0 ;
5524 void *argp1 = 0 ;
5525 int res1 = 0 ;
5526 bool result;
5527
5528 (void)self;
5529 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agsym_t, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agsym_t *""'");
5533 }
5534 arg1 = reinterpret_cast< Agsym_t * >(argp1);
5535 result = (bool)ok(arg1);
5536 resultobj = SWIG_From_bool(static_cast< bool >(result));
5537 return resultobj;
5538fail:
5539 return NULL;
5540}
5541
5542
5543SWIGINTERN PyObject *_wrap_ok(PyObject *self, PyObject *args) {
5544 Py_ssize_t argc;
5545 PyObject *argv[2] = {
5546 0
5547 };
5548
5549 if (!(argc = SWIG_Python_UnpackTuple(args, "ok", 0, 1, argv))) SWIG_fail;
5550 --argc;
5551 if (argc == 1) {
5552 int _v = 0;
5553 void *vptr = 0;
5554 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5555 _v = SWIG_CheckState(res);
5556 if (_v) {
5557 return _wrap_ok__SWIG_0(self, argc, argv);
5558 }
5559 }
5560 if (argc == 1) {
5561 int _v = 0;
5562 void *vptr = 0;
5563 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5564 _v = SWIG_CheckState(res);
5565 if (_v) {
5566 return _wrap_ok__SWIG_1(self, argc, argv);
5567 }
5568 }
5569 if (argc == 1) {
5570 int _v = 0;
5571 void *vptr = 0;
5572 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5573 _v = SWIG_CheckState(res);
5574 if (_v) {
5575 return _wrap_ok__SWIG_2(self, argc, argv);
5576 }
5577 }
5578 if (argc == 1) {
5579 int _v = 0;
5580 void *vptr = 0;
5581 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agsym_t, 0);
5582 _v = SWIG_CheckState(res);
5583 if (_v) {
5584 return _wrap_ok__SWIG_3(self, argc, argv);
5585 }
5586 }
5587
5588fail:
5589 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ok'.\n"
5590 " Possible C/C++ prototypes are:\n"
5591 " ok(Agraph_t *)\n"
5592 " ok(Agnode_t *)\n"
5593 " ok(Agedge_t *)\n"
5594 " ok(Agsym_t *)\n");
5595 return 0;
5596}
5597
5598
5599SWIGINTERN PyObject *_wrap_firstsubg(PyObject *self, PyObject *args) {
5600 PyObject *resultobj = 0;
5601 Agraph_t *arg1 = (Agraph_t *) 0 ;
5602 void *argp1 = 0 ;
5603 int res1 = 0 ;
5604 PyObject *swig_obj[1] ;
5605 Agraph_t *result = 0 ;
5606
5607 (void)self;
5608 if (!args) SWIG_fail;
5609 swig_obj[0] = args;
5610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5611 if (!SWIG_IsOK(res1)) {
5612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstsubg" "', argument " "1"" of type '" "Agraph_t *""'");
5613 }
5614 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5615 result = (Agraph_t *)firstsubg(arg1);
5616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5617 return resultobj;
5618fail:
5619 return NULL;
5620}
5621
5622
5623SWIGINTERN PyObject *_wrap_nextsubg(PyObject *self, PyObject *args) {
5624 PyObject *resultobj = 0;
5625 Agraph_t *arg1 = (Agraph_t *) 0 ;
5626 Agraph_t *arg2 = (Agraph_t *) 0 ;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 void *argp2 = 0 ;
5630 int res2 = 0 ;
5631 PyObject *swig_obj[2] ;
5632 Agraph_t *result = 0 ;
5633
5634 (void)self;
5635 if (!SWIG_Python_UnpackTuple(args, "nextsubg", 2, 2, swig_obj)) SWIG_fail;
5636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5637 if (!SWIG_IsOK(res1)) {
5638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextsubg" "', argument " "1"" of type '" "Agraph_t *""'");
5639 }
5640 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5641 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agraph_t, 0 | 0 );
5642 if (!SWIG_IsOK(res2)) {
5643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextsubg" "', argument " "2"" of type '" "Agraph_t *""'");
5644 }
5645 arg2 = reinterpret_cast< Agraph_t * >(argp2);
5646 result = (Agraph_t *)nextsubg(arg1,arg2);
5647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5648 return resultobj;
5649fail:
5650 return NULL;
5651}
5652
5653
5654SWIGINTERN PyObject *_wrap_firstsupg(PyObject *self, PyObject *args) {
5655 PyObject *resultobj = 0;
5656 Agraph_t *arg1 = (Agraph_t *) 0 ;
5657 void *argp1 = 0 ;
5658 int res1 = 0 ;
5659 PyObject *swig_obj[1] ;
5660 Agraph_t *result = 0 ;
5661
5662 (void)self;
5663 if (!args) SWIG_fail;
5664 swig_obj[0] = args;
5665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstsupg" "', argument " "1"" of type '" "Agraph_t *""'");
5668 }
5669 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5670 result = (Agraph_t *)firstsupg(arg1);
5671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5672 return resultobj;
5673fail:
5674 return NULL;
5675}
5676
5677
5678SWIGINTERN PyObject *_wrap_nextsupg(PyObject *self, PyObject *args) {
5679 PyObject *resultobj = 0;
5680 Agraph_t *arg1 = (Agraph_t *) 0 ;
5681 Agraph_t *arg2 = (Agraph_t *) 0 ;
5682 void *argp1 = 0 ;
5683 int res1 = 0 ;
5684 void *argp2 = 0 ;
5685 int res2 = 0 ;
5686 PyObject *swig_obj[2] ;
5687 Agraph_t *result = 0 ;
5688
5689 (void)self;
5690 if (!SWIG_Python_UnpackTuple(args, "nextsupg", 2, 2, swig_obj)) SWIG_fail;
5691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5692 if (!SWIG_IsOK(res1)) {
5693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextsupg" "', argument " "1"" of type '" "Agraph_t *""'");
5694 }
5695 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5696 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agraph_t, 0 | 0 );
5697 if (!SWIG_IsOK(res2)) {
5698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextsupg" "', argument " "2"" of type '" "Agraph_t *""'");
5699 }
5700 arg2 = reinterpret_cast< Agraph_t * >(argp2);
5701 result = (Agraph_t *)nextsupg(arg1,arg2);
5702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
5703 return resultobj;
5704fail:
5705 return NULL;
5706}
5707
5708
5709SWIGINTERN PyObject *_wrap_firstedge__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5710 PyObject *resultobj = 0;
5711 Agraph_t *arg1 = (Agraph_t *) 0 ;
5712 void *argp1 = 0 ;
5713 int res1 = 0 ;
5714 Agedge_t *result = 0 ;
5715
5716 (void)self;
5717 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5719 if (!SWIG_IsOK(res1)) {
5720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstedge" "', argument " "1"" of type '" "Agraph_t *""'");
5721 }
5722 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5723 result = (Agedge_t *)firstedge(arg1);
5724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5725 return resultobj;
5726fail:
5727 return NULL;
5728}
5729
5730
5731SWIGINTERN PyObject *_wrap_nextedge__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5732 PyObject *resultobj = 0;
5733 Agraph_t *arg1 = (Agraph_t *) 0 ;
5734 Agedge_t *arg2 = (Agedge_t *) 0 ;
5735 void *argp1 = 0 ;
5736 int res1 = 0 ;
5737 void *argp2 = 0 ;
5738 int res2 = 0 ;
5739 Agedge_t *result = 0 ;
5740
5741 (void)self;
5742 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
5743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5744 if (!SWIG_IsOK(res1)) {
5745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextedge" "', argument " "1"" of type '" "Agraph_t *""'");
5746 }
5747 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5748 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
5749 if (!SWIG_IsOK(res2)) {
5750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextedge" "', argument " "2"" of type '" "Agedge_t *""'");
5751 }
5752 arg2 = reinterpret_cast< Agedge_t * >(argp2);
5753 result = (Agedge_t *)nextedge(arg1,arg2);
5754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5755 return resultobj;
5756fail:
5757 return NULL;
5758}
5759
5760
5761SWIGINTERN PyObject *_wrap_firstout__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5762 PyObject *resultobj = 0;
5763 Agraph_t *arg1 = (Agraph_t *) 0 ;
5764 void *argp1 = 0 ;
5765 int res1 = 0 ;
5766 Agedge_t *result = 0 ;
5767
5768 (void)self;
5769 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5771 if (!SWIG_IsOK(res1)) {
5772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstout" "', argument " "1"" of type '" "Agraph_t *""'");
5773 }
5774 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5775 result = (Agedge_t *)firstout(arg1);
5776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5777 return resultobj;
5778fail:
5779 return NULL;
5780}
5781
5782
5783SWIGINTERN PyObject *_wrap_nextout__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5784 PyObject *resultobj = 0;
5785 Agraph_t *arg1 = (Agraph_t *) 0 ;
5786 Agedge_t *arg2 = (Agedge_t *) 0 ;
5787 void *argp1 = 0 ;
5788 int res1 = 0 ;
5789 void *argp2 = 0 ;
5790 int res2 = 0 ;
5791 Agedge_t *result = 0 ;
5792
5793 (void)self;
5794 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
5795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5796 if (!SWIG_IsOK(res1)) {
5797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextout" "', argument " "1"" of type '" "Agraph_t *""'");
5798 }
5799 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5800 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
5801 if (!SWIG_IsOK(res2)) {
5802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextout" "', argument " "2"" of type '" "Agedge_t *""'");
5803 }
5804 arg2 = reinterpret_cast< Agedge_t * >(argp2);
5805 result = (Agedge_t *)nextout(arg1,arg2);
5806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5807 return resultobj;
5808fail:
5809 return NULL;
5810}
5811
5812
5813SWIGINTERN PyObject *_wrap_firstedge__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5814 PyObject *resultobj = 0;
5815 Agnode_t *arg1 = (Agnode_t *) 0 ;
5816 void *argp1 = 0 ;
5817 int res1 = 0 ;
5818 Agedge_t *result = 0 ;
5819
5820 (void)self;
5821 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5823 if (!SWIG_IsOK(res1)) {
5824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstedge" "', argument " "1"" of type '" "Agnode_t *""'");
5825 }
5826 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5827 result = (Agedge_t *)firstedge(arg1);
5828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5829 return resultobj;
5830fail:
5831 return NULL;
5832}
5833
5834
5835SWIGINTERN PyObject *_wrap_firstedge(PyObject *self, PyObject *args) {
5836 Py_ssize_t argc;
5837 PyObject *argv[2] = {
5838 0
5839 };
5840
5841 if (!(argc = SWIG_Python_UnpackTuple(args, "firstedge", 0, 1, argv))) SWIG_fail;
5842 --argc;
5843 if (argc == 1) {
5844 int _v = 0;
5845 void *vptr = 0;
5846 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5847 _v = SWIG_CheckState(res);
5848 if (_v) {
5849 return _wrap_firstedge__SWIG_0(self, argc, argv);
5850 }
5851 }
5852 if (argc == 1) {
5853 int _v = 0;
5854 void *vptr = 0;
5855 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5856 _v = SWIG_CheckState(res);
5857 if (_v) {
5858 return _wrap_firstedge__SWIG_1(self, argc, argv);
5859 }
5860 }
5861
5862fail:
5863 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'firstedge'.\n"
5864 " Possible C/C++ prototypes are:\n"
5865 " firstedge(Agraph_t *)\n"
5866 " firstedge(Agnode_t *)\n");
5867 return 0;
5868}
5869
5870
5871SWIGINTERN PyObject *_wrap_nextedge__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5872 PyObject *resultobj = 0;
5873 Agnode_t *arg1 = (Agnode_t *) 0 ;
5874 Agedge_t *arg2 = (Agedge_t *) 0 ;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 void *argp2 = 0 ;
5878 int res2 = 0 ;
5879 Agedge_t *result = 0 ;
5880
5881 (void)self;
5882 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextedge" "', argument " "1"" of type '" "Agnode_t *""'");
5886 }
5887 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5888 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
5889 if (!SWIG_IsOK(res2)) {
5890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextedge" "', argument " "2"" of type '" "Agedge_t *""'");
5891 }
5892 arg2 = reinterpret_cast< Agedge_t * >(argp2);
5893 result = (Agedge_t *)nextedge(arg1,arg2);
5894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5895 return resultobj;
5896fail:
5897 return NULL;
5898}
5899
5900
5901SWIGINTERN PyObject *_wrap_nextedge(PyObject *self, PyObject *args) {
5902 Py_ssize_t argc;
5903 PyObject *argv[3] = {
5904 0
5905 };
5906
5907 if (!(argc = SWIG_Python_UnpackTuple(args, "nextedge", 0, 2, argv))) SWIG_fail;
5908 --argc;
5909 if (argc == 2) {
5910 int _v = 0;
5911 void *vptr = 0;
5912 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5913 _v = SWIG_CheckState(res);
5914 if (_v) {
5915 void *vptr = 0;
5916 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
5917 _v = SWIG_CheckState(res);
5918 if (_v) {
5919 return _wrap_nextedge__SWIG_0(self, argc, argv);
5920 }
5921 }
5922 }
5923 if (argc == 2) {
5924 int _v = 0;
5925 void *vptr = 0;
5926 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5927 _v = SWIG_CheckState(res);
5928 if (_v) {
5929 void *vptr = 0;
5930 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
5931 _v = SWIG_CheckState(res);
5932 if (_v) {
5933 return _wrap_nextedge__SWIG_1(self, argc, argv);
5934 }
5935 }
5936 }
5937
5938fail:
5939 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'nextedge'.\n"
5940 " Possible C/C++ prototypes are:\n"
5941 " nextedge(Agraph_t *,Agedge_t *)\n"
5942 " nextedge(Agnode_t *,Agedge_t *)\n");
5943 return 0;
5944}
5945
5946
5947SWIGINTERN PyObject *_wrap_firstout__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
5948 PyObject *resultobj = 0;
5949 Agnode_t *arg1 = (Agnode_t *) 0 ;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
5952 Agedge_t *result = 0 ;
5953
5954 (void)self;
5955 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
5956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5957 if (!SWIG_IsOK(res1)) {
5958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstout" "', argument " "1"" of type '" "Agnode_t *""'");
5959 }
5960 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5961 result = (Agedge_t *)firstout(arg1);
5962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
5963 return resultobj;
5964fail:
5965 return NULL;
5966}
5967
5968
5969SWIGINTERN PyObject *_wrap_firstout(PyObject *self, PyObject *args) {
5970 Py_ssize_t argc;
5971 PyObject *argv[2] = {
5972 0
5973 };
5974
5975 if (!(argc = SWIG_Python_UnpackTuple(args, "firstout", 0, 1, argv))) SWIG_fail;
5976 --argc;
5977 if (argc == 1) {
5978 int _v = 0;
5979 void *vptr = 0;
5980 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5981 _v = SWIG_CheckState(res);
5982 if (_v) {
5983 return _wrap_firstout__SWIG_0(self, argc, argv);
5984 }
5985 }
5986 if (argc == 1) {
5987 int _v = 0;
5988 void *vptr = 0;
5989 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5990 _v = SWIG_CheckState(res);
5991 if (_v) {
5992 return _wrap_firstout__SWIG_1(self, argc, argv);
5993 }
5994 }
5995
5996fail:
5997 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'firstout'.\n"
5998 " Possible C/C++ prototypes are:\n"
5999 " firstout(Agraph_t *)\n"
6000 " firstout(Agnode_t *)\n");
6001 return 0;
6002}
6003
6004
6005SWIGINTERN PyObject *_wrap_nextout__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6006 PyObject *resultobj = 0;
6007 Agnode_t *arg1 = (Agnode_t *) 0 ;
6008 Agedge_t *arg2 = (Agedge_t *) 0 ;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 void *argp2 = 0 ;
6012 int res2 = 0 ;
6013 Agedge_t *result = 0 ;
6014
6015 (void)self;
6016 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6018 if (!SWIG_IsOK(res1)) {
6019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextout" "', argument " "1"" of type '" "Agnode_t *""'");
6020 }
6021 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6022 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
6023 if (!SWIG_IsOK(res2)) {
6024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextout" "', argument " "2"" of type '" "Agedge_t *""'");
6025 }
6026 arg2 = reinterpret_cast< Agedge_t * >(argp2);
6027 result = (Agedge_t *)nextout(arg1,arg2);
6028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
6029 return resultobj;
6030fail:
6031 return NULL;
6032}
6033
6034
6035SWIGINTERN PyObject *_wrap_nextout(PyObject *self, PyObject *args) {
6036 Py_ssize_t argc;
6037 PyObject *argv[3] = {
6038 0
6039 };
6040
6041 if (!(argc = SWIG_Python_UnpackTuple(args, "nextout", 0, 2, argv))) SWIG_fail;
6042 --argc;
6043 if (argc == 2) {
6044 int _v = 0;
6045 void *vptr = 0;
6046 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6047 _v = SWIG_CheckState(res);
6048 if (_v) {
6049 void *vptr = 0;
6050 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
6051 _v = SWIG_CheckState(res);
6052 if (_v) {
6053 return _wrap_nextout__SWIG_0(self, argc, argv);
6054 }
6055 }
6056 }
6057 if (argc == 2) {
6058 int _v = 0;
6059 void *vptr = 0;
6060 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
6061 _v = SWIG_CheckState(res);
6062 if (_v) {
6063 void *vptr = 0;
6064 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
6065 _v = SWIG_CheckState(res);
6066 if (_v) {
6067 return _wrap_nextout__SWIG_1(self, argc, argv);
6068 }
6069 }
6070 }
6071
6072fail:
6073 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'nextout'.\n"
6074 " Possible C/C++ prototypes are:\n"
6075 " nextout(Agraph_t *,Agedge_t *)\n"
6076 " nextout(Agnode_t *,Agedge_t *)\n");
6077 return 0;
6078}
6079
6080
6081SWIGINTERN PyObject *_wrap_firsthead(PyObject *self, PyObject *args) {
6082 PyObject *resultobj = 0;
6083 Agnode_t *arg1 = (Agnode_t *) 0 ;
6084 void *argp1 = 0 ;
6085 int res1 = 0 ;
6086 PyObject *swig_obj[1] ;
6087 Agnode_t *result = 0 ;
6088
6089 (void)self;
6090 if (!args) SWIG_fail;
6091 swig_obj[0] = args;
6092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6093 if (!SWIG_IsOK(res1)) {
6094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firsthead" "', argument " "1"" of type '" "Agnode_t *""'");
6095 }
6096 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6097 result = (Agnode_t *)firsthead(arg1);
6098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6099 return resultobj;
6100fail:
6101 return NULL;
6102}
6103
6104
6105SWIGINTERN PyObject *_wrap_nexthead(PyObject *self, PyObject *args) {
6106 PyObject *resultobj = 0;
6107 Agnode_t *arg1 = (Agnode_t *) 0 ;
6108 Agnode_t *arg2 = (Agnode_t *) 0 ;
6109 void *argp1 = 0 ;
6110 int res1 = 0 ;
6111 void *argp2 = 0 ;
6112 int res2 = 0 ;
6113 PyObject *swig_obj[2] ;
6114 Agnode_t *result = 0 ;
6115
6116 (void)self;
6117 if (!SWIG_Python_UnpackTuple(args, "nexthead", 2, 2, swig_obj)) SWIG_fail;
6118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6119 if (!SWIG_IsOK(res1)) {
6120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nexthead" "', argument " "1"" of type '" "Agnode_t *""'");
6121 }
6122 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6123 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
6124 if (!SWIG_IsOK(res2)) {
6125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nexthead" "', argument " "2"" of type '" "Agnode_t *""'");
6126 }
6127 arg2 = reinterpret_cast< Agnode_t * >(argp2);
6128 result = (Agnode_t *)nexthead(arg1,arg2);
6129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6130 return resultobj;
6131fail:
6132 return NULL;
6133}
6134
6135
6136SWIGINTERN PyObject *_wrap_firstin__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6137 PyObject *resultobj = 0;
6138 Agraph_t *arg1 = (Agraph_t *) 0 ;
6139 void *argp1 = 0 ;
6140 int res1 = 0 ;
6141 Agedge_t *result = 0 ;
6142
6143 (void)self;
6144 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6146 if (!SWIG_IsOK(res1)) {
6147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstin" "', argument " "1"" of type '" "Agraph_t *""'");
6148 }
6149 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6150 result = (Agedge_t *)firstin(arg1);
6151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
6152 return resultobj;
6153fail:
6154 return NULL;
6155}
6156
6157
6158SWIGINTERN PyObject *_wrap_nextin__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6159 PyObject *resultobj = 0;
6160 Agnode_t *arg1 = (Agnode_t *) 0 ;
6161 Agedge_t *arg2 = (Agedge_t *) 0 ;
6162 void *argp1 = 0 ;
6163 int res1 = 0 ;
6164 void *argp2 = 0 ;
6165 int res2 = 0 ;
6166 Agedge_t *result = 0 ;
6167
6168 (void)self;
6169 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6171 if (!SWIG_IsOK(res1)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextin" "', argument " "1"" of type '" "Agnode_t *""'");
6173 }
6174 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6175 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
6176 if (!SWIG_IsOK(res2)) {
6177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextin" "', argument " "2"" of type '" "Agedge_t *""'");
6178 }
6179 arg2 = reinterpret_cast< Agedge_t * >(argp2);
6180 result = (Agedge_t *)nextin(arg1,arg2);
6181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
6182 return resultobj;
6183fail:
6184 return NULL;
6185}
6186
6187
6188SWIGINTERN PyObject *_wrap_firstin__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6189 PyObject *resultobj = 0;
6190 Agnode_t *arg1 = (Agnode_t *) 0 ;
6191 void *argp1 = 0 ;
6192 int res1 = 0 ;
6193 Agedge_t *result = 0 ;
6194
6195 (void)self;
6196 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6198 if (!SWIG_IsOK(res1)) {
6199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstin" "', argument " "1"" of type '" "Agnode_t *""'");
6200 }
6201 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6202 result = (Agedge_t *)firstin(arg1);
6203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
6204 return resultobj;
6205fail:
6206 return NULL;
6207}
6208
6209
6210SWIGINTERN PyObject *_wrap_firstin(PyObject *self, PyObject *args) {
6211 Py_ssize_t argc;
6212 PyObject *argv[2] = {
6213 0
6214 };
6215
6216 if (!(argc = SWIG_Python_UnpackTuple(args, "firstin", 0, 1, argv))) SWIG_fail;
6217 --argc;
6218 if (argc == 1) {
6219 int _v = 0;
6220 void *vptr = 0;
6221 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6222 _v = SWIG_CheckState(res);
6223 if (_v) {
6224 return _wrap_firstin__SWIG_0(self, argc, argv);
6225 }
6226 }
6227 if (argc == 1) {
6228 int _v = 0;
6229 void *vptr = 0;
6230 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
6231 _v = SWIG_CheckState(res);
6232 if (_v) {
6233 return _wrap_firstin__SWIG_1(self, argc, argv);
6234 }
6235 }
6236
6237fail:
6238 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'firstin'.\n"
6239 " Possible C/C++ prototypes are:\n"
6240 " firstin(Agraph_t *)\n"
6241 " firstin(Agnode_t *)\n");
6242 return 0;
6243}
6244
6245
6246SWIGINTERN PyObject *_wrap_nextin__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6247 PyObject *resultobj = 0;
6248 Agraph_t *arg1 = (Agraph_t *) 0 ;
6249 Agedge_t *arg2 = (Agedge_t *) 0 ;
6250 void *argp1 = 0 ;
6251 int res1 = 0 ;
6252 void *argp2 = 0 ;
6253 int res2 = 0 ;
6254 Agedge_t *result = 0 ;
6255
6256 (void)self;
6257 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6259 if (!SWIG_IsOK(res1)) {
6260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextin" "', argument " "1"" of type '" "Agraph_t *""'");
6261 }
6262 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6263 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
6264 if (!SWIG_IsOK(res2)) {
6265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextin" "', argument " "2"" of type '" "Agedge_t *""'");
6266 }
6267 arg2 = reinterpret_cast< Agedge_t * >(argp2);
6268 result = (Agedge_t *)nextin(arg1,arg2);
6269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
6270 return resultobj;
6271fail:
6272 return NULL;
6273}
6274
6275
6276SWIGINTERN PyObject *_wrap_nextin(PyObject *self, PyObject *args) {
6277 Py_ssize_t argc;
6278 PyObject *argv[3] = {
6279 0
6280 };
6281
6282 if (!(argc = SWIG_Python_UnpackTuple(args, "nextin", 0, 2, argv))) SWIG_fail;
6283 --argc;
6284 if (argc == 2) {
6285 int _v = 0;
6286 void *vptr = 0;
6287 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
6288 _v = SWIG_CheckState(res);
6289 if (_v) {
6290 void *vptr = 0;
6291 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
6292 _v = SWIG_CheckState(res);
6293 if (_v) {
6294 return _wrap_nextin__SWIG_0(self, argc, argv);
6295 }
6296 }
6297 }
6298 if (argc == 2) {
6299 int _v = 0;
6300 void *vptr = 0;
6301 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6302 _v = SWIG_CheckState(res);
6303 if (_v) {
6304 void *vptr = 0;
6305 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
6306 _v = SWIG_CheckState(res);
6307 if (_v) {
6308 return _wrap_nextin__SWIG_1(self, argc, argv);
6309 }
6310 }
6311 }
6312
6313fail:
6314 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'nextin'.\n"
6315 " Possible C/C++ prototypes are:\n"
6316 " nextin(Agnode_t *,Agedge_t *)\n"
6317 " nextin(Agraph_t *,Agedge_t *)\n");
6318 return 0;
6319}
6320
6321
6322SWIGINTERN PyObject *_wrap_firsttail(PyObject *self, PyObject *args) {
6323 PyObject *resultobj = 0;
6324 Agnode_t *arg1 = (Agnode_t *) 0 ;
6325 void *argp1 = 0 ;
6326 int res1 = 0 ;
6327 PyObject *swig_obj[1] ;
6328 Agnode_t *result = 0 ;
6329
6330 (void)self;
6331 if (!args) SWIG_fail;
6332 swig_obj[0] = args;
6333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6334 if (!SWIG_IsOK(res1)) {
6335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firsttail" "', argument " "1"" of type '" "Agnode_t *""'");
6336 }
6337 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6338 result = (Agnode_t *)firsttail(arg1);
6339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6340 return resultobj;
6341fail:
6342 return NULL;
6343}
6344
6345
6346SWIGINTERN PyObject *_wrap_nexttail(PyObject *self, PyObject *args) {
6347 PyObject *resultobj = 0;
6348 Agnode_t *arg1 = (Agnode_t *) 0 ;
6349 Agnode_t *arg2 = (Agnode_t *) 0 ;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 void *argp2 = 0 ;
6353 int res2 = 0 ;
6354 PyObject *swig_obj[2] ;
6355 Agnode_t *result = 0 ;
6356
6357 (void)self;
6358 if (!SWIG_Python_UnpackTuple(args, "nexttail", 2, 2, swig_obj)) SWIG_fail;
6359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6360 if (!SWIG_IsOK(res1)) {
6361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nexttail" "', argument " "1"" of type '" "Agnode_t *""'");
6362 }
6363 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6364 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
6365 if (!SWIG_IsOK(res2)) {
6366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nexttail" "', argument " "2"" of type '" "Agnode_t *""'");
6367 }
6368 arg2 = reinterpret_cast< Agnode_t * >(argp2);
6369 result = (Agnode_t *)nexttail(arg1,arg2);
6370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6371 return resultobj;
6372fail:
6373 return NULL;
6374}
6375
6376
6377SWIGINTERN PyObject *_wrap_firstnode__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6378 PyObject *resultobj = 0;
6379 Agraph_t *arg1 = (Agraph_t *) 0 ;
6380 void *argp1 = 0 ;
6381 int res1 = 0 ;
6382 Agnode_t *result = 0 ;
6383
6384 (void)self;
6385 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6387 if (!SWIG_IsOK(res1)) {
6388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstnode" "', argument " "1"" of type '" "Agraph_t *""'");
6389 }
6390 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6391 result = (Agnode_t *)firstnode(arg1);
6392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6393 return resultobj;
6394fail:
6395 return NULL;
6396}
6397
6398
6399SWIGINTERN PyObject *_wrap_nextnode__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6400 PyObject *resultobj = 0;
6401 Agraph_t *arg1 = (Agraph_t *) 0 ;
6402 Agnode_t *arg2 = (Agnode_t *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 void *argp2 = 0 ;
6406 int res2 = 0 ;
6407 Agnode_t *result = 0 ;
6408
6409 (void)self;
6410 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextnode" "', argument " "1"" of type '" "Agraph_t *""'");
6414 }
6415 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6416 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
6417 if (!SWIG_IsOK(res2)) {
6418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextnode" "', argument " "2"" of type '" "Agnode_t *""'");
6419 }
6420 arg2 = reinterpret_cast< Agnode_t * >(argp2);
6421 result = (Agnode_t *)nextnode(arg1,arg2);
6422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6423 return resultobj;
6424fail:
6425 return NULL;
6426}
6427
6428
6429SWIGINTERN PyObject *_wrap_firstnode__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6430 PyObject *resultobj = 0;
6431 Agedge_t *arg1 = (Agedge_t *) 0 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 Agnode_t *result = 0 ;
6435
6436 (void)self;
6437 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
6439 if (!SWIG_IsOK(res1)) {
6440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstnode" "', argument " "1"" of type '" "Agedge_t *""'");
6441 }
6442 arg1 = reinterpret_cast< Agedge_t * >(argp1);
6443 result = (Agnode_t *)firstnode(arg1);
6444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6445 return resultobj;
6446fail:
6447 return NULL;
6448}
6449
6450
6451SWIGINTERN PyObject *_wrap_firstnode(PyObject *self, PyObject *args) {
6452 Py_ssize_t argc;
6453 PyObject *argv[2] = {
6454 0
6455 };
6456
6457 if (!(argc = SWIG_Python_UnpackTuple(args, "firstnode", 0, 1, argv))) SWIG_fail;
6458 --argc;
6459 if (argc == 1) {
6460 int _v = 0;
6461 void *vptr = 0;
6462 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6463 _v = SWIG_CheckState(res);
6464 if (_v) {
6465 return _wrap_firstnode__SWIG_0(self, argc, argv);
6466 }
6467 }
6468 if (argc == 1) {
6469 int _v = 0;
6470 void *vptr = 0;
6471 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
6472 _v = SWIG_CheckState(res);
6473 if (_v) {
6474 return _wrap_firstnode__SWIG_1(self, argc, argv);
6475 }
6476 }
6477
6478fail:
6479 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'firstnode'.\n"
6480 " Possible C/C++ prototypes are:\n"
6481 " firstnode(Agraph_t *)\n"
6482 " firstnode(Agedge_t *)\n");
6483 return 0;
6484}
6485
6486
6487SWIGINTERN PyObject *_wrap_nextnode__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6488 PyObject *resultobj = 0;
6489 Agedge_t *arg1 = (Agedge_t *) 0 ;
6490 Agnode_t *arg2 = (Agnode_t *) 0 ;
6491 void *argp1 = 0 ;
6492 int res1 = 0 ;
6493 void *argp2 = 0 ;
6494 int res2 = 0 ;
6495 Agnode_t *result = 0 ;
6496
6497 (void)self;
6498 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
6500 if (!SWIG_IsOK(res1)) {
6501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextnode" "', argument " "1"" of type '" "Agedge_t *""'");
6502 }
6503 arg1 = reinterpret_cast< Agedge_t * >(argp1);
6504 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
6505 if (!SWIG_IsOK(res2)) {
6506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextnode" "', argument " "2"" of type '" "Agnode_t *""'");
6507 }
6508 arg2 = reinterpret_cast< Agnode_t * >(argp2);
6509 result = (Agnode_t *)nextnode(arg1,arg2);
6510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
6511 return resultobj;
6512fail:
6513 return NULL;
6514}
6515
6516
6517SWIGINTERN PyObject *_wrap_nextnode(PyObject *self, PyObject *args) {
6518 Py_ssize_t argc;
6519 PyObject *argv[3] = {
6520 0
6521 };
6522
6523 if (!(argc = SWIG_Python_UnpackTuple(args, "nextnode", 0, 2, argv))) SWIG_fail;
6524 --argc;
6525 if (argc == 2) {
6526 int _v = 0;
6527 void *vptr = 0;
6528 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6529 _v = SWIG_CheckState(res);
6530 if (_v) {
6531 void *vptr = 0;
6532 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
6533 _v = SWIG_CheckState(res);
6534 if (_v) {
6535 return _wrap_nextnode__SWIG_0(self, argc, argv);
6536 }
6537 }
6538 }
6539 if (argc == 2) {
6540 int _v = 0;
6541 void *vptr = 0;
6542 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
6543 _v = SWIG_CheckState(res);
6544 if (_v) {
6545 void *vptr = 0;
6546 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
6547 _v = SWIG_CheckState(res);
6548 if (_v) {
6549 return _wrap_nextnode__SWIG_1(self, argc, argv);
6550 }
6551 }
6552 }
6553
6554fail:
6555 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'nextnode'.\n"
6556 " Possible C/C++ prototypes are:\n"
6557 " nextnode(Agraph_t *,Agnode_t *)\n"
6558 " nextnode(Agedge_t *,Agnode_t *)\n");
6559 return 0;
6560}
6561
6562
6563SWIGINTERN PyObject *_wrap_firstattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6564 PyObject *resultobj = 0;
6565 Agraph_t *arg1 = (Agraph_t *) 0 ;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 Agsym_t *result = 0 ;
6569
6570 (void)self;
6571 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6573 if (!SWIG_IsOK(res1)) {
6574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstattr" "', argument " "1"" of type '" "Agraph_t *""'");
6575 }
6576 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6577 result = (Agsym_t *)firstattr(arg1);
6578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
6579 return resultobj;
6580fail:
6581 return NULL;
6582}
6583
6584
6585SWIGINTERN PyObject *_wrap_nextattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6586 PyObject *resultobj = 0;
6587 Agraph_t *arg1 = (Agraph_t *) 0 ;
6588 Agsym_t *arg2 = (Agsym_t *) 0 ;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 void *argp2 = 0 ;
6592 int res2 = 0 ;
6593 Agsym_t *result = 0 ;
6594
6595 (void)self;
6596 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6598 if (!SWIG_IsOK(res1)) {
6599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextattr" "', argument " "1"" of type '" "Agraph_t *""'");
6600 }
6601 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6602 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
6603 if (!SWIG_IsOK(res2)) {
6604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextattr" "', argument " "2"" of type '" "Agsym_t *""'");
6605 }
6606 arg2 = reinterpret_cast< Agsym_t * >(argp2);
6607 result = (Agsym_t *)nextattr(arg1,arg2);
6608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
6609 return resultobj;
6610fail:
6611 return NULL;
6612}
6613
6614
6615SWIGINTERN PyObject *_wrap_firstattr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6616 PyObject *resultobj = 0;
6617 Agedge_t *arg1 = (Agedge_t *) 0 ;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 Agsym_t *result = 0 ;
6621
6622 (void)self;
6623 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
6625 if (!SWIG_IsOK(res1)) {
6626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstattr" "', argument " "1"" of type '" "Agedge_t *""'");
6627 }
6628 arg1 = reinterpret_cast< Agedge_t * >(argp1);
6629 result = (Agsym_t *)firstattr(arg1);
6630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
6631 return resultobj;
6632fail:
6633 return NULL;
6634}
6635
6636
6637SWIGINTERN PyObject *_wrap_nextattr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6638 PyObject *resultobj = 0;
6639 Agedge_t *arg1 = (Agedge_t *) 0 ;
6640 Agsym_t *arg2 = (Agsym_t *) 0 ;
6641 void *argp1 = 0 ;
6642 int res1 = 0 ;
6643 void *argp2 = 0 ;
6644 int res2 = 0 ;
6645 Agsym_t *result = 0 ;
6646
6647 (void)self;
6648 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
6650 if (!SWIG_IsOK(res1)) {
6651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextattr" "', argument " "1"" of type '" "Agedge_t *""'");
6652 }
6653 arg1 = reinterpret_cast< Agedge_t * >(argp1);
6654 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
6655 if (!SWIG_IsOK(res2)) {
6656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextattr" "', argument " "2"" of type '" "Agsym_t *""'");
6657 }
6658 arg2 = reinterpret_cast< Agsym_t * >(argp2);
6659 result = (Agsym_t *)nextattr(arg1,arg2);
6660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
6661 return resultobj;
6662fail:
6663 return NULL;
6664}
6665
6666
6667SWIGINTERN PyObject *_wrap_firstattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6668 PyObject *resultobj = 0;
6669 Agnode_t *arg1 = (Agnode_t *) 0 ;
6670 void *argp1 = 0 ;
6671 int res1 = 0 ;
6672 Agsym_t *result = 0 ;
6673
6674 (void)self;
6675 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6677 if (!SWIG_IsOK(res1)) {
6678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstattr" "', argument " "1"" of type '" "Agnode_t *""'");
6679 }
6680 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6681 result = (Agsym_t *)firstattr(arg1);
6682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
6683 return resultobj;
6684fail:
6685 return NULL;
6686}
6687
6688
6689SWIGINTERN PyObject *_wrap_firstattr(PyObject *self, PyObject *args) {
6690 Py_ssize_t argc;
6691 PyObject *argv[2] = {
6692 0
6693 };
6694
6695 if (!(argc = SWIG_Python_UnpackTuple(args, "firstattr", 0, 1, argv))) SWIG_fail;
6696 --argc;
6697 if (argc == 1) {
6698 int _v = 0;
6699 void *vptr = 0;
6700 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6701 _v = SWIG_CheckState(res);
6702 if (_v) {
6703 return _wrap_firstattr__SWIG_0(self, argc, argv);
6704 }
6705 }
6706 if (argc == 1) {
6707 int _v = 0;
6708 void *vptr = 0;
6709 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
6710 _v = SWIG_CheckState(res);
6711 if (_v) {
6712 return _wrap_firstattr__SWIG_1(self, argc, argv);
6713 }
6714 }
6715 if (argc == 1) {
6716 int _v = 0;
6717 void *vptr = 0;
6718 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
6719 _v = SWIG_CheckState(res);
6720 if (_v) {
6721 return _wrap_firstattr__SWIG_2(self, argc, argv);
6722 }
6723 }
6724
6725fail:
6726 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'firstattr'.\n"
6727 " Possible C/C++ prototypes are:\n"
6728 " firstattr(Agraph_t *)\n"
6729 " firstattr(Agedge_t *)\n"
6730 " firstattr(Agnode_t *)\n");
6731 return 0;
6732}
6733
6734
6735SWIGINTERN PyObject *_wrap_nextattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6736 PyObject *resultobj = 0;
6737 Agnode_t *arg1 = (Agnode_t *) 0 ;
6738 Agsym_t *arg2 = (Agsym_t *) 0 ;
6739 void *argp1 = 0 ;
6740 int res1 = 0 ;
6741 void *argp2 = 0 ;
6742 int res2 = 0 ;
6743 Agsym_t *result = 0 ;
6744
6745 (void)self;
6746 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6748 if (!SWIG_IsOK(res1)) {
6749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextattr" "', argument " "1"" of type '" "Agnode_t *""'");
6750 }
6751 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6752 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
6753 if (!SWIG_IsOK(res2)) {
6754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextattr" "', argument " "2"" of type '" "Agsym_t *""'");
6755 }
6756 arg2 = reinterpret_cast< Agsym_t * >(argp2);
6757 result = (Agsym_t *)nextattr(arg1,arg2);
6758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
6759 return resultobj;
6760fail:
6761 return NULL;
6762}
6763
6764
6765SWIGINTERN PyObject *_wrap_nextattr(PyObject *self, PyObject *args) {
6766 Py_ssize_t argc;
6767 PyObject *argv[3] = {
6768 0
6769 };
6770
6771 if (!(argc = SWIG_Python_UnpackTuple(args, "nextattr", 0, 2, argv))) SWIG_fail;
6772 --argc;
6773 if (argc == 2) {
6774 int _v = 0;
6775 void *vptr = 0;
6776 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6777 _v = SWIG_CheckState(res);
6778 if (_v) {
6779 void *vptr = 0;
6780 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
6781 _v = SWIG_CheckState(res);
6782 if (_v) {
6783 return _wrap_nextattr__SWIG_0(self, argc, argv);
6784 }
6785 }
6786 }
6787 if (argc == 2) {
6788 int _v = 0;
6789 void *vptr = 0;
6790 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
6791 _v = SWIG_CheckState(res);
6792 if (_v) {
6793 void *vptr = 0;
6794 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
6795 _v = SWIG_CheckState(res);
6796 if (_v) {
6797 return _wrap_nextattr__SWIG_1(self, argc, argv);
6798 }
6799 }
6800 }
6801 if (argc == 2) {
6802 int _v = 0;
6803 void *vptr = 0;
6804 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
6805 _v = SWIG_CheckState(res);
6806 if (_v) {
6807 void *vptr = 0;
6808 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
6809 _v = SWIG_CheckState(res);
6810 if (_v) {
6811 return _wrap_nextattr__SWIG_2(self, argc, argv);
6812 }
6813 }
6814 }
6815
6816fail:
6817 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'nextattr'.\n"
6818 " Possible C/C++ prototypes are:\n"
6819 " nextattr(Agraph_t *,Agsym_t *)\n"
6820 " nextattr(Agedge_t *,Agsym_t *)\n"
6821 " nextattr(Agnode_t *,Agsym_t *)\n");
6822 return 0;
6823}
6824
6825
6826SWIGINTERN PyObject *_wrap_rm__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6827 PyObject *resultobj = 0;
6828 Agraph_t *arg1 = (Agraph_t *) 0 ;
6829 void *argp1 = 0 ;
6830 int res1 = 0 ;
6831 bool result;
6832
6833 (void)self;
6834 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6836 if (!SWIG_IsOK(res1)) {
6837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rm" "', argument " "1"" of type '" "Agraph_t *""'");
6838 }
6839 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6840 result = (bool)rm(arg1);
6841 resultobj = SWIG_From_bool(static_cast< bool >(result));
6842 return resultobj;
6843fail:
6844 return NULL;
6845}
6846
6847
6848SWIGINTERN PyObject *_wrap_rm__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6849 PyObject *resultobj = 0;
6850 Agnode_t *arg1 = (Agnode_t *) 0 ;
6851 void *argp1 = 0 ;
6852 int res1 = 0 ;
6853 bool result;
6854
6855 (void)self;
6856 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
6858 if (!SWIG_IsOK(res1)) {
6859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rm" "', argument " "1"" of type '" "Agnode_t *""'");
6860 }
6861 arg1 = reinterpret_cast< Agnode_t * >(argp1);
6862 result = (bool)rm(arg1);
6863 resultobj = SWIG_From_bool(static_cast< bool >(result));
6864 return resultobj;
6865fail:
6866 return NULL;
6867}
6868
6869
6870SWIGINTERN PyObject *_wrap_rm__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6871 PyObject *resultobj = 0;
6872 Agedge_t *arg1 = (Agedge_t *) 0 ;
6873 void *argp1 = 0 ;
6874 int res1 = 0 ;
6875 bool result;
6876
6877 (void)self;
6878 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
6880 if (!SWIG_IsOK(res1)) {
6881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rm" "', argument " "1"" of type '" "Agedge_t *""'");
6882 }
6883 arg1 = reinterpret_cast< Agedge_t * >(argp1);
6884 result = (bool)rm(arg1);
6885 resultobj = SWIG_From_bool(static_cast< bool >(result));
6886 return resultobj;
6887fail:
6888 return NULL;
6889}
6890
6891
6892SWIGINTERN PyObject *_wrap_rm(PyObject *self, PyObject *args) {
6893 Py_ssize_t argc;
6894 PyObject *argv[2] = {
6895 0
6896 };
6897
6898 if (!(argc = SWIG_Python_UnpackTuple(args, "rm", 0, 1, argv))) SWIG_fail;
6899 --argc;
6900 if (argc == 1) {
6901 int _v = 0;
6902 void *vptr = 0;
6903 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6904 _v = SWIG_CheckState(res);
6905 if (_v) {
6906 return _wrap_rm__SWIG_0(self, argc, argv);
6907 }
6908 }
6909 if (argc == 1) {
6910 int _v = 0;
6911 void *vptr = 0;
6912 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
6913 _v = SWIG_CheckState(res);
6914 if (_v) {
6915 return _wrap_rm__SWIG_1(self, argc, argv);
6916 }
6917 }
6918 if (argc == 1) {
6919 int _v = 0;
6920 void *vptr = 0;
6921 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
6922 _v = SWIG_CheckState(res);
6923 if (_v) {
6924 return _wrap_rm__SWIG_2(self, argc, argv);
6925 }
6926 }
6927
6928fail:
6929 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'rm'.\n"
6930 " Possible C/C++ prototypes are:\n"
6931 " rm(Agraph_t *)\n"
6932 " rm(Agnode_t *)\n"
6933 " rm(Agedge_t *)\n");
6934 return 0;
6935}
6936
6937
6938SWIGINTERN PyObject *_wrap_layout(PyObject *self, PyObject *args) {
6939 PyObject *resultobj = 0;
6940 Agraph_t *arg1 = (Agraph_t *) 0 ;
6941 char *arg2 = (char *) 0 ;
6942 void *argp1 = 0 ;
6943 int res1 = 0 ;
6944 int res2 ;
6945 char *buf2 = 0 ;
6946 int alloc2 = 0 ;
6947 PyObject *swig_obj[2] ;
6948 bool result;
6949
6950 (void)self;
6951 if (!SWIG_Python_UnpackTuple(args, "layout", 2, 2, swig_obj)) SWIG_fail;
6952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layout" "', argument " "1"" of type '" "Agraph_t *""'");
6955 }
6956 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6957 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6958 if (!SWIG_IsOK(res2)) {
6959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layout" "', argument " "2"" of type '" "char const *""'");
6960 }
6961 arg2 = reinterpret_cast< char * >(buf2);
6962 result = (bool)layout(arg1,(char const *)arg2);
6963 resultobj = SWIG_From_bool(static_cast< bool >(result));
6964 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6965 return resultobj;
6966fail:
6967 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6968 return NULL;
6969}
6970
6971
6972SWIGINTERN PyObject *_wrap_render__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6973 PyObject *resultobj = 0;
6974 Agraph_t *arg1 = (Agraph_t *) 0 ;
6975 void *argp1 = 0 ;
6976 int res1 = 0 ;
6977 bool result;
6978
6979 (void)self;
6980 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
6984 }
6985 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6986 result = (bool)render(arg1);
6987 resultobj = SWIG_From_bool(static_cast< bool >(result));
6988 return resultobj;
6989fail:
6990 return NULL;
6991}
6992
6993
6994SWIGINTERN PyObject *_wrap_render__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
6995 PyObject *resultobj = 0;
6996 Agraph_t *arg1 = (Agraph_t *) 0 ;
6997 char *arg2 = (char *) 0 ;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 int res2 ;
7001 char *buf2 = 0 ;
7002 int alloc2 = 0 ;
7003 bool result;
7004
7005 (void)self;
7006 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7008 if (!SWIG_IsOK(res1)) {
7009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
7010 }
7011 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7012 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7013 if (!SWIG_IsOK(res2)) {
7014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "render" "', argument " "2"" of type '" "char const *""'");
7015 }
7016 arg2 = reinterpret_cast< char * >(buf2);
7017 result = (bool)render(arg1,(char const *)arg2);
7018 resultobj = SWIG_From_bool(static_cast< bool >(result));
7019 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7020 return resultobj;
7021fail:
7022 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7023 return NULL;
7024}
7025
7026
7027SWIGINTERN PyObject *_wrap_render__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
7028 PyObject *resultobj = 0;
7029 Agraph_t *arg1 = (Agraph_t *) 0 ;
7030 char *arg2 = (char *) 0 ;
7031 FILE *arg3 = (FILE *) 0 ;
7032 void *argp1 = 0 ;
7033 int res1 = 0 ;
7034 int res2 ;
7035 char *buf2 = 0 ;
7036 int alloc2 = 0 ;
7037 void *argp3 = 0 ;
7038 int res3 = 0 ;
7039 bool result;
7040
7041 (void)self;
7042 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7044 if (!SWIG_IsOK(res1)) {
7045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
7046 }
7047 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7048 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7049 if (!SWIG_IsOK(res2)) {
7050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "render" "', argument " "2"" of type '" "char const *""'");
7051 }
7052 arg2 = reinterpret_cast< char * >(buf2);
7053 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_FILE, 0 | 0 );
7054 if (!SWIG_IsOK(res3)) {
7055 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "render" "', argument " "3"" of type '" "FILE *""'");
7056 }
7057 arg3 = reinterpret_cast< FILE * >(argp3);
7058 result = (bool)render(arg1,(char const *)arg2,arg3);
7059 resultobj = SWIG_From_bool(static_cast< bool >(result));
7060 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7061 return resultobj;
7062fail:
7063 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7064 return NULL;
7065}
7066
7067
7068SWIGINTERN PyObject *_wrap_render__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
7069 PyObject *resultobj = 0;
7070 Agraph_t *arg1 = (Agraph_t *) 0 ;
7071 char *arg2 = (char *) 0 ;
7072 char *arg3 = (char *) 0 ;
7073 void *argp1 = 0 ;
7074 int res1 = 0 ;
7075 int res2 ;
7076 char *buf2 = 0 ;
7077 int alloc2 = 0 ;
7078 int res3 ;
7079 char *buf3 = 0 ;
7080 int alloc3 = 0 ;
7081 bool result;
7082
7083 (void)self;
7084 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
7088 }
7089 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7090 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7091 if (!SWIG_IsOK(res2)) {
7092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "render" "', argument " "2"" of type '" "char const *""'");
7093 }
7094 arg2 = reinterpret_cast< char * >(buf2);
7095 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
7096 if (!SWIG_IsOK(res3)) {
7097 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "render" "', argument " "3"" of type '" "char const *""'");
7098 }
7099 arg3 = reinterpret_cast< char * >(buf3);
7100 result = (bool)render(arg1,(char const *)arg2,(char const *)arg3);
7101 resultobj = SWIG_From_bool(static_cast< bool >(result));
7102 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7103 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
7104 return resultobj;
7105fail:
7106 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7107 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
7108 return NULL;
7109}
7110
7111
7112SWIGINTERN PyObject *_wrap_render(PyObject *self, PyObject *args) {
7113 Py_ssize_t argc;
7114 PyObject *argv[4] = {
7115 0
7116 };
7117
7118 if (!(argc = SWIG_Python_UnpackTuple(args, "render", 0, 3, argv))) SWIG_fail;
7119 --argc;
7120 if (argc == 1) {
7121 int _v = 0;
7122 void *vptr = 0;
7123 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
7124 _v = SWIG_CheckState(res);
7125 if (_v) {
7126 return _wrap_render__SWIG_0(self, argc, argv);
7127 }
7128 }
7129 if (argc == 2) {
7130 int _v = 0;
7131 void *vptr = 0;
7132 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
7133 _v = SWIG_CheckState(res);
7134 if (_v) {
7135 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7136 _v = SWIG_CheckState(res);
7137 if (_v) {
7138 return _wrap_render__SWIG_1(self, argc, argv);
7139 }
7140 }
7141 }
7142 if (argc == 3) {
7143 int _v = 0;
7144 void *vptr = 0;
7145 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
7146 _v = SWIG_CheckState(res);
7147 if (_v) {
7148 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7149 _v = SWIG_CheckState(res);
7150 if (_v) {
7151 void *vptr = 0;
7152 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FILE, 0);
7153 _v = SWIG_CheckState(res);
7154 if (_v) {
7155 return _wrap_render__SWIG_2(self, argc, argv);
7156 }
7157 }
7158 }
7159 }
7160 if (argc == 3) {
7161 int _v = 0;
7162 void *vptr = 0;
7163 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
7164 _v = SWIG_CheckState(res);
7165 if (_v) {
7166 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7167 _v = SWIG_CheckState(res);
7168 if (_v) {
7169 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
7170 _v = SWIG_CheckState(res);
7171 if (_v) {
7172 return _wrap_render__SWIG_3(self, argc, argv);
7173 }
7174 }
7175 }
7176 }
7177
7178fail:
7179 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'render'.\n"
7180 " Possible C/C++ prototypes are:\n"
7181 " render(Agraph_t *)\n"
7182 " render(Agraph_t *,char const *)\n"
7183 " render(Agraph_t *,char const *,FILE *)\n"
7184 " render(Agraph_t *,char const *,char const *)\n");
7185 return 0;
7186}
7187
7188
7189SWIGINTERN PyObject *_wrap_renderresult(PyObject *self, PyObject *args) {
7190 PyObject *resultobj = 0;
7191 Agraph_t *arg1 = (Agraph_t *) 0 ;
7192 char *arg2 = (char *) 0 ;
7193 char *arg3 = (char *) 0 ;
7194 void *argp1 = 0 ;
7195 int res1 = 0 ;
7196 int res2 ;
7197 char *buf2 = 0 ;
7198 int alloc2 = 0 ;
7199 int res3 ;
7200 char *buf3 = 0 ;
7201 int alloc3 = 0 ;
7202 PyObject *swig_obj[3] ;
7203
7204 (void)self;
7205 if (!SWIG_Python_UnpackTuple(args, "renderresult", 3, 3, swig_obj)) SWIG_fail;
7206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "renderresult" "', argument " "1"" of type '" "Agraph_t *""'");
7209 }
7210 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7211 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7212 if (!SWIG_IsOK(res2)) {
7213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "renderresult" "', argument " "2"" of type '" "char const *""'");
7214 }
7215 arg2 = reinterpret_cast< char * >(buf2);
7216 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
7217 if (!SWIG_IsOK(res3)) {
7218 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "renderresult" "', argument " "3"" of type '" "char *""'");
7219 }
7220 arg3 = reinterpret_cast< char * >(buf3);
7221 renderresult(arg1,(char const *)arg2,arg3);
7222 resultobj = SWIG_Py_Void();
7223 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7224 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
7225 return resultobj;
7226fail:
7227 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7228 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
7229 return NULL;
7230}
7231
7232
7233SWIGINTERN PyObject *_wrap_renderchannel(PyObject *self, PyObject *args) {
7234 PyObject *resultobj = 0;
7235 Agraph_t *arg1 = (Agraph_t *) 0 ;
7236 char *arg2 = (char *) 0 ;
7237 char *arg3 = (char *) 0 ;
7238 void *argp1 = 0 ;
7239 int res1 = 0 ;
7240 int res2 ;
7241 char *buf2 = 0 ;
7242 int alloc2 = 0 ;
7243 int res3 ;
7244 char *buf3 = 0 ;
7245 int alloc3 = 0 ;
7246 PyObject *swig_obj[3] ;
7247 bool result;
7248
7249 (void)self;
7250 if (!SWIG_Python_UnpackTuple(args, "renderchannel", 3, 3, swig_obj)) SWIG_fail;
7251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7252 if (!SWIG_IsOK(res1)) {
7253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "renderchannel" "', argument " "1"" of type '" "Agraph_t *""'");
7254 }
7255 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7256 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7257 if (!SWIG_IsOK(res2)) {
7258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "renderchannel" "', argument " "2"" of type '" "char const *""'");
7259 }
7260 arg2 = reinterpret_cast< char * >(buf2);
7261 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
7262 if (!SWIG_IsOK(res3)) {
7263 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "renderchannel" "', argument " "3"" of type '" "char const *""'");
7264 }
7265 arg3 = reinterpret_cast< char * >(buf3);
7266 result = (bool)renderchannel(arg1,(char const *)arg2,(char const *)arg3);
7267 resultobj = SWIG_From_bool(static_cast< bool >(result));
7268 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7269 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
7270 return resultobj;
7271fail:
7272 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7273 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
7274 return NULL;
7275}
7276
7277
7278SWIGINTERN PyObject *_wrap_renderdata(PyObject *self, PyObject *args) {
7279 PyObject *resultobj = 0;
7280 Agraph_t *arg1 = (Agraph_t *) 0 ;
7281 char *arg2 = (char *) 0 ;
7282 void *argp1 = 0 ;
7283 int res1 = 0 ;
7284 int res2 ;
7285 char *buf2 = 0 ;
7286 int alloc2 = 0 ;
7287 PyObject *swig_obj[2] ;
7288 char *result = 0 ;
7289
7290 (void)self;
7291 if (!SWIG_Python_UnpackTuple(args, "renderdata", 2, 2, swig_obj)) SWIG_fail;
7292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7293 if (!SWIG_IsOK(res1)) {
7294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "renderdata" "', argument " "1"" of type '" "Agraph_t *""'");
7295 }
7296 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7297 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7298 if (!SWIG_IsOK(res2)) {
7299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "renderdata" "', argument " "2"" of type '" "char const *""'");
7300 }
7301 arg2 = reinterpret_cast< char * >(buf2);
7302 result = (char *)renderdata(arg1,(char const *)arg2);
7303 resultobj = SWIG_FromCharPtr((const char *)result);
7304 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7305 return resultobj;
7306fail:
7307 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7308 return NULL;
7309}
7310
7311
7312SWIGINTERN PyObject *_wrap_write__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
7313 PyObject *resultobj = 0;
7314 Agraph_t *arg1 = (Agraph_t *) 0 ;
7315 char *arg2 = (char *) 0 ;
7316 void *argp1 = 0 ;
7317 int res1 = 0 ;
7318 int res2 ;
7319 char *buf2 = 0 ;
7320 int alloc2 = 0 ;
7321 bool result;
7322
7323 (void)self;
7324 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7326 if (!SWIG_IsOK(res1)) {
7327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write" "', argument " "1"" of type '" "Agraph_t *""'");
7328 }
7329 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7330 res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7331 if (!SWIG_IsOK(res2)) {
7332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "write" "', argument " "2"" of type '" "char const *""'");
7333 }
7334 arg2 = reinterpret_cast< char * >(buf2);
7335 result = (bool)write(arg1,(char const *)arg2);
7336 resultobj = SWIG_From_bool(static_cast< bool >(result));
7337 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7338 return resultobj;
7339fail:
7340 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
7341 return NULL;
7342}
7343
7344
7345SWIGINTERN PyObject *_wrap_write__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
7346 PyObject *resultobj = 0;
7347 Agraph_t *arg1 = (Agraph_t *) 0 ;
7348 FILE *arg2 = (FILE *) 0 ;
7349 void *argp1 = 0 ;
7350 int res1 = 0 ;
7351 void *argp2 = 0 ;
7352 int res2 = 0 ;
7353 bool result;
7354
7355 (void)self;
7356 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7358 if (!SWIG_IsOK(res1)) {
7359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write" "', argument " "1"" of type '" "Agraph_t *""'");
7360 }
7361 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7362 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 | 0 );
7363 if (!SWIG_IsOK(res2)) {
7364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "write" "', argument " "2"" of type '" "FILE *""'");
7365 }
7366 arg2 = reinterpret_cast< FILE * >(argp2);
7367 result = (bool)write(arg1,arg2);
7368 resultobj = SWIG_From_bool(static_cast< bool >(result));
7369 return resultobj;
7370fail:
7371 return NULL;
7372}
7373
7374
7375SWIGINTERN PyObject *_wrap_write(PyObject *self, PyObject *args) {
7376 Py_ssize_t argc;
7377 PyObject *argv[3] = {
7378 0
7379 };
7380
7381 if (!(argc = SWIG_Python_UnpackTuple(args, "write", 0, 2, argv))) SWIG_fail;
7382 --argc;
7383 if (argc == 2) {
7384 int _v = 0;
7385 void *vptr = 0;
7386 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
7387 _v = SWIG_CheckState(res);
7388 if (_v) {
7389 void *vptr = 0;
7390 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
7391 _v = SWIG_CheckState(res);
7392 if (_v) {
7393 return _wrap_write__SWIG_1(self, argc, argv);
7394 }
7395 }
7396 }
7397 if (argc == 2) {
7398 int _v = 0;
7399 void *vptr = 0;
7400 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
7401 _v = SWIG_CheckState(res);
7402 if (_v) {
7403 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7404 _v = SWIG_CheckState(res);
7405 if (_v) {
7406 return _wrap_write__SWIG_0(self, argc, argv);
7407 }
7408 }
7409 }
7410
7411fail:
7412 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'write'.\n"
7413 " Possible C/C++ prototypes are:\n"
7414 " write(Agraph_t *,char const *)\n"
7415 " write(Agraph_t *,FILE *)\n");
7416 return 0;
7417}
7418
7419
7420SWIGINTERN PyObject *_wrap_tred(PyObject *self, PyObject *args) {
7421 PyObject *resultobj = 0;
7422 Agraph_t *arg1 = (Agraph_t *) 0 ;
7423 void *argp1 = 0 ;
7424 int res1 = 0 ;
7425 PyObject *swig_obj[1] ;
7426 bool result;
7427
7428 (void)self;
7429 if (!args) SWIG_fail;
7430 swig_obj[0] = args;
7431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
7432 if (!SWIG_IsOK(res1)) {
7433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tred" "', argument " "1"" of type '" "Agraph_t *""'");
7434 }
7435 arg1 = reinterpret_cast< Agraph_t * >(argp1);
7436 result = (bool)tred(arg1);
7437 resultobj = SWIG_From_bool(static_cast< bool >(result));
7438 return resultobj;
7439fail:
7440 return NULL;
7441}
7442
7443
7444static PyMethodDef SwigMethods[] = {
7445 { "digraph", _wrap_digraph, METH_O, NULL},
7446 { "strictgraph", _wrap_strictgraph, METH_O, NULL},
7447 { "strictdigraph", _wrap_strictdigraph, METH_O, NULL},
7448 { "readstring", _wrap_readstring, METH_O, NULL},
7449 { "read", _wrap_read, METH_VARARGS, NULL},
7450 { "graph", _wrap_graph, METH_VARARGS, NULL},
7451 { "node", _wrap_node, METH_VARARGS, NULL},
7452 { "edge", _wrap_edge, METH_VARARGS, NULL},
7453 { "setv", _wrap_setv, METH_VARARGS, NULL},
7454 { "getv", _wrap_getv, METH_VARARGS, NULL},
7455 { "nameof", _wrap_nameof, METH_VARARGS, NULL},
7456 { "findsubg", _wrap_findsubg, METH_VARARGS, NULL},
7457 { "findnode", _wrap_findnode, METH_VARARGS, NULL},
7458 { "findedge", _wrap_findedge, METH_VARARGS, NULL},
7459 { "findattr", _wrap_findattr, METH_VARARGS, NULL},
7460 { "headof", _wrap_headof, METH_O, NULL},
7461 { "tailof", _wrap_tailof, METH_O, NULL},
7462 { "graphof", _wrap_graphof, METH_VARARGS, NULL},
7463 { "rootof", _wrap_rootof, METH_O, NULL},
7464 { "protonode", _wrap_protonode, METH_O, NULL},
7465 { "protoedge", _wrap_protoedge, METH_O, NULL},
7466 { "ok", _wrap_ok, METH_VARARGS, NULL},
7467 { "firstsubg", _wrap_firstsubg, METH_O, NULL},
7468 { "nextsubg", _wrap_nextsubg, METH_VARARGS, NULL},
7469 { "firstsupg", _wrap_firstsupg, METH_O, NULL},
7470 { "nextsupg", _wrap_nextsupg, METH_VARARGS, NULL},
7471 { "firstedge", _wrap_firstedge, METH_VARARGS, NULL},
7472 { "nextedge", _wrap_nextedge, METH_VARARGS, NULL},
7473 { "firstout", _wrap_firstout, METH_VARARGS, NULL},
7474 { "nextout", _wrap_nextout, METH_VARARGS, NULL},
7475 { "firsthead", _wrap_firsthead, METH_O, NULL},
7476 { "nexthead", _wrap_nexthead, METH_VARARGS, NULL},
7477 { "firstin", _wrap_firstin, METH_VARARGS, NULL},
7478 { "nextin", _wrap_nextin, METH_VARARGS, NULL},
7479 { "firsttail", _wrap_firsttail, METH_O, NULL},
7480 { "nexttail", _wrap_nexttail, METH_VARARGS, NULL},
7481 { "firstnode", _wrap_firstnode, METH_VARARGS, NULL},
7482 { "nextnode", _wrap_nextnode, METH_VARARGS, NULL},
7483 { "firstattr", _wrap_firstattr, METH_VARARGS, NULL},
7484 { "nextattr", _wrap_nextattr, METH_VARARGS, NULL},
7485 { "rm", _wrap_rm, METH_VARARGS, NULL},
7486 { "layout", _wrap_layout, METH_VARARGS, NULL},
7487 { "render", _wrap_render, METH_VARARGS, NULL},
7488 { "renderresult", _wrap_renderresult, METH_VARARGS, NULL},
7489 { "renderchannel", _wrap_renderchannel, METH_VARARGS, NULL},
7490 { "renderdata", _wrap_renderdata, METH_VARARGS, NULL},
7491 { "write", _wrap_write, METH_VARARGS, NULL},
7492 { "tred", _wrap_tred, METH_O, NULL},
7493 { NULL, NULL, 0, NULL }
7494};
7495
7496
7497/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7498
7499static swig_type_info _swigt__p_Agedge_t = {"_p_Agedge_t", "Agedge_t *", 0, 0, (void*)0, 0};
7500static swig_type_info _swigt__p_Agnode_t = {"_p_Agnode_t", "Agnode_t *", 0, 0, (void*)0, 0};
7501static swig_type_info _swigt__p_Agraph_t = {"_p_Agraph_t", "Agraph_t *", 0, 0, (void*)0, 0};
7502static swig_type_info _swigt__p_Agsym_t = {"_p_Agsym_t", "Agsym_t *", 0, 0, (void*)0, 0};
7503static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
7504static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7505
7514
7515static swig_cast_info _swigc__p_Agedge_t[] = { {&_swigt__p_Agedge_t, 0, 0, 0},{0, 0, 0, 0}};
7516static swig_cast_info _swigc__p_Agnode_t[] = { {&_swigt__p_Agnode_t, 0, 0, 0},{0, 0, 0, 0}};
7517static swig_cast_info _swigc__p_Agraph_t[] = { {&_swigt__p_Agraph_t, 0, 0, 0},{0, 0, 0, 0}};
7518static swig_cast_info _swigc__p_Agsym_t[] = { {&_swigt__p_Agsym_t, 0, 0, 0},{0, 0, 0, 0}};
7519static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
7520static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7521
7530
7531
7532/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7533
7535{0, 0, 0, 0.0, 0, 0}};
7536
7537#ifdef __cplusplus
7538}
7539#endif
7540/* -----------------------------------------------------------------------------
7541 * Type initialization:
7542 * This problem is tough by the requirement that no dynamic
7543 * memory is used. Also, since swig_type_info structures store pointers to
7544 * swig_cast_info structures and swig_cast_info structures store pointers back
7545 * to swig_type_info structures, we need some lookup code at initialization.
7546 * The idea is that swig generates all the structures that are needed.
7547 * The runtime then collects these partially filled structures.
7548 * The SWIG_InitializeModule function takes these initial arrays out of
7549 * swig_module, and does all the lookup, filling in the swig_module.types
7550 * array with the correct data and linking the correct swig_cast_info
7551 * structures together.
7552 *
7553 * The generated swig_type_info structures are assigned statically to an initial
7554 * array. We just loop through that array, and handle each type individually.
7555 * First we lookup if this type has been already loaded, and if so, use the
7556 * loaded structure instead of the generated one. Then we have to fill in the
7557 * cast linked list. The cast data is initially stored in something like a
7558 * two-dimensional array. Each row corresponds to a type (there are the same
7559 * number of rows as there are in the swig_type_initial array). Each entry in
7560 * a column is one of the swig_cast_info structures for that type.
7561 * The cast_initial array is actually an array of arrays, because each row has
7562 * a variable number of columns. So to actually build the cast linked list,
7563 * we find the array of casts associated with the type, and loop through it
7564 * adding the casts to the list. The one last trick we need to do is making
7565 * sure the type pointer in the swig_cast_info struct is correct.
7566 *
7567 * First off, we lookup the cast->type name to see if it is already loaded.
7568 * There are three cases to handle:
7569 * 1) If the cast->type has already been loaded AND the type we are adding
7570 * casting info to has not been loaded (it is in this module), THEN we
7571 * replace the cast->type pointer with the type pointer that has already
7572 * been loaded.
7573 * 2) If BOTH types (the one we are adding casting info to, and the
7574 * cast->type) are loaded, THEN the cast info has already been loaded by
7575 * the previous module so we just ignore it.
7576 * 3) Finally, if cast->type has not already been loaded, then we add that
7577 * swig_cast_info to the linked list (because the cast->type) pointer will
7578 * be correct.
7579 * ----------------------------------------------------------------------------- */
7580
7581#ifdef __cplusplus
7582extern "C" {
7583#if 0
7584} /* c-mode */
7585#endif
7586#endif
7587
7588#if 0
7589#define SWIGRUNTIME_DEBUG
7590#endif
7591
7592#ifndef SWIG_INIT_CLIENT_DATA_TYPE
7593#define SWIG_INIT_CLIENT_DATA_TYPE void *
7594#endif
7595
7596SWIGRUNTIME void
7598 size_t i;
7599 swig_module_info *module_head, *iter;
7600 int init;
7601
7602 /* check to see if the circular list has been setup, if not, set it up */
7603 if (swig_module.next==0) {
7604 /* Initialize the swig_module */
7608 init = 1;
7609 } else {
7610 init = 0;
7611 }
7612
7613 /* Try and load any already created modules */
7614 module_head = SWIG_GetModule(clientdata);
7615 if (!module_head) {
7616 /* This is the first module loaded for this interpreter */
7617 /* so set the swig module into the interpreter */
7618 SWIG_SetModule(clientdata, &swig_module);
7619 } else {
7620 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
7621 iter=module_head;
7622 do {
7623 if (iter==&swig_module) {
7624 /* Our module is already in the list, so there's nothing more to do. */
7625 return;
7626 }
7627 iter=iter->next;
7628 } while (iter!= module_head);
7629
7630 /* otherwise we must add our module into the list */
7631 swig_module.next = module_head->next;
7632 module_head->next = &swig_module;
7633 }
7634
7635 /* When multiple interpreters are used, a module could have already been initialized in
7636 a different interpreter, but not yet have a pointer in this interpreter.
7637 In this case, we do not want to continue adding types... everything should be
7638 set up already */
7639 if (init == 0) return;
7640
7641 /* Now work on filling in swig_module.types */
7642#ifdef SWIGRUNTIME_DEBUG
7643 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
7644#endif
7645 for (i = 0; i < swig_module.size; ++i) {
7646 swig_type_info *type = 0;
7647 swig_type_info *ret;
7648 swig_cast_info *cast;
7649
7650#ifdef SWIGRUNTIME_DEBUG
7651 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
7652#endif
7653
7654 /* if there is another module already loaded */
7655 if (swig_module.next != &swig_module) {
7657 }
7658 if (type) {
7659 /* Overwrite clientdata field */
7660#ifdef SWIGRUNTIME_DEBUG
7661 printf("SWIG_InitializeModule: found type %s\n", type->name);
7662#endif
7664 type->clientdata = swig_module.type_initial[i]->clientdata;
7665#ifdef SWIGRUNTIME_DEBUG
7666 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
7667#endif
7668 }
7669 } else {
7671 }
7672
7673 /* Insert casting types */
7674 cast = swig_module.cast_initial[i];
7675 while (cast->type) {
7676 /* Don't need to add information already in the list */
7677 ret = 0;
7678#ifdef SWIGRUNTIME_DEBUG
7679 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
7680#endif
7681 if (swig_module.next != &swig_module) {
7683#ifdef SWIGRUNTIME_DEBUG
7684 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
7685#endif
7686 }
7687 if (ret) {
7688 if (type == swig_module.type_initial[i]) {
7689#ifdef SWIGRUNTIME_DEBUG
7690 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
7691#endif
7692 cast->type = ret;
7693 ret = 0;
7694 } else {
7695 /* Check for casting already in the list */
7696 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
7697#ifdef SWIGRUNTIME_DEBUG
7698 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
7699#endif
7700 if (!ocast) ret = 0;
7701 }
7702 }
7703
7704 if (!ret) {
7705#ifdef SWIGRUNTIME_DEBUG
7706 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
7707#endif
7708 if (type->cast) {
7709 type->cast->prev = cast;
7710 cast->next = type->cast;
7711 }
7712 type->cast = cast;
7713 }
7714 cast++;
7715 }
7716 /* Set entry in modules->types array equal to the type */
7717 swig_module.types[i] = type;
7718 }
7719 swig_module.types[i] = 0;
7720
7721#ifdef SWIGRUNTIME_DEBUG
7722 printf("**** SWIG_InitializeModule: Cast List ******\n");
7723 for (i = 0; i < swig_module.size; ++i) {
7724 int j = 0;
7726 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
7727 while (cast->type) {
7728 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
7729 cast++;
7730 ++j;
7731 }
7732 printf("---- Total casts: %d\n",j);
7733 }
7734 printf("**** SWIG_InitializeModule: Cast List ******\n");
7735#endif
7736}
7737
7738/* This function will propagate the clientdata field of type to
7739* any new swig_type_info structures that have been added into the list
7740* of equivalent types. It is like calling
7741* SWIG_TypeClientData(type, clientdata) a second time.
7742*/
7743SWIGRUNTIME void
7745 size_t i;
7746 swig_cast_info *equiv;
7747 static int init_run = 0;
7748
7749 if (init_run) return;
7750 init_run = 1;
7751
7752 for (i = 0; i < swig_module.size; i++) {
7753 if (swig_module.types[i]->clientdata) {
7754 equiv = swig_module.types[i]->cast;
7755 while (equiv) {
7756 if (!equiv->converter) {
7757 if (equiv->type && !equiv->type->clientdata)
7759 }
7760 equiv = equiv->next;
7761 }
7762 }
7763 }
7764}
7765
7766#ifdef __cplusplus
7767#if 0
7768{
7769 /* c-mode */
7770#endif
7771}
7772#endif
7773
7774
7775
7776#ifdef __cplusplus
7777extern "C" {
7778#endif
7779
7780 /* -----------------------------------------------------------------------------
7781 * constants/methods manipulation
7782 * ----------------------------------------------------------------------------- */
7783
7784 /* Install Constants */
7785 SWIGINTERN void
7787 PyObject *obj = 0;
7788 size_t i;
7789 for (i = 0; constants[i].type; ++i) {
7790 switch(constants[i].type) {
7791 case SWIG_PY_POINTER:
7792 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
7793 break;
7794 case SWIG_PY_BINARY:
7795 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
7796 break;
7797 default:
7798 obj = 0;
7799 break;
7800 }
7801 if (obj) {
7802 PyDict_SetItemString(d, constants[i].name, obj);
7803 Py_DECREF(obj);
7804 }
7805 }
7806 }
7807
7808 /* -----------------------------------------------------------------------------
7809 * Patch %callback methods' docstrings to hold the callback ptrs
7810 * -----------------------------------------------------------------------------*/
7811
7812 SWIGINTERN void
7813 SWIG_Python_FixMethods(PyMethodDef *methods, const swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial) {
7814 size_t i;
7815 for (i = 0; methods[i].ml_name; ++i) {
7816 const char *c = methods[i].ml_doc;
7817 if (!c) continue;
7818 c = strstr(c, "swig_ptr: ");
7819 if (c) {
7820 int j;
7821 const swig_const_info *ci = 0;
7822 const char *name = c + 10;
7823 for (j = 0; const_table[j].type; ++j) {
7824 if (strncmp(const_table[j].name, name,
7825 strlen(const_table[j].name)) == 0) {
7826 ci = &(const_table[j]);
7827 break;
7828 }
7829 }
7830 if (ci) {
7831 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
7832 if (ptr) {
7833 size_t shift = (ci->ptype) - types;
7834 swig_type_info *ty = types_initial[shift];
7835 size_t ldoc = (c - methods[i].ml_doc);
7836 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
7837 char *ndoc = (char*)malloc(ldoc + lptr + 10);
7838 if (ndoc) {
7839 char *buff = ndoc;
7840 memcpy(buff, methods[i].ml_doc, ldoc);
7841 buff += ldoc;
7842 memcpy(buff, "swig_ptr: ", 10);
7843 buff += 10;
7844 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
7845 methods[i].ml_doc = ndoc;
7846 }
7847 }
7848 }
7849 }
7850 }
7851 }
7852
7853#ifdef __cplusplus
7854}
7855#endif
7856
7857
7858
7859
7860/* -----------------------------------------------------------------------------*
7861 * Partial Init method
7862 * -----------------------------------------------------------------------------*/
7863
7864#ifdef __cplusplus
7865extern "C"
7866#endif
7867
7869#if PY_VERSION_HEX >= 0x03000000
7870PyObject*
7871#else
7872void
7873#endif
7875 PyObject *m, *d, *md, *globals;
7876
7877#if PY_VERSION_HEX >= 0x03000000
7878 static struct PyModuleDef SWIG_module = {
7879 PyModuleDef_HEAD_INIT,
7880 SWIG_name,
7881 NULL,
7882 -1,
7884 NULL,
7885 NULL,
7886 NULL,
7887 NULL
7888 };
7889#endif
7890
7891#if defined(SWIGPYTHON_BUILTIN)
7892 static SwigPyClientData SwigPyObject_clientdata = {
7893 0, 0, 0, 0, 0, 0, 0
7894 };
7895 static PyGetSetDef this_getset_def = {
7896 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
7897 };
7898 static SwigPyGetSet thisown_getset_closure = {
7901 };
7902 static PyGetSetDef thisown_getset_def = {
7903 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
7904 };
7905 PyTypeObject *builtin_pytype;
7906 int builtin_base_count;
7907 swig_type_info *builtin_basetype;
7908 PyObject *tuple;
7909 PyGetSetDescrObject *static_getset;
7910 PyTypeObject *metatype;
7911 PyTypeObject *swigpyobject;
7912 SwigPyClientData *cd;
7913 PyObject *public_interface, *public_symbol;
7914 PyObject *this_descr;
7915 PyObject *thisown_descr;
7916 PyObject *self = 0;
7917 int i;
7918
7919 (void)builtin_pytype;
7920 (void)builtin_base_count;
7921 (void)builtin_basetype;
7922 (void)tuple;
7923 (void)static_getset;
7924 (void)self;
7925
7926 /* Metaclass is used to implement static member variables */
7927 metatype = SwigPyObjectType();
7928 assert(metatype);
7929#endif
7930
7931 (void)globals;
7932
7933 /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
7934 SWIG_This();
7937#ifndef SWIGPYTHON_BUILTIN
7939#endif
7940
7941 /* Fix SwigMethods to carry the callback ptrs when needed */
7943
7944#if PY_VERSION_HEX >= 0x03000000
7945 m = PyModule_Create(&SWIG_module);
7946#else
7947 m = Py_InitModule(SWIG_name, SwigMethods);
7948#endif
7949
7950 md = d = PyModule_GetDict(m);
7951 (void)md;
7952
7954
7955#ifdef SWIGPYTHON_BUILTIN
7956 swigpyobject = SwigPyObject_TypeOnce();
7957
7958 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
7959 assert(SwigPyObject_stype);
7960 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
7961 if (!cd) {
7962 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
7963 SwigPyObject_clientdata.pytype = swigpyobject;
7964 } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
7965 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
7966# if PY_VERSION_HEX >= 0x03000000
7967 return NULL;
7968# else
7969 return;
7970# endif
7971 }
7972
7973 /* All objects have a 'this' attribute */
7974 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
7975 (void)this_descr;
7976
7977 /* All objects have a 'thisown' attribute */
7978 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
7979 (void)thisown_descr;
7980
7981 public_interface = PyList_New(0);
7982 public_symbol = 0;
7983 (void)public_symbol;
7984
7985 PyDict_SetItemString(md, "__all__", public_interface);
7986 Py_DECREF(public_interface);
7987 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
7988 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
7989 for (i = 0; swig_const_table[i].name != 0; ++i)
7990 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
7991#endif
7992
7994
7995#if PY_VERSION_HEX >= 0x03000000
7996 return m;
7997#else
7998 return;
7999#endif
8000}
8001
int compare(Agobj_t *l, Agobj_t *r)
Definition actions.c:687
SwigPtr_PyObject & operator=(const SwigPtr_PyObject &item)
PyObject * operator->() const
SwigPtr_PyObject(const SwigPtr_PyObject &item)
SwigPtr_PyObject(PyObject *obj, bool initial_ref=true)
static int cmp(const void *x, const void *y)
Definition ccomps.c:458
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, char **color_scheme, int *lightness)
void error(int level, const char *s,...)
Definition error.c:83
disc key
Definition exparse.y:214
expr procedure type
Definition exparse.y:211
static int flags
Definition gc.c:61
static double len(glCompPoint p)
Definition glutils.c:150
void * malloc(YYSIZE_T)
void free(void *)
edge
Definition gmlparse.y:279
node NULL
Definition grammar.y:149
#define SWIG_MAXCASTRANK
Definition gv_perl.cpp:312
#define SWIG_CastRank(r)
Definition gv_perl.cpp:315
SWIGINTERN PyObject * _wrap_getv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata))
static swig_type_info _swigt__p_Agsym_t
SWIGINTERN PyObject * _wrap_firstedge(PyObject *self, PyObject *args)
bool ok(Agraph_t *g)
Definition gv.cpp:368
SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty)
static swig_cast_info _swigc__p_Agraph_t[]
static swig_cast_info * swig_cast_initial[]
SWIGINTERN int swig_varlink_setattr(PyObject *o, char *n, PyObject *p)
static int interpreter_counter
bool tred(Agraph_t *g)
Definition gv.cpp:734
SWIGINTERN PyObject * _wrap_firstnode__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agraph_t * firstsubg(Agraph_t *g)
Definition gv.cpp:373
SWIGINTERN PyObject * _wrap_ok__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_MangledTypeQuery(name)
Agraph_t * read(const char *filename)
Definition gv.cpp:67
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:379
Agraph_t * readstring(char *string)
Definition gv.cpp:55
SWIGINTERN PyObject * _wrap_node(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_nextsubg(PyObject *self, PyObject *args)
static PyObject * Swig_This_global
SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
char * getv(Agraph_t *g, char *attr)
Definition gv.cpp:136
SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
Agraph_t * findsubg(Agraph_t *g, char *name)
Definition gv.cpp:253
#define SWIG_TypeQuery(name)
SWIGINTERN PyObject * _wrap_tred(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_firstin__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_setv(PyObject *self, PyObject *args)
#define SWIG_POINTER_OWN
void renderresult(Agraph_t *g, const char *format, char *outdata)
Definition gv.cpp:696
SWIGINTERN PyObject * _wrap_render__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_SyntaxError
SWIGINTERN PyObject * _wrap_rm(PyObject *self, PyObject *args)
#define SWIG_CheckState(r)
SWIGINTERN PyObject * _wrap_findattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
static swig_cast_info _swigc__p_FILE[]
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
#define SWIG_BUFFER_SIZE
#define SWIG_TypeError
SWIGRUNTIME int SWIG_Python_AddErrMesg(const char *mesg, int infront)
SWIGRUNTIME PyObject * SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
SWIGINTERN void SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[])
SWIGINTERN PyObject * _wrap_nextsupg(PyObject *self, PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_next(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
#define SWIG_POINTER_IMPLICIT_CONV
#define SWIGTYPE_p_Agnode_t
SWIGINTERN PyObject * _wrap_firsthead(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_nexttail(PyObject *self, PyObject *args)
SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
SWIGINTERN PyObject * _wrap_setv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_PY_POINTER
struct swig_cast_info swig_cast_info
SWIGINTERN PyObject * _wrap_nextattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_init
SWIGINTERN PyObject * _wrap_edge__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v)
SWIGINTERN PyObject * _wrap_renderchannel(PyObject *self, PyObject *args)
Agraph_t * strictgraph(char *name)
Definition gv.cpp:43
SWIGINTERN PyObject * _wrap_nextattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)
SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v)
SWIGRUNTIME PyTypeObject * SwigPyPacked_TypeOnce(void)
#define SWIG_PYTHON_THREAD_END_BLOCK
SWIGINTERN PyObject * _wrap_firsttail(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_edge__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
char * setv(Agraph_t *g, char *attr, char *val)
Definition gv.cpp:158
#define SWIG_RuntimeError
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:401
SWIGRUNTIME PyObject * SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
SWIGRUNTIME PyObject * SwigPyObject_append(PyObject *v, PyObject *next)
SWIGINTERN PyObject * _wrap_read__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIGPY_CAPSULE_ATTR_NAME
SWIGINTERN PyObject * _wrap_nextout__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * SWIG_Python_newvarlink(void)
SWIGINTERN PyObject * _wrap_setv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_findattr(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_graphof__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agraph_t * rootof(Agraph_t *g)
Definition gv.cpp:333
static swig_cast_info _swigc__p_Agnode_t[]
#define PyObject_DEL
SWIGINTERN PyObject * _wrap_findattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agnode_t * headof(Agedge_t *e)
Definition gv.cpp:293
#define SWIGRUNTIME
SWIGINTERN PyObject * _wrap_rm__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIGTYPE_p_Agraph_t
#define SWIG_PY_BINARY
SWIGINTERN PyObject * _wrap_getv__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agnode_t * firsttail(Agnode_t *n)
Definition gv.cpp:500
SWIGINTERN PyObject * _wrap_graphof(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_graph__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self)
#define SWIGTYPE_p_Agsym_t
SWIGINTERN PyObject * SwigPyObject_own(PyObject *v, PyObject *args)
#define SWIG_POINTER_NOSHADOW
Agraph_t * strictdigraph(char *name)
Definition gv.cpp:49
#define SWIG_OLDOBJ
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
#define SWIG_ValueError
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
Definition gv.cpp:654
SWIGINTERN void SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int(*set_attr)(PyObject *p))
SWIGINTERN PyObject * SwigPyObject_acquire(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
static PyMethodDef swigobject_methods[]
SWIGINTERN PyObject * _wrap_read(PyObject *self, PyObject *args)
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:388
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
SWIGINTERN PyObject * _wrap_getv(PyObject *self, PyObject *args)
#define SWIG_AddCast(r)
SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr)
SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void)
SWIGINTERN PyObject * _wrap_findsubg(PyObject *self, PyObject *args)
#define SWIG_InternalNewPointerObj(ptr, type, flags)
SWIGINTERN PyObject * _wrap_firstattr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v)
SWIGINTERN PyObject * _wrap_getv__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_exception_fail(code, msg)
SWIGINTERN PyObject * _wrap_protonode(PyObject *self, PyObject *args)
SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void)
Agedge_t * firstedge(Agraph_t *g)
Definition gv.cpp:415
SWIGINTERN PyObject * _wrap_rm__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_AttributeError
Agraph_t * graphof(Agraph_t *g)
Definition gv.cpp:309
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
SWIGINTERN PyObject * _wrap_firstout(PyObject *self, PyObject *args)
static swig_module_info swig_module
SWIGINTERN PyObject * _wrap_setv__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_getv__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_render__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
char * nameof(Agraph_t *g)
Definition gv.cpp:349
SWIGINTERN PyObject * _wrap_strictdigraph(PyObject *self, PyObject *args)
SWIGRUNTIME int SWIG_Python_TypeErrorOccurred(PyObject *obj)
SWIGRUNTIME void SWIG_Python_DestroyModule(PyObject *obj)
#define SWIG_SetModule(clientdata, pointer)
SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject *obj)
SWIGINTERN PyObject * swig_varlink_str(PyObject *o)
Agnode_t * firstnode(Agraph_t *g)
Definition gv.cpp:524
SWIGINTERN PyTypeObject * swig_varlink_type(void)
#define SWIG_INIT_CLIENT_DATA_TYPE
SWIGINTERN PyObject * _wrap_edge(PyObject *self, PyObject *args)
#define SWIGUNUSEDPARM(p)
SWIGINTERN PyObject * _wrap_digraph(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_tailof(PyObject *self, PyObject *args)
Agedge_t * firstout(Agraph_t *g)
Definition gv.cpp:390
#define SWIG_POINTER_RELEASE
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
SWIGINTERN PyObject * _wrap_nextin__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_as_voidptr(a)
SWIGINTERN swig_type_info * SWIG_pchar_descriptor(void)
static swig_const_info swig_const_table[]
SWIGINTERN PyObject * SwigPyObject_disown(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op)
#define SWIG_Python_CallFunctor(functor, obj)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
#define SWIG_POINTER_CLEAR
#define SWIG_ConvertPtr(obj, pptr, type, flags)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
struct swig_const_info swig_const_info
SWIGINTERN PyObject * _wrap_write__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN int SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name)
SWIGINTERN PyObject * _wrap_nameof__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
static PyObject * Swig_Globals_global
SWIGINTERN PyObject * _wrap_graphof__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_firstin__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
static swig_type_info * swig_types[7]
SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v)
SWIGINTERN PyObject * _wrap_setv__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_nameof__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_ok__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_layout(PyObject *self, PyObject *args)
#define SWIG_newvarlink()
SWIGRUNTIME void SWIG_Python_RaiseOrModifyTypeError(const char *message)
SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type)
SWIGINTERN PyObject * _wrap_firstsupg(PyObject *self, PyObject *args)
SWIGINTERN const char * SWIG_PyUnicode_AsUTF8AndSize(PyObject *str, Py_ssize_t *psize, PyObject **pbytes)
SWIGINTERN PyObject * _wrap_rm__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
static swig_cast_info _swigc__p_char[]
SWIGINTERN PyObject * _wrap_firstin(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_strictgraph(PyObject *self, PyObject *args)
static PyObject * Swig_TypeCache_global
#define SWIGINTERN
SWIGINTERN PyObject * _wrap_nextout(PyObject *self, PyObject *args)
SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc)
bool layout(Agraph_t *g, const char *engine)
Definition gv.cpp:621
SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op)
static swig_type_info _swigt__p_Agraph_t
SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj)
SWIGINTERN PyObject * _wrap_firstnode__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
#define SWIGPY_CAPSULE_NAME
SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags)
#define SWIG_ArgError(r)
SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char *mesg)
SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
#define SWIG_NewPointerObj(ptr, type, flags)
SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module)
SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj)
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
Definition gv.cpp:555
#define SWIG_POINTER_NO_NULL
SWIGINTERN PyObject * _wrap_firstattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_nextin(PyObject *self, PyObject *args)
#define SWIG_Python_str_FromFormat
Agnode_t * tailof(Agedge_t *e)
Definition gv.cpp:301
bool write(Agraph_t *g, const char *filename)
Definition gv.cpp:723
char * renderdata(Agraph_t *g, const char *format)
Definition gv.cpp:705
SWIGINTERN PyObject * _wrap_rootof(PyObject *self, PyObject *args)
#define SWIG_InstallConstants(d, constants)
SWIGINTERN PyObject * _wrap_nexthead(PyObject *self, PyObject *args)
#define SWIG_IOError
static PyMethodDef SwigMethods[]
#define SWIG_NullReferenceError
SWIGINTERN PyObject * _wrap_ok__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME PyTypeObject * SwigPyPacked_type(void)
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
SWIGINTERN PyObject * _wrap_firstnode(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_readstring(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_nextedge(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_nextout__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_getv__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_edge__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_POINTER_DISOWN
#define SWIG_STATIC_POINTER(var)
struct swig_type_info swig_type_info
SWIGINTERN PyObject * swig_varlink_repr(PyObject *SWIGUNUSEDPARM(v))
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGINTERN PyObject * _wrap_ok(PyObject *self, PyObject *args)
Agnode_t * protonode(Agraph_t *g)
Definition gv.cpp:340
SWIGINTERN PyObject * _wrap_graph__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_render__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
static swig_cast_info _swigc__p_Agedge_t[]
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
bool rm(Agraph_t *g)
Definition gv.cpp:590
SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty)
SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg)
SWIGINTERN PyObject * _wrap_nextnode(PyObject *self, PyObject *args)
Agnode_t * findnode(Agraph_t *g, char *name)
Definition gv.cpp:259
#define SWIGTYPE_p_Agedge_t
SWIGINTERN PyObject * _wrap_findedge(PyObject *self, PyObject *args)
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
Definition gv.cpp:509
SWIGRUNTIME PyObject * SwigPyObject_format(const char *fmt, SwigPyObject *v)
SWIGINTERN PyObject * _wrap_nextedge__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags)
#define SWIG_NEWOBJ
SWIGINTERN PyObject * _wrap_nextin__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_findnode(PyObject *self, PyObject *args)
Agraph_t * firstsupg(Agraph_t *g)
Definition gv.cpp:386
SWIGINTERN PyObject * _wrap_setv__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME int SWIG_Python_ArgFail(int argnum)
SWIGINTERN PyObject * _wrap_ok__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own)
SWIGINTERN PyObject * _wrap_nextattr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_NewPackedObj(ptr, sz, type)
#define SWIG_GetModule(clientdata)
Agsym_t * findattr(Agraph_t *g, char *name)
Definition gv.cpp:273
#define SWIG_fail
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
SWIGINTERN PyObject * _wrap_nextnode__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_graphof__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGINTERN PyObject * _wrap_nextattr(PyObject *self, PyObject *args)
SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v)
SWIGINTERN PyObject * _wrap_nextnode__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agraph_t * digraph(char *name)
Definition gv.cpp:37
SWIGRUNTIME int SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGINTERN void SWIG_Python_FixMethods(PyMethodDef *methods, const swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial)
Agedge_t * firstin(Agraph_t *g)
Definition gv.cpp:467
SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
SWIGINTERN PyObject * _wrap_render__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_ERROR_RELEASE_NOT_OWNED
SWIGRUNTIME PyObject * SWIG_This(void)
SWIGINTERN PyObject * _wrap_findattr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_firstout__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
Definition gv.cpp:530
SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj)
SWIGINTERN PyObject * SWIG_Python_AppendOutput(PyObject *result, PyObject *obj)
SWIGINTERN PyObject * _wrap_read__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_BUILTIN_TP_INIT
SWIGINTERN PyObject * _wrap_firstedge__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_CAST_NEW_MEMORY
static swig_type_info _swigt__p_FILE
SWIGINTERN void swig_varlink_dealloc(PyObject *o)
SWIGRUNTIME PyObject * SwigPyObject_repr(SwigPyObject *v)
Agedge_t * nextin(Agnode_t *n, Agedge_t *e)
Definition gv.cpp:494
Agraph_t * graph(char *name)
Definition gv.cpp:31
SWIGINTERN PyObject * _wrap_setv__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_nameof(PyObject *self, PyObject *args)
struct swig_module_info swig_module_info
SWIGINTERN PyObject * _wrap_edge__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_renderdata(PyObject *self, PyObject *args)
SWIGRUNTIME PyObject * SWIG_Python_ErrorType(int code)
#define SWIG_ERROR
SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data)
#define SWIG_name
#define SWIGTYPE_p_FILE
SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj)
Agsym_t * firstattr(Agraph_t *g)
Definition gv.cpp:548
SWIGINTERN PyObject * _wrap_nextedge__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_firstattr(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_write(PyObject *self, PyObject *args)
static swig_type_info * swig_type_initial[]
SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v)
SWIGINTERN PyObject * _wrap_renderresult(PyObject *self, PyObject *args)
SWIGINTERN PyObject * SWIG_Python_str_FromChar(const char *c)
SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty)
SWIGINTERN PyObject * swig_varlink_getattr(PyObject *o, char *n)
static swig_cast_info _swigc__p_Agsym_t[]
#define SWIG_MemoryError
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:417
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
Definition gv.cpp:265
#define SWIG_SystemError
#define SWIG_DivisionByZero
static swig_type_info _swigt__p_char
SWIGRUNTIME PyTypeObject * SwigPyObject_type(void)
#define SWIG_OverflowError
#define SWIGEXPORT
SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce(void)
#define SWIG_IsOK(r)
SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc)
static PyObject * Swig_Capsule_global
Agnode_t * firsthead(Agnode_t *n)
Definition gv.cpp:431
static swig_type_info _swigt__p_Agnode_t
SWIGINTERN PyObject * _wrap_getv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_render(PyObject *self, PyObject *args)
#define SWIG_IndexError
bool render(Agraph_t *g)
Definition gv.cpp:630
SWIGINTERN PyObject * _wrap_graph(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_firstsubg(PyObject *self, PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v)
SWIGRUNTIME PyObject * SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
static swig_type_info _swigt__p_Agedge_t
SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args)
#define SWIG_AddNewMask(r)
SWIGINTERN PyObject * SWIG_globals(void)
SWIGINTERN PyObject * _wrap_protoedge(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_firstattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_write__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_OK
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
Definition gv.cpp:440
#define SWIG_PYTHON_THREAD_BEGIN_BLOCK
#define SWIGINTERNINLINE
SWIGINTERN PyObject * _wrap_headof(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_firstedge__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
SWIGINTERN PyObject * _wrap_firstout__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define Py_TYPE(op)
Agedge_t * protoedge(Agraph_t *g)
Definition gv.cpp:344
SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own)
SWIGINTERN PyObject * _wrap_nameof__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIGRUNTIMEINLINE
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
#define SWIG_From_bool
Definition gv_tcl.cpp:2016
Graphviz context library.
GVIO_API const char * format
Definition gvio.h:51
static gvloadimage_engine_t engine
static const char none[]
static lexstate_t state
Definition htmllex.c:61
agxbuf * str
Definition htmlparse.c:97
void *(* swig_converter_func)(void *, int *)
Definition runtime.h:360
struct swig_type_info *(* swig_dycast_func)(void **)
Definition runtime.h:361
void reset(sgraph *G)
Definition sgraph.c:29
graph or subgraph
Definition cgraph.h:425
string attribute descriptor symbol in Agattr_s.dict
Definition cgraph.h:639
PyTypeObject * pytype
PyObject_HEAD void * ptr
swig_type_info * ty
PyObject * next
swig_type_info * ty
PyObject_HEAD void * pack
Definition legal.c:50
Definition utils.c:748
SwigVar_PyObject(PyObject *obj=0)
SwigVar_PyObject & operator=(PyObject *obj)
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
const char * name
swig_type_info ** ptype
PyObject *(* get_attr)(void)
struct swig_globalvar * next
int(* set_attr)(PyObject *)
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
PyObject_HEAD swig_globalvar * vars
static mytime_t T
Definition timing.c:41
Definition grammar.c:93
char * name
Definition grammar.c:98