diff --git a/planarity/full/graph.c b/planarity/full/graph.c index a8af973..d06a1d6 100644 --- a/planarity/full/graph.c +++ b/planarity/full/graph.c @@ -1985,37 +1985,7 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, /* pyint_simplify.proto */ static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none); -/* ArgTypeTestFunc.export */ -static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); - -/* ArgTypeTest.proto */ -#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ - ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\ - __Pyx__ArgTypeTest(obj, type, name, exact)) - -/* PyLongCompare.proto */ -static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace); - -/* PyValueError_Check.proto */ -#define __Pyx_PyExc_ValueError_Check(obj) __Pyx_TypeCheck(obj, PyExc_ValueError) - -/* GetTopmostException.proto (used by SaveResetException) */ -#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE -static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); -#endif - -/* SaveResetException.proto */ -#if CYTHON_FAST_THREAD_STATE -#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) -static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); -#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) -static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); -#else -#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) -#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) -#endif - -/* PyErrExceptionMatches.proto */ +/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); @@ -2023,25 +1993,6 @@ static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tsta #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif -/* GetException.proto */ -#if CYTHON_FAST_THREAD_STATE -#define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) -static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); -#else -static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); -#endif - -/* SwapException.proto */ -#if CYTHON_FAST_THREAD_STATE -#define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) -static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); -#else -static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); -#endif - -/* PyUnicode_Unicode.proto */ -static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj); - /* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); @@ -2095,6 +2046,55 @@ static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_ve static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name); #endif +/* ArgTypeTestFunc.export */ +static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); + +/* ArgTypeTest.proto */ +#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ + ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\ + __Pyx__ArgTypeTest(obj, type, name, exact)) + +/* PyLongCompare.proto */ +static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace); + +/* PyValueError_Check.proto */ +#define __Pyx_PyExc_ValueError_Check(obj) __Pyx_TypeCheck(obj, PyExc_ValueError) + +/* GetTopmostException.proto (used by SaveResetException) */ +#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE +static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); +#endif + +/* SaveResetException.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); +#else +#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) +#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) +#endif + +/* GetException.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) +static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#else +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); +#endif + +/* SwapException.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#else +static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); +#endif + +/* PyUnicode_Unicode.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj); + /* decode_c_string.proto */ static CYTHON_INLINE PyObject* __Pyx_decode_c_string( const char* cstring, Py_ssize_t start, Py_ssize_t stop, @@ -2535,7 +2535,7 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; PyObject *__pyx_codeobj_tab[39]; - PyObject *__pyx_string_tab[221]; + PyObject *__pyx_string_tab[224]; PyObject *__pyx_number_tab[1]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ @@ -2578,226 +2578,229 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #endif /* #### Code section: constant_name_defines ### */ #define __pyx_kp_u_ __pyx_string_tab[0] -#define __pyx_kp_u_Failed_to_convert_C_string_to_Py __pyx_string_tab[1] -#define __pyx_kp_u_Failed_to_extend_graph_with_Draw __pyx_string_tab[2] -#define __pyx_kp_u_Failed_to_extend_graph_with_K23S __pyx_string_tab[3] -#define __pyx_kp_u_Failed_to_extend_graph_with_K33S __pyx_string_tab[4] -#define __pyx_kp_u_Failed_to_extend_graph_with_K4Se __pyx_string_tab[5] -#define __pyx_kp_u_Failed_to_extend_graph_with_Oute __pyx_string_tab[6] -#define __pyx_kp_u_Failed_to_extend_graph_with_Plan __pyx_string_tab[7] -#define __pyx_kp_u_Failed_to_render_embedding_to_C __pyx_string_tab[8] -#define __pyx_kp_u_Failed_to_render_embedding_to_fi __pyx_string_tab[9] -#define __pyx_kp_u_Graph_is_not_initialized __pyx_string_tab[10] -#define __pyx_kp_u_Invalid_destination_graph_wrappe __pyx_string_tab[11] -#define __pyx_kp_u_Invalid_graph_format_specifier __pyx_string_tab[12] -#define __pyx_kp_u_Invalid_link_index_for_ulink __pyx_string_tab[13] -#define __pyx_kp_u_Invalid_link_index_for_vlink __pyx_string_tab[14] -#define __pyx_kp_u_Invalid_source_graph_wrapped_gra __pyx_string_tab[15] -#define __pyx_kp_u_None __pyx_string_tab[16] -#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[17] -#define __pyx_kp_u_Source_and_destination_graphs_mu __pyx_string_tab[18] -#define __pyx_kp_u_Source_graph_has_not_been_initia __pyx_string_tab[19] -#define __pyx_kp_u_Unable_to_add_edge_u_v __pyx_string_tab[20] -#define __pyx_kp_u__2 __pyx_string_tab[21] -#define __pyx_kp_u__3 __pyx_string_tab[22] -#define __pyx_kp_u__4 __pyx_string_tab[23] -#define __pyx_kp_u__5 __pyx_string_tab[24] -#define __pyx_kp_u_add_note __pyx_string_tab[25] -#define __pyx_kp_u_and_vlink __pyx_string_tab[26] -#define __pyx_kp_u_disable __pyx_string_tab[27] -#define __pyx_kp_u_enable __pyx_string_tab[28] -#define __pyx_kp_u_failed __pyx_string_tab[29] -#define __pyx_kp_u_gc __pyx_string_tab[30] -#define __pyx_kp_u_gp_CopyGraph_failed __pyx_string_tab[31] -#define __pyx_kp_u_gp_DeleteEdge_failed_invalid_edg __pyx_string_tab[32] -#define __pyx_kp_u_gp_DupGraph_failed __pyx_string_tab[33] -#define __pyx_kp_u_gp_EdgeInUse_failed_invalid_edge __pyx_string_tab[34] -#define __pyx_kp_u_gp_EnsureEdgeCapacity_failed_to __pyx_string_tab[35] -#define __pyx_kp_u_gp_GetFirstEdge_failed_invalid_v __pyx_string_tab[36] -#define __pyx_kp_u_gp_GetNeighbor_failed_invalid_ed __pyx_string_tab[37] -#define __pyx_kp_u_gp_GetNextEdge_failed_invalid_ed __pyx_string_tab[38] -#define __pyx_kp_u_gp_InitGraph_failed __pyx_string_tab[39] -#define __pyx_kp_u_gp_New_failed __pyx_string_tab[40] -#define __pyx_kp_u_gp_Read_failed __pyx_string_tab[41] -#define __pyx_kp_u_gp_Write_of_graph_to __pyx_string_tab[42] -#define __pyx_kp_u_is_not_a_valid_vertex_label __pyx_string_tab[43] -#define __pyx_kp_u_is_not_one_of_gam __pyx_string_tab[44] -#define __pyx_kp_u_isenabled __pyx_string_tab[45] -#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[46] -#define __pyx_kp_u_planarity_full_graph_pyx __pyx_string_tab[47] -#define __pyx_kp_u_stringsource __pyx_string_tab[48] -#define __pyx_kp_u_with_ulink __pyx_string_tab[49] -#define __pyx_n_u_EMBEDFLAGS_DRAWPLANAR __pyx_string_tab[50] -#define __pyx_n_u_EMBEDFLAGS_OUTERPLANAR __pyx_string_tab[51] -#define __pyx_n_u_EMBEDFLAGS_PLANAR __pyx_string_tab[52] -#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK23 __pyx_string_tab[53] -#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK33 __pyx_string_tab[54] -#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK4 __pyx_string_tab[55] -#define __pyx_n_u_FileName __pyx_string_tab[56] -#define __pyx_n_u_Graph __pyx_string_tab[57] -#define __pyx_n_u_Graph___reduce_cython __pyx_string_tab[58] -#define __pyx_n_u_Graph___setstate_cython __pyx_string_tab[59] -#define __pyx_n_u_Graph_gp_AddEdge __pyx_string_tab[60] -#define __pyx_n_u_Graph_gp_CopyGraph __pyx_string_tab[61] -#define __pyx_n_u_Graph_gp_DeleteEdge __pyx_string_tab[62] -#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToFile __pyx_string_tab[63] -#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToStri __pyx_string_tab[64] -#define __pyx_n_u_Graph_gp_DupGraph __pyx_string_tab[65] -#define __pyx_n_u_Graph_gp_EdgeArraySize __pyx_string_tab[66] -#define __pyx_n_u_Graph_gp_EdgeArrayStart __pyx_string_tab[67] -#define __pyx_n_u_Graph_gp_EdgeInUse __pyx_string_tab[68] -#define __pyx_n_u_Graph_gp_EdgeInUseArraySize __pyx_string_tab[69] -#define __pyx_n_u_Graph_gp_Embed __pyx_string_tab[70] -#define __pyx_n_u_Graph_gp_EnsureEdgeCapacity __pyx_string_tab[71] -#define __pyx_n_u_Graph_gp_ExtendWith_DrawPlanar __pyx_string_tab[72] -#define __pyx_n_u_Graph_gp_ExtendWith_K23Search __pyx_string_tab[73] -#define __pyx_n_u_Graph_gp_ExtendWith_K33Search __pyx_string_tab[74] -#define __pyx_n_u_Graph_gp_ExtendWith_K4Search __pyx_string_tab[75] -#define __pyx_n_u_Graph_gp_ExtendWith_Outerplanari __pyx_string_tab[76] -#define __pyx_n_u_Graph_gp_ExtendWith_Planarity __pyx_string_tab[77] -#define __pyx_n_u_Graph_gp_FindEdge __pyx_string_tab[78] -#define __pyx_n_u_Graph_gp_GetEdgeCapacity __pyx_string_tab[79] -#define __pyx_n_u_Graph_gp_GetFirstEdge __pyx_string_tab[80] -#define __pyx_n_u_Graph_gp_GetFirstVertex __pyx_string_tab[81] -#define __pyx_n_u_Graph_gp_GetLastVertex __pyx_string_tab[82] -#define __pyx_n_u_Graph_gp_GetN __pyx_string_tab[83] -#define __pyx_n_u_Graph_gp_GetNeighbor __pyx_string_tab[84] -#define __pyx_n_u_Graph_gp_GetNextEdge __pyx_string_tab[85] -#define __pyx_n_u_Graph_gp_GetVertexDegree __pyx_string_tab[86] -#define __pyx_n_u_Graph_gp_InitGraph __pyx_string_tab[87] -#define __pyx_n_u_Graph_gp_IsEdge __pyx_string_tab[88] -#define __pyx_n_u_Graph_gp_IsVertex __pyx_string_tab[89] -#define __pyx_n_u_Graph_gp_Read __pyx_string_tab[90] -#define __pyx_n_u_Graph_gp_ReinitializeGraph __pyx_string_tab[91] -#define __pyx_n_u_Graph_gp_TestEmbedResultIntegrit __pyx_string_tab[92] -#define __pyx_n_u_Graph_gp_VertexInRangeAscending __pyx_string_tab[93] -#define __pyx_n_u_Graph_gp_Write __pyx_string_tab[94] -#define __pyx_n_u_NIL __pyx_string_tab[95] -#define __pyx_n_u_NONEMBEDDABLE __pyx_string_tab[96] -#define __pyx_n_u_NOTOK __pyx_string_tab[97] -#define __pyx_n_u_OK __pyx_string_tab[98] -#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[99] -#define __pyx_n_u_a __pyx_string_tab[100] -#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[101] -#define __pyx_n_u_cline_in_traceback __pyx_string_tab[102] -#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[103] -#define __pyx_n_u_e __pyx_string_tab[104] -#define __pyx_n_u_embedFlags __pyx_string_tab[105] -#define __pyx_n_u_embed_result __pyx_string_tab[106] -#define __pyx_n_u_encoded __pyx_string_tab[107] -#define __pyx_n_u_encoded_version __pyx_string_tab[108] -#define __pyx_n_u_func __pyx_string_tab[109] -#define __pyx_n_u_g __pyx_string_tab[110] -#define __pyx_n_u_getstate __pyx_string_tab[111] -#define __pyx_n_u_gp_AddEdge __pyx_string_tab[112] -#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[113] -#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[114] -#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[115] -#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[116] -#define __pyx_n_u_gp_DupGraph __pyx_string_tab[117] -#define __pyx_n_u_gp_EdgeArraySize __pyx_string_tab[118] -#define __pyx_n_u_gp_EdgeArrayStart __pyx_string_tab[119] -#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[120] -#define __pyx_n_u_gp_EdgeInUseArraySize __pyx_string_tab[121] -#define __pyx_n_u_gp_Embed __pyx_string_tab[122] -#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[123] -#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[124] -#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[125] -#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[126] -#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[127] -#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[128] -#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[129] -#define __pyx_n_u_gp_FindEdge __pyx_string_tab[130] -#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[131] -#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[132] -#define __pyx_n_u_gp_GetFirstVertex __pyx_string_tab[133] -#define __pyx_n_u_gp_GetLastVertex __pyx_string_tab[134] -#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[135] -#define __pyx_n_u_gp_GetN __pyx_string_tab[136] -#define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[137] -#define __pyx_n_u_gp_GetNextEdge __pyx_string_tab[138] -#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[139] -#define __pyx_n_u_gp_GetVertexDegree __pyx_string_tab[140] -#define __pyx_n_u_gp_InitGraph __pyx_string_tab[141] -#define __pyx_n_u_gp_IsEdge __pyx_string_tab[142] -#define __pyx_n_u_gp_IsVertex __pyx_string_tab[143] -#define __pyx_n_u_gp_Read __pyx_string_tab[144] -#define __pyx_n_u_gp_ReinitializeGraph __pyx_string_tab[145] -#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[146] -#define __pyx_n_u_gp_VertexInRangeAscending __pyx_string_tab[147] -#define __pyx_n_u_gp_Write __pyx_string_tab[148] -#define __pyx_n_u_infile_name __pyx_string_tab[149] -#define __pyx_n_u_int __pyx_string_tab[150] -#define __pyx_n_u_is_coroutine __pyx_string_tab[151] -#define __pyx_n_u_items __pyx_string_tab[152] -#define __pyx_n_u_m __pyx_string_tab[153] -#define __pyx_n_u_main __pyx_string_tab[154] -#define __pyx_n_u_mode __pyx_string_tab[155] -#define __pyx_n_u_mode_code __pyx_string_tab[156] -#define __pyx_n_u_module __pyx_string_tab[157] -#define __pyx_n_u_n __pyx_string_tab[158] -#define __pyx_n_u_name __pyx_string_tab[159] -#define __pyx_n_u_new_edge_capacity __pyx_string_tab[160] -#define __pyx_n_u_new_graph __pyx_string_tab[161] -#define __pyx_n_u_outfile_name __pyx_string_tab[162] -#define __pyx_n_u_planarity_full_graph __pyx_string_tab[163] -#define __pyx_n_u_pop __pyx_string_tab[164] -#define __pyx_n_u_pyx_state __pyx_string_tab[165] -#define __pyx_n_u_qualname __pyx_string_tab[166] -#define __pyx_n_u_reduce __pyx_string_tab[167] -#define __pyx_n_u_reduce_cython __pyx_string_tab[168] -#define __pyx_n_u_reduce_ex __pyx_string_tab[169] -#define __pyx_n_u_renditionString __pyx_string_tab[170] -#define __pyx_n_u_return __pyx_string_tab[171] -#define __pyx_n_u_self __pyx_string_tab[172] -#define __pyx_n_u_set_name __pyx_string_tab[173] -#define __pyx_n_u_setdefault __pyx_string_tab[174] -#define __pyx_n_u_setstate __pyx_string_tab[175] -#define __pyx_n_u_setstate_cython __pyx_string_tab[176] -#define __pyx_n_u_src_graph __pyx_string_tab[177] -#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[178] -#define __pyx_n_u_string_conversion_error __pyx_string_tab[179] -#define __pyx_n_u_test __pyx_string_tab[180] -#define __pyx_n_u_theFileName __pyx_string_tab[181] -#define __pyx_n_u_theGraph_dup __pyx_string_tab[182] -#define __pyx_n_u_u __pyx_string_tab[183] -#define __pyx_n_u_ulink __pyx_string_tab[184] -#define __pyx_n_u_v __pyx_string_tab[185] -#define __pyx_n_u_values __pyx_string_tab[186] -#define __pyx_n_u_vlink __pyx_string_tab[187] -#define __pyx_kp_b_iso88591_4_Q_aq_Q __pyx_string_tab[188] -#define __pyx_kp_b_iso88591_A_1D __pyx_string_tab[189] -#define __pyx_kp_b_iso88591_A_1D_L_aq __pyx_string_tab[190] -#define __pyx_kp_b_iso88591_A_1_l_a_aq __pyx_string_tab[191] -#define __pyx_kp_b_iso88591_A_4_NlZ_a_1 __pyx_string_tab[192] -#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_M_l __pyx_string_tab[193] -#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[194] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_at_q __pyx_string_tab[195] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a __pyx_string_tab[196] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L __pyx_string_tab[197] -#define __pyx_kp_b_iso88591_A_4t_q_a_B_1 __pyx_string_tab[198] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_1D_A __pyx_string_tab[199] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S __pyx_string_tab[200] -#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W __pyx_string_tab[201] -#define __pyx_kp_b_iso88591_A_AT_aq __pyx_string_tab[202] -#define __pyx_kp_b_iso88591_A_M_l_aq __pyx_string_tab[203] -#define __pyx_kp_b_iso88591_A_Q_1_l_CTTWWX_aq_A_a __pyx_string_tab[204] -#define __pyx_kp_b_iso88591_A_Qd_l_aq __pyx_string_tab[205] -#define __pyx_kp_b_iso88591_A_Y_0_S_E_A_m5_1_4q_A_31A_q_IQd __pyx_string_tab[206] -#define __pyx_kp_b_iso88591_A_a __pyx_string_tab[207] -#define __pyx_kp_b_iso88591_A_at1 __pyx_string_tab[208] -#define __pyx_kp_b_iso88591_A_at1_2 __pyx_string_tab[209] -#define __pyx_kp_b_iso88591_A_c_s_q_L __pyx_string_tab[210] -#define __pyx_kp_b_iso88591_A_q_A_HAT_Z_1_aq __pyx_string_tab[211] -#define __pyx_kp_b_iso88591_A_q_q_L_YZ_a_EQa __pyx_string_tab[212] -#define __pyx_kp_b_iso88591_A_s_A_r_d_q_L __pyx_string_tab[213] -#define __pyx_kp_b_iso88591_A_s_A_s_t1_l __pyx_string_tab[214] -#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[215] -#define __pyx_kp_b_iso88591_H __pyx_string_tab[216] -#define __pyx_kp_b_iso88591_Q __pyx_string_tab[217] -#define __pyx_kp_b_iso88591_Q_6l_4q_1_Qa_uA_9A_a_q __pyx_string_tab[218] -#define __pyx_kp_b_iso88591_YYZ_4AT_EWWccd __pyx_string_tab[219] -#define __pyx_kp_b_iso88591_l __pyx_string_tab[220] +#define __pyx_kp_u_Failed_embed_integrity_check __pyx_string_tab[1] +#define __pyx_kp_u_Failed_to_convert_C_string_to_Py __pyx_string_tab[2] +#define __pyx_kp_u_Failed_to_extend_graph_with_Draw __pyx_string_tab[3] +#define __pyx_kp_u_Failed_to_extend_graph_with_K23S __pyx_string_tab[4] +#define __pyx_kp_u_Failed_to_extend_graph_with_K33S __pyx_string_tab[5] +#define __pyx_kp_u_Failed_to_extend_graph_with_K4Se __pyx_string_tab[6] +#define __pyx_kp_u_Failed_to_extend_graph_with_Oute __pyx_string_tab[7] +#define __pyx_kp_u_Failed_to_extend_graph_with_Plan __pyx_string_tab[8] +#define __pyx_kp_u_Failed_to_perform_embed_operatio __pyx_string_tab[9] +#define __pyx_kp_u_Failed_to_render_embedding_to_C __pyx_string_tab[10] +#define __pyx_kp_u_Failed_to_render_embedding_to_fi __pyx_string_tab[11] +#define __pyx_kp_u_Graph_is_not_initialized __pyx_string_tab[12] +#define __pyx_kp_u_Invalid_destination_graph_wrappe __pyx_string_tab[13] +#define __pyx_kp_u_Invalid_graph_format_specifier __pyx_string_tab[14] +#define __pyx_kp_u_Invalid_link_index_for_ulink __pyx_string_tab[15] +#define __pyx_kp_u_Invalid_link_index_for_vlink __pyx_string_tab[16] +#define __pyx_kp_u_Invalid_source_graph_wrapped_gra __pyx_string_tab[17] +#define __pyx_kp_u_None __pyx_string_tab[18] +#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[19] +#define __pyx_kp_u_Source_and_destination_graphs_mu __pyx_string_tab[20] +#define __pyx_kp_u_Source_graph_has_not_been_initia __pyx_string_tab[21] +#define __pyx_kp_u_Unable_to_add_edge_u_v __pyx_string_tab[22] +#define __pyx_kp_u__2 __pyx_string_tab[23] +#define __pyx_kp_u__3 __pyx_string_tab[24] +#define __pyx_kp_u__4 __pyx_string_tab[25] +#define __pyx_kp_u__5 __pyx_string_tab[26] +#define __pyx_kp_u_add_note __pyx_string_tab[27] +#define __pyx_kp_u_and_vlink __pyx_string_tab[28] +#define __pyx_kp_u_disable __pyx_string_tab[29] +#define __pyx_kp_u_enable __pyx_string_tab[30] +#define __pyx_kp_u_failed __pyx_string_tab[31] +#define __pyx_kp_u_gc __pyx_string_tab[32] +#define __pyx_kp_u_gp_CopyGraph_failed __pyx_string_tab[33] +#define __pyx_kp_u_gp_DeleteEdge_failed_invalid_edg __pyx_string_tab[34] +#define __pyx_kp_u_gp_DupGraph_failed __pyx_string_tab[35] +#define __pyx_kp_u_gp_EdgeInUse_failed_invalid_edge __pyx_string_tab[36] +#define __pyx_kp_u_gp_EnsureEdgeCapacity_failed_to __pyx_string_tab[37] +#define __pyx_kp_u_gp_GetFirstEdge_failed_invalid_v __pyx_string_tab[38] +#define __pyx_kp_u_gp_GetNeighbor_failed_invalid_ed __pyx_string_tab[39] +#define __pyx_kp_u_gp_GetNextEdge_failed_invalid_ed __pyx_string_tab[40] +#define __pyx_kp_u_gp_InitGraph_failed __pyx_string_tab[41] +#define __pyx_kp_u_gp_New_failed __pyx_string_tab[42] +#define __pyx_kp_u_gp_Read_failed __pyx_string_tab[43] +#define __pyx_kp_u_gp_Write_of_graph_to __pyx_string_tab[44] +#define __pyx_kp_u_is_not_a_valid_vertex_label __pyx_string_tab[45] +#define __pyx_kp_u_is_not_one_of_gam __pyx_string_tab[46] +#define __pyx_kp_u_isenabled __pyx_string_tab[47] +#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[48] +#define __pyx_kp_u_planarity_full_graph_pyx __pyx_string_tab[49] +#define __pyx_kp_u_stringsource __pyx_string_tab[50] +#define __pyx_kp_u_with_ulink __pyx_string_tab[51] +#define __pyx_n_u_EMBEDFLAGS_DRAWPLANAR __pyx_string_tab[52] +#define __pyx_n_u_EMBEDFLAGS_OUTERPLANAR __pyx_string_tab[53] +#define __pyx_n_u_EMBEDFLAGS_PLANAR __pyx_string_tab[54] +#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK23 __pyx_string_tab[55] +#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK33 __pyx_string_tab[56] +#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK4 __pyx_string_tab[57] +#define __pyx_n_u_FileName __pyx_string_tab[58] +#define __pyx_n_u_Graph __pyx_string_tab[59] +#define __pyx_n_u_Graph___reduce_cython __pyx_string_tab[60] +#define __pyx_n_u_Graph___setstate_cython __pyx_string_tab[61] +#define __pyx_n_u_Graph_gp_AddEdge __pyx_string_tab[62] +#define __pyx_n_u_Graph_gp_CopyGraph __pyx_string_tab[63] +#define __pyx_n_u_Graph_gp_DeleteEdge __pyx_string_tab[64] +#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToFile __pyx_string_tab[65] +#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToStri __pyx_string_tab[66] +#define __pyx_n_u_Graph_gp_DupGraph __pyx_string_tab[67] +#define __pyx_n_u_Graph_gp_EdgeArraySize __pyx_string_tab[68] +#define __pyx_n_u_Graph_gp_EdgeArrayStart __pyx_string_tab[69] +#define __pyx_n_u_Graph_gp_EdgeInUse __pyx_string_tab[70] +#define __pyx_n_u_Graph_gp_EdgeInUseArraySize __pyx_string_tab[71] +#define __pyx_n_u_Graph_gp_Embed __pyx_string_tab[72] +#define __pyx_n_u_Graph_gp_EnsureEdgeCapacity __pyx_string_tab[73] +#define __pyx_n_u_Graph_gp_ExtendWith_DrawPlanar __pyx_string_tab[74] +#define __pyx_n_u_Graph_gp_ExtendWith_K23Search __pyx_string_tab[75] +#define __pyx_n_u_Graph_gp_ExtendWith_K33Search __pyx_string_tab[76] +#define __pyx_n_u_Graph_gp_ExtendWith_K4Search __pyx_string_tab[77] +#define __pyx_n_u_Graph_gp_ExtendWith_Outerplanari __pyx_string_tab[78] +#define __pyx_n_u_Graph_gp_ExtendWith_Planarity __pyx_string_tab[79] +#define __pyx_n_u_Graph_gp_FindEdge __pyx_string_tab[80] +#define __pyx_n_u_Graph_gp_GetEdgeCapacity __pyx_string_tab[81] +#define __pyx_n_u_Graph_gp_GetFirstEdge __pyx_string_tab[82] +#define __pyx_n_u_Graph_gp_GetFirstVertex __pyx_string_tab[83] +#define __pyx_n_u_Graph_gp_GetLastVertex __pyx_string_tab[84] +#define __pyx_n_u_Graph_gp_GetN __pyx_string_tab[85] +#define __pyx_n_u_Graph_gp_GetNeighbor __pyx_string_tab[86] +#define __pyx_n_u_Graph_gp_GetNextEdge __pyx_string_tab[87] +#define __pyx_n_u_Graph_gp_GetVertexDegree __pyx_string_tab[88] +#define __pyx_n_u_Graph_gp_InitGraph __pyx_string_tab[89] +#define __pyx_n_u_Graph_gp_IsEdge __pyx_string_tab[90] +#define __pyx_n_u_Graph_gp_IsVertex __pyx_string_tab[91] +#define __pyx_n_u_Graph_gp_Read __pyx_string_tab[92] +#define __pyx_n_u_Graph_gp_ReinitializeGraph __pyx_string_tab[93] +#define __pyx_n_u_Graph_gp_TestEmbedResultIntegrit __pyx_string_tab[94] +#define __pyx_n_u_Graph_gp_VertexInRangeAscending __pyx_string_tab[95] +#define __pyx_n_u_Graph_gp_Write __pyx_string_tab[96] +#define __pyx_n_u_NIL __pyx_string_tab[97] +#define __pyx_n_u_NONEMBEDDABLE __pyx_string_tab[98] +#define __pyx_n_u_NOTOK __pyx_string_tab[99] +#define __pyx_n_u_OK __pyx_string_tab[100] +#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[101] +#define __pyx_n_u_a __pyx_string_tab[102] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[103] +#define __pyx_n_u_check_result __pyx_string_tab[104] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[105] +#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[106] +#define __pyx_n_u_e __pyx_string_tab[107] +#define __pyx_n_u_embedFlags __pyx_string_tab[108] +#define __pyx_n_u_embed_result __pyx_string_tab[109] +#define __pyx_n_u_encoded __pyx_string_tab[110] +#define __pyx_n_u_encoded_version __pyx_string_tab[111] +#define __pyx_n_u_func __pyx_string_tab[112] +#define __pyx_n_u_g __pyx_string_tab[113] +#define __pyx_n_u_getstate __pyx_string_tab[114] +#define __pyx_n_u_gp_AddEdge __pyx_string_tab[115] +#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[116] +#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[117] +#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[118] +#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[119] +#define __pyx_n_u_gp_DupGraph __pyx_string_tab[120] +#define __pyx_n_u_gp_EdgeArraySize __pyx_string_tab[121] +#define __pyx_n_u_gp_EdgeArrayStart __pyx_string_tab[122] +#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[123] +#define __pyx_n_u_gp_EdgeInUseArraySize __pyx_string_tab[124] +#define __pyx_n_u_gp_Embed __pyx_string_tab[125] +#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[126] +#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[127] +#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[128] +#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[129] +#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[130] +#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[131] +#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[132] +#define __pyx_n_u_gp_FindEdge __pyx_string_tab[133] +#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[134] +#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[135] +#define __pyx_n_u_gp_GetFirstVertex __pyx_string_tab[136] +#define __pyx_n_u_gp_GetLastVertex __pyx_string_tab[137] +#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[138] +#define __pyx_n_u_gp_GetN __pyx_string_tab[139] +#define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[140] +#define __pyx_n_u_gp_GetNextEdge __pyx_string_tab[141] +#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[142] +#define __pyx_n_u_gp_GetVertexDegree __pyx_string_tab[143] +#define __pyx_n_u_gp_InitGraph __pyx_string_tab[144] +#define __pyx_n_u_gp_IsEdge __pyx_string_tab[145] +#define __pyx_n_u_gp_IsVertex __pyx_string_tab[146] +#define __pyx_n_u_gp_Read __pyx_string_tab[147] +#define __pyx_n_u_gp_ReinitializeGraph __pyx_string_tab[148] +#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[149] +#define __pyx_n_u_gp_VertexInRangeAscending __pyx_string_tab[150] +#define __pyx_n_u_gp_Write __pyx_string_tab[151] +#define __pyx_n_u_infile_name __pyx_string_tab[152] +#define __pyx_n_u_int __pyx_string_tab[153] +#define __pyx_n_u_is_coroutine __pyx_string_tab[154] +#define __pyx_n_u_items __pyx_string_tab[155] +#define __pyx_n_u_m __pyx_string_tab[156] +#define __pyx_n_u_main __pyx_string_tab[157] +#define __pyx_n_u_mode __pyx_string_tab[158] +#define __pyx_n_u_mode_code __pyx_string_tab[159] +#define __pyx_n_u_module __pyx_string_tab[160] +#define __pyx_n_u_n __pyx_string_tab[161] +#define __pyx_n_u_name __pyx_string_tab[162] +#define __pyx_n_u_new_edge_capacity __pyx_string_tab[163] +#define __pyx_n_u_new_graph __pyx_string_tab[164] +#define __pyx_n_u_outfile_name __pyx_string_tab[165] +#define __pyx_n_u_planarity_full_graph __pyx_string_tab[166] +#define __pyx_n_u_pop __pyx_string_tab[167] +#define __pyx_n_u_pyx_state __pyx_string_tab[168] +#define __pyx_n_u_qualname __pyx_string_tab[169] +#define __pyx_n_u_reduce __pyx_string_tab[170] +#define __pyx_n_u_reduce_cython __pyx_string_tab[171] +#define __pyx_n_u_reduce_ex __pyx_string_tab[172] +#define __pyx_n_u_renditionString __pyx_string_tab[173] +#define __pyx_n_u_return __pyx_string_tab[174] +#define __pyx_n_u_self __pyx_string_tab[175] +#define __pyx_n_u_set_name __pyx_string_tab[176] +#define __pyx_n_u_setdefault __pyx_string_tab[177] +#define __pyx_n_u_setstate __pyx_string_tab[178] +#define __pyx_n_u_setstate_cython __pyx_string_tab[179] +#define __pyx_n_u_src_graph __pyx_string_tab[180] +#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[181] +#define __pyx_n_u_string_conversion_error __pyx_string_tab[182] +#define __pyx_n_u_test __pyx_string_tab[183] +#define __pyx_n_u_theFileName __pyx_string_tab[184] +#define __pyx_n_u_theGraph_dup __pyx_string_tab[185] +#define __pyx_n_u_u __pyx_string_tab[186] +#define __pyx_n_u_ulink __pyx_string_tab[187] +#define __pyx_n_u_v __pyx_string_tab[188] +#define __pyx_n_u_values __pyx_string_tab[189] +#define __pyx_n_u_vlink __pyx_string_tab[190] +#define __pyx_kp_b_iso88591_4_Q_aq_Q __pyx_string_tab[191] +#define __pyx_kp_b_iso88591_A_1D __pyx_string_tab[192] +#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[193] +#define __pyx_kp_b_iso88591_A_1_l_Q_aq __pyx_string_tab[194] +#define __pyx_kp_b_iso88591_A_4_NcQR_a_1 __pyx_string_tab[195] +#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_M_l __pyx_string_tab[196] +#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[197] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_at_q __pyx_string_tab[198] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a __pyx_string_tab[199] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L __pyx_string_tab[200] +#define __pyx_kp_b_iso88591_A_4t_q_a_B_1 __pyx_string_tab[201] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_1D_A __pyx_string_tab[202] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S __pyx_string_tab[203] +#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W __pyx_string_tab[204] +#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[205] +#define __pyx_kp_b_iso88591_A_M_l_S_aq __pyx_string_tab[206] +#define __pyx_kp_b_iso88591_A_Q_1_l_CTTWWX_aq_A_a __pyx_string_tab[207] +#define __pyx_kp_b_iso88591_A_Qd_c_aq __pyx_string_tab[208] +#define __pyx_kp_b_iso88591_A_Y_0_S_E_A_m5_1_4q_A_31A_q_IQd __pyx_string_tab[209] +#define __pyx_kp_b_iso88591_A_a __pyx_string_tab[210] +#define __pyx_kp_b_iso88591_A_at1 __pyx_string_tab[211] +#define __pyx_kp_b_iso88591_A_at1_2 __pyx_string_tab[212] +#define __pyx_kp_b_iso88591_A_c_s_q_L __pyx_string_tab[213] +#define __pyx_kp_b_iso88591_A_q_A_HAT_Zs_aq __pyx_string_tab[214] +#define __pyx_kp_b_iso88591_A_q_q_L_SPQ_a_EQa __pyx_string_tab[215] +#define __pyx_kp_b_iso88591_A_s_A_r_d_q_L __pyx_string_tab[216] +#define __pyx_kp_b_iso88591_A_s_A_s_t1_l __pyx_string_tab[217] +#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[218] +#define __pyx_kp_b_iso88591_H __pyx_string_tab[219] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[220] +#define __pyx_kp_b_iso88591_Q_6l_4q_1_Qa_uA_9A_a_q __pyx_string_tab[221] +#define __pyx_kp_b_iso88591_YYZ_A_L_2_a_3d_s_aq_q __pyx_string_tab[222] +#define __pyx_kp_b_iso88591_l_3d_s_aq_q __pyx_string_tab[223] #define __pyx_int_0 __pyx_number_tab[0] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE @@ -2816,7 +2819,7 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_ptype_9planarity_4full_5graph_Graph); Py_CLEAR(clear_module_state->__pyx_type_9planarity_4full_5graph_Graph); for (int i=0; i<39; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<221; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } + for (int i=0; i<224; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } for (int i=0; i<1; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); } /* #### Code section: module_state_clear_contents ### */ /* CommonTypesMetaclass.module_state_clear */ @@ -2843,7 +2846,7 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void Py_VISIT(traverse_module_state->__pyx_ptype_9planarity_4full_5graph_Graph); Py_VISIT(traverse_module_state->__pyx_type_9planarity_4full_5graph_Graph); for (int i=0; i<39; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<221; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } + for (int i=0; i<224; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } for (int i=0; i<1; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); } /* #### Code section: module_state_traverse_contents ### */ /* CommonTypesMetaclass.module_state_traverse */ @@ -5306,7 +5309,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_GetN(struct __pyx_ * return cgraphLib.gp_GetN(self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< - * if cgraphLib.gp_InitGraph(self._theGraph, n) != cappconst.OK: + * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ @@ -5399,10 +5402,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_InitGraph(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_n) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -5411,37 +5415,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_InitGraph(struct _ /* "planarity/full/graph.pyx":126 * * def gp_InitGraph(self, int n): - * if cgraphLib.gp_InitGraph(self._theGraph, n) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_InitGraph() failed.") * */ - __pyx_t_1 = (gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 126, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":127 * def gp_InitGraph(self, int n): - * if cgraphLib.gp_InitGraph(self._theGraph, n) != cappconst.OK: + * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") # <<<<<<<<<<<<<< * * def gp_ReinitializeGraph(self): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_InitGraph_failed}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_gp_InitGraph_failed}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 127, __pyx_L1_error) /* "planarity/full/graph.pyx":126 * * def gp_InitGraph(self, int n): - * if cgraphLib.gp_InitGraph(self._theGraph, n) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_InitGraph() failed.") * */ @@ -5451,7 +5463,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_InitGraph(struct _ * return cgraphLib.gp_GetN(self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< - * if cgraphLib.gp_InitGraph(self._theGraph, n) != cappconst.OK: + * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ @@ -5459,6 +5471,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_InitGraph(struct _ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_InitGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -5974,16 +5987,24 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_CopyGraph(struct _ /* "planarity/full/graph.pyx":153 * "to copy graphP struct.") * - * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_CopyGraph() failed.") * */ - __pyx_t_1 = (gp_CopyGraph(__pyx_v_self->_theGraph, __pyx_v_src_graph->_theGraph) != OK); + __pyx_t_2 = __Pyx_PyLong_From_int(gp_CopyGraph(__pyx_v_self->_theGraph, __pyx_v_src_graph->_theGraph)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_9 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 153, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 153, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(__pyx_t_1)) { /* "planarity/full/graph.pyx":154 * - * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != cappconst.OK: + * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: * raise RuntimeError(f"gp_CopyGraph() failed.") # <<<<<<<<<<<<<< * * def gp_DupGraph(self) -> Graph: @@ -5992,19 +6013,19 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_CopyGraph(struct _ __pyx_t_4 = 1; { PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_CopyGraph_failed}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_9, 0, 0, 0); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __PYX_ERR(0, 154, __pyx_L1_error) /* "planarity/full/graph.pyx":153 * "to copy graphP struct.") * - * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_CopyGraph() failed.") * */ @@ -6330,9 +6351,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_Read(struct __pyx_ __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; - int __pyx_t_3; + PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - size_t __pyx_t_5; + int __pyx_t_5; + size_t __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6359,7 +6381,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_Read(struct __pyx_ * cdef bytes encoded = infile_name.encode('utf-8') * cdef const char *FileName = encoded # <<<<<<<<<<<<<< * - * if cgraphLib.gp_Read(self._theGraph, FileName) != cappconst.OK: + * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: */ __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 170, __pyx_L1_error) __pyx_v_FileName = __pyx_t_2; @@ -6367,37 +6389,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_Read(struct __pyx_ /* "planarity/full/graph.pyx":172 * cdef const char *FileName = encoded * - * if cgraphLib.gp_Read(self._theGraph, FileName) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_Read() failed.") * */ - __pyx_t_3 = (gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName) != OK); - if (unlikely(__pyx_t_3)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 172, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":173 * - * if cgraphLib.gp_Read(self._theGraph, FileName) != cappconst.OK: + * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: * raise RuntimeError(f"gp_Read() failed.") # <<<<<<<<<<<<<< * * def gp_Write(self, str outfile_name, str mode): */ - __pyx_t_4 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_Read_failed}; - __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 173, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_Read_failed}; + __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 173, __pyx_L1_error) /* "planarity/full/graph.pyx":172 * cdef const char *FileName = encoded * - * if cgraphLib.gp_Read(self._theGraph, FileName) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_Read() failed.") * */ @@ -6416,6 +6446,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_Read(struct __pyx_ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Read", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; @@ -6704,7 +6735,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_Write(struct __pyx * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != cappconst.OK: + * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: */ __pyx_t_10 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(0, 188, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_10; @@ -6712,17 +6743,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_Write(struct __pyx /* "planarity/full/graph.pyx":190 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." */ __pyx_t_11 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 190, __pyx_L1_error) - __pyx_t_4 = (gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_11) != OK); + __pyx_t_1 = __Pyx_PyLong_From_int(gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_11)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_7, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":191 * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != cappconst.OK: + * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< * f"gp_Write() of graph to '{outfile_name}' failed." * ) @@ -6730,38 +6769,38 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_Write(struct __pyx __pyx_t_7 = NULL; /* "planarity/full/graph.pyx":192 - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != cappconst.OK: + * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_3 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_gp_Write_of_graph_to; - __pyx_t_8[1] = __pyx_t_3; + __pyx_t_8[1] = __pyx_t_1; __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_failed; - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3)); + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = 1; { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; - __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 191, __pyx_L1_error) /* "planarity/full/graph.pyx":190 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." */ @@ -7382,7 +7421,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_GetEdgeCapacity(st * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ @@ -7475,10 +7514,10 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_EnsureEdgeCapacity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_new_edge_capacity) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; + int __pyx_t_4; PyObject *__pyx_t_5[3]; PyObject *__pyx_t_6 = NULL; size_t __pyx_t_7; @@ -7490,21 +7529,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_EnsureEdgeCapacity /* "planarity/full/graph.pyx":213 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " */ - __pyx_t_1 = (gp_EnsureEdgeCapacity(__pyx_v_self->_theGraph, __pyx_v_new_edge_capacity) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_EnsureEdgeCapacity(__pyx_v_self->_theGraph, __pyx_v_new_edge_capacity)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 213, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 213, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":214 * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< * "gp_EnsureEdgeCapacity() failed to set edge capacity to " * f"{new_edge_capacity}.") */ - __pyx_t_3 = NULL; + __pyx_t_2 = NULL; /* "planarity/full/graph.pyx":216 * raise RuntimeError( @@ -7513,40 +7560,40 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_EnsureEdgeCapacity * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): */ - __pyx_t_4 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 216, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_1 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); __pyx_t_5[0] = __pyx_mstate_global->__pyx_kp_u_gp_EnsureEdgeCapacity_failed_to; - __pyx_t_5[1] = __pyx_t_4; + __pyx_t_5[1] = __pyx_t_1; __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u__3; /* "planarity/full/graph.pyx":215 - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " # <<<<<<<<<<<<<< * f"{new_edge_capacity}.") * */ - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, 55 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 1, 127); + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, 55 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 1, 127); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_6}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 214, __pyx_L1_error) /* "planarity/full/graph.pyx":213 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " */ @@ -7556,7 +7603,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_EnsureEdgeCapacity * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ @@ -7564,9 +7611,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_EnsureEdgeCapacity __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_EnsureEdgeCapacity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; @@ -7810,7 +7857,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_AddEdge(struct __p * raise RuntimeError( * f"Invalid link index for vlink: '{vlink}'." # <<<<<<<<<<<<<< * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != cappconst.OK: + * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: */ __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -7846,16 +7893,24 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_AddEdge(struct __p /* "planarity/full/graph.pyx":227 * f"Invalid link index for vlink: '{vlink}'." * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " */ - __pyx_t_1 = (gp_AddEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink) != OK); + __pyx_t_2 = __Pyx_PyLong_From_int(gp_AddEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_6 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 227, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 227, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_t_1)) { /* "planarity/full/graph.pyx":228 * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != cappconst.OK: + * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " * f"and vlink = {vlink}." @@ -7863,14 +7918,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_AddEdge(struct __p __pyx_t_4 = NULL; /* "planarity/full/graph.pyx":229 - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != cappconst.OK: + * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " # <<<<<<<<<<<<<< * f"and vlink = {vlink}." * ) */ - __pyx_t_6 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 229, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 229, __pyx_L1_error) @@ -7886,7 +7941,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_AddEdge(struct __p __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10[0] = __pyx_mstate_global->__pyx_kp_u_Unable_to_add_edge_u_v; - __pyx_t_10[1] = __pyx_t_6; + __pyx_t_10[1] = __pyx_t_2; __pyx_t_10[2] = __pyx_mstate_global->__pyx_kp_u__4; __pyx_t_10[3] = __pyx_t_3; __pyx_t_10[4] = __pyx_mstate_global->__pyx_kp_u_with_ulink; @@ -7896,36 +7951,36 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_AddEdge(struct __p __pyx_t_10[8] = __pyx_mstate_global->__pyx_kp_u__3; /* "planarity/full/graph.pyx":229 - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != cappconst.OK: + * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " # <<<<<<<<<<<<<< * f"and vlink = {vlink}." * ) */ - __pyx_t_11 = __Pyx_PyUnicode_Join(__pyx_t_10, 9, 29 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 15 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 13 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 1, 127); + __pyx_t_11 = __Pyx_PyUnicode_Join(__pyx_t_10, 9, 29 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 15 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 13 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 1, 127); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = 1; { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_11}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_6, 0, 0, 0); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 228, __pyx_L1_error) /* "planarity/full/graph.pyx":227 * f"Invalid link index for vlink: '{vlink}'." * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " */ @@ -8180,7 +8235,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_DeleteEdge(struct * return cgraphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") */ @@ -8230,10 +8285,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -8242,37 +8298,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planari /* "planarity/full/graph.pyx":242 * * def gp_ExtendWith_Planarity(self): - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ - __pyx_t_1 = (gp_ExtendWith_Planarity(__pyx_v_self->_theGraph) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Planarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":243 * def gp_ExtendWith_Planarity(self): - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_DrawPlanar(self): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Plan}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Plan}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 243, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 243, __pyx_L1_error) /* "planarity/full/graph.pyx":242 * * def gp_ExtendWith_Planarity(self): - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ @@ -8282,7 +8346,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planari * return cgraphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") */ @@ -8290,6 +8354,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planari __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Planarity", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -8304,7 +8369,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planari * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") */ @@ -8354,10 +8419,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_ExtendWith_DrawPlanar(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -8366,37 +8432,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_ExtendWith_DrawPla /* "planarity/full/graph.pyx":246 * * def gp_ExtendWith_DrawPlanar(self): - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ - __pyx_t_1 = (gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 246, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":247 * def gp_ExtendWith_DrawPlanar(self): - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") # <<<<<<<<<<<<<< * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Draw}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 247, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Draw}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 247, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 247, __pyx_L1_error) /* "planarity/full/graph.pyx":246 * * def gp_ExtendWith_DrawPlanar(self): - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ @@ -8406,7 +8480,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_ExtendWith_DrawPla * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") */ @@ -8414,6 +8488,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_ExtendWith_DrawPla __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_DrawPlanar", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -8535,9 +8610,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_DrawPlanar_RenderT __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; - int __pyx_t_3; + PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; + int __pyx_t_5; PyObject *__pyx_t_6[3]; PyObject *__pyx_t_7 = NULL; size_t __pyx_t_8; @@ -8567,7 +8642,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_DrawPlanar_RenderT * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != cappconst.OK: + * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: */ __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 252, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_2; @@ -8575,47 +8650,55 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_DrawPlanar_RenderT /* "planarity/full/graph.pyx":254 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ - __pyx_t_3 = (gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName) != OK); - if (unlikely(__pyx_t_3)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":255 * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != cappconst.OK: + * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") # <<<<<<<<<<<<<< * * def gp_DrawPlanar_RenderToString(self): */ - __pyx_t_4 = NULL; - __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 255, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); + __pyx_t_3 = NULL; + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_fi; - __pyx_t_6[1] = __pyx_t_5; + __pyx_t_6[1] = __pyx_t_1; __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u_; - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, 36 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 2, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5)); + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, 36 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 2, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_8 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_7}; - __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7}; + __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 255, __pyx_L1_error) /* "planarity/full/graph.pyx":254 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ @@ -8634,8 +8717,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_DrawPlanar_RenderT goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToFile", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; @@ -9021,7 +9104,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ @@ -9071,10 +9154,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_Outerplanarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9083,37 +9167,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_Outerpl /* "planarity/full/graph.pyx":272 * * def gp_ExtendWith_Outerplanarity(self): - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * */ - __pyx_t_1 = (gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 272, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 272, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":273 * def gp_ExtendWith_Outerplanarity(self): - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_K23Search(self): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Oute}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Oute}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 273, __pyx_L1_error) /* "planarity/full/graph.pyx":272 * * def gp_ExtendWith_Outerplanarity(self): - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * */ @@ -9123,7 +9215,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_Outerpl * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ @@ -9131,6 +9223,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_Outerpl __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Outerplanarity", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -9145,7 +9238,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_Outerpl * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") */ @@ -9195,10 +9288,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_K23Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9207,37 +9301,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_K23Sear /* "planarity/full/graph.pyx":276 * * def gp_ExtendWith_K23Search(self): - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ - __pyx_t_1 = (gp_ExtendWith_K23Search(__pyx_v_self->_theGraph) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K23Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 276, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 276, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":277 * def gp_ExtendWith_K23Search(self): - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_K33Search(self): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K23S}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K23S}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 277, __pyx_L1_error) /* "planarity/full/graph.pyx":276 * * def gp_ExtendWith_K23Search(self): - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ @@ -9247,7 +9349,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_K23Sear * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") */ @@ -9255,6 +9357,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_K23Sear __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K23Search", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -9269,7 +9372,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_K23Sear * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") */ @@ -9319,10 +9422,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_K33Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9331,37 +9435,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_K33Sear /* "planarity/full/graph.pyx":280 * * def gp_ExtendWith_K33Search(self): - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ - __pyx_t_1 = (gp_ExtendWith_K33Search(__pyx_v_self->_theGraph) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K33Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":281 * def gp_ExtendWith_K33Search(self): - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_K4Search(self): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K33S}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K33S}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 281, __pyx_L1_error) /* "planarity/full/graph.pyx":280 * * def gp_ExtendWith_K33Search(self): - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ @@ -9371,7 +9483,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_K33Sear * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") */ @@ -9379,6 +9491,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_K33Sear __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K33Search", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -9393,7 +9506,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_K33Sear * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") */ @@ -9443,10 +9556,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K4Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; + PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + int __pyx_t_4; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9455,37 +9569,45 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K4Searc /* "planarity/full/graph.pyx":284 * * def gp_ExtendWith_K4Search(self): - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K4Search structures.") * */ - __pyx_t_1 = (gp_ExtendWith_K4Search(__pyx_v_self->_theGraph) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K4Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_4)) { /* "planarity/full/graph.pyx":285 * def gp_ExtendWith_K4Search(self): - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") # <<<<<<<<<<<<<< * * def gp_Embed(self, int embedFlags) -> int: */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_2 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K4Se}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K4Se}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 285, __pyx_L1_error) /* "planarity/full/graph.pyx":284 * * def gp_ExtendWith_K4Search(self): - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K4Search structures.") * */ @@ -9495,7 +9617,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K4Searc * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") */ @@ -9503,6 +9625,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K4Searc __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K4Search", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -9517,8 +9640,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K4Searc * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) - * + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: */ /* Python wrapper */ @@ -9608,9 +9731,15 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_Embed(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_embedFlags) { + int __pyx_v_embed_result; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + int __pyx_t_5; + size_t __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9619,29 +9748,103 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_Embed(struct __pyx /* "planarity/full/graph.pyx":288 * * def gp_Embed(self, int embedFlags) -> int: - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< + * if embed_result != OK and embed_result != NONEMBEDDABLE: + * raise RuntimeError("Failed to perform embed operation.") +*/ + __pyx_v_embed_result = gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); + + /* "planarity/full/graph.pyx":289 + * def gp_Embed(self, int embedFlags) -> int: + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to perform embed operation.") + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__pyx_t_5) { + } else { + __pyx_t_1 = __pyx_t_5; + goto __pyx_L4_bool_binop_done; + } + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_1 = __pyx_t_5; + __pyx_L4_bool_binop_done:; + if (unlikely(__pyx_t_1)) { + + /* "planarity/full/graph.pyx":290 + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: + * raise RuntimeError("Failed to perform embed operation.") # <<<<<<<<<<<<<< + * + * return embed_result +*/ + __pyx_t_3 = NULL; + __pyx_t_6 = 1; + { + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_perform_embed_operatio}; + __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + } + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(0, 290, __pyx_L1_error) + + /* "planarity/full/graph.pyx":289 + * def gp_Embed(self, int embedFlags) -> int: + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to perform embed operation.") + * +*/ + } + + /* "planarity/full/graph.pyx":292 + * raise RuntimeError("Failed to perform embed operation.") + * + * return embed_result # <<<<<<<<<<<<<< * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(0, 288, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 292, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":287 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) - * + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Embed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -9650,11 +9853,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_Embed(struct __pyx return __pyx_r; } -/* "planarity/full/graph.pyx":290 - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) +/* "planarity/full/graph.pyx":294 + * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * return cgraphLib.gp_TestEmbedResultIntegrity(self._theGraph, copy_of_orig_graph._theGraph, embed_result) + * check_result = cgraphLib.gp_TestEmbedResultIntegrity( + * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ /* Python wrapper */ @@ -9698,39 +9902,39 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_copy_of_orig_graph,&__pyx_mstate_global->__pyx_n_u_embed_result,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 290, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 294, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 2: values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 290, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 294, __pyx_L3_error) CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 290, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 294, __pyx_L3_error) CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } const Py_ssize_t kwd_pos_args = __pyx_nargs; - if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_TestEmbedResultIntegrity", 0) < (0)) __PYX_ERR(0, 290, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_TestEmbedResultIntegrity", 0) < (0)) __PYX_ERR(0, 294, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, i); __PYX_ERR(0, 290, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, i); __PYX_ERR(0, 294, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 290, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 294, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 290, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 294, __pyx_L3_error) } __pyx_v_copy_of_orig_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)values[0]); - __pyx_v_embed_result = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_embed_result == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 290, __pyx_L3_error) + __pyx_v_embed_result = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_embed_result == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 294, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 290, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 294, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -9741,7 +9945,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_copy_of_orig_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "copy_of_orig_graph", 0))) __PYX_ERR(0, 290, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_copy_of_orig_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "copy_of_orig_graph", 0))) __PYX_ERR(0, 294, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_72gp_TestEmbedResultIntegrity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_copy_of_orig_graph, __pyx_v_embed_result); /* function exit code */ @@ -9762,37 +9966,118 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72gp_TestEmbedResultIntegrity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_copy_of_orig_graph, int __pyx_v_embed_result) { + int __pyx_v_check_result; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + int __pyx_t_5; + size_t __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_TestEmbedResultIntegrity", 0); - /* "planarity/full/graph.pyx":291 + /* "planarity/full/graph.pyx":295 * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: - * return cgraphLib.gp_TestEmbedResultIntegrity(self._theGraph, copy_of_orig_graph._theGraph, embed_result) # <<<<<<<<<<<<<< + * check_result = cgraphLib.gp_TestEmbedResultIntegrity( # <<<<<<<<<<<<<< + * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * ) +*/ + __pyx_v_check_result = gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result); + + /* "planarity/full/graph.pyx":298 + * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * ) + * if check_result != OK and check_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed embed integrity check.") + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__pyx_t_5) { + } else { + __pyx_t_1 = __pyx_t_5; + goto __pyx_L4_bool_binop_done; + } + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 298, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_1 = __pyx_t_5; + __pyx_L4_bool_binop_done:; + if (unlikely(__pyx_t_1)) { + + /* "planarity/full/graph.pyx":299 + * ) + * if check_result != OK and check_result != NONEMBEDDABLE: + * raise RuntimeError("Failed embed integrity check.") # <<<<<<<<<<<<<< + * + * return check_result +*/ + __pyx_t_3 = NULL; + __pyx_t_6 = 1; + { + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_embed_integrity_check}; + __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + } + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(0, 299, __pyx_L1_error) + + /* "planarity/full/graph.pyx":298 + * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * ) + * if check_result != OK and check_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed embed integrity check.") + * +*/ + } + + /* "planarity/full/graph.pyx":301 + * raise RuntimeError("Failed embed integrity check.") + * + * return check_result # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(0, 291, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 301, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":290 - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) + /* "planarity/full/graph.pyx":294 + * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * return cgraphLib.gp_TestEmbedResultIntegrity(self._theGraph, copy_of_orig_graph._theGraph, embed_result) + * check_result = cgraphLib.gp_TestEmbedResultIntegrity( + * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_TestEmbedResultIntegrity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -10907,7 +11192,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * return cgraphLib.gp_GetN(self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< - * if cgraphLib.gp_InitGraph(self._theGraph, n) != cappconst.OK: + * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_InitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_InitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error) @@ -11047,7 +11332,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != cappconst.OK: + * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_EnsureEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EnsureEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error) @@ -11092,7 +11377,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * return cgraphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_ExtendWith_Planarity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ExtendWith_Planarity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error) @@ -11107,7 +11392,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_ExtendWith_DrawPlanar, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ExtendWith_DrawPlanar, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 245, __pyx_L1_error) @@ -11152,7 +11437,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_ExtendWith_Outerplanarity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ExtendWith_Outerplanari, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __pyx_L1_error) @@ -11167,7 +11452,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_65gp_ExtendWith_K23Search, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ExtendWith_K23Search, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 275, __pyx_L1_error) @@ -11182,7 +11467,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_67gp_ExtendWith_K33Search, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ExtendWith_K33Search, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error) @@ -11197,7 +11482,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != cappconst.OK: + * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_ExtendWith_K4Search, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ExtendWith_K4Search, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 283, __pyx_L1_error) @@ -11212,8 +11497,8 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) - * + * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -11228,23 +11513,24 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Embed, __pyx_t_3) < (0)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":290 - * return cgraphLib.gp_Embed(self._theGraph, embedFlags) + /* "planarity/full/graph.pyx":294 + * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * return cgraphLib.gp_TestEmbedResultIntegrity(self._theGraph, copy_of_orig_graph._theGraph, embed_result) + * check_result = cgraphLib.gp_TestEmbedResultIntegrity( + * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73gp_TestEmbedResultIntegrity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_TestEmbedResultIntegrit, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73gp_TestEmbedResultIntegrity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_TestEmbedResultIntegrit, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_t_2) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_t_2) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":1 @@ -11345,42 +11631,42 @@ static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) { static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) { CYTHON_UNUSED_VAR(__pyx_mstate); { - const struct { const unsigned int length: 8; } index[] = {{2},{44},{50},{49},{49},{48},{54},{49},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{1},{2},{1},{8},{13},{7},{6},{9},{2},{22},{38},{21},{43},{55},{48},{45},{45},{22},{16},{17},{24},{30},{22},{9},{50},{24},{14},{15},{21},{22},{17},{23},{23},{22},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{22},{23},{18},{27},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{23},{22},{13},{20},{20},{24},{18},{15},{17},{13},{26},{33},{31},{14},{3},{13},{5},{2},{20},{1},{18},{18},{18},{1},{10},{12},{7},{15},{8},{1},{12},{10},{12},{13},{26},{28},{11},{16},{17},{12},{21},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{17},{16},{29},{7},{14},{14},{24},{18},{12},{9},{11},{7},{20},{27},{25},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{17},{9},{12},{20},{3},{11},{12},{10},{17},{13},{15},{6},{4},{12},{10},{12},{19},{9},{22},{23},{8},{11},{12},{1},{5},{1},{6},{5},{38},{14},{27},{27},{39},{131},{14},{44},{44},{44},{45},{42},{69},{118},{27},{28},{80},{27},{115},{14},{14},{11},{30},{44},{51},{44},{44},{21},{21},{9},{64},{27},{18}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2131 bytes) */ -const char* const cstring = "(\265/\375`\004\023MB\000\372X\310\022G\360\220:\007\314\300\354\004\205\017\253L\321\230\270b\304M\005\254\030qSas\034=\246\021)\231\235\274\"\272\375\034YVdn\017\336\357=Wt\\M\271\260M\225\264\357\177\321\322\177\240\202\246\312\377@\345\037\202[\221\010\375\000\r\001 \001\"h\311\214zB\022\372\256\357\351\367Y\314\262YE\376g\325b\372?\r\322\207\331\3753\373\242|\2070\272\263U}~cK\372\331\325\367\243\\\345`\316\226\243\3747\315\377\342\333\306>\323\020\254\321\226\n\215\3258\315\227\343\033\262h\013\244\373\367\266\330c\205\233n\356=\214\327\364\313\226\206<\204.\234F'\232\365s\357\342\347V?\353\342\377\354\213\323\347\240\3513hzO\207\340\236q\024DHi\227\306\310\027K\240\372o\353z\037\333\224[\230\006[\245\222\n\323\351c.\024D\006/\267\371\362\375\037\375fY\345\363\275\214\213\355\3457_\312\301L\3675\301\321\326\367=\013\366T\277>\325\370\215\351\347\341J\350\344\345i\373\252\023\r(\366\353\220{\241\266\331\342\223\213\325\"\372\342\327\205\276bV\273\350\227\237\323>\203/^;\271\362\325|\323\024\312\365\3172\350Q\220\323\357\361\265\244\017\027\026\223\376\253\353j\260\266\300\032\303\263\254\367\254\3465\337\212\275\375\371\362\020\324\240\367\001\257\227k\333\332\326\247*\367\256\210V;\325\212b\005\305\312j\3054*\225\350D\246\025SI\305\364\345\367v\266\251\254\342z\236U8\016\367\247\370\376\325~\355z\021\315dK+\362%\235B',\\[\256\252Y\255;\025\270J\325\357\353\270\345\233\377\256\325\373<\314\232\036_R\350$\265B:\221\222\352F\252\324h\245b%\325\231\272\322\211\245K\211\252\312DW\"\211F%R\214\302\222\021(\264Z\354\203\001\343\260\205\241V\017\333;\273\232_\310\341Gk}/\374^\327J9\016m\353?\n\346o\337\017\007\263\237A\t\037\374,\213\251\345\270\026\310\257f\371\354\247\\\336\304oV\241i\220\365r\3357q\332\363\255/\211\277\t\317\2631\233\242\303\235\271\255\"\253\304B\356R\020\243\347\217_TB\222Rc.\317\365iQ\356\367\375*\t\352\371p$41\240\336\351{\344\330Z\310\0172C\222\204\234 \263c\226\310t\331\210\222\261\225H\r)\353\036\031Sf#aK\017\371uT?`m(\233\210\022\205\344""\335v\004\243\003[\306\346\301\216\250\021\204\310W\252\223\206\211b+)q\037\351\234\236B\004\261\344\253\267\330\"\315\300&\346cA7\232\310F\021\217\323cs\343\300\020\031\364\223\316Q{\361\350\270\025\020p\243\263\001\022;\242\202\0047N\202\333\013\027'\2061\2058i\220!\262C\232X\030\217\211\313\221\222S\20220%[\307\307\371\221)E$\210\264\020r\206ln\235\rT\377\350\231\276\031C61\262\321\216\036QA\307\r5N\030g\274\204^:\010\000\330\334\310\214!\232s\266?\304v6\013c\341W\377\305\367\363Z\363\326\240\326\237\303\352\351\335\302\277\263\016\371kN{lCY\254\326\030\030\373|\252\313\343\260\346ka\265\3026\254\356[9\314\346\372\370\266\362\005\365\t\343\220\304\272\325U\253\227\303\326\335\372g\365\373\017\364\362\353\272]\001\235\022\367\221\316\351\004F\315\371y\247\307r\262\214\316\007\266U\331\225\241\026\232S\006A\344\364\017cg\344\214\016z8\212lb,\214\034\243\010\231\03129\214\0204'J\264\360R \003s\202\033I\274\030\320\244\230\234&\232[\306F\247\003r\3432\"_\257\240;\022\006\347\210\270_<\016X\023e\216DN\027-\316\026\230\0034J\027\344\203\276\032\273\361D\327G6\267\314\000\362\305\010a\023c\226@v\347@\316\017\321{AP\201Sr\322\222\037K\216\224\200T\251\023\233!<\375S\221u\256\314\224\r\310\2261\002\001\000\005nt%\250<\261`r\003\231\034\346\006\033\214\374P\270u\346\002sdC!9IDn\001\312\014\021\316\026\"H\007\006\333<\345G\242\310\013\0341#&\350\210\ti\320\2155^:$\207\344:\tqA\307\215\000\013\226\223eu\256R\316\016\252S0[\312\t\034\230\026\333\203rEv\244'B\202\233\314\264&i\303\331\225\232RFb8\235%\223\3056\301\326\241\344(K]\203B\374\210\351\200*\214\237XB\\ rP\225\017\310U\357z\307\330\005\201\235\250Q\241b\010\321\310\210\210$I\222\341A\010\002\241\250\203\220\363B\251D\211r\034b\204\031B\210\310\210\214\210\310HRPI\007=\000\224\366h'\210I\013\035\331\265\306K\217\030\363\305c\333],
\033Y\221g\001\372@\324#U\233\005^\323qa\320\341*VaH\233=,\r\206\331F5\357\260\221\310(\354\346\027U{\343\231\233\226\335\216\010\301\035\305\005H]H\267\320_\022\035ps\206F\347!\215\215\014%a\223\336\2373p\247\016\006)^\252\013-rh\216\216\260\220\253\236\246\251\320\262\3337\024\nw~7\031\252d\023yG\177\365\373\260\306_V\n\265\333\300'\326\232\001\375i\352\325]\201\334\302\364\360\212U\256\277\262]\235\026\025Y\366! \245\323\005\236\356\214\214v\224t\362s\313\037\271ID\261\346\263\272\276;\026\334\265R&u\006\332\224\004\034\nr\214\226yr\322\226\2603\023\316\234\340\237\230\213\302-%}TP]\305\346\217ZtJ\203\360\242e.u\006L%\364bq,\026>6u\356\rT\034\243`\307\224U*\352X\201\366\2127\262\250\253\005\004.\375\354\242#u\013\2364b\\\361\205\2322$4\363\003\215@\323\010\263FZ6'\270A\3157\377r4W\342c\003\021\265*\273\242\225}b%0hP\271)'\221\344f\200\237Fy\301D\222\0237A{AZ\013%j\336\240?\261\362\006\013\346A\326;\344\020\374$\312\034R5\377\005\326Zz\305;\224\225\236fID\r\371:\213Q\360`\263\214$\253@\375\267\\\273I\302\325\013(-C\204\3663~\227\224\267@n\322o\035\202\020\327\236\177.\226p\207\257\266<\320zL\375#D\215\264\316\232\002:a\374\2367\222\"\225\230\303K\310M\275\014\313#\254\027\215\274k\303G\200\002y\313\177\203\200aW\334A\360\"\302\263\327_tPQ~#\244q\347jX\225\322\207~\204\020%$d\214\256/\331