10#define SWIG_VERSION 0x040200
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
20#ifndef SWIGTEMPLATEDISAMBIGUATOR
21# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
22# define SWIGTEMPLATEDISAMBIGUATOR template
23# elif defined(__HP_aCC)
26# define SWIGTEMPLATEDISAMBIGUATOR template
28# define SWIGTEMPLATEDISAMBIGUATOR
34# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
35# define SWIGINLINE inline
44# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
45# define SWIGUNUSED __attribute__ ((__unused__))
50# define SWIGUNUSED __attribute__ ((__unused__))
56#ifndef SWIG_MSC_UNSUPPRESS_4505
58# pragma warning(disable : 4505)
64# define SWIGUNUSEDPARM(p)
66# define SWIGUNUSEDPARM(p) p SWIGUNUSED
72# define SWIGINTERN static SWIGUNUSED
76#ifndef SWIGINTERNINLINE
77# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
82# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
83# ifndef GCC_HASCLASSVISIBILITY
84# define GCC_HASCLASSVISIBILITY
90# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
91# if defined(STATIC_LINKED)
94# define SWIGEXPORT __declspec(dllexport)
97# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
98# define SWIGEXPORT __attribute__ ((visibility("default")))
107# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
108# define SWIGSTDCALL __stdcall
115#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
116# define _CRT_SECURE_NO_DEPRECATE
120#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
121# define _SCL_SECURE_NO_DEPRECATE
125#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
126# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
134#ifdef __INTEL_COMPILER
135# pragma warning disable 592
138#if __cplusplus >=201103L
139# define SWIG_NULLPTR nullptr
141# define SWIG_NULLPTR NULL
145#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
150#if !defined(PY_SSIZE_T_CLEAN) && !defined(SWIG_NO_PY_SSIZE_T_CLEAN)
151#define PY_SSIZE_T_CLEAN
155#pragma GCC diagnostic push
156#if defined(__cplusplus) && __cplusplus >=201703L
157#pragma GCC diagnostic ignored "-Wregister"
161#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
164#if defined(_MSC_VER) && _MSC_VER >= 1929
178#pragma GCC diagnostic pop
192#define SWIG_RUNTIME_VERSION "4"
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)
200# define SWIG_TYPE_TABLE_NAME
213# define SWIGRUNTIME SWIGINTERN
216#ifndef SWIGRUNTIMEINLINE
217# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
221#ifndef SWIG_BUFFER_SIZE
222# define SWIG_BUFFER_SIZE 1024
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)
233#define SWIG_POINTER_OWN 0x1
317#define SWIG_ERROR (-1)
321#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
323#define SWIG_IsOK(r) (r >= 0)
324#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
327#define SWIG_CASTRANKLIMIT (1 << 8)
329#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
331#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
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)
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))
346#if defined(SWIG_CASTRANK_MODE)
347# ifndef SWIG_TypeRank
348# define SWIG_TypeRank unsigned long
350# ifndef SWIG_MAXCASTRANK
351# define SWIG_MAXCASTRANK (2)
353# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
354# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
362# define SWIG_AddCast(r) (r)
363# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
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)
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)
390typedef void *(*swig_converter_func)(
void *,
int *);
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;
438 return (
int)((l1 - f1) - (l2 - f2));
448 const char* te = tb + strlen(tb);
450 while (equiv != 0 && *ne) {
451 for (nb = ne; *ne; ++ne) {
452 if (*ne ==
'|')
break;
477 if (strcmp(iter->
type->
name, c) == 0) {
478 if (iter == ty->
cast)
504 if (iter->
type == from) {
505 if (iter == ty->
cast)
537 if (!ty || !ty->
dcast)
return ty;
538 while (ty && (ty->
dcast)) {
539 ty = (*ty->
dcast)(ptr);
565 const char *last_name =
type->str;
568 if (*
s ==
'|') last_name =
s+1;
616 size_t r = iter->
size - 1;
619 size_t i = (l + r) >> 1;
620 const char *iname = iter->
types[i]->
name;
622 int compare = strcmp(name, iname);
624 return iter->
types[i];
640 }
while (iter != end);
667 for (; i < iter->
size; ++i) {
669 return iter->
types[i];
672 }
while (iter != end);
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];
700 unsigned char *u = (
unsigned char *) ptr;
701 const unsigned char *eu = u + sz;
702 for (; u != eu; ++u) {
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);
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));
729 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
732 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
740 if (strcmp(c,
"NULL") == 0) {
753 size_t lname = (name ? strlen(name) : 0);
754 if ((2*sz + 2 + lname) > bsz)
return 0;
758 strncpy(r,name,lname+1);
768 if (strcmp(c,
"NULL") == 0) {
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
799#if PY_VERSION_HEX >= 0x03000000
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)
818# define Py_TYPE(op) ((op)->ob_type)
823#if PY_VERSION_HEX >= 0x03000000
824# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
826# define SWIG_Python_str_FromFormat PyString_FromFormat
834#if PY_VERSION_HEX >= 0x03030000
835# if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
837 return PyUnicode_AsUTF8AndSize(
str, psize);
839 *pbytes = PyUnicode_AsUTF8String(
str);
840 const char *chars = *pbytes ? PyBytes_AsString(*pbytes) :
NULL;
842 *psize = PyBytes_Size(*pbytes);
848 PyString_AsStringAndSize(
str, &chars, psize);
856#if PY_VERSION_HEX >= 0x03000000
857 return PyUnicode_FromString(c);
859 return PyString_FromString(c);
864# define PyObject_DEL PyObject_Del
868# define SWIGPY_USE_CAPSULE
869#ifdef SWIGPYTHON_BUILTIN
870# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule_builtin" SWIG_TYPE_TABLE_NAME
872# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule" SWIG_TYPE_TABLE_NAME
874# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION "." SWIGPY_CAPSULE_ATTR_NAME)
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
883# define PyTuple_GET_ITEM PyTuple_GetItem
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
905 type = PyExc_MemoryError;
908 type = PyExc_IOError;
911 type = PyExc_RuntimeError;
914 type = PyExc_IndexError;
917 type = PyExc_TypeError;
920 type = PyExc_ZeroDivisionError;
923 type = PyExc_OverflowError;
926 type = PyExc_SyntaxError;
929 type = PyExc_ValueError;
932 type = PyExc_SystemError;
935 type = PyExc_AttributeError;
938 type = PyExc_RuntimeError;
949 PyObject *traceback = 0;
951 if (PyErr_Occurred())
952 PyErr_Fetch(&
type, &value, &traceback);
954 PyObject *old_str = PyObject_Str(value);
955 PyObject *bytes =
NULL;
960 PyErr_Format(
type,
"%s %s", tmp, mesg);
962 PyErr_Format(
type,
"%s", mesg);
967 PyErr_SetString(PyExc_RuntimeError, mesg);
977 error = PyErr_Occurred();
978 return error && PyErr_GivenExceptionMatches(
error, PyExc_TypeError);
988 PyErr_Fetch(&
type, &value, &traceback);
989#if PY_VERSION_HEX >= 0x03000000
990 newvalue = PyUnicode_FromFormat(
"%S\nAdditional information:\n%s", value, message);
992 newvalue = PyString_FromFormat(
"%s\nAdditional information:\n%s", PyString_AsString(value), message);
996 PyErr_Restore(
type, newvalue, traceback);
998 PyErr_Restore(
type, value, traceback);
1002 PyErr_SetString(PyExc_TypeError, message);
1006#if defined(SWIG_PYTHON_NO_THREADS)
1007# if defined(SWIG_PYTHON_THREADS)
1008# undef SWIG_PYTHON_THREADS
1011#if defined(SWIG_PYTHON_THREADS)
1012# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1013# define SWIG_PYTHON_USE_GIL
1015# if defined(SWIG_PYTHON_USE_GIL)
1016# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1017# if PY_VERSION_HEX < 0x03070000
1018# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1020# define SWIG_PYTHON_INITIALIZE_THREADS
1024 class SWIG_Python_Thread_Block {
1026 PyGILState_STATE
state;
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(); }
1032 class SWIG_Python_Thread_Allow {
1034 PyThreadState *save;
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(); }
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()
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)
1051# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1052# define SWIG_PYTHON_INITIALIZE_THREADS
1054# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1055# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1057# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1058# define SWIG_PYTHON_THREAD_END_BLOCK
1060# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1061# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1063# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1064# define SWIG_PYTHON_THREAD_END_ALLOW
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
1088#define SWIG_PY_POINTER 4
1089#define SWIG_PY_BINARY 5
1115#if PY_VERSION_HEX < 0x02070000
1116# error "This version of SWIG only supports Python >= 2.7"
1119#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03030000
1120# error "This version of SWIG only supports Python 3 >= 3.3"
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)
1130#ifdef SWIGPYTHON_BUILTIN
1131#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1133#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1136#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
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
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)
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)
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)
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)
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)
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
1179 PyErr_SetObject(errtype, obj);
1187 PyErr_SetString(errtype, msg);
1191#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1195#if defined(SWIGPYTHON_BUILTIN)
1198SwigPyBuiltin_AddPublicSymbol(PyObject *seq,
const char *
key) {
1199 PyObject *
s = PyString_InternFromString(
key);
1200 PyList_Append(seq,
s);
1206 PyDict_SetItemString(d, name, obj);
1208 if (public_interface)
1209 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1216 PyDict_SetItemString(d, name, obj);
1228 }
else if (result == Py_None) {
1232 if (!PyList_Check(result)) {
1233 PyObject *o2 = result;
1234 result = PyList_New(1);
1236 PyList_SET_ITEM(result, 0, o2);
1242 PyList_Append(result,obj);
1257 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got none",
1258 name, (min == max ?
"" :
"at least "), (
int)min);
1262 if (!PyTuple_Check(args)) {
1263 if (min <= 1 && max >= 1) {
1266 for (i = 1; i < max; ++i) {
1271 PyErr_SetString(PyExc_SystemError,
"UnpackTuple() argument list is not a tuple");
1274 Py_ssize_t l = PyTuple_GET_SIZE(args);
1276 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1277 name, (min == max ?
"" :
"at least "), (
int)min, (int)l);
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);
1285 for (i = 0; i < l; ++i) {
1286 objs[i] = PyTuple_GET_ITEM(args, i);
1288 for (; l < max; ++l) {
1300 assert(PyDict_Check(kwargs));
1301 if (PyDict_Size(kwargs) > 0) {
1302 PyErr_Format(PyExc_TypeError,
"%s() does not take keyword arguments", name);
1310#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1317#define SWIG_STATIC_POINTER(var) var
1319#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
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)
1337 PyObject *(*get_attr)(void);
1349#if PY_VERSION_HEX >= 0x03000000
1350 return PyUnicode_InternFromString(
"<Swig global variables>");
1352 return PyString_FromString(
"<Swig global variables>");
1359#if PY_VERSION_HEX >= 0x03000000
1360 PyObject *
str = PyUnicode_InternFromString(
"(");
1364 for (var = v->
vars; var; var=var->
next) {
1365 tail = PyUnicode_FromString(var->
name);
1366 joined = PyUnicode_Concat(
str, tail);
1371 tail = PyUnicode_InternFromString(
", ");
1372 joined = PyUnicode_Concat(
str, tail);
1378 tail = PyUnicode_InternFromString(
")");
1379 joined = PyUnicode_Concat(
str, tail);
1384 PyObject *
str = PyString_FromString(
"(");
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(
", "));
1390 PyString_ConcatAndDel(&
str,PyString_FromString(
")"));
1410 PyObject *res =
NULL;
1413 if (strcmp(var->
name,n) == 0) {
1419 if (res ==
NULL && !PyErr_Occurred()) {
1420 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
1431 if (strcmp(var->
name,n) == 0) {
1437 if (res == 1 && !PyErr_Occurred()) {
1438 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
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;
1450 const PyTypeObject tmp = {
1451#if PY_VERSION_HEX >= 0x03000000
1452 PyVarObject_HEAD_INIT(
NULL, 0)
1454 PyObject_HEAD_INIT(
NULL)
1461#if PY_VERSION_HEX < 0x030800b4
1485 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1488#if PY_VERSION_HEX >= 0x03040000
1491#if PY_VERSION_HEX >= 0x03080000
1494#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1497#if PY_VERSION_HEX >= 0x030C0000
1510 if (PyType_Ready(&varlink_type) < 0)
1513 return &varlink_type;
1515 PyType_Slot slots[] = {
1521 { Py_tp_doc, (
void *)varlink__doc__ },
1524 PyType_Spec spec = {
1531 return (PyTypeObject *)PyType_FromSpec(&spec);
1542 return ((PyObject*) result);
1550 size_t size = strlen(name)+1;
1553 memcpy(gv->
name, name, size);
1582#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1583#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1585#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1587#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1588#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1599 PyObject *
none = Py_None;
1620 int fail =
data ?
data->implicitconv : 0;
1622 PyErr_SetString(PyExc_TypeError,
"Implicit conversion is prohibited for explicit constructors.");
1629 PyObject *klass =
data ?
data->klass : 0;
1630 return (klass ? klass : PyExc_RuntimeError);
1643 Py_INCREF(
data->klass);
1645 if (PyClass_Check(obj)) {
1648 data->newargs = obj;
1650 data->newraw = PyObject_GetAttrString(
data->klass,
"__new__");
1652 data->newargs = PyTuple_New(1);
1653 if (
data->newargs) {
1655 PyTuple_SET_ITEM(
data->newargs, 0, obj);
1657 Py_DECREF(
data->newraw);
1658 Py_DECREF(
data->klass);
1664 data->newargs = obj;
1668 data->destroy = PyObject_GetAttrString(
data->klass,
"__swig_destroy__");
1669 if (PyErr_Occurred()) {
1673 if (
data->destroy) {
1674 data->delargs = !(PyCFunction_GET_FLAGS(
data->destroy) & METH_O);
1678 data->implicitconv = 0;
1687 Py_XDECREF(
data->klass);
1688 Py_XDECREF(
data->newraw);
1689 Py_XDECREF(
data->newargs);
1690 Py_XDECREF(
data->destroy);
1702#ifdef SWIGPYTHON_BUILTIN
1708#ifdef SWIGPYTHON_BUILTIN
1711SwigPyObject_get___dict__(PyObject *v, PyObject *
SWIGUNUSEDPARM(args))
1716 sobj->dict = PyDict_New();
1718 Py_XINCREF(sobj->dict);
1727 return PyLong_FromVoidPtr(v->
ptr);
1733 PyObject *res =
NULL;
1734 PyObject *args = PyTuple_New(1);
1739 PyTuple_SET_ITEM(args, 0, val);
1742#if PY_VERSION_HEX >= 0x03000000
1743 res = PyUnicode_Format(ofmt,args);
1745 res = PyString_Format(ofmt,args);
1772 if (repr && v->
next) {
1775# if PY_VERSION_HEX >= 0x03000000
1776 PyObject *joined = PyUnicode_Concat(repr, nrep);
1781 PyString_ConcatAndDel(&repr,nrep);
1804 return (i < j) ? -1 : ((i > j) ? 1 : 0);
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;
1825#ifdef SWIGPYTHON_BUILTIN
1830 assert(SwigPyObject_stype);
1847 PyTypeObject *op_type =
Py_TYPE(op);
1848#ifdef SWIGPYTHON_BUILTIN
1849 if (PyType_IsSubtype(op_type, target_tp))
1851 return (strcmp(op_type->tp_name,
"SwigPyObject") == 0);
1853 if (op_type == target_tp)
1855# ifdef Py_LIMITED_API
1857 PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type,
"__name__");
1860 cmp = PyUnicode_CompareWithASCIIString(tp_name,
"SwigPyObject");
1864 return (strcmp(op_type->tp_name,
"SwigPyObject") == 0);
1878 PyObject *next = sobj->
next;
1882 PyObject *destroy =
data ?
data->destroy : 0;
1895 PyErr_Fetch(&
type, &value, &traceback);
1897 if (
data->delargs) {
1907 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1908 PyObject *mself = PyCFunction_GET_SELF(destroy);
1909 res = ((*meth)(mself, v));
1912 PyErr_WriteUnraisable(destroy);
1914 PyErr_Restore(
type, value, traceback);
1918#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1921 printf(
"swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name :
"unknown"));
1927#ifdef SWIGPYTHON_BUILTIN
1928 Py_XDECREF(sobj->dict);
1938 PyErr_SetString(PyExc_TypeError,
"Attempt to append a non SwigPyObject");
1952 Py_INCREF(sobj->
next);
1979 if (!PyArg_UnpackTuple(args,
"own", 0, 1, &val)) {
1983 PyObject *obj = PyBool_FromLong(sobj->
own);
1985 if (PyObject_IsTrue(val)) {
1999 {
"own",
SwigPyObject_own, METH_VARARGS,
"returns/sets ownership of the pointer"},
2008 static char swigobject_doc[] =
"Swig object carries a C/C++ instance pointer";
2009#ifndef Py_LIMITED_API
2010 static PyNumberMethods SwigPyObject_as_number = {
2015#
if PY_VERSION_HEX < 0x03000000
2031#
if PY_VERSION_HEX < 0x03000000
2035#if PY_VERSION_HEX < 0x03000000
2041#if PY_VERSION_HEX < 0x03000000
2045#if PY_VERSION_HEX >= 0x03050000
2046 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2047#elif PY_VERSION_HEX >= 0x03000000
2048 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2050 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2054 static PyTypeObject swigpyobject_type;
2055 static int type_init = 0;
2057 const PyTypeObject tmp = {
2058#if PY_VERSION_HEX >= 0x03000000
2059 PyVarObject_HEAD_INIT(
NULL, 0)
2061 PyObject_HEAD_INIT(
NULL)
2068#if PY_VERSION_HEX < 0x030800b4
2075#if PY_VERSION_HEX >= 0x03000000
2081 &SwigPyObject_as_number,
2087 PyObject_GenericGetAttr,
2118#
if PY_VERSION_HEX >= 0x03040000
2121#
if PY_VERSION_HEX >= 0x03080000
2124#
if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2127#
if PY_VERSION_HEX >= 0x030C0000
2138 swigpyobject_type = tmp;
2140 if (PyType_Ready(&swigpyobject_type) != 0)
2143 return &swigpyobject_type;
2145 PyType_Slot slots[] = {
2148 { Py_tp_getattro, (
void *)PyObject_GenericGetAttr },
2149 { Py_tp_doc, (
void *)swigobject_doc },
2155 PyType_Spec spec = {
2162 return (PyTypeObject *)PyType_FromSpec(&spec);
2175#ifdef SWIGPYTHON_BUILTIN
2185 return (PyObject *)sobj;
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);
2240 PyTypeObject* op_type =
Py_TYPE(op);
2243#ifdef Py_LIMITED_API
2245 PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type,
"__name__");
2248 cmp = PyUnicode_CompareWithASCIIString(tp_name,
"SwigPyPacked");
2252 return (strcmp(op_type->tp_name,
"SwigPyPacked") == 0);
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;
2273 const PyTypeObject tmp = {
2274#if PY_VERSION_HEX>=0x03000000
2275 PyVarObject_HEAD_INIT(
NULL, 0)
2277 PyObject_HEAD_INIT(
NULL)
2284#if PY_VERSION_HEX < 0x030800b4
2291#if PY_VERSION_HEX>=0x03000000
2303 PyObject_GenericGetAttr,
2334#
if PY_VERSION_HEX >= 0x03040000
2337#
if PY_VERSION_HEX >= 0x03080000
2340#
if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2343#
if PY_VERSION_HEX >= 0x030C0000
2354 swigpypacked_type = tmp;
2356 if (PyType_Ready(&swigpypacked_type) != 0)
2359 return &swigpypacked_type;
2361 PyType_Slot slots[] = {
2365 { Py_tp_getattro, (
void *)PyObject_GenericGetAttr },
2366 { Py_tp_doc, (
void *)swigpacked_doc },
2369 PyType_Spec spec = {
2376 return (PyTypeObject *)PyType_FromSpec(&spec);
2385 void *pack =
malloc(size);
2387 memcpy(pack, ptr, size);
2396 return (PyObject *) sobj;
2404 if (sobj->
size != size)
return 0;
2405 memcpy(ptr, sobj->
pack, size);
2429#if PY_VERSION_HEX>=0x03000000
2430#define SWIG_PYTHON_SLOW_GETSET_THIS
2441#ifdef SWIGPYTHON_BUILTIN
2443# ifdef PyWeakref_CheckProxy
2444 if (PyWeakref_CheckProxy(pyobj)) {
2445 pyobj = PyWeakref_GET_OBJECT(pyobj);
2455#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2456 if (PyInstance_Check(pyobj)) {
2457 obj = _PyInstance_Lookup(pyobj,
SWIG_This());
2459 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2460 if (dictptr !=
NULL) {
2461 PyObject *dict = *dictptr;
2462 obj = dict ? PyDict_GetItem(dict,
SWIG_This()) : 0;
2464#ifdef PyWeakref_CheckProxy
2465 if (PyWeakref_CheckProxy(pyobj)) {
2466 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2470 obj = PyObject_GetAttr(pyobj,
SWIG_This());
2474 if (PyErr_Occurred()) PyErr_Clear();
2480 obj = PyObject_GetAttr(pyobj,
SWIG_This());
2484 if (PyErr_Occurred()) PyErr_Clear();
2504 int oldown = sobj->
own;
2522 if (obj == Py_None && !implicit_conv) {
2534 void *vptr = sobj->
ptr;
2539 if (ptr) *ptr = vptr;
2559 if (ptr) *ptr = vptr;
2568 *own = *own | sobj->
own;
2578 if (implicit_conv) {
2581 PyObject *klass =
data->klass;
2584 data->implicitconv = 1;
2586 data->implicitconv = 0;
2587 if (PyErr_Occurred()) {
2612 if (!
SWIG_IsOK(res) && obj == Py_None) {
2615 if (PyErr_Occurred())
2628 if (!PyCFunction_Check(obj)) {
2635#ifndef Py_LIMITED_API
2636 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2638 PyObject* pystr_doc = PyObject_GetAttrString(obj,
"__doc__");
2639 PyObject *bytes =
NULL;
2642 const char *desc = doc ? strstr(doc,
"swig_ptr: ") : 0;
2645#ifdef Py_LIMITED_API
2647 Py_XDECREF(pystr_doc);
2692 PyObject *newraw =
data->newraw;
2694 inst = PyObject_Call(newraw,
data->newargs,
NULL);
2696#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2697 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2698 if (dictptr !=
NULL) {
2699 PyObject *dict = *dictptr;
2701 dict = PyDict_New();
2705 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2712 if (PyObject_SetAttr(inst,
SWIG_This(), swig_this) == -1) {
2719#if PY_VERSION_HEX >= 0x03000000
2720 PyObject *empty_args = PyTuple_New(0);
2722 PyObject *empty_kwargs = PyDict_New();
2724#ifndef Py_LIMITED_API
2725 newfunc newfn = ((PyTypeObject *)
data->newargs)->tp_new;
2727 newfunc newfn = (newfunc)PyType_GetSlot((PyTypeObject *)
data->newargs, Py_tp_new);
2729 inst = newfn((PyTypeObject *)
data->newargs, empty_args, empty_kwargs);
2730 Py_DECREF(empty_kwargs);
2732 if (PyObject_SetAttr(inst,
SWIG_This(), swig_this) == -1) {
2736 PyType_Modified(
Py_TYPE(inst));
2740 Py_DECREF(empty_args);
2743 PyObject *dict = PyDict_New();
2745 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2746 inst = PyInstance_NewRaw(
data->newargs, dict);
2757#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2758 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2759 if (dictptr !=
NULL) {
2760 PyObject *dict = *dictptr;
2762 dict = PyDict_New();
2766 return PyDict_SetItem(dict,
SWIG_This(), swig_this);
2772 return PyObject_SetAttr(inst,
SWIG_This(), swig_this);
2806 if (clientdata && clientdata->
pytype) {
2811#ifndef Py_LIMITED_API
2812 allocfunc alloc = clientdata->
pytype->tp_alloc;
2814 allocfunc alloc = (allocfunc)PyType_GetSlot(clientdata->
pytype, Py_tp_alloc);
2816 PyObject *next_self = alloc(clientdata->
pytype, 0);
2817 while (newobj->
next)
2819 newobj->
next = next_self;
2821#ifdef SWIGPYTHON_BUILTIN
2827#ifdef SWIGPYTHON_BUILTIN
2838 return (PyObject*) newobj;
2865#ifdef SWIG_LINK_RUNTIME
2866void *SWIG_ReturnGlobalTypeList(
void *);
2882#ifdef SWIG_LINK_RUNTIME
2883 static void *type_pointer = (
void *)0;
2885 if (!type_pointer) {
2886 type_pointer = SWIG_ReturnGlobalTypeList((
void *)0);
2890 if (PyErr_Occurred()) {
2892 type_pointer = (
void *)0;
2928#if PY_VERSION_HEX >= 0x03000000
2930 PyObject *
module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2932 static PyMethodDef swig_empty_runtime_method_table[] = { {
NULL,
NULL, 0,
NULL} };
2933 PyObject *
module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2936 if (pointer && module) {
2944 Py_XDECREF(pointer);
2953 PyObject *obj = PyDict_GetItem(cache,
key);
2961 obj = PyCapsule_New((
void*) descriptor,
NULL,
NULL);
2963 PyDict_SetItem(cache,
key, obj);
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)
2982 if (PyErr_Occurred()) {
2984 PyObject *value = 0;
2985 PyObject *traceback = 0;
2986 PyErr_Fetch(&
type, &value, &traceback);
2988 PyObject *old_str = PyObject_Str(value);
2989 PyObject *bytes =
NULL;
2991 const char *errmesg = tmp ? tmp :
"Invalid error message";
2995 PyErr_Format(
type,
"%s %s", mesg, errmesg);
2997 PyErr_Format(
type,
"%s %s", errmesg, mesg);
3011 if (PyErr_Occurred()) {
3014 PyOS_snprintf(mesg,
sizeof(mesg),
"argument number %d:", argnum);
3026 return ty ? ty->
str :
"";
3033#if defined(SWIG_COBJECT_TYPES)
3037 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, 'SwigPyObject(%s)' is received",
3044#ifndef Py_LIMITED_API
3046 const char *otype = (obj ? obj->ob_type->tp_name : 0);
3048 PyObject *
str = PyObject_Str(obj);
3049 PyObject *bytes =
NULL;
3052 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s(%s)' is received",
3055 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s' is received",
3064 PyErr_Format(PyExc_TypeError,
"a '%s' is expected",
type);
3066 PyErr_Format(PyExc_TypeError,
"unexpected type is received");
3081#ifdef SWIGPYTHON_BUILTIN
3083SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
3084 PyTypeObject *tp = obj->ob_type;
3086 PyObject *encoded_name;
3090# ifdef Py_USING_UNICODE
3091 if (PyString_Check(name)) {
3092 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name),
NULL,
NULL);
3095 }
else if (!PyUnicode_Check(name))
3097 if (!PyString_Check(name))
3100 PyErr_Format(PyExc_TypeError,
"attribute name must be string, not '%.200s'", name->ob_type->tp_name);
3107 if (PyType_Ready(tp) != 0)
3111 descr = _PyType_Lookup(tp, name);
3114 f = descr->ob_type->tp_descr_set;
3116 if (PyString_Check(name)) {
3117 encoded_name = name;
3120 encoded_name = PyUnicode_AsUTF8String(name);
3124 PyErr_Format(PyExc_AttributeError,
"'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
3125 Py_DECREF(encoded_name);
3127 res = f(descr, obj, value);
3143#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3145#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
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]
3159#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3160#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3164#ifdef SWIG_TypeQuery
3165# undef SWIG_TypeQuery
3167#define SWIG_TypeQuery SWIG_Python_TypeQuery
3172#if PY_VERSION_HEX >= 0x03000000
3173# define SWIG_init PyInit__gv
3176# define SWIG_init init_gv
3179#define SWIG_name "_gv"
3184template<
typename T>
class SwigValueWrapper {
3185 struct SwigSmartPointer {
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; }
3192 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
3193 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
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); }
3201 operator T&()
const {
return *pointer.ptr; }
3203 T *operator&()
const {
return pointer.ptr; }
3204 static void reset(SwigValueWrapper& t,
T *p) { t.pointer.reset(p); }
3216template <
typename T>
T SwigValueInit() {
3220#if __cplusplus >=201103L
3221# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
3223# define SWIG_STD_MOVE(OBJ) OBJ
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))
3265 Py_XINCREF(
item._obj);
3279 operator PyObject *()
const
3307#undef PACKAGE_BUGREPORT
3308#undef PACKAGE_STRING
3309#undef PACKAGE_TARNAME
3310#undef PACKAGE_VERSION
3502 static int init = 0;
3517#if PY_VERSION_HEX>=0x03000000
3518#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3519 if (PyBytes_Check(obj))
3521 if (PyUnicode_Check(obj))
3524 if (PyString_Check(obj))
3527 char *cstr; Py_ssize_t
len;
3528 PyObject *bytes =
NULL;
3532#if PY_VERSION_HEX>=0x03000000 && defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3533 if (PyBytes_AsStringAndSize(obj, &cstr, &
len) == -1)
3540 if (bytes && cptr) {
3542 cstr =
reinterpret_cast< char*
>(memcpy(
new char[
len + 1], cstr,
sizeof(
char)*(
len + 1)));
3550 if (cptr) *cptr = cstr;
3551 if (psize) *psize =
len + 1;
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"
3559#if PY_VERSION_HEX<0x03000000
3560 if (PyUnicode_Check(obj)) {
3561 char *cstr; Py_ssize_t
len;
3562 if (!alloc && cptr) {
3565 obj = PyUnicode_AsUTF8String(obj);
3568 if (PyString_AsStringAndSize(obj, &cstr, &
len) != -1) {
3571 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[
len + 1], cstr,
sizeof(
char)*(
len + 1)));
3573 if (psize) *psize =
len + 1;
3585 if (pchar_descriptor) {
3588 if (cptr) *cptr = (
char *) vptr;
3589 if (psize) *psize = vptr ? (strlen((
char *)vptr) + 1) : 0;
3606 if (size > INT_MAX) {
3608 return pchar_descriptor ?
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));
3615 return PyUnicode_DecodeUTF8(carray,
static_cast< Py_ssize_t
>(size),
"surrogateescape");
3618 return PyString_FromStringAndSize(carray,
static_cast< Py_ssize_t
>(size));
3637 return PyBool_FromLong(value ? 1 : 0);
3644 PyObject *resultobj = 0;
3645 char *arg1 = (
char *) 0 ;
3652 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
3657 arg1 =
reinterpret_cast< char *
>(buf1);
3669 PyObject *resultobj = 0;
3670 char *arg1 = (
char *) 0 ;
3674 PyObject *swig_obj[1] ;
3684 arg1 =
reinterpret_cast< char *
>(buf1);
3696 PyObject *resultobj = 0;
3697 char *arg1 = (
char *) 0 ;
3701 PyObject *swig_obj[1] ;
3711 arg1 =
reinterpret_cast< char *
>(buf1);
3723 PyObject *resultobj = 0;
3724 char *arg1 = (
char *) 0 ;
3728 PyObject *swig_obj[1] ;
3738 arg1 =
reinterpret_cast< char *
>(buf1);
3750 PyObject *resultobj = 0;
3751 char *arg1 = (
char *) 0 ;
3755 PyObject *swig_obj[1] ;
3765 arg1 =
reinterpret_cast< char *
>(buf1);
3777 PyObject *resultobj = 0;
3778 char *arg1 = (
char *) 0 ;
3785 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
3790 arg1 =
reinterpret_cast< char *
>(buf1);
3802 PyObject *resultobj = 0;
3803 FILE *arg1 = (FILE *) 0 ;
3809 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
3814 arg1 =
reinterpret_cast< FILE *
>(argp1);
3825 PyObject *argv[2] = {
3851 " Possible C/C++ prototypes are:\n"
3852 " read(char const *)\n"
3859 PyObject *resultobj = 0;
3861 char *arg2 = (
char *) 0 ;
3870 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
3875 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3880 arg2 =
reinterpret_cast< char *
>(buf2);
3893 PyObject *argv[3] = {
3923 " Possible C/C++ prototypes are:\n"
3925 " graph(Agraph_t *,char *)\n");
3931 PyObject *resultobj = 0;
3933 char *arg2 = (
char *) 0 ;
3939 PyObject *swig_obj[2] ;
3948 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3953 arg2 =
reinterpret_cast< char *
>(buf2);
3965 PyObject *resultobj = 0;
3975 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
3980 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3985 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
3995 PyObject *resultobj = 0;
3997 char *arg2 = (
char *) 0 ;
4006 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4011 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4016 arg2 =
reinterpret_cast< char *
>(buf2);
4028 PyObject *resultobj = 0;
4029 char *arg1 = (
char *) 0 ;
4039 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4044 arg1 =
reinterpret_cast< char *
>(buf1);
4049 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
4061 PyObject *resultobj = 0;
4063 char *arg2 = (
char *) 0 ;
4064 char *arg3 = (
char *) 0 ;
4076 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4081 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4086 arg2 =
reinterpret_cast< char *
>(buf2);
4091 arg3 =
reinterpret_cast< char *
>(buf3);
4106 PyObject *argv[4] = {
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");
4182 PyObject *resultobj = 0;
4184 char *arg2 = (
char *) 0 ;
4185 char *arg3 = (
char *) 0 ;
4197 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4202 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4207 arg2 =
reinterpret_cast< char *
>(buf2);
4212 arg3 =
reinterpret_cast< char *
>(buf3);
4213 result = (
char *)
setv(arg1,arg2,arg3);
4226 PyObject *resultobj = 0;
4228 char *arg2 = (
char *) 0 ;
4229 char *arg3 = (
char *) 0 ;
4241 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4246 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4251 arg2 =
reinterpret_cast< char *
>(buf2);
4256 arg3 =
reinterpret_cast< char *
>(buf3);
4257 result = (
char *)
setv(arg1,arg2,arg3);
4270 PyObject *resultobj = 0;
4272 char *arg2 = (
char *) 0 ;
4273 char *arg3 = (
char *) 0 ;
4285 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4290 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
4295 arg2 =
reinterpret_cast< char *
>(buf2);
4300 arg3 =
reinterpret_cast< char *
>(buf3);
4301 result = (
char *)
setv(arg1,arg2,arg3);
4314 PyObject *resultobj = 0;
4317 char *arg3 = (
char *) 0 ;
4328 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4333 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4338 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
4343 arg3 =
reinterpret_cast< char *
>(buf3);
4344 result = (
char *)
setv(arg1,arg2,arg3);
4355 PyObject *resultobj = 0;
4358 char *arg3 = (
char *) 0 ;
4369 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4374 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4379 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
4384 arg3 =
reinterpret_cast< char *
>(buf3);
4385 result = (
char *)
setv(arg1,arg2,arg3);
4396 PyObject *resultobj = 0;
4399 char *arg3 = (
char *) 0 ;
4410 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
4415 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
4420 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
4425 arg3 =
reinterpret_cast< char *
>(buf3);
4426 result = (
char *)
setv(arg1,arg2,arg3);
4438 PyObject *argv[4] = {
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");
4564 PyObject *resultobj = 0;
4566 char *arg2 = (
char *) 0 ;
4575 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4580 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4585 arg2 =
reinterpret_cast< char *
>(buf2);
4586 result = (
char *)
getv(arg1,arg2);
4597 PyObject *resultobj = 0;
4599 char *arg2 = (
char *) 0 ;
4608 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4613 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4618 arg2 =
reinterpret_cast< char *
>(buf2);
4619 result = (
char *)
getv(arg1,arg2);
4630 PyObject *resultobj = 0;
4632 char *arg2 = (
char *) 0 ;
4641 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4646 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
4651 arg2 =
reinterpret_cast< char *
>(buf2);
4652 result = (
char *)
getv(arg1,arg2);
4663 PyObject *resultobj = 0;
4673 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4678 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4683 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
4684 result = (
char *)
getv(arg1,arg2);
4693 PyObject *resultobj = 0;
4703 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4708 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4713 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
4714 result = (
char *)
getv(arg1,arg2);
4723 PyObject *resultobj = 0;
4733 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
4738 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
4743 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
4744 result = (
char *)
getv(arg1,arg2);
4754 PyObject *argv[3] = {
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");
4856 PyObject *resultobj = 0;
4863 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
4868 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4869 result = (
char *)
nameof(arg1);
4878 PyObject *resultobj = 0;
4885 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
4890 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4891 result = (
char *)
nameof(arg1);
4900 PyObject *resultobj = 0;
4907 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
4912 arg1 =
reinterpret_cast< Agsym_t *
>(argp1);
4913 result = (
char *)
nameof(arg1);
4923 PyObject *argv[2] = {
4959 " Possible C/C++ prototypes are:\n"
4960 " nameof(Agraph_t *)\n"
4961 " nameof(Agnode_t *)\n"
4962 " nameof(Agsym_t *)\n");
4968 PyObject *resultobj = 0;
4970 char *arg2 = (
char *) 0 ;
4976 PyObject *swig_obj[2] ;
4985 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4990 arg2 =
reinterpret_cast< char *
>(buf2);
5002 PyObject *resultobj = 0;
5004 char *arg2 = (
char *) 0 ;
5010 PyObject *swig_obj[2] ;
5019 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5024 arg2 =
reinterpret_cast< char *
>(buf2);
5036 PyObject *resultobj = 0;
5043 PyObject *swig_obj[2] ;
5052 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5057 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5067 PyObject *resultobj = 0;
5069 char *arg2 = (
char *) 0 ;
5078 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
5083 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5088 arg2 =
reinterpret_cast< char *
>(buf2);
5100 PyObject *resultobj = 0;
5102 char *arg2 = (
char *) 0 ;
5111 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
5116 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5121 arg2 =
reinterpret_cast< char *
>(buf2);
5133 PyObject *resultobj = 0;
5135 char *arg2 = (
char *) 0 ;
5144 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
5149 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5154 arg2 =
reinterpret_cast< char *
>(buf2);
5167 PyObject *argv[3] = {
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");
5224 PyObject *resultobj = 0;
5228 PyObject *swig_obj[1] ;
5238 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5248 PyObject *resultobj = 0;
5252 PyObject *swig_obj[1] ;
5262 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5272 PyObject *resultobj = 0;
5279 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5284 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5294 PyObject *resultobj = 0;
5301 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5306 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5316 PyObject *resultobj = 0;
5323 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5328 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5339 PyObject *argv[2] = {
5375 " Possible C/C++ prototypes are:\n"
5376 " graphof(Agraph_t *)\n"
5377 " graphof(Agedge_t *)\n"
5378 " graphof(Agnode_t *)\n");
5384 PyObject *resultobj = 0;
5388 PyObject *swig_obj[1] ;
5398 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5408 PyObject *resultobj = 0;
5412 PyObject *swig_obj[1] ;
5422 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5432 PyObject *resultobj = 0;
5436 PyObject *swig_obj[1] ;
5446 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5456 PyObject *resultobj = 0;
5463 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5468 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5469 result = (bool)
ok(arg1);
5478 PyObject *resultobj = 0;
5485 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5490 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5491 result = (bool)
ok(arg1);
5500 PyObject *resultobj = 0;
5507 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5512 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5513 result = (bool)
ok(arg1);
5522 PyObject *resultobj = 0;
5529 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5534 arg1 =
reinterpret_cast< Agsym_t *
>(argp1);
5535 result = (bool)
ok(arg1);
5545 PyObject *argv[2] = {
5590 " Possible C/C++ prototypes are:\n"
5594 " ok(Agsym_t *)\n");
5600 PyObject *resultobj = 0;
5604 PyObject *swig_obj[1] ;
5614 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5624 PyObject *resultobj = 0;
5631 PyObject *swig_obj[2] ;
5640 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5645 arg2 =
reinterpret_cast< Agraph_t *
>(argp2);
5655 PyObject *resultobj = 0;
5659 PyObject *swig_obj[1] ;
5669 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5679 PyObject *resultobj = 0;
5686 PyObject *swig_obj[2] ;
5695 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5700 arg2 =
reinterpret_cast< Agraph_t *
>(argp2);
5710 PyObject *resultobj = 0;
5717 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5722 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5732 PyObject *resultobj = 0;
5742 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
5747 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5752 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
5762 PyObject *resultobj = 0;
5769 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5774 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5784 PyObject *resultobj = 0;
5794 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
5799 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5804 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
5814 PyObject *resultobj = 0;
5821 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5826 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5837 PyObject *argv[2] = {
5864 " Possible C/C++ prototypes are:\n"
5865 " firstedge(Agraph_t *)\n"
5866 " firstedge(Agnode_t *)\n");
5872 PyObject *resultobj = 0;
5882 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
5887 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5892 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
5903 PyObject *argv[3] = {
5940 " Possible C/C++ prototypes are:\n"
5941 " nextedge(Agraph_t *,Agedge_t *)\n"
5942 " nextedge(Agnode_t *,Agedge_t *)\n");
5948 PyObject *resultobj = 0;
5955 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
5960 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5971 PyObject *argv[2] = {
5998 " Possible C/C++ prototypes are:\n"
5999 " firstout(Agraph_t *)\n"
6000 " firstout(Agnode_t *)\n");
6006 PyObject *resultobj = 0;
6016 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6021 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6026 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
6037 PyObject *argv[3] = {
6074 " Possible C/C++ prototypes are:\n"
6075 " nextout(Agraph_t *,Agedge_t *)\n"
6076 " nextout(Agnode_t *,Agedge_t *)\n");
6082 PyObject *resultobj = 0;
6086 PyObject *swig_obj[1] ;
6096 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6106 PyObject *resultobj = 0;
6113 PyObject *swig_obj[2] ;
6122 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6127 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
6137 PyObject *resultobj = 0;
6144 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6149 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6159 PyObject *resultobj = 0;
6169 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6174 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6179 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
6189 PyObject *resultobj = 0;
6196 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6201 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6212 PyObject *argv[2] = {
6239 " Possible C/C++ prototypes are:\n"
6240 " firstin(Agraph_t *)\n"
6241 " firstin(Agnode_t *)\n");
6247 PyObject *resultobj = 0;
6257 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6262 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6267 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
6278 PyObject *argv[3] = {
6315 " Possible C/C++ prototypes are:\n"
6316 " nextin(Agnode_t *,Agedge_t *)\n"
6317 " nextin(Agraph_t *,Agedge_t *)\n");
6323 PyObject *resultobj = 0;
6327 PyObject *swig_obj[1] ;
6337 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6347 PyObject *resultobj = 0;
6354 PyObject *swig_obj[2] ;
6363 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6368 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
6378 PyObject *resultobj = 0;
6385 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6390 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6400 PyObject *resultobj = 0;
6410 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6415 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6420 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
6430 PyObject *resultobj = 0;
6437 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6442 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
6453 PyObject *argv[2] = {
6480 " Possible C/C++ prototypes are:\n"
6481 " firstnode(Agraph_t *)\n"
6482 " firstnode(Agedge_t *)\n");
6488 PyObject *resultobj = 0;
6498 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6503 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
6508 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
6519 PyObject *argv[3] = {
6556 " Possible C/C++ prototypes are:\n"
6557 " nextnode(Agraph_t *,Agnode_t *)\n"
6558 " nextnode(Agedge_t *,Agnode_t *)\n");
6564 PyObject *resultobj = 0;
6571 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6576 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6586 PyObject *resultobj = 0;
6596 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6601 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6606 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
6616 PyObject *resultobj = 0;
6623 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6628 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
6638 PyObject *resultobj = 0;
6648 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6653 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
6658 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
6668 PyObject *resultobj = 0;
6675 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6680 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6691 PyObject *argv[2] = {
6727 " Possible C/C++ prototypes are:\n"
6728 " firstattr(Agraph_t *)\n"
6729 " firstattr(Agedge_t *)\n"
6730 " firstattr(Agnode_t *)\n");
6736 PyObject *resultobj = 0;
6746 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
6751 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6756 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
6767 PyObject *argv[3] = {
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");
6827 PyObject *resultobj = 0;
6834 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6839 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6840 result = (bool)
rm(arg1);
6849 PyObject *resultobj = 0;
6856 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6861 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
6862 result = (bool)
rm(arg1);
6871 PyObject *resultobj = 0;
6878 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6883 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
6884 result = (bool)
rm(arg1);
6894 PyObject *argv[2] = {
6930 " Possible C/C++ prototypes are:\n"
6933 " rm(Agedge_t *)\n");
6939 PyObject *resultobj = 0;
6941 char *arg2 = (
char *) 0 ;
6947 PyObject *swig_obj[2] ;
6956 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6961 arg2 =
reinterpret_cast< char *
>(buf2);
6962 result = (bool)
layout(arg1,(
char const *)arg2);
6973 PyObject *resultobj = 0;
6980 if ((nobjs < 1) || (nobjs > 1))
SWIG_fail;
6985 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6986 result = (bool)
render(arg1);
6995 PyObject *resultobj = 0;
6997 char *arg2 = (
char *) 0 ;
7006 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
7011 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7016 arg2 =
reinterpret_cast< char *
>(buf2);
7017 result = (bool)
render(arg1,(
char const *)arg2);
7028 PyObject *resultobj = 0;
7030 char *arg2 = (
char *) 0 ;
7031 FILE *arg3 = (FILE *) 0 ;
7042 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
7047 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7052 arg2 =
reinterpret_cast< char *
>(buf2);
7057 arg3 =
reinterpret_cast< FILE *
>(argp3);
7058 result = (bool)
render(arg1,(
char const *)arg2,arg3);
7069 PyObject *resultobj = 0;
7071 char *arg2 = (
char *) 0 ;
7072 char *arg3 = (
char *) 0 ;
7084 if ((nobjs < 3) || (nobjs > 3))
SWIG_fail;
7089 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7094 arg2 =
reinterpret_cast< char *
>(buf2);
7099 arg3 =
reinterpret_cast< char *
>(buf3);
7100 result = (bool)
render(arg1,(
char const *)arg2,(
char const *)arg3);
7114 PyObject *argv[4] = {
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");
7190 PyObject *resultobj = 0;
7192 char *arg2 = (
char *) 0 ;
7193 char *arg3 = (
char *) 0 ;
7202 PyObject *swig_obj[3] ;
7210 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7215 arg2 =
reinterpret_cast< char *
>(buf2);
7220 arg3 =
reinterpret_cast< char *
>(buf3);
7234 PyObject *resultobj = 0;
7236 char *arg2 = (
char *) 0 ;
7237 char *arg3 = (
char *) 0 ;
7246 PyObject *swig_obj[3] ;
7255 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7260 arg2 =
reinterpret_cast< char *
>(buf2);
7265 arg3 =
reinterpret_cast< char *
>(buf3);
7266 result = (bool)
renderchannel(arg1,(
char const *)arg2,(
char const *)arg3);
7279 PyObject *resultobj = 0;
7281 char *arg2 = (
char *) 0 ;
7287 PyObject *swig_obj[2] ;
7296 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7301 arg2 =
reinterpret_cast< char *
>(buf2);
7302 result = (
char *)
renderdata(arg1,(
char const *)arg2);
7313 PyObject *resultobj = 0;
7315 char *arg2 = (
char *) 0 ;
7324 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
7329 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7334 arg2 =
reinterpret_cast< char *
>(buf2);
7335 result = (bool)
write(arg1,(
char const *)arg2);
7346 PyObject *resultobj = 0;
7348 FILE *arg2 = (FILE *) 0 ;
7356 if ((nobjs < 2) || (nobjs > 2))
SWIG_fail;
7361 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7366 arg2 =
reinterpret_cast< FILE *
>(argp2);
7367 result = (bool)
write(arg1,arg2);
7377 PyObject *argv[3] = {
7413 " Possible C/C++ prototypes are:\n"
7414 " write(Agraph_t *,char const *)\n"
7415 " write(Agraph_t *,FILE *)\n");
7421 PyObject *resultobj = 0;
7425 PyObject *swig_obj[1] ;
7435 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
7436 result = (bool)
tred(arg1);
7535{0, 0, 0, 0.0, 0, 0}};
7589#define SWIGRUNTIME_DEBUG
7592#ifndef SWIG_INIT_CLIENT_DATA_TYPE
7593#define SWIG_INIT_CLIENT_DATA_TYPE void *
7628 }
while (iter!= module_head);
7639 if (
init == 0)
return;
7642#ifdef SWIGRUNTIME_DEBUG
7643 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
7650#ifdef SWIGRUNTIME_DEBUG
7660#ifdef SWIGRUNTIME_DEBUG
7661 printf(
"SWIG_InitializeModule: found type %s\n",
type->name);
7665#ifdef SWIGRUNTIME_DEBUG
7666 printf(
"SWIG_InitializeModule: found and overwrite type %s \n",
type->name);
7675 while (cast->
type) {
7678#ifdef SWIGRUNTIME_DEBUG
7679 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
7683#ifdef SWIGRUNTIME_DEBUG
7684 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
7689#ifdef SWIGRUNTIME_DEBUG
7690 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
7697#ifdef SWIGRUNTIME_DEBUG
7698 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
7700 if (!ocast) ret = 0;
7705#ifdef SWIGRUNTIME_DEBUG
7706 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
7709 type->cast->prev = cast;
7721#ifdef SWIGRUNTIME_DEBUG
7722 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
7727 while (cast->
type) {
7728 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
7732 printf(
"---- Total casts: %d\n",j);
7734 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
7747 static int init_run = 0;
7749 if (init_run)
return;
7760 equiv = equiv->
next;
7789 for (i = 0; constants[i].
type; ++i) {
7790 switch(constants[i].
type) {
7795 obj =
SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
7802 PyDict_SetItemString(d, constants[i].name, obj);
7815 for (i = 0; methods[i].ml_name; ++i) {
7816 const char *c = methods[i].ml_doc;
7818 c = strstr(c,
"swig_ptr: ");
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]);
7833 size_t shift = (ci->
ptype) - types;
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);
7840 memcpy(buff, methods[i].ml_doc, ldoc);
7842 memcpy(buff,
"swig_ptr: ", 10);
7845 methods[i].ml_doc = ndoc;
7869#if PY_VERSION_HEX >= 0x03000000
7875 PyObject *m, *d, *md, *globals;
7877#if PY_VERSION_HEX >= 0x03000000
7878 static struct PyModuleDef SWIG_module = {
7879 PyModuleDef_HEAD_INIT,
7891#if defined(SWIGPYTHON_BUILTIN)
7895 static PyGetSetDef this_getset_def = {
7896 (
char *)
"this", &SwigPyBuiltin_ThisClosure,
NULL,
NULL,
NULL
7898 static SwigPyGetSet thisown_getset_closure = {
7902 static PyGetSetDef thisown_getset_def = {
7903 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure,
NULL, &thisown_getset_closure
7905 PyTypeObject *builtin_pytype;
7906 int builtin_base_count;
7909 PyGetSetDescrObject *static_getset;
7910 PyTypeObject *metatype;
7911 PyTypeObject *swigpyobject;
7913 PyObject *public_interface, *public_symbol;
7914 PyObject *this_descr;
7915 PyObject *thisown_descr;
7919 (void)builtin_pytype;
7920 (void)builtin_base_count;
7921 (void)builtin_basetype;
7923 (void)static_getset;
7927 metatype = SwigPyObjectType();
7937#ifndef SWIGPYTHON_BUILTIN
7944#if PY_VERSION_HEX >= 0x03000000
7945 m = PyModule_Create(&SWIG_module);
7950 md = d = PyModule_GetDict(m);
7955#ifdef SWIGPYTHON_BUILTIN
7959 assert(SwigPyObject_stype);
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
7979 (void)thisown_descr;
7981 public_interface = PyList_New(0);
7983 (void)public_symbol;
7985 PyDict_SetItemString(md,
"__all__", public_interface);
7986 Py_DECREF(public_interface);
7988 SwigPyBuiltin_AddPublicSymbol(public_interface,
SwigMethods[i].ml_name);
7995#if PY_VERSION_HEX >= 0x03000000
int compare(Agobj_t *l, Agobj_t *r)
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 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,...)
static double len(glCompPoint p)
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)
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
SWIGINTERN PyObject * _wrap_firstnode__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agraph_t * firstsubg(Agraph_t *g)
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)
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Agraph_t * readstring(char *string)
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)
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)
#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)
void renderresult(Agraph_t *g, const char *format, char *outdata)
SWIGINTERN PyObject * _wrap_render__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
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)
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)
struct swig_cast_info swig_cast_info
SWIGINTERN PyObject * _wrap_nextattr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
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)
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)
#define SWIG_RuntimeError
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
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)
static swig_cast_info _swigc__p_Agnode_t[]
SWIGINTERN PyObject * _wrap_findattr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agnode_t * headof(Agedge_t *e)
SWIGINTERN PyObject * _wrap_rm__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIGTYPE_p_Agraph_t
SWIGINTERN PyObject * _wrap_getv__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
Agnode_t * firsttail(Agnode_t *n)
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)
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)
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
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)
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)
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)
SWIGINTERN PyObject * _wrap_rm__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj)
#define SWIG_AttributeError
Agraph_t * graphof(Agraph_t *g)
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)
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)
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)
#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
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)
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)
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)
#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)
bool write(Agraph_t *g, const char *filename)
char * renderdata(Agraph_t *g, const char *format)
SWIGINTERN PyObject * _wrap_rootof(PyObject *self, PyObject *args)
#define SWIG_InstallConstants(d, constants)
SWIGINTERN PyObject * _wrap_nexthead(PyObject *self, PyObject *args)
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)
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)
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)
#define SWIGTYPE_p_Agedge_t
SWIGINTERN PyObject * _wrap_findedge(PyObject *self, PyObject *args)
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
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)
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)
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)
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)
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)
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)
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)
Agraph_t * graph(char *name)
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)
SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data)
SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj)
Agsym_t * firstattr(Agraph_t *g)
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[]
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
#define SWIG_DivisionByZero
static swig_type_info _swigt__p_char
SWIGRUNTIME PyTypeObject * SwigPyObject_type(void)
#define SWIG_OverflowError
SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce(void)
SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc)
static PyObject * Swig_Capsule_global
Agnode_t * firsthead(Agnode_t *n)
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)
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)
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
#define SWIG_PYTHON_THREAD_BEGIN_BLOCK
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)
Agedge_t * protoedge(Agraph_t *g)
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)
Graphviz context library.
GVIO_API const char * format
static gvloadimage_engine_t engine
void *(* swig_converter_func)(void *, int *)
struct swig_type_info *(* swig_dycast_func)(void **)
PyObject_HEAD void * pack
SwigVar_PyObject(PyObject *obj=0)
SwigVar_PyObject & operator=(PyObject *obj)
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
PyObject *(* get_attr)(void)
struct swig_globalvar * next
int(* set_attr)(PyObject *)
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
struct swig_cast_info * cast
PyObject_HEAD swig_globalvar * vars