From cf03fec40cd2842143421acfa3ffbce4d3be9b18 Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Wed, 20 May 2026 14:51:44 -0700 Subject: [PATCH 1/8] Allow Python application developers to disable quiet mode of graphLib, i.e. Message() and ErrorMessage() will be displayed after setting quietMode to 0. --- examples/full/quiet_mode_test.py | 25 + planarity/__init__.py | 4 +- planarity/full/capiutils.pxd | 8 + planarity/full/g6IterationUtils.c | 1 + planarity/full/graph.c | 2288 ++++++++++++++++------------- planarity/full/graph.pyx | 9 + 6 files changed, 1316 insertions(+), 1019 deletions(-) create mode 100644 examples/full/quiet_mode_test.py create mode 100644 planarity/full/capiutils.pxd diff --git a/examples/full/quiet_mode_test.py b/examples/full/quiet_mode_test.py new file mode 100644 index 0000000..5d201ae --- /dev/null +++ b/examples/full/quiet_mode_test.py @@ -0,0 +1,25 @@ +"""Script to check whether setting quiet mode is successful + +NOTE: For this test to be meaningful, you must add a Message() and/or +ErrorMessage() to the C graphLib layer in gp_New() so that when we initialize +the Graph instances and __cinit__() calls gp_New(), we'll see that the messages +are *not* displayed by default, but then once the global variable quietModeFlag +is updated via gp_SetQuietModeFlag(), the messages are displayed. +""" + +#!/usr/bin/env python + + +from planarity import ( + gp_GetQuietModeFlag, + gp_SetQuietModeFlag, + Graph, +) + + +if __name__ == "__main__": + print(f"quiet mode flag before first gp_New(): {gp_GetQuietModeFlag()}") + graph = Graph() + gp_SetQuietModeFlag(0) + print(f"quiet mode flag before second gp_New() (i.e. after disabling quiet mode): {gp_GetQuietModeFlag()}") + graph = Graph() \ No newline at end of file diff --git a/planarity/__init__.py b/planarity/__init__.py index 2baf2a4..3d8de50 100644 --- a/planarity/__init__.py +++ b/planarity/__init__.py @@ -4,6 +4,8 @@ from .full.g6IterationUtils import G6ReadIterator, G6WriteIterator from .full.graph import ( + gp_GetQuietModeFlag, + gp_SetQuietModeFlag, gp_GetProjectVersionFull, gp_GetLibPlanarityVersionFull, Graph, @@ -22,4 +24,4 @@ # NOTE: In the future, we could automatically generate the version number by # configuring setuptools-scm, but presently this seems simpler. -__version__ = "0.7.13" +__version__ = "0.7.15" diff --git a/planarity/full/capiutils.pxd b/planarity/full/capiutils.pxd new file mode 100644 index 0000000..c1ea5f0 --- /dev/null +++ b/planarity/full/capiutils.pxd @@ -0,0 +1,8 @@ +"""C-level interface for the Edge Addition Planarity Suite Graph Library + +Specifically exposes contents from apiutils.h. +""" + +cdef extern from "../c/graphLib/lowLevelUtils/apiutils.h": + int gp_GetQuietModeFlag() + void gp_SetQuietModeFlag(int newQuietModeFlag) \ No newline at end of file diff --git a/planarity/full/g6IterationUtils.c b/planarity/full/g6IterationUtils.c index e2cc618..d56c8fb 100644 --- a/planarity/full/g6IterationUtils.c +++ b/planarity/full/g6IterationUtils.c @@ -1160,6 +1160,7 @@ static int __Pyx_init_co_variables(void) { #define __PYX_HAVE__planarity__full__g6IterationUtils #define __PYX_HAVE_API__planarity__full__g6IterationUtils /* Early includes */ +#include "../c/graphLib/lowLevelUtils/apiutils.h" #include "../c/graphLib/lowLevelUtils/appconst.h" #include "../c/graphLib/graph.h" #include "../c/graphLib/graphLib.h" diff --git a/planarity/full/graph.c b/planarity/full/graph.c index b350e0a..c04b389 100644 --- a/planarity/full/graph.c +++ b/planarity/full/graph.c @@ -1172,6 +1172,7 @@ static int __Pyx_init_co_variables(void) { #include "../c/graphLib/planarityRelated/graphPlanarity.h" #include #include +#include "../c/graphLib/lowLevelUtils/apiutils.h" #include "../c/graphLib/lowLevelUtils/appconst.h" #ifdef _OPENMP #include @@ -2458,6 +2459,8 @@ static int __Pyx_State_RemoveModule(void*); /* Module declarations from "libc.stdlib" */ +/* Module declarations from "planarity.full.capiutils" */ + /* Module declarations from "planarity.full.cappconst" */ /* Module declarations from "planarity.full.graph" */ @@ -2510,8 +2513,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_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); /* proto */ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_SetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_newQuietModeFlag); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_4gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_tp_new_9planarity_4full_5graph_Graph(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ /* #### Code section: late_includes ### */ /* #### Code section: module_state ### */ @@ -2538,8 +2543,8 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; - PyObject *__pyx_codeobj_tab[38]; - PyObject *__pyx_string_tab[221]; + PyObject *__pyx_codeobj_tab[40]; + PyObject *__pyx_string_tab[227]; PyObject *__pyx_number_tab[1]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ @@ -2681,127 +2686,133 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #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_EdgeInUse __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_GetLibPlanarityVersionFull __pyx_string_tab[133] -#define __pyx_n_u_gp_GetN __pyx_string_tab[134] -#define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[135] -#define __pyx_n_u_gp_GetNextEdge __pyx_string_tab[136] -#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[137] -#define __pyx_n_u_gp_GetVertexDegree __pyx_string_tab[138] -#define __pyx_n_u_gp_InitGraph __pyx_string_tab[139] -#define __pyx_n_u_gp_IsEdge __pyx_string_tab[140] -#define __pyx_n_u_gp_IsVertex __pyx_string_tab[141] -#define __pyx_n_u_gp_LowerBoundEdgeStorage __pyx_string_tab[142] -#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[143] -#define __pyx_n_u_gp_Read __pyx_string_tab[144] -#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[145] -#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[146] -#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[147] -#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[148] -#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[149] -#define __pyx_n_u_gp_Write __pyx_string_tab[150] -#define __pyx_n_u_infile_name __pyx_string_tab[151] -#define __pyx_n_u_int __pyx_string_tab[152] -#define __pyx_n_u_is_coroutine __pyx_string_tab[153] -#define __pyx_n_u_items __pyx_string_tab[154] -#define __pyx_n_u_m __pyx_string_tab[155] -#define __pyx_n_u_main __pyx_string_tab[156] -#define __pyx_n_u_mode __pyx_string_tab[157] -#define __pyx_n_u_mode_code __pyx_string_tab[158] -#define __pyx_n_u_module __pyx_string_tab[159] -#define __pyx_n_u_n __pyx_string_tab[160] -#define __pyx_n_u_name __pyx_string_tab[161] -#define __pyx_n_u_new_edge_capacity __pyx_string_tab[162] -#define __pyx_n_u_new_graph __pyx_string_tab[163] -#define __pyx_n_u_outfile_name __pyx_string_tab[164] -#define __pyx_n_u_planarity_full_graph __pyx_string_tab[165] -#define __pyx_n_u_pop __pyx_string_tab[166] -#define __pyx_n_u_pyx_state __pyx_string_tab[167] -#define __pyx_n_u_qualname __pyx_string_tab[168] -#define __pyx_n_u_reduce __pyx_string_tab[169] -#define __pyx_n_u_reduce_cython __pyx_string_tab[170] -#define __pyx_n_u_reduce_ex __pyx_string_tab[171] -#define __pyx_n_u_renditionString __pyx_string_tab[172] -#define __pyx_n_u_return __pyx_string_tab[173] -#define __pyx_n_u_self __pyx_string_tab[174] -#define __pyx_n_u_set_name __pyx_string_tab[175] -#define __pyx_n_u_setdefault __pyx_string_tab[176] -#define __pyx_n_u_setstate __pyx_string_tab[177] -#define __pyx_n_u_setstate_cython __pyx_string_tab[178] -#define __pyx_n_u_src_graph __pyx_string_tab[179] -#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[180] -#define __pyx_n_u_string_conversion_error __pyx_string_tab[181] -#define __pyx_n_u_test __pyx_string_tab[182] -#define __pyx_n_u_theFileName __pyx_string_tab[183] -#define __pyx_n_u_theGraph_dup __pyx_string_tab[184] -#define __pyx_n_u_u __pyx_string_tab[185] -#define __pyx_n_u_ulink __pyx_string_tab[186] -#define __pyx_n_u_v __pyx_string_tab[187] -#define __pyx_n_u_values __pyx_string_tab[188] -#define __pyx_n_u_vlink __pyx_string_tab[189] -#define __pyx_kp_b_iso88591_4_Q_aq_Q __pyx_string_tab[190] -#define __pyx_kp_b_iso88591_A_1D __pyx_string_tab[191] -#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[192] -#define __pyx_kp_b_iso88591_A_1_a __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_4t_Qa_a_8_at_q __pyx_string_tab[197] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a __pyx_string_tab[198] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L __pyx_string_tab[199] -#define __pyx_kp_b_iso88591_A_4t_q_a_B_1 __pyx_string_tab[200] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_1D_A __pyx_string_tab[201] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S __pyx_string_tab[202] -#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W __pyx_string_tab[203] -#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[204] -#define __pyx_kp_b_iso88591_A_M_l_S_aq __pyx_string_tab[205] -#define __pyx_kp_b_iso88591_A_Q __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_at1 __pyx_string_tab[210] -#define __pyx_kp_b_iso88591_A_q_A_HAT_Zs_aq __pyx_string_tab[211] -#define __pyx_kp_b_iso88591_A_q_q_L_SPQ_a_EQa __pyx_string_tab[212] -#define __pyx_kp_b_iso88591_A_s_D_r_4q_l __pyx_string_tab[213] -#define __pyx_kp_b_iso88591_A_s_t1_r_d_q_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_A_L_2_a_3d_s_aq_q __pyx_string_tab[219] -#define __pyx_kp_b_iso88591_l_3d_s_aq_q __pyx_string_tab[220] +#define __pyx_n_u_None __pyx_string_tab[100] +#define __pyx_n_u_OK __pyx_string_tab[101] +#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[102] +#define __pyx_n_u_a __pyx_string_tab[103] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[104] +#define __pyx_n_u_check_result __pyx_string_tab[105] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[106] +#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[107] +#define __pyx_n_u_e __pyx_string_tab[108] +#define __pyx_n_u_embedFlags __pyx_string_tab[109] +#define __pyx_n_u_embed_result __pyx_string_tab[110] +#define __pyx_n_u_encoded __pyx_string_tab[111] +#define __pyx_n_u_encoded_version __pyx_string_tab[112] +#define __pyx_n_u_func __pyx_string_tab[113] +#define __pyx_n_u_g __pyx_string_tab[114] +#define __pyx_n_u_getstate __pyx_string_tab[115] +#define __pyx_n_u_gp_AddEdge __pyx_string_tab[116] +#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[117] +#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[118] +#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[119] +#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[120] +#define __pyx_n_u_gp_DupGraph __pyx_string_tab[121] +#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[122] +#define __pyx_n_u_gp_Embed __pyx_string_tab[123] +#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[124] +#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[125] +#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[126] +#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[127] +#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[128] +#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[129] +#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[130] +#define __pyx_n_u_gp_FindEdge __pyx_string_tab[131] +#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[132] +#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[133] +#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[134] +#define __pyx_n_u_gp_GetN __pyx_string_tab[135] +#define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[136] +#define __pyx_n_u_gp_GetNextEdge __pyx_string_tab[137] +#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[138] +#define __pyx_n_u_gp_GetQuietModeFlag __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_LowerBoundEdgeStorage __pyx_string_tab[144] +#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[145] +#define __pyx_n_u_gp_Read __pyx_string_tab[146] +#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[147] +#define __pyx_n_u_gp_SetQuietModeFlag __pyx_string_tab[148] +#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[149] +#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[150] +#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[151] +#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[152] +#define __pyx_n_u_gp_Write __pyx_string_tab[153] +#define __pyx_n_u_infile_name __pyx_string_tab[154] +#define __pyx_n_u_int __pyx_string_tab[155] +#define __pyx_n_u_is_coroutine __pyx_string_tab[156] +#define __pyx_n_u_items __pyx_string_tab[157] +#define __pyx_n_u_m __pyx_string_tab[158] +#define __pyx_n_u_main __pyx_string_tab[159] +#define __pyx_n_u_mode __pyx_string_tab[160] +#define __pyx_n_u_mode_code __pyx_string_tab[161] +#define __pyx_n_u_module __pyx_string_tab[162] +#define __pyx_n_u_n __pyx_string_tab[163] +#define __pyx_n_u_name __pyx_string_tab[164] +#define __pyx_n_u_newQuietModeFlag __pyx_string_tab[165] +#define __pyx_n_u_new_edge_capacity __pyx_string_tab[166] +#define __pyx_n_u_new_graph __pyx_string_tab[167] +#define __pyx_n_u_outfile_name __pyx_string_tab[168] +#define __pyx_n_u_planarity_full_graph __pyx_string_tab[169] +#define __pyx_n_u_pop __pyx_string_tab[170] +#define __pyx_n_u_pyx_state __pyx_string_tab[171] +#define __pyx_n_u_qualname __pyx_string_tab[172] +#define __pyx_n_u_reduce __pyx_string_tab[173] +#define __pyx_n_u_reduce_cython __pyx_string_tab[174] +#define __pyx_n_u_reduce_ex __pyx_string_tab[175] +#define __pyx_n_u_renditionString __pyx_string_tab[176] +#define __pyx_n_u_return __pyx_string_tab[177] +#define __pyx_n_u_self __pyx_string_tab[178] +#define __pyx_n_u_set_name __pyx_string_tab[179] +#define __pyx_n_u_setdefault __pyx_string_tab[180] +#define __pyx_n_u_setstate __pyx_string_tab[181] +#define __pyx_n_u_setstate_cython __pyx_string_tab[182] +#define __pyx_n_u_src_graph __pyx_string_tab[183] +#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[184] +#define __pyx_n_u_string_conversion_error __pyx_string_tab[185] +#define __pyx_n_u_test __pyx_string_tab[186] +#define __pyx_n_u_theFileName __pyx_string_tab[187] +#define __pyx_n_u_theGraph_dup __pyx_string_tab[188] +#define __pyx_n_u_u __pyx_string_tab[189] +#define __pyx_n_u_ulink __pyx_string_tab[190] +#define __pyx_n_u_v __pyx_string_tab[191] +#define __pyx_n_u_values __pyx_string_tab[192] +#define __pyx_n_u_vlink __pyx_string_tab[193] +#define __pyx_kp_b_iso88591_1 __pyx_string_tab[194] +#define __pyx_kp_b_iso88591_4_Q_aq_Q __pyx_string_tab[195] +#define __pyx_kp_b_iso88591_A_1D __pyx_string_tab[196] +#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[197] +#define __pyx_kp_b_iso88591_A_1_a __pyx_string_tab[198] +#define __pyx_kp_b_iso88591_A_1_l_Q_aq __pyx_string_tab[199] +#define __pyx_kp_b_iso88591_A_4_NcQR_a_1 __pyx_string_tab[200] +#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_M_l __pyx_string_tab[201] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_at_q __pyx_string_tab[202] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a __pyx_string_tab[203] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L __pyx_string_tab[204] +#define __pyx_kp_b_iso88591_A_4t_q_a_B_1 __pyx_string_tab[205] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_1D_A __pyx_string_tab[206] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S __pyx_string_tab[207] +#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W __pyx_string_tab[208] +#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[209] +#define __pyx_kp_b_iso88591_A_M_l_S_aq __pyx_string_tab[210] +#define __pyx_kp_b_iso88591_A_Q __pyx_string_tab[211] +#define __pyx_kp_b_iso88591_A_Q_1_l_CTTWWX_aq_A_a __pyx_string_tab[212] +#define __pyx_kp_b_iso88591_A_Qd_c_aq __pyx_string_tab[213] +#define __pyx_kp_b_iso88591_A_Y_0_S_E_A_m5_1_4q_A_31A_q_IQd __pyx_string_tab[214] +#define __pyx_kp_b_iso88591_A_at1 __pyx_string_tab[215] +#define __pyx_kp_b_iso88591_A_q_A_HAT_Zs_aq __pyx_string_tab[216] +#define __pyx_kp_b_iso88591_A_q_q_L_SPQ_a_EQa __pyx_string_tab[217] +#define __pyx_kp_b_iso88591_A_s_D_r_4q_l __pyx_string_tab[218] +#define __pyx_kp_b_iso88591_A_s_t1_r_d_q_L __pyx_string_tab[219] +#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[220] +#define __pyx_kp_b_iso88591_H __pyx_string_tab[221] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[222] +#define __pyx_kp_b_iso88591_Q_2 __pyx_string_tab[223] +#define __pyx_kp_b_iso88591_Q_6l_4q_1_Qa_uA_9A_a_q __pyx_string_tab[224] +#define __pyx_kp_b_iso88591_YYZ_A_L_2_a_3d_s_aq_q __pyx_string_tab[225] +#define __pyx_kp_b_iso88591_l_3d_s_aq_q __pyx_string_tab[226] #define __pyx_int_0 __pyx_number_tab[0] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE @@ -2819,8 +2830,8 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { #endif 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<38; ++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<40; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<227; ++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 */ @@ -2846,8 +2857,8 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode); 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<38; ++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<40; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<227; ++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 */ @@ -2862,7 +2873,7 @@ return 0; #endif /* #### Code section: module_code ### */ -/* "planarity/full/graph.pyx":30 +/* "planarity/full/graph.pyx":31 * * cdef class Graph: * def __cinit__(self): # <<<<<<<<<<<<<< @@ -2907,7 +2918,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "planarity/full/graph.pyx":32 + /* "planarity/full/graph.pyx":33 * def __cinit__(self): * global global_id_count * self._theGraph = cgraphLib.gp_New() # <<<<<<<<<<<<<< @@ -2916,7 +2927,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p */ __pyx_v_self->_theGraph = gp_New(); - /* "planarity/full/graph.pyx":33 + /* "planarity/full/graph.pyx":34 * global global_id_count * self._theGraph = cgraphLib.gp_New() * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -2926,7 +2937,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p __pyx_t_1 = (__pyx_v_self->_theGraph == NULL); if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":34 + /* "planarity/full/graph.pyx":35 * self._theGraph = cgraphLib.gp_New() * if self._theGraph == NULL: * raise MemoryError("gp_New() failed.") # <<<<<<<<<<<<<< @@ -2939,14 +2950,14 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_New_failed}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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, 34, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __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, 34, __pyx_L1_error) + __PYX_ERR(0, 35, __pyx_L1_error) - /* "planarity/full/graph.pyx":33 + /* "planarity/full/graph.pyx":34 * global global_id_count * self._theGraph = cgraphLib.gp_New() * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -2955,7 +2966,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p */ } - /* "planarity/full/graph.pyx":30 + /* "planarity/full/graph.pyx":31 * * cdef class Graph: * def __cinit__(self): # <<<<<<<<<<<<<< @@ -2976,7 +2987,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p return __pyx_r; } -/* "planarity/full/graph.pyx":36 +/* "planarity/full/graph.pyx":37 * raise MemoryError("gp_New() failed.") * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -3000,7 +3011,7 @@ static void __pyx_pw_9planarity_4full_5graph_5Graph_3__dealloc__(PyObject *__pyx static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { int __pyx_t_1; - /* "planarity/full/graph.pyx":37 + /* "planarity/full/graph.pyx":38 * * def __dealloc__(self): * if self._theGraph != NULL: # <<<<<<<<<<<<<< @@ -3010,7 +3021,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob __pyx_t_1 = (__pyx_v_self->_theGraph != NULL); if (__pyx_t_1) { - /* "planarity/full/graph.pyx":38 + /* "planarity/full/graph.pyx":39 * def __dealloc__(self): * if self._theGraph != NULL: * cgraphLib.gp_Free(&self._theGraph) # <<<<<<<<<<<<<< @@ -3019,7 +3030,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob */ gp_Free((&__pyx_v_self->_theGraph)); - /* "planarity/full/graph.pyx":37 + /* "planarity/full/graph.pyx":38 * * def __dealloc__(self): * if self._theGraph != NULL: # <<<<<<<<<<<<<< @@ -3028,7 +3039,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob */ } - /* "planarity/full/graph.pyx":36 + /* "planarity/full/graph.pyx":37 * raise MemoryError("gp_New() failed.") * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -3039,7 +3050,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob /* function exit code */ } -/* "planarity/full/graph.pyx":40 +/* "planarity/full/graph.pyx":41 * cgraphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< @@ -3087,32 +3098,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,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, 40, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 41, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 40, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 41, __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_InitGraph", 0) < (0)) __PYX_ERR(0, 40, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_InitGraph", 0) < (0)) __PYX_ERR(0, 41, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, i); __PYX_ERR(0, 40, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, i); __PYX_ERR(0, 41, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 40, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 41, __pyx_L3_error) } - __pyx_v_n = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L3_error) + __pyx_v_n = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 41, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 40, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 41, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3146,25 +3157,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_InitGraph", 0); - /* "planarity/full/graph.pyx":41 + /* "planarity/full/graph.pyx":42 * * def gp_InitGraph(self, int n): * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_InitGraph() failed.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __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, 41, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __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, 41, __pyx_L1_error) + __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, 42, __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, 41, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":42 + /* "planarity/full/graph.pyx":43 * def gp_InitGraph(self, int n): * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") # <<<<<<<<<<<<<< @@ -3177,14 +3188,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ 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, 42, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 42, __pyx_L1_error) + __PYX_ERR(0, 43, __pyx_L1_error) - /* "planarity/full/graph.pyx":41 + /* "planarity/full/graph.pyx":42 * * def gp_InitGraph(self, int n): * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< @@ -3193,7 +3204,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ */ } - /* "planarity/full/graph.pyx":40 + /* "planarity/full/graph.pyx":41 * cgraphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< @@ -3216,7 +3227,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":44 +/* "planarity/full/graph.pyx":45 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< @@ -3272,7 +3283,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_6gp_ReinitGraph(struct __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("gp_ReinitGraph", 0); - /* "planarity/full/graph.pyx":45 + /* "planarity/full/graph.pyx":46 * * def gp_ReinitGraph(self): * cgraphLib.gp_ReinitGraph(self._theGraph) # <<<<<<<<<<<<<< @@ -3281,7 +3292,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_6gp_ReinitGraph(struct */ gp_ReinitGraph(__pyx_v_self->_theGraph); - /* "planarity/full/graph.pyx":44 + /* "planarity/full/graph.pyx":45 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< @@ -3296,7 +3307,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_6gp_ReinitGraph(struct return __pyx_r; } -/* "planarity/full/graph.pyx":47 +/* "planarity/full/graph.pyx":48 * cgraphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< @@ -3344,32 +3355,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_new_edge_capacity,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, 47, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 48, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 47, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 48, __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_EnsureEdgeCapacity", 0) < (0)) __PYX_ERR(0, 47, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_EnsureEdgeCapacity", 0) < (0)) __PYX_ERR(0, 48, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, i); __PYX_ERR(0, 47, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, i); __PYX_ERR(0, 48, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 47, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 48, __pyx_L3_error) } - __pyx_v_new_edge_capacity = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_new_edge_capacity == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 47, __pyx_L3_error) + __pyx_v_new_edge_capacity = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_new_edge_capacity == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 48, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 47, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 48, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3405,25 +3416,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_EnsureEdgeCapacity", 0); - /* "planarity/full/graph.pyx":48 + /* "planarity/full/graph.pyx":49 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " */ - __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, 48, __pyx_L1_error) + __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, 49, __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, 48, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __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, 48, __pyx_L1_error) + __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, 49, __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, 48, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":49 + /* "planarity/full/graph.pyx":50 * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -3432,20 +3443,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( */ __pyx_t_2 = NULL; - /* "planarity/full/graph.pyx":51 + /* "planarity/full/graph.pyx":52 * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " * f"{new_edge_capacity}.") # <<<<<<<<<<<<<< * * def gp_GetEdgeCapacity(self): */ - __pyx_t_1 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __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_1; __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u_; - /* "planarity/full/graph.pyx":50 + /* "planarity/full/graph.pyx":51 * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " # <<<<<<<<<<<<<< @@ -3453,7 +3464,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( * */ __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, 50, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = 1; @@ -3462,14 +3473,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( __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_3)) __PYX_ERR(0, 49, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 49, __pyx_L1_error) + __PYX_ERR(0, 50, __pyx_L1_error) - /* "planarity/full/graph.pyx":48 + /* "planarity/full/graph.pyx":49 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< @@ -3478,7 +3489,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( */ } - /* "planarity/full/graph.pyx":47 + /* "planarity/full/graph.pyx":48 * cgraphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< @@ -3502,7 +3513,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( return __pyx_r; } -/* "planarity/full/graph.pyx":53 +/* "planarity/full/graph.pyx":54 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< @@ -3562,7 +3573,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetEdgeCapacity", 0); - /* "planarity/full/graph.pyx":54 + /* "planarity/full/graph.pyx":55 * * def gp_GetEdgeCapacity(self): * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) # <<<<<<<<<<<<<< @@ -3570,13 +3581,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st * def gp_GetN(self)-> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetEdgeCapacity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetEdgeCapacity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":53 + /* "planarity/full/graph.pyx":54 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< @@ -3595,7 +3606,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st return __pyx_r; } -/* "planarity/full/graph.pyx":56 +/* "planarity/full/graph.pyx":57 * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< @@ -3658,7 +3669,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetN", 0); - /* "planarity/full/graph.pyx":60 + /* "planarity/full/graph.pyx":61 * Returns the number of vertices in the graph. * """ * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3668,7 +3679,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ __pyx_t_1 = (__pyx_v_self->_theGraph == NULL); if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":61 + /* "planarity/full/graph.pyx":62 * """ * if self._theGraph == NULL: * raise RuntimeError("Graph is not initialized.") # <<<<<<<<<<<<<< @@ -3681,14 +3692,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Graph_is_not_initialized}; __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, 61, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __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, 61, __pyx_L1_error) + __PYX_ERR(0, 62, __pyx_L1_error) - /* "planarity/full/graph.pyx":60 + /* "planarity/full/graph.pyx":61 * Returns the number of vertices in the graph. * """ * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3697,7 +3708,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ */ } - /* "planarity/full/graph.pyx":63 + /* "planarity/full/graph.pyx":64 * raise RuntimeError("Graph is not initialized.") * * return cgraphLib.gp_GetN(self._theGraph) # <<<<<<<<<<<<<< @@ -3705,14 +3716,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ * def gp_CopyGraph(self, Graph src_graph): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyLong_From_int(gp_GetN(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(gp_GetN(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 63, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 64, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":56 + /* "planarity/full/graph.pyx":57 * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< @@ -3732,7 +3743,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ return __pyx_r; } -/* "planarity/full/graph.pyx":65 +/* "planarity/full/graph.pyx":66 * return cgraphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< @@ -3780,32 +3791,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_src_graph,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, 65, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 66, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 65, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 66, __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_CopyGraph", 0) < (0)) __PYX_ERR(0, 65, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_CopyGraph", 0) < (0)) __PYX_ERR(0, 66, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, i); __PYX_ERR(0, 65, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, i); __PYX_ERR(0, 66, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 65, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 66, __pyx_L3_error) } __pyx_v_src_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 65, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 66, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3816,7 +3827,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_src_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "src_graph", 0))) __PYX_ERR(0, 65, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_src_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "src_graph", 0))) __PYX_ERR(0, 66, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_src_graph); /* function exit code */ @@ -3864,7 +3875,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_CopyGraph", 0); - /* "planarity/full/graph.pyx":68 + /* "planarity/full/graph.pyx":69 * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3874,7 +3885,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_t_1 = (__pyx_v_self->_theGraph == NULL); if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":69 + /* "planarity/full/graph.pyx":70 * # the Graph wrapper that is passed in as the srcGraph * if self._theGraph == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -3887,14 +3898,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Invalid_destination_graph_wrappe}; __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, 69, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __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, 69, __pyx_L1_error) + __PYX_ERR(0, 70, __pyx_L1_error) - /* "planarity/full/graph.pyx":68 + /* "planarity/full/graph.pyx":69 * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3903,7 +3914,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":73 + /* "planarity/full/graph.pyx":74 * ) * * try: # <<<<<<<<<<<<<< @@ -3919,7 +3930,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "planarity/full/graph.pyx":74 + /* "planarity/full/graph.pyx":75 * * try: * if src_graph.gp_GetN() == 0: # <<<<<<<<<<<<<< @@ -3933,14 +3944,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L4_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); } - __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 74, __pyx_L4_error) + __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 75, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":75 + /* "planarity/full/graph.pyx":76 * try: * if src_graph.gp_GetN() == 0: * raise ValueError("Source graph has not been initialized.") # <<<<<<<<<<<<<< @@ -3953,14 +3964,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Source_graph_has_not_been_initia}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __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, 75, __pyx_L4_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L4_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, 75, __pyx_L4_error) + __PYX_ERR(0, 76, __pyx_L4_error) - /* "planarity/full/graph.pyx":74 + /* "planarity/full/graph.pyx":75 * * try: * if src_graph.gp_GetN() == 0: # <<<<<<<<<<<<<< @@ -3969,7 +3980,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":73 + /* "planarity/full/graph.pyx":74 * ) * * try: # <<<<<<<<<<<<<< @@ -3985,7 +3996,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":76 + /* "planarity/full/graph.pyx":77 * if src_graph.gp_GetN() == 0: * raise ValueError("Source graph has not been initialized.") * except RuntimeError as src_graph_uninit_error: # <<<<<<<<<<<<<< @@ -3995,7 +4006,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_RuntimeError)))); if (__pyx_t_8) { __Pyx_AddTraceback("planarity.full.graph.Graph.gp_CopyGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_9) < 0) __PYX_ERR(0, 76, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_9) < 0) __PYX_ERR(0, 77, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_9); @@ -4003,7 +4014,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_v_src_graph_uninit_error = __pyx_t_3; /*try:*/ { - /* "planarity/full/graph.pyx":77 + /* "planarity/full/graph.pyx":78 * raise ValueError("Source graph has not been initialized.") * except RuntimeError as src_graph_uninit_error: * raise ValueError( # <<<<<<<<<<<<<< @@ -4016,11 +4027,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_mstate_global->__pyx_kp_u_Invalid_source_graph_wrapped_gra}; __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 77, __pyx_L16_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 78, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_10); } - /* "planarity/full/graph.pyx":79 + /* "planarity/full/graph.pyx":80 * raise ValueError( * "Invalid source graph: wrapped graphP is NULL." * ) from src_graph_uninit_error # <<<<<<<<<<<<<< @@ -4029,10 +4040,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_src_graph_uninit_error); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __PYX_ERR(0, 77, __pyx_L16_error) + __PYX_ERR(0, 78, __pyx_L16_error) } - /* "planarity/full/graph.pyx":76 + /* "planarity/full/graph.pyx":77 * if src_graph.gp_GetN() == 0: * raise ValueError("Source graph has not been initialized.") * except RuntimeError as src_graph_uninit_error: # <<<<<<<<<<<<<< @@ -4075,7 +4086,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ } goto __pyx_L6_except_error; - /* "planarity/full/graph.pyx":73 + /* "planarity/full/graph.pyx":74 * ) * * try: # <<<<<<<<<<<<<< @@ -4091,7 +4102,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_L9_try_end:; } - /* "planarity/full/graph.pyx":81 + /* "planarity/full/graph.pyx":82 * ) from src_graph_uninit_error * * if self.gp_GetN() != src_graph.gp_GetN(): # <<<<<<<<<<<<<< @@ -4105,7 +4116,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 81, __pyx_L1_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); } __pyx_t_2 = ((PyObject *)__pyx_v_src_graph); @@ -4115,17 +4126,17 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 81, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_9, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_9, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 81, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":82 + /* "planarity/full/graph.pyx":83 * * if self.gp_GetN() != src_graph.gp_GetN(): * raise ValueError( # <<<<<<<<<<<<<< @@ -4138,14 +4149,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Source_and_destination_graphs_mu}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __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, 82, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __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, 82, __pyx_L1_error) + __PYX_ERR(0, 83, __pyx_L1_error) - /* "planarity/full/graph.pyx":81 + /* "planarity/full/graph.pyx":82 * ) from src_graph_uninit_error * * if self.gp_GetN() != src_graph.gp_GetN(): # <<<<<<<<<<<<<< @@ -4154,25 +4165,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":86 + /* "planarity/full/graph.pyx":87 * "to copy graphP struct.") * * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_CopyGraph() failed.") * */ - __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, 86, __pyx_L1_error) + __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, 87, __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, 86, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __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, 86, __pyx_L1_error) + __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, 87, __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, 86, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":87 + /* "planarity/full/graph.pyx":88 * * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: * raise RuntimeError(f"gp_CopyGraph() failed.") # <<<<<<<<<<<<<< @@ -4185,14 +4196,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_CopyGraph_failed}; __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_9)) __PYX_ERR(0, 87, __pyx_L1_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); } __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(0, 87, __pyx_L1_error) + __PYX_ERR(0, 88, __pyx_L1_error) - /* "planarity/full/graph.pyx":86 + /* "planarity/full/graph.pyx":87 * "to copy graphP struct.") * * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< @@ -4201,7 +4212,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":65 + /* "planarity/full/graph.pyx":66 * return cgraphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< @@ -4227,7 +4238,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ return __pyx_r; } -/* "planarity/full/graph.pyx":89 +/* "planarity/full/graph.pyx":90 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< @@ -4292,7 +4303,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DupGraph", 0); - /* "planarity/full/graph.pyx":90 + /* "planarity/full/graph.pyx":91 * * def gp_DupGraph(self) -> Graph: * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) # <<<<<<<<<<<<<< @@ -4301,7 +4312,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full */ __pyx_v_theGraph_dup = gp_DupGraph(__pyx_v_self->_theGraph); - /* "planarity/full/graph.pyx":91 + /* "planarity/full/graph.pyx":92 * def gp_DupGraph(self) -> Graph: * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: # <<<<<<<<<<<<<< @@ -4311,7 +4322,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full __pyx_t_1 = (__pyx_v_theGraph_dup == NULL); if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":92 + /* "planarity/full/graph.pyx":93 * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: * raise MemoryError("gp_DupGraph() failed.") # <<<<<<<<<<<<<< @@ -4324,14 +4335,14 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_DupGraph_failed}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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, 92, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __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, 92, __pyx_L1_error) + __PYX_ERR(0, 93, __pyx_L1_error) - /* "planarity/full/graph.pyx":91 + /* "planarity/full/graph.pyx":92 * def gp_DupGraph(self) -> Graph: * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: # <<<<<<<<<<<<<< @@ -4340,7 +4351,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full */ } - /* "planarity/full/graph.pyx":94 + /* "planarity/full/graph.pyx":95 * raise MemoryError("gp_DupGraph() failed.") * * cdef Graph new_graph = Graph() # <<<<<<<<<<<<<< @@ -4353,13 +4364,13 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_callargs+__pyx_t_4, (1-__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, 94, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF((PyObject *)__pyx_t_2); } __pyx_v_new_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":95 + /* "planarity/full/graph.pyx":96 * * cdef Graph new_graph = Graph() * cgraphLib.gp_Free(&new_graph._theGraph) # <<<<<<<<<<<<<< @@ -4368,7 +4379,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full */ gp_Free((&__pyx_v_new_graph->_theGraph)); - /* "planarity/full/graph.pyx":96 + /* "planarity/full/graph.pyx":97 * cdef Graph new_graph = Graph() * cgraphLib.gp_Free(&new_graph._theGraph) * new_graph._theGraph = theGraph_dup # <<<<<<<<<<<<<< @@ -4377,7 +4388,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full */ __pyx_v_new_graph->_theGraph = __pyx_v_theGraph_dup; - /* "planarity/full/graph.pyx":98 + /* "planarity/full/graph.pyx":99 * new_graph._theGraph = theGraph_dup * * return new_graph # <<<<<<<<<<<<<< @@ -4389,7 +4400,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full __pyx_r = __pyx_v_new_graph; goto __pyx_L0; - /* "planarity/full/graph.pyx":89 + /* "planarity/full/graph.pyx":90 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< @@ -4410,7 +4421,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full return __pyx_r; } -/* "planarity/full/graph.pyx":100 +/* "planarity/full/graph.pyx":101 * return new_graph * * def gp_FindEdge(self, int u, int v): # <<<<<<<<<<<<<< @@ -4459,39 +4470,39 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_v,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, 100, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 101, __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, 100, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 101, __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, 100, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 101, __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_FindEdge", 0) < (0)) __PYX_ERR(0, 100, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_FindEdge", 0) < (0)) __PYX_ERR(0, 101, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, i); __PYX_ERR(0, 100, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, i); __PYX_ERR(0, 101, __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, 100, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 101, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 100, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 101, __pyx_L3_error) } - __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 100, __pyx_L3_error) - __pyx_v_v = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 100, __pyx_L3_error) + __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 100, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 101, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -4528,7 +4539,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_FindEdge", 0); - /* "planarity/full/graph.pyx":101 + /* "planarity/full/graph.pyx":102 * * def gp_FindEdge(self, int u, int v): * if not self.gp_IsVertex(u): # <<<<<<<<<<<<<< @@ -4537,7 +4548,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_u); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_u); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -4545,15 +4556,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 101, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 101, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":102 + /* "planarity/full/graph.pyx":103 * def gp_FindEdge(self, int u, int v): * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") # <<<<<<<<<<<<<< @@ -4561,13 +4572,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * raise RuntimeError(f"'{v}' is not a valid vertex label.") */ __pyx_t_3 = NULL; - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_is_not_a_valid_vertex_label; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 30, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 102, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -4576,14 +4587,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 102, __pyx_L1_error) + __PYX_ERR(0, 103, __pyx_L1_error) - /* "planarity/full/graph.pyx":101 + /* "planarity/full/graph.pyx":102 * * def gp_FindEdge(self, int u, int v): * if not self.gp_IsVertex(u): # <<<<<<<<<<<<<< @@ -4592,7 +4603,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ } - /* "planarity/full/graph.pyx":103 + /* "planarity/full/graph.pyx":104 * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4601,7 +4612,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ __pyx_t_8 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_8); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -4609,15 +4620,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 103, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = (!__pyx_t_6); if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":104 + /* "planarity/full/graph.pyx":105 * raise RuntimeError(f"'{u}' is not a valid vertex label.") * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") # <<<<<<<<<<<<<< @@ -4625,13 +4636,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * return cgraphLib.gp_FindEdge(self._theGraph, u, v) */ __pyx_t_3 = NULL; - __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 104, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2; __pyx_t_7[1] = __pyx_t_8; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_is_not_a_valid_vertex_label; __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 30, 127); - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_4 = 1; @@ -4640,14 +4651,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 104, __pyx_L1_error) + __PYX_ERR(0, 105, __pyx_L1_error) - /* "planarity/full/graph.pyx":103 + /* "planarity/full/graph.pyx":104 * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4656,7 +4667,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ } - /* "planarity/full/graph.pyx":106 + /* "planarity/full/graph.pyx":107 * raise RuntimeError(f"'{v}' is not a valid vertex label.") * * return cgraphLib.gp_FindEdge(self._theGraph, u, v) # <<<<<<<<<<<<<< @@ -4664,13 +4675,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * def gp_GetVertexDegree(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_FindEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_FindEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":100 + /* "planarity/full/graph.pyx":101 * return new_graph * * def gp_FindEdge(self, int u, int v): # <<<<<<<<<<<<<< @@ -4692,7 +4703,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":108 +/* "planarity/full/graph.pyx":109 * return cgraphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< @@ -4740,32 +4751,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 108, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 109, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 108, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 109, __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_GetVertexDegree", 0) < (0)) __PYX_ERR(0, 108, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetVertexDegree", 0) < (0)) __PYX_ERR(0, 109, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, i); __PYX_ERR(0, 108, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, i); __PYX_ERR(0, 109, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 108, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 109, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 108, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 109, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 108, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 109, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -4802,7 +4813,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetVertexDegree", 0); - /* "planarity/full/graph.pyx":109 + /* "planarity/full/graph.pyx":110 * * def gp_GetVertexDegree(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4811,7 +4822,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -4819,15 +4830,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 109, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":110 + /* "planarity/full/graph.pyx":111 * def gp_GetVertexDegree(self, int v): * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") # <<<<<<<<<<<<<< @@ -4835,13 +4846,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) */ __pyx_t_3 = NULL; - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_is_not_a_valid_vertex_label; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 30, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 110, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -4850,14 +4861,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 110, __pyx_L1_error) + __PYX_ERR(0, 111, __pyx_L1_error) - /* "planarity/full/graph.pyx":109 + /* "planarity/full/graph.pyx":110 * * def gp_GetVertexDegree(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4866,7 +4877,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st */ } - /* "planarity/full/graph.pyx":112 + /* "planarity/full/graph.pyx":113 * raise RuntimeError(f"'{v}' is not a valid vertex label.") * * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) # <<<<<<<<<<<<<< @@ -4874,13 +4885,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st * def gp_AddEdge(self, int u, int ulink, int v, int vlink): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetVertexDegree(__pyx_v_self->_theGraph, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetVertexDegree(__pyx_v_self->_theGraph, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":108 + /* "planarity/full/graph.pyx":109 * return cgraphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< @@ -4902,7 +4913,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st return __pyx_r; } -/* "planarity/full/graph.pyx":114 +/* "planarity/full/graph.pyx":115 * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< @@ -4953,53 +4964,53 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_ulink,&__pyx_mstate_global->__pyx_n_u_v,&__pyx_mstate_global->__pyx_n_u_vlink,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, 114, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 115, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 4: values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 115, __pyx_L3_error) CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 115, __pyx_L3_error) CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 115, __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, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 115, __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_AddEdge", 0) < (0)) __PYX_ERR(0, 114, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_AddEdge", 0) < (0)) __PYX_ERR(0, 115, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 4; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, i); __PYX_ERR(0, 114, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, i); __PYX_ERR(0, 115, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 4)) { 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, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 115, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 115, __pyx_L3_error) values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 115, __pyx_L3_error) values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 114, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 115, __pyx_L3_error) } - __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L3_error) - __pyx_v_ulink = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_ulink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L3_error) - __pyx_v_v = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L3_error) - __pyx_v_vlink = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_vlink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L3_error) + __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) + __pyx_v_ulink = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_ulink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) + __pyx_v_vlink = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_vlink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 114, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 115, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -5039,7 +5050,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_AddEdge", 0); - /* "planarity/full/graph.pyx":115 + /* "planarity/full/graph.pyx":116 * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): * if ulink != 0 and ulink != 1: # <<<<<<<<<<<<<< @@ -5057,7 +5068,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p } if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":116 + /* "planarity/full/graph.pyx":117 * def gp_AddEdge(self, int u, int ulink, int v, int vlink): * if ulink != 0 and ulink != 1: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5066,20 +5077,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":117 + /* "planarity/full/graph.pyx":118 * if ulink != 0 and ulink != 1: * raise RuntimeError( * f"Invalid link index for ulink: '{ulink}'." # <<<<<<<<<<<<<< * ) * if vlink != 0 and vlink != 1: */ - __pyx_t_4 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_link_index_for_ulink; __pyx_t_5[1] = __pyx_t_4; __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, 31 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 2, 127); - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = 1; @@ -5088,14 +5099,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __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, 116, __pyx_L1_error) + __PYX_ERR(0, 117, __pyx_L1_error) - /* "planarity/full/graph.pyx":115 + /* "planarity/full/graph.pyx":116 * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): * if ulink != 0 and ulink != 1: # <<<<<<<<<<<<<< @@ -5104,7 +5115,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ } - /* "planarity/full/graph.pyx":119 + /* "planarity/full/graph.pyx":120 * f"Invalid link index for ulink: '{ulink}'." * ) * if vlink != 0 and vlink != 1: # <<<<<<<<<<<<<< @@ -5122,7 +5133,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p } if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":120 + /* "planarity/full/graph.pyx":121 * ) * if vlink != 0 and vlink != 1: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5131,20 +5142,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ __pyx_t_6 = NULL; - /* "planarity/full/graph.pyx":121 + /* "planarity/full/graph.pyx":122 * if vlink != 0 and vlink != 1: * raise RuntimeError( * f"Invalid link index for vlink: '{vlink}'." # <<<<<<<<<<<<<< * ) * 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, 121, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_link_index_for_vlink; __pyx_t_5[1] = __pyx_t_3; __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, 31 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 2, 127); - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = 1; @@ -5153,14 +5164,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __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, 120, __pyx_L1_error) + __PYX_ERR(0, 121, __pyx_L1_error) - /* "planarity/full/graph.pyx":119 + /* "planarity/full/graph.pyx":120 * f"Invalid link index for ulink: '{ulink}'." * ) * if vlink != 0 and vlink != 1: # <<<<<<<<<<<<<< @@ -5169,25 +5180,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ } - /* "planarity/full/graph.pyx":123 + /* "planarity/full/graph.pyx":124 * f"Invalid link index for vlink: '{vlink}'." * ) * 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_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, 123, __pyx_L1_error) + __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, 124, __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, 123, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __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, 123, __pyx_L1_error) + __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, 124, __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, 123, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":124 + /* "planarity/full/graph.pyx":125 * ) * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5196,28 +5207,28 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ __pyx_t_4 = NULL; - /* "planarity/full/graph.pyx":125 + /* "planarity/full/graph.pyx":126 * 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_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __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, 125, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __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, 125, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - /* "planarity/full/graph.pyx":126 + /* "planarity/full/graph.pyx":127 * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " * f"and vlink = {vlink}." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 126, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 127, __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_2; @@ -5229,7 +5240,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __pyx_t_10[7] = __pyx_t_9; __pyx_t_10[8] = __pyx_mstate_global->__pyx_kp_u_; - /* "planarity/full/graph.pyx":125 + /* "planarity/full/graph.pyx":126 * 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} " # <<<<<<<<<<<<<< @@ -5237,7 +5248,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p * ) */ __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, 125, __pyx_L1_error) + if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -5249,14 +5260,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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_6)) __PYX_ERR(0, 124, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); } __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(0, 124, __pyx_L1_error) + __PYX_ERR(0, 125, __pyx_L1_error) - /* "planarity/full/graph.pyx":123 + /* "planarity/full/graph.pyx":124 * f"Invalid link index for vlink: '{vlink}'." * ) * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< @@ -5265,7 +5276,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ } - /* "planarity/full/graph.pyx":114 + /* "planarity/full/graph.pyx":115 * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< @@ -5292,7 +5303,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p return __pyx_r; } -/* "planarity/full/graph.pyx":129 +/* "planarity/full/graph.pyx":130 * ) * * def gp_DeleteEdge(self, int e): # <<<<<<<<<<<<<< @@ -5340,32 +5351,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 129, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 130, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 129, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 130, __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_DeleteEdge", 0) < (0)) __PYX_ERR(0, 129, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_DeleteEdge", 0) < (0)) __PYX_ERR(0, 130, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, i); __PYX_ERR(0, 129, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, i); __PYX_ERR(0, 130, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 129, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 130, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 129, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 130, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 129, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 130, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -5402,7 +5413,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DeleteEdge", 0); - /* "planarity/full/graph.pyx":130 + /* "planarity/full/graph.pyx":131 * * def gp_DeleteEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -5411,7 +5422,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 130, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -5419,15 +5430,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 130, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 130, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":131 + /* "planarity/full/graph.pyx":132 * def gp_DeleteEdge(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5436,20 +5447,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":132 + /* "planarity/full/graph.pyx":133 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_DeleteEdge() failed: invalid edge '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_DeleteEdge_failed_invalid_edg; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 38 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 132, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -5458,14 +5469,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 131, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 131, __pyx_L1_error) + __PYX_ERR(0, 132, __pyx_L1_error) - /* "planarity/full/graph.pyx":130 + /* "planarity/full/graph.pyx":131 * * def gp_DeleteEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -5474,7 +5485,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct */ } - /* "planarity/full/graph.pyx":135 + /* "planarity/full/graph.pyx":136 * ) * * return cgraphLib.gp_DeleteEdge(self._theGraph, e) # <<<<<<<<<<<<<< @@ -5482,13 +5493,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct * def gp_LowerBoundEdgeStorage(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_DeleteEdge(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_DeleteEdge(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":129 + /* "planarity/full/graph.pyx":130 * ) * * def gp_DeleteEdge(self, int e): # <<<<<<<<<<<<<< @@ -5510,7 +5521,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct return __pyx_r; } -/* "planarity/full/graph.pyx":137 +/* "planarity/full/graph.pyx":138 * return cgraphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5570,7 +5581,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_LowerBoundEdgeStorage", 0); - /* "planarity/full/graph.pyx":138 + /* "planarity/full/graph.pyx":139 * * def gp_LowerBoundEdgeStorage(self): * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< @@ -5578,13 +5589,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor * def gp_UpperBoundEdgeStorage(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_LowerBoundEdgeStorage(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_LowerBoundEdgeStorage(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":137 + /* "planarity/full/graph.pyx":138 * return cgraphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5603,7 +5614,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor return __pyx_r; } -/* "planarity/full/graph.pyx":140 +/* "planarity/full/graph.pyx":141 * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5663,7 +5674,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundEdgeStorage", 0); - /* "planarity/full/graph.pyx":141 + /* "planarity/full/graph.pyx":142 * * def gp_UpperBoundEdgeStorage(self): * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< @@ -5671,13 +5682,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor * def gp_IsEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundEdgeStorage(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundEdgeStorage(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":140 + /* "planarity/full/graph.pyx":141 * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5696,7 +5707,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor return __pyx_r; } -/* "planarity/full/graph.pyx":143 +/* "planarity/full/graph.pyx":144 * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< @@ -5744,32 +5755,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 143, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 144, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 143, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 144, __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_IsEdge", 0) < (0)) __PYX_ERR(0, 143, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_IsEdge", 0) < (0)) __PYX_ERR(0, 144, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, i); __PYX_ERR(0, 143, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, i); __PYX_ERR(0, 144, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 143, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 144, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 143, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 144, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 143, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 144, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -5805,7 +5816,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_IsEdge", 0); - /* "planarity/full/graph.pyx":144 + /* "planarity/full/graph.pyx":145 * * def gp_IsEdge(self, int e): * return ( # <<<<<<<<<<<<<< @@ -5814,14 +5825,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py */ __Pyx_XDECREF(__pyx_r); - /* "planarity/full/graph.pyx":145 + /* "planarity/full/graph.pyx":146 * def gp_IsEdge(self, int e): * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and # <<<<<<<<<<<<<< * (e < self.gp_UpperBoundEdgeStorage()) and * cgraphLib.gp_IsEdge(self._theGraph, e) */ - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 145, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_4); @@ -5830,13 +5841,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 145, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 145, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 146, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { @@ -5846,14 +5857,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":146 + /* "planarity/full/graph.pyx":147 * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and * (e < self.gp_UpperBoundEdgeStorage()) and # <<<<<<<<<<<<<< * cgraphLib.gp_IsEdge(self._theGraph, e) * ) */ - __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); @@ -5862,13 +5873,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 146, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 147, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { @@ -5878,7 +5889,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":147 + /* "planarity/full/graph.pyx":148 * (e >= self.gp_LowerBoundEdgeStorage()) and * (e < self.gp_UpperBoundEdgeStorage()) and * cgraphLib.gp_IsEdge(self._theGraph, e) # <<<<<<<<<<<<<< @@ -5886,7 +5897,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py * */ __pyx_t_7 = gp_IsEdge(__pyx_v_self->_theGraph, __pyx_v_e); - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; @@ -5895,7 +5906,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":143 + /* "planarity/full/graph.pyx":144 * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< @@ -5917,7 +5928,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py return __pyx_r; } -/* "planarity/full/graph.pyx":150 +/* "planarity/full/graph.pyx":151 * ) * * def gp_EdgeInUse(self, int e): # <<<<<<<<<<<<<< @@ -5965,32 +5976,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 150, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 151, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 150, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 151, __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_EdgeInUse", 0) < (0)) __PYX_ERR(0, 150, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_EdgeInUse", 0) < (0)) __PYX_ERR(0, 151, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, i); __PYX_ERR(0, 150, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, i); __PYX_ERR(0, 151, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 150, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 151, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 150, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 150, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 151, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6027,7 +6038,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_EdgeInUse", 0); - /* "planarity/full/graph.pyx":151 + /* "planarity/full/graph.pyx":152 * * def gp_EdgeInUse(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6036,7 +6047,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6044,15 +6055,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 151, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":152 + /* "planarity/full/graph.pyx":153 * def gp_EdgeInUse(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6061,20 +6072,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":153 + /* "planarity/full/graph.pyx":154 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_EdgeInUse() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_EdgeInUse_failed_invalid_edge; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 43 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 153, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6083,14 +6094,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 152, __pyx_L1_error) + __PYX_ERR(0, 153, __pyx_L1_error) - /* "planarity/full/graph.pyx":151 + /* "planarity/full/graph.pyx":152 * * def gp_EdgeInUse(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6099,7 +6110,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ */ } - /* "planarity/full/graph.pyx":156 + /* "planarity/full/graph.pyx":157 * ) * * return cgraphLib.gp_EdgeInUse(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6107,13 +6118,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ * def gp_UpperBoundEdges(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":150 + /* "planarity/full/graph.pyx":151 * ) * * def gp_EdgeInUse(self, int e): # <<<<<<<<<<<<<< @@ -6135,7 +6146,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ return __pyx_r; } -/* "planarity/full/graph.pyx":158 +/* "planarity/full/graph.pyx":159 * return cgraphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< @@ -6195,7 +6206,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundEdges", 0); - /* "planarity/full/graph.pyx":159 + /* "planarity/full/graph.pyx":160 * * def gp_UpperBoundEdges(self): * return cgraphLib.gp_UpperBoundEdges(self._theGraph) # <<<<<<<<<<<<<< @@ -6203,13 +6214,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st * def gp_GetNextEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundEdges(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 159, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundEdges(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":158 + /* "planarity/full/graph.pyx":159 * return cgraphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< @@ -6228,7 +6239,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st return __pyx_r; } -/* "planarity/full/graph.pyx":161 +/* "planarity/full/graph.pyx":162 * return cgraphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< @@ -6276,32 +6287,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 161, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 162, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 161, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 162, __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_GetNextEdge", 0) < (0)) __PYX_ERR(0, 161, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetNextEdge", 0) < (0)) __PYX_ERR(0, 162, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, i); __PYX_ERR(0, 161, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, i); __PYX_ERR(0, 162, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 161, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 162, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 161, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 162, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 161, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 162, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6338,7 +6349,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetNextEdge", 0); - /* "planarity/full/graph.pyx":162 + /* "planarity/full/graph.pyx":163 * * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6347,7 +6358,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 162, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6355,15 +6366,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 162, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 162, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":163 + /* "planarity/full/graph.pyx":164 * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6372,20 +6383,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":164 + /* "planarity/full/graph.pyx":165 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_GetNextEdge() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetNextEdge_failed_invalid_ed; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 45 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 164, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6394,14 +6405,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 163, __pyx_L1_error) + __PYX_ERR(0, 164, __pyx_L1_error) - /* "planarity/full/graph.pyx":162 + /* "planarity/full/graph.pyx":163 * * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6410,7 +6421,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ } - /* "planarity/full/graph.pyx":167 + /* "planarity/full/graph.pyx":168 * ) * * return cgraphLib.gp_GetNextEdge(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6418,13 +6429,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct * def gp_GetNeighbor(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 167, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":161 + /* "planarity/full/graph.pyx":162 * return cgraphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< @@ -6446,7 +6457,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct return __pyx_r; } -/* "planarity/full/graph.pyx":169 +/* "planarity/full/graph.pyx":170 * return cgraphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< @@ -6494,32 +6505,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 169, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 170, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 169, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 170, __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_GetNeighbor", 0) < (0)) __PYX_ERR(0, 169, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetNeighbor", 0) < (0)) __PYX_ERR(0, 170, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, i); __PYX_ERR(0, 169, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, i); __PYX_ERR(0, 170, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 169, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 170, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 169, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 170, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 169, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 170, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6556,7 +6567,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetNeighbor", 0); - /* "planarity/full/graph.pyx":170 + /* "planarity/full/graph.pyx":171 * * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6565,7 +6576,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 170, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6573,15 +6584,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 170, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":171 + /* "planarity/full/graph.pyx":172 * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6590,20 +6601,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":172 + /* "planarity/full/graph.pyx":173 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_GetNeighbor() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetNeighbor_failed_invalid_ed; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 45 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 172, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6612,14 +6623,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 171, __pyx_L1_error) + __PYX_ERR(0, 172, __pyx_L1_error) - /* "planarity/full/graph.pyx":170 + /* "planarity/full/graph.pyx":171 * * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6628,7 +6639,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ } - /* "planarity/full/graph.pyx":175 + /* "planarity/full/graph.pyx":176 * ) * * return cgraphLib.gp_GetNeighbor(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6636,13 +6647,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct * def gp_GetFirstEdge(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 175, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":169 + /* "planarity/full/graph.pyx":170 * return cgraphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< @@ -6664,7 +6675,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct return __pyx_r; } -/* "planarity/full/graph.pyx":177 +/* "planarity/full/graph.pyx":178 * return cgraphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< @@ -6712,32 +6723,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 177, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 178, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 177, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 178, __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_GetFirstEdge", 0) < (0)) __PYX_ERR(0, 177, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetFirstEdge", 0) < (0)) __PYX_ERR(0, 178, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, i); __PYX_ERR(0, 177, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, i); __PYX_ERR(0, 178, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 177, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 178, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 177, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 178, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 177, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 178, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6774,7 +6785,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetFirstEdge", 0); - /* "planarity/full/graph.pyx":178 + /* "planarity/full/graph.pyx":179 * * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -6783,7 +6794,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 178, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6791,15 +6802,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 178, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":179 + /* "planarity/full/graph.pyx":180 * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6808,20 +6819,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":180 + /* "planarity/full/graph.pyx":181 * if not self.gp_IsVertex(v): * raise RuntimeError( * f"gp_GetFirstEdge() failed: invalid vertex intex '{v}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 180, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetFirstEdge_failed_invalid_v; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 48 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 180, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6830,14 +6841,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 179, __pyx_L1_error) + __PYX_ERR(0, 180, __pyx_L1_error) - /* "planarity/full/graph.pyx":178 + /* "planarity/full/graph.pyx":179 * * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -6846,7 +6857,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ } - /* "planarity/full/graph.pyx":183 + /* "planarity/full/graph.pyx":184 * ) * * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) # <<<<<<<<<<<<<< @@ -6854,13 +6865,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc * def gp_LowerBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":177 + /* "planarity/full/graph.pyx":178 * return cgraphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< @@ -6882,7 +6893,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc return __pyx_r; } -/* "planarity/full/graph.pyx":185 +/* "planarity/full/graph.pyx":186 * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< @@ -6942,7 +6953,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_LowerBoundVertices", 0); - /* "planarity/full/graph.pyx":186 + /* "planarity/full/graph.pyx":187 * * def gp_LowerBoundVertices(self): * return cgraphLib.gp_LowerBoundVertices(self._theGraph) # <<<<<<<<<<<<<< @@ -6950,13 +6961,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices * def gp_UpperBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_LowerBoundVertices(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 186, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_LowerBoundVertices(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":185 + /* "planarity/full/graph.pyx":186 * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< @@ -6975,7 +6986,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices return __pyx_r; } -/* "planarity/full/graph.pyx":188 +/* "planarity/full/graph.pyx":189 * return cgraphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< @@ -7035,7 +7046,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundVertices", 0); - /* "planarity/full/graph.pyx":189 + /* "planarity/full/graph.pyx":190 * * def gp_UpperBoundVertices(self): * return cgraphLib.gp_UpperBoundVertices(self._theGraph) # <<<<<<<<<<<<<< @@ -7043,13 +7054,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices * def gp_IsVertex(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundVertices(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 189, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundVertices(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":188 + /* "planarity/full/graph.pyx":189 * return cgraphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< @@ -7068,7 +7079,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices return __pyx_r; } -/* "planarity/full/graph.pyx":191 +/* "planarity/full/graph.pyx":192 * return cgraphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< @@ -7116,32 +7127,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 191, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 192, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 191, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 192, __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_IsVertex", 0) < (0)) __PYX_ERR(0, 191, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_IsVertex", 0) < (0)) __PYX_ERR(0, 192, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, i); __PYX_ERR(0, 191, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, i); __PYX_ERR(0, 192, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 191, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 192, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 191, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 192, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 191, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 192, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7177,7 +7188,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_IsVertex", 0); - /* "planarity/full/graph.pyx":192 + /* "planarity/full/graph.pyx":193 * * def gp_IsVertex(self, int v): * return ( # <<<<<<<<<<<<<< @@ -7186,14 +7197,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ */ __Pyx_XDECREF(__pyx_r); - /* "planarity/full/graph.pyx":193 + /* "planarity/full/graph.pyx":194 * def gp_IsVertex(self, int v): * return ( * (v >= self.gp_LowerBoundVertices()) and # <<<<<<<<<<<<<< * (v < self.gp_UpperBoundVertices()) and * cgraphLib.gp_IsVertex(self._theGraph, v) */ - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_4); @@ -7202,13 +7213,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 194, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { @@ -7218,14 +7229,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":194 + /* "planarity/full/graph.pyx":195 * return ( * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and # <<<<<<<<<<<<<< * cgraphLib.gp_IsVertex(self._theGraph, v) * ) */ - __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); @@ -7234,13 +7245,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 195, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { @@ -7250,7 +7261,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":195 + /* "planarity/full/graph.pyx":196 * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and * cgraphLib.gp_IsVertex(self._theGraph, v) # <<<<<<<<<<<<<< @@ -7258,7 +7269,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ * */ __pyx_t_7 = gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; @@ -7267,7 +7278,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":191 + /* "planarity/full/graph.pyx":192 * return cgraphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< @@ -7289,7 +7300,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":198 +/* "planarity/full/graph.pyx":199 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< @@ -7353,25 +7364,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_K23Search", 0); - /* "planarity/full/graph.pyx":199 + /* "planarity/full/graph.pyx":200 * * def gp_ExtendWith_K23Search(self): * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K23Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K23Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __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, 199, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __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, 199, __pyx_L1_error) + __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, 200, __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, 199, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":200 + /* "planarity/full/graph.pyx":201 * def gp_ExtendWith_K23Search(self): * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") # <<<<<<<<<<<<<< @@ -7384,14 +7395,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear 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, 200, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 200, __pyx_L1_error) + __PYX_ERR(0, 201, __pyx_L1_error) - /* "planarity/full/graph.pyx":199 + /* "planarity/full/graph.pyx":200 * * def gp_ExtendWith_K23Search(self): * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -7400,7 +7411,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear */ } - /* "planarity/full/graph.pyx":198 + /* "planarity/full/graph.pyx":199 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< @@ -7423,7 +7434,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear return __pyx_r; } -/* "planarity/full/graph.pyx":202 +/* "planarity/full/graph.pyx":203 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< @@ -7487,25 +7498,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_K33Search", 0); - /* "planarity/full/graph.pyx":203 + /* "planarity/full/graph.pyx":204 * * def gp_ExtendWith_K33Search(self): * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K33Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K33Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __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, 203, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __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, 203, __pyx_L1_error) + __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, 204, __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, 203, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":204 + /* "planarity/full/graph.pyx":205 * def gp_ExtendWith_K33Search(self): * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") # <<<<<<<<<<<<<< @@ -7518,14 +7529,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear 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, 204, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 204, __pyx_L1_error) + __PYX_ERR(0, 205, __pyx_L1_error) - /* "planarity/full/graph.pyx":203 + /* "planarity/full/graph.pyx":204 * * def gp_ExtendWith_K33Search(self): * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -7534,7 +7545,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear */ } - /* "planarity/full/graph.pyx":202 + /* "planarity/full/graph.pyx":203 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< @@ -7557,7 +7568,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear return __pyx_r; } -/* "planarity/full/graph.pyx":206 +/* "planarity/full/graph.pyx":207 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< @@ -7621,25 +7632,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_K4Search", 0); - /* "planarity/full/graph.pyx":207 + /* "planarity/full/graph.pyx":208 * * def gp_ExtendWith_K4Search(self): * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K4Search structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K4Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K4Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __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, 207, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __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, 207, __pyx_L1_error) + __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, 208, __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, 207, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":208 + /* "planarity/full/graph.pyx":209 * def gp_ExtendWith_K4Search(self): * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") # <<<<<<<<<<<<<< @@ -7652,14 +7663,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc 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, 208, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 208, __pyx_L1_error) + __PYX_ERR(0, 209, __pyx_L1_error) - /* "planarity/full/graph.pyx":207 + /* "planarity/full/graph.pyx":208 * * def gp_ExtendWith_K4Search(self): * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -7668,7 +7679,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc */ } - /* "planarity/full/graph.pyx":206 + /* "planarity/full/graph.pyx":207 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< @@ -7691,7 +7702,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc return __pyx_r; } -/* "planarity/full/graph.pyx":210 +/* "planarity/full/graph.pyx":211 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< @@ -7739,32 +7750,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_infile_name,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, 210, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 211, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 210, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 211, __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_Read", 0) < (0)) __PYX_ERR(0, 210, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Read", 0) < (0)) __PYX_ERR(0, 211, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, i); __PYX_ERR(0, 210, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, i); __PYX_ERR(0, 211, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 210, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 211, __pyx_L3_error) } __pyx_v_infile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 210, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 211, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7775,7 +7786,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 210, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 211, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_infile_name); /* function exit code */ @@ -7811,7 +7822,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_Read", 0); - /* "planarity/full/graph.pyx":212 + /* "planarity/full/graph.pyx":213 * def gp_Read(self, str infile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -7820,42 +7831,42 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ */ if (unlikely(__pyx_v_infile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 212, __pyx_L1_error) + __PYX_ERR(0, 213, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":213 + /* "planarity/full/graph.pyx":214 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') * cdef const char *FileName = encoded # <<<<<<<<<<<<<< * * 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, 213, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 214, __pyx_L1_error) __pyx_v_FileName = __pyx_t_2; - /* "planarity/full/graph.pyx":215 + /* "planarity/full/graph.pyx":216 * cdef const char *FileName = encoded * * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_Read() failed.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __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, 215, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __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, 215, __pyx_L1_error) + __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, 216, __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, 215, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":216 + /* "planarity/full/graph.pyx":217 * * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: * raise RuntimeError(f"gp_Read() failed.") # <<<<<<<<<<<<<< @@ -7868,14 +7879,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ 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, 216, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 216, __pyx_L1_error) + __PYX_ERR(0, 217, __pyx_L1_error) - /* "planarity/full/graph.pyx":215 + /* "planarity/full/graph.pyx":216 * cdef const char *FileName = encoded * * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< @@ -7884,7 +7895,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ */ } - /* "planarity/full/graph.pyx":210 + /* "planarity/full/graph.pyx":211 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< @@ -7908,7 +7919,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ return __pyx_r; } -/* "planarity/full/graph.pyx":218 +/* "planarity/full/graph.pyx":219 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< @@ -7957,39 +7968,39 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,&__pyx_mstate_global->__pyx_n_u_mode,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, 218, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 219, __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, 218, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 219, __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, 218, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 219, __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_Write", 0) < (0)) __PYX_ERR(0, 218, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Write", 0) < (0)) __PYX_ERR(0, 219, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, i); __PYX_ERR(0, 218, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, i); __PYX_ERR(0, 219, __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, 218, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 219, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 218, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 219, __pyx_L3_error) } __pyx_v_outfile_name = ((PyObject*)values[0]); __pyx_v_mode = ((PyObject*)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 218, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 219, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -8000,8 +8011,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mode), (&PyUnicode_Type), 1, "mode", 1))) __PYX_ERR(0, 218, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 219, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mode), (&PyUnicode_Type), 1, "mode", 1))) __PYX_ERR(0, 219, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name, __pyx_v_mode); /* function exit code */ @@ -8043,52 +8054,52 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_Write", 0); - /* "planarity/full/graph.pyx":219 + /* "planarity/full/graph.pyx":220 * * def gp_Write(self, str outfile_name, str mode): * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" # <<<<<<<<<<<<<< * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" * else (cgraphLib.WRITE_G6 if mode == "g" */ - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 219, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 220, __pyx_L1_error) if (__pyx_t_2) { - __pyx_t_3 = __Pyx_PyLong_From_int(WRITE_ADJLIST); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(WRITE_ADJLIST); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; } else { - /* "planarity/full/graph.pyx":220 + /* "planarity/full/graph.pyx":221 * def gp_Write(self, str outfile_name, str mode): * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" # <<<<<<<<<<<<<< * else (cgraphLib.WRITE_G6 if mode == "g" * else None))) */ - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 220, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 221, __pyx_L1_error) if (__pyx_t_4) { - __pyx_t_5 = __Pyx_PyLong_From_int(WRITE_ADJMATRIX); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 220, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyLong_From_int(WRITE_ADJMATRIX); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __pyx_t_5; __pyx_t_5 = 0; } else { - /* "planarity/full/graph.pyx":221 + /* "planarity/full/graph.pyx":222 * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" * else (cgraphLib.WRITE_G6 if mode == "g" # <<<<<<<<<<<<<< * else None))) * if not mode_code: */ - __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 222, __pyx_L1_error) if (__pyx_t_6) { - __pyx_t_7 = __Pyx_PyLong_From_int(WRITE_G6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyLong_From_int(WRITE_G6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __pyx_t_7; __pyx_t_7 = 0; } else { - /* "planarity/full/graph.pyx":222 + /* "planarity/full/graph.pyx":223 * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" * else (cgraphLib.WRITE_G6 if mode == "g" * else None))) # <<<<<<<<<<<<<< @@ -8107,18 +8118,18 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __pyx_v_mode_code = __pyx_t_1; __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":223 + /* "planarity/full/graph.pyx":224 * else (cgraphLib.WRITE_G6 if mode == "g" * else None))) * if not mode_code: # <<<<<<<<<<<<<< * raise ValueError( * f"Invalid graph format specifier \"{mode}\" is not one of " */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 223, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 224, __pyx_L1_error) __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":224 + /* "planarity/full/graph.pyx":225 * else None))) * if not mode_code: * raise ValueError( # <<<<<<<<<<<<<< @@ -8127,20 +8138,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":225 + /* "planarity/full/graph.pyx":226 * if not mode_code: * raise ValueError( * f"Invalid graph format specifier \"{mode}\" is not one of " # <<<<<<<<<<<<<< * "'gam'." * ) */ - __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_graph_format_specifier; __pyx_t_8[1] = __pyx_t_5; __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_is_not_one_of_gam; __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 32 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 22, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5)); - if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_9 = 1; @@ -8149,14 +8160,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__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, 224, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 224, __pyx_L1_error) + __PYX_ERR(0, 225, __pyx_L1_error) - /* "planarity/full/graph.pyx":223 + /* "planarity/full/graph.pyx":224 * else (cgraphLib.WRITE_G6 if mode == "g" * else None))) * if not mode_code: # <<<<<<<<<<<<<< @@ -8165,7 +8176,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ } - /* "planarity/full/graph.pyx":230 + /* "planarity/full/graph.pyx":231 * * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -8174,43 +8185,43 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ if (unlikely(__pyx_v_outfile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 230, __pyx_L1_error) + __PYX_ERR(0, 231, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":231 + /* "planarity/full/graph.pyx":232 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * * 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, 231, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_10; - /* "planarity/full/graph.pyx":233 + /* "planarity/full/graph.pyx":234 * cdef const char *theFileName = encoded * * 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, 233, __pyx_L1_error) - __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, 233, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error) + __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, 234, __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, 233, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 234, __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, 233, __pyx_L1_error) + __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, 234, __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, 233, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":234 + /* "planarity/full/graph.pyx":235 * * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -8219,20 +8230,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ __pyx_t_7 = NULL; - /* "planarity/full/graph.pyx":235 + /* "planarity/full/graph.pyx":236 * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 235, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __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_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_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 235, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = 1; @@ -8241,14 +8252,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __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_3)) __PYX_ERR(0, 234, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 234, __pyx_L1_error) + __PYX_ERR(0, 235, __pyx_L1_error) - /* "planarity/full/graph.pyx":233 + /* "planarity/full/graph.pyx":234 * cdef const char *theFileName = encoded * * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< @@ -8257,7 +8268,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ } - /* "planarity/full/graph.pyx":218 + /* "planarity/full/graph.pyx":219 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< @@ -8283,7 +8294,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx return __pyx_r; } -/* "planarity/full/graph.pyx":238 +/* "planarity/full/graph.pyx":239 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< @@ -8347,25 +8358,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_DrawPlanar", 0); - /* "planarity/full/graph.pyx":239 + /* "planarity/full/graph.pyx":240 * * def gp_ExtendWith_DrawPlanar(self): * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __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, 239, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __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, 239, __pyx_L1_error) + __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, 240, __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, 239, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":240 + /* "planarity/full/graph.pyx":241 * def gp_ExtendWith_DrawPlanar(self): * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") # <<<<<<<<<<<<<< @@ -8378,14 +8389,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla 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, 240, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 240, __pyx_L1_error) + __PYX_ERR(0, 241, __pyx_L1_error) - /* "planarity/full/graph.pyx":239 + /* "planarity/full/graph.pyx":240 * * def gp_ExtendWith_DrawPlanar(self): * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -8394,7 +8405,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla */ } - /* "planarity/full/graph.pyx":238 + /* "planarity/full/graph.pyx":239 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< @@ -8417,7 +8428,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla return __pyx_r; } -/* "planarity/full/graph.pyx":242 +/* "planarity/full/graph.pyx":243 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< @@ -8465,32 +8476,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,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, 242, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 243, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 242, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 243, __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_DrawPlanar_RenderToFile", 0) < (0)) __PYX_ERR(0, 242, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_DrawPlanar_RenderToFile", 0) < (0)) __PYX_ERR(0, 243, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, i); __PYX_ERR(0, 242, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, i); __PYX_ERR(0, 243, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 242, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 243, __pyx_L3_error) } __pyx_v_outfile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 242, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 243, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -8501,7 +8512,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 242, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 243, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name); /* function exit code */ @@ -8539,7 +8550,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DrawPlanar_RenderToFile", 0); - /* "planarity/full/graph.pyx":244 + /* "planarity/full/graph.pyx":245 * def gp_DrawPlanar_RenderToFile(self, str outfile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -8548,42 +8559,42 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ if (unlikely(__pyx_v_outfile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 244, __pyx_L1_error) + __PYX_ERR(0, 245, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":245 + /* "planarity/full/graph.pyx":246 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * * 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, 245, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 246, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_2; - /* "planarity/full/graph.pyx":247 + /* "planarity/full/graph.pyx":248 * cdef const char *theFileName = encoded * * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ - __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, 247, __pyx_L1_error) + __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, 248, __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, 247, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 248, __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, 247, __pyx_L1_error) + __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, 248, __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, 247, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":248 + /* "planarity/full/graph.pyx":249 * * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") # <<<<<<<<<<<<<< @@ -8591,13 +8602,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT * def gp_DrawPlanar_RenderToString(self): */ __pyx_t_3 = NULL; - __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 249, __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_1; __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u__3; __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, 248, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_8 = 1; @@ -8606,14 +8617,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT __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_4)) __PYX_ERR(0, 248, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 248, __pyx_L1_error) + __PYX_ERR(0, 249, __pyx_L1_error) - /* "planarity/full/graph.pyx":247 + /* "planarity/full/graph.pyx":248 * cdef const char *theFileName = encoded * * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< @@ -8622,7 +8633,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ } - /* "planarity/full/graph.pyx":242 + /* "planarity/full/graph.pyx":243 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< @@ -8647,7 +8658,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT return __pyx_r; } -/* "planarity/full/graph.pyx":250 +/* "planarity/full/graph.pyx":251 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< @@ -8729,7 +8740,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DrawPlanar_RenderToString", 0); - /* "planarity/full/graph.pyx":251 + /* "planarity/full/graph.pyx":252 * * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL # <<<<<<<<<<<<<< @@ -8738,25 +8749,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ __pyx_v_renditionString = NULL; - /* "planarity/full/graph.pyx":252 + /* "planarity/full/graph.pyx":253 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to C string.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __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, 252, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __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, 252, __pyx_L1_error) + __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, 253, __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, 252, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":253 + /* "planarity/full/graph.pyx":254 * cdef char* renditionString = NULL * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: * raise RuntimeError(f"Failed to render embedding to C string.") # <<<<<<<<<<<<<< @@ -8769,14 +8780,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_C}; __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, 253, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 253, __pyx_L1_error) + __PYX_ERR(0, 254, __pyx_L1_error) - /* "planarity/full/graph.pyx":252 + /* "planarity/full/graph.pyx":253 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< @@ -8785,7 +8796,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ } - /* "planarity/full/graph.pyx":255 + /* "planarity/full/graph.pyx":256 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8802,7 +8813,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "planarity/full/graph.pyx":256 + /* "planarity/full/graph.pyx":257 * * try: * return renditionString.decode('ascii') # <<<<<<<<<<<<<< @@ -8810,14 +8821,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * raise RuntimeError( */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 256, __pyx_L7_error) - __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_9, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L7_error) + __pyx_t_9 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 257, __pyx_L7_error) + __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_9, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 257, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L11_try_return; - /* "planarity/full/graph.pyx":255 + /* "planarity/full/graph.pyx":256 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8830,7 +8841,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":257 + /* "planarity/full/graph.pyx":258 * try: * return renditionString.decode('ascii') * except Exception as string_conversion_error: # <<<<<<<<<<<<<< @@ -8840,7 +8851,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception)))); if (__pyx_t_10) { __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToString", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 257, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 258, __pyx_L9_except_error) __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_1); @@ -8848,7 +8859,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __pyx_v_string_conversion_error = __pyx_t_2; /*try:*/ { - /* "planarity/full/graph.pyx":258 + /* "planarity/full/graph.pyx":259 * return renditionString.decode('ascii') * except Exception as string_conversion_error: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -8861,11 +8872,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_mstate_global->__pyx_kp_u_Failed_to_convert_C_string_to_Py}; __pyx_t_11 = __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_12); __pyx_t_12 = 0; - if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 258, __pyx_L18_error) + if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 259, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_11); } - /* "planarity/full/graph.pyx":260 + /* "planarity/full/graph.pyx":261 * raise RuntimeError( * "Failed to convert C string to Python string." * ) from string_conversion_error # <<<<<<<<<<<<<< @@ -8874,10 +8885,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ __Pyx_Raise(__pyx_t_11, 0, 0, __pyx_v_string_conversion_error); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __PYX_ERR(0, 258, __pyx_L18_error) + __PYX_ERR(0, 259, __pyx_L18_error) } - /* "planarity/full/graph.pyx":257 + /* "planarity/full/graph.pyx":258 * try: * return renditionString.decode('ascii') * except Exception as string_conversion_error: # <<<<<<<<<<<<<< @@ -8920,7 +8931,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } goto __pyx_L9_except_error; - /* "planarity/full/graph.pyx":255 + /* "planarity/full/graph.pyx":256 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8942,7 +8953,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } } - /* "planarity/full/graph.pyx":262 + /* "planarity/full/graph.pyx":263 * ) from string_conversion_error * finally: * free(renditionString) # <<<<<<<<<<<<<< @@ -8994,7 +9005,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } } - /* "planarity/full/graph.pyx":250 + /* "planarity/full/graph.pyx":251 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< @@ -9018,7 +9029,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT return __pyx_r; } -/* "planarity/full/graph.pyx":264 +/* "planarity/full/graph.pyx":265 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< @@ -9082,25 +9093,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_Outerplanarity", 0); - /* "planarity/full/graph.pyx":265 + /* "planarity/full/graph.pyx":266 * * def gp_ExtendWith_Outerplanarity(self): * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __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, 265, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __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, 265, __pyx_L1_error) + __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, 266, __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, 265, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":266 + /* "planarity/full/graph.pyx":267 * def gp_ExtendWith_Outerplanarity(self): * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") # <<<<<<<<<<<<<< @@ -9113,14 +9124,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl 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, 266, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 266, __pyx_L1_error) + __PYX_ERR(0, 267, __pyx_L1_error) - /* "planarity/full/graph.pyx":265 + /* "planarity/full/graph.pyx":266 * * def gp_ExtendWith_Outerplanarity(self): * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -9129,7 +9140,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl */ } - /* "planarity/full/graph.pyx":264 + /* "planarity/full/graph.pyx":265 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< @@ -9152,7 +9163,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl return __pyx_r; } -/* "planarity/full/graph.pyx":268 +/* "planarity/full/graph.pyx":269 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< @@ -9216,25 +9227,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_Planarity", 0); - /* "planarity/full/graph.pyx":269 + /* "planarity/full/graph.pyx":270 * * def gp_ExtendWith_Planarity(self): * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Planarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Planarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __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, 269, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __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, 269, __pyx_L1_error) + __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, 270, __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, 269, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { - /* "planarity/full/graph.pyx":270 + /* "planarity/full/graph.pyx":271 * def gp_ExtendWith_Planarity(self): * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") # <<<<<<<<<<<<<< @@ -9247,14 +9258,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari 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, 270, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 270, __pyx_L1_error) + __PYX_ERR(0, 271, __pyx_L1_error) - /* "planarity/full/graph.pyx":269 + /* "planarity/full/graph.pyx":270 * * def gp_ExtendWith_Planarity(self): * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -9263,7 +9274,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari */ } - /* "planarity/full/graph.pyx":268 + /* "planarity/full/graph.pyx":269 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< @@ -9286,7 +9297,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari return __pyx_r; } -/* "planarity/full/graph.pyx":272 +/* "planarity/full/graph.pyx":273 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< @@ -9334,32 +9345,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_embedFlags,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, 272, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 273, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 272, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 273, __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_Embed", 0) < (0)) __PYX_ERR(0, 272, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Embed", 0) < (0)) __PYX_ERR(0, 273, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, i); __PYX_ERR(0, 272, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, i); __PYX_ERR(0, 273, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 272, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 273, __pyx_L3_error) } - __pyx_v_embedFlags = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_embedFlags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 272, __pyx_L3_error) + __pyx_v_embedFlags = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_embedFlags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 273, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 272, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 273, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -9395,7 +9406,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_Embed", 0); - /* "planarity/full/graph.pyx":273 + /* "planarity/full/graph.pyx":274 * * def gp_Embed(self, int embedFlags) -> int: * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< @@ -9404,41 +9415,41 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx */ __pyx_v_embed_result = gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); - /* "planarity/full/graph.pyx":274 + /* "planarity/full/graph.pyx":275 * 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, 274, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 275, __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, 274, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __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, 274, __pyx_L1_error) + __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, 275, __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, 274, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 275, __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, 274, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __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, 274, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __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, 274, __pyx_L1_error) + __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, 275, __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, 274, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 275, __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":275 + /* "planarity/full/graph.pyx":276 * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: * raise RuntimeError("Failed to perform embed operation.") # <<<<<<<<<<<<<< @@ -9451,14 +9462,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx 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, 275, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __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, 275, __pyx_L1_error) + __PYX_ERR(0, 276, __pyx_L1_error) - /* "planarity/full/graph.pyx":274 + /* "planarity/full/graph.pyx":275 * def gp_Embed(self, int embedFlags) -> int: * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< @@ -9467,7 +9478,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx */ } - /* "planarity/full/graph.pyx":277 + /* "planarity/full/graph.pyx":278 * raise RuntimeError("Failed to perform embed operation.") * * return embed_result # <<<<<<<<<<<<<< @@ -9475,14 +9486,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 277, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 278, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":272 + /* "planarity/full/graph.pyx":273 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< @@ -9503,7 +9514,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx return __pyx_r; } -/* "planarity/full/graph.pyx":279 +/* "planarity/full/graph.pyx":280 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< @@ -9552,39 +9563,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, 279, __pyx_L3_error) + if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 280, __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, 279, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 280, __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, 279, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 280, __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, 279, __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, 280, __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, 279, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, i); __PYX_ERR(0, 280, __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, 279, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 280, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 279, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 280, __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, 279, __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, 280, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 279, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 280, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -9595,7 +9606,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, 279, __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, 280, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultIntegrity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_copy_of_orig_graph, __pyx_v_embed_result); /* function exit code */ @@ -9630,7 +9641,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_TestEmbedResultIntegrity", 0); - /* "planarity/full/graph.pyx":280 + /* "planarity/full/graph.pyx":281 * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: * check_result = cgraphLib.gp_TestEmbedResultIntegrity( # <<<<<<<<<<<<<< @@ -9639,41 +9650,41 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt */ __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":283 + /* "planarity/full/graph.pyx":284 * 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, 283, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 284, __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, 283, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __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, 283, __pyx_L1_error) + __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, 284, __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, 283, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 284, __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, 283, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __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, 283, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __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, 283, __pyx_L1_error) + __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, 284, __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, 283, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 284, __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":284 + /* "planarity/full/graph.pyx":285 * ) * if check_result != OK and check_result != NONEMBEDDABLE: * raise RuntimeError("Failed embed integrity check.") # <<<<<<<<<<<<<< @@ -9686,14 +9697,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt 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, 284, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __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, 284, __pyx_L1_error) + __PYX_ERR(0, 285, __pyx_L1_error) - /* "planarity/full/graph.pyx":283 + /* "planarity/full/graph.pyx":284 * self._theGraph, copy_of_orig_graph._theGraph, embed_result * ) * if check_result != OK and check_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< @@ -9702,7 +9713,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt */ } - /* "planarity/full/graph.pyx":286 + /* "planarity/full/graph.pyx":287 * raise RuntimeError("Failed embed integrity check.") * * return check_result # <<<<<<<<<<<<<< @@ -9710,14 +9721,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 286, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 286, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 287, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":279 + /* "planarity/full/graph.pyx":280 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< @@ -9944,7 +9955,198 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(C return __pyx_r; } -/* "planarity/full/graph.pyx":289 +/* "planarity/full/graph.pyx":290 + * + * + * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< + * return capiutils.gp_GetQuietModeFlag() + * +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_5graph_1gp_GetQuietModeFlag(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_gp_GetQuietModeFlag, "gp_GetQuietModeFlag() -> int"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_1gp_GetQuietModeFlag = {"gp_GetQuietModeFlag", (PyCFunction)__pyx_pw_9planarity_4full_5graph_1gp_GetQuietModeFlag, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_gp_GetQuietModeFlag}; +static PyObject *__pyx_pw_9planarity_4full_5graph_1gp_GetQuietModeFlag(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_GetQuietModeFlag (wrapper)", 0); + __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); + __pyx_r = __pyx_pf_9planarity_4full_5graph_gp_GetQuietModeFlag(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("gp_GetQuietModeFlag", 0); + + /* "planarity/full/graph.pyx":291 + * + * def gp_GetQuietModeFlag() -> int: + * return capiutils.gp_GetQuietModeFlag() # <<<<<<<<<<<<<< + * + * +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetQuietModeFlag()); 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; + goto __pyx_L0; + + /* "planarity/full/graph.pyx":290 + * + * + * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< + * return capiutils.gp_GetQuietModeFlag() + * +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("planarity.full.graph.gp_GetQuietModeFlag", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graph.pyx":294 + * + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< + * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) + * +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_5graph_3gp_SetQuietModeFlag(PyObject *__pyx_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_2gp_SetQuietModeFlag, "gp_SetQuietModeFlag(int newQuietModeFlag) -> None"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_3gp_SetQuietModeFlag = {"gp_SetQuietModeFlag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_3gp_SetQuietModeFlag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_2gp_SetQuietModeFlag}; +static PyObject *__pyx_pw_9planarity_4full_5graph_3gp_SetQuietModeFlag(PyObject *__pyx_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +) { + int __pyx_v_newQuietModeFlag; + #if !CYTHON_METH_FASTCALL + CYTHON_UNUSED Py_ssize_t __pyx_nargs; + #endif + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject* values[1] = {0}; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_SetQuietModeFlag (wrapper)", 0); + #if !CYTHON_METH_FASTCALL + #if CYTHON_ASSUME_SAFE_SIZE + __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); + #else + __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; + #endif + #endif + __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); + { + PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_newQuietModeFlag,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, 294, __pyx_L3_error) + if (__pyx_kwds_len > 0) { + switch (__pyx_nargs) { + case 1: + values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); + 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_SetQuietModeFlag", 0) < (0)) __PYX_ERR(0, 294, __pyx_L3_error) + for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, i); __PYX_ERR(0, 294, __pyx_L3_error) } + } + } else if (unlikely(__pyx_nargs != 1)) { + 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, 294, __pyx_L3_error) + } + __pyx_v_newQuietModeFlag = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_newQuietModeFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 294, __pyx_L3_error) + } + goto __pyx_L6_skip; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 294, __pyx_L3_error) + __pyx_L6_skip:; + goto __pyx_L4_argument_unpacking_done; + __pyx_L3_error:; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __Pyx_AddTraceback("planarity.full.graph.gp_SetQuietModeFlag", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_9planarity_4full_5graph_2gp_SetQuietModeFlag(__pyx_self, __pyx_v_newQuietModeFlag); + + /* function exit code */ + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_SetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_newQuietModeFlag) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_SetQuietModeFlag", 0); + + /* "planarity/full/graph.pyx":295 + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: + * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) # <<<<<<<<<<<<<< + * + * +*/ + gp_SetQuietModeFlag(__pyx_v_newQuietModeFlag); + + /* "planarity/full/graph.pyx":294 + * + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< + * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) + * +*/ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graph.pyx":298 * * * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< @@ -9953,23 +10155,23 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(C */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_1gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_gp_GetProjectVersionFull, "gp_GetProjectVersionFull()"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_1gp_GetProjectVersionFull = {"gp_GetProjectVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_5graph_1gp_GetProjectVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_gp_GetProjectVersionFull}; -static PyObject *__pyx_pw_9planarity_4full_5graph_1gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_9planarity_4full_5graph_5gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_4gp_GetProjectVersionFull, "gp_GetProjectVersionFull()"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5gp_GetProjectVersionFull = {"gp_GetProjectVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_5graph_5gp_GetProjectVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_4gp_GetProjectVersionFull}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("gp_GetProjectVersionFull (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); - __pyx_r = __pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(__pyx_self); + __pyx_r = __pyx_pf_9planarity_4full_5graph_4gp_GetProjectVersionFull(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_4gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_v_encoded_version = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -9979,19 +10181,19 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(CYTHO int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetProjectVersionFull", 0); - /* "planarity/full/graph.pyx":290 + /* "planarity/full/graph.pyx":299 * * def gp_GetProjectVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() # <<<<<<<<<<<<<< * return encoded_version.decode('utf-8') * */ - __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetProjectVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetProjectVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":291 + /* "planarity/full/graph.pyx":300 * def gp_GetProjectVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< @@ -9999,13 +10201,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(CYTHO * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":289 + /* "planarity/full/graph.pyx":298 * * * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< @@ -10025,7 +10227,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(CYTHO return __pyx_r; } -/* "planarity/full/graph.pyx":294 +/* "planarity/full/graph.pyx":303 * * * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< @@ -10034,23 +10236,23 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetProjectVersionFull(CYTHO */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_3gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_2gp_GetLibPlanarityVersionFull, "gp_GetLibPlanarityVersionFull()"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_3gp_GetLibPlanarityVersionFull = {"gp_GetLibPlanarityVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_5graph_3gp_GetLibPlanarityVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_2gp_GetLibPlanarityVersionFull}; -static PyObject *__pyx_pw_9planarity_4full_5graph_3gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull, "gp_GetLibPlanarityVersionFull()"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull = {"gp_GetLibPlanarityVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull}; +static PyObject *__pyx_pw_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); - __pyx_r = __pyx_pf_9planarity_4full_5graph_2gp_GetLibPlanarityVersionFull(__pyx_self); + __pyx_r = __pyx_pf_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_v_encoded_version = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -10060,30 +10262,30 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_GetLibPlanarityVersionFull int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull", 0); - /* "planarity/full/graph.pyx":295 + /* "planarity/full/graph.pyx":304 * * def gp_GetLibPlanarityVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() # <<<<<<<<<<<<<< * return encoded_version.decode('utf-8') */ - __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetLibPlanarityVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetLibPlanarityVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":296 + /* "planarity/full/graph.pyx":305 * def gp_GetLibPlanarityVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":294 + /* "planarity/full/graph.pyx":303 * * * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< @@ -10327,15 +10529,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ #if CYTHON_USE_TYPE_SPECS - __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_5graph_Graph_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph)) __PYX_ERR(0, 29, __pyx_L1_error) - if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_5graph_Graph_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) + __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_5graph_Graph_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph)) __PYX_ERR(0, 30, __pyx_L1_error) + if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_5graph_Graph_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) #else __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = &__pyx_type_9planarity_4full_5graph_Graph; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS - if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) + if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph); @@ -10345,8 +10547,8 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph->tp_getattro = PyObject_GenericGetAttr; } #endif - if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Graph, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) - if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) + if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Graph, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -10648,666 +10850,666 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); (void)__Pyx_modinit_function_import_code(__pyx_mstate); /*--- Execution code ---*/ - /* "planarity/full/graph.pyx":15 + /* "planarity/full/graph.pyx":16 * from planarity.full cimport cgraphLib * * OK = cappconst.OK # <<<<<<<<<<<<<< * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE */ - __pyx_t_2 = __Pyx_PyLong_From_int(OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OK, __pyx_t_2) < (0)) __PYX_ERR(0, 15, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OK, __pyx_t_2) < (0)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":16 + /* "planarity/full/graph.pyx":17 * * OK = cappconst.OK * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE * NOTOK = cappconst.NOTOK */ - __pyx_t_2 = __Pyx_PyLong_From_int(AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 16, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":17 + /* "planarity/full/graph.pyx":18 * OK = cappconst.OK * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< * NOTOK = cappconst.NOTOK * NIL = cappconst.NIL */ - __pyx_t_2 = __Pyx_PyLong_From_int(NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":18 + /* "planarity/full/graph.pyx":19 * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE * NOTOK = cappconst.NOTOK # <<<<<<<<<<<<<< * NIL = cappconst.NIL * */ - __pyx_t_2 = __Pyx_PyLong_From_int(NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":19 + /* "planarity/full/graph.pyx":20 * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE * NOTOK = cappconst.NOTOK * NIL = cappconst.NIL # <<<<<<<<<<<<<< * * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR */ - __pyx_t_2 = __Pyx_PyLong_From_int(NIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(NIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_2) < (0)) __PYX_ERR(0, 19, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_2) < (0)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":21 + /* "planarity/full/graph.pyx":22 * NIL = cappconst.NIL * * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 21, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":22 + /* "planarity/full/graph.pyx":23 * * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":23 + /* "planarity/full/graph.pyx":24 * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":24 + /* "planarity/full/graph.pyx":25 * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 24, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":25 + /* "planarity/full/graph.pyx":26 * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 * */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":26 + /* "planarity/full/graph.pyx":27 * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 # <<<<<<<<<<<<<< * * */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 26, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":40 + /* "planarity/full/graph.pyx":41 * cgraphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_5gp_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[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_5gp_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[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_InitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 40, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_InitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":44 + /* "planarity/full/graph.pyx":45 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< * cgraphLib.gp_ReinitGraph(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_7gp_ReinitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ReinitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_7gp_ReinitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ReinitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ReinitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ReinitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":47 + /* "planarity/full/graph.pyx":48 * cgraphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_9gp_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[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_9gp_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[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 47, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":53 + /* "planarity/full/graph.pyx":54 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_11gp_GetEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_11gp_GetEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 53, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":56 + /* "planarity/full/graph.pyx":57 * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< * """ * Returns the number of vertices in the graph. */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 56, __pyx_L1_error) - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_13gp_GetN, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetN, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_13gp_GetN, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetN, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); #endif __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_t_3) < (0)) __PYX_ERR(0, 56, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_t_3) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":65 + /* "planarity/full/graph.pyx":66 * return cgraphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_15gp_CopyGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_CopyGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 65, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_15gp_CopyGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_CopyGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_CopyGraph, __pyx_t_3) < (0)) __PYX_ERR(0, 65, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_CopyGraph, __pyx_t_3) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":89 + /* "planarity/full/graph.pyx":90 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __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_Graph) < (0)) __PYX_ERR(0, 89, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_17gp_DupGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DupGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Graph) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_17gp_DupGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DupGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __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_DupGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 89, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DupGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":100 + /* "planarity/full/graph.pyx":101 * return new_graph * * def gp_FindEdge(self, int u, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_19gp_FindEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_FindEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_19gp_FindEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_FindEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_FindEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 100, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_FindEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":108 + /* "planarity/full/graph.pyx":109 * return cgraphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_21gp_GetVertexDegree, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetVertexDegree, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_21gp_GetVertexDegree, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetVertexDegree, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetVertexDegree, __pyx_t_2) < (0)) __PYX_ERR(0, 108, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetVertexDegree, __pyx_t_2) < (0)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":114 + /* "planarity/full/graph.pyx":115 * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< * if ulink != 0 and ulink != 1: * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_23gp_AddEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_AddEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 114, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_23gp_AddEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_AddEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_AddEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 114, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_AddEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":129 + /* "planarity/full/graph.pyx":130 * ) * * def gp_DeleteEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_25gp_DeleteEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DeleteEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_25gp_DeleteEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DeleteEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DeleteEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 129, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DeleteEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":137 + /* "planarity/full/graph.pyx":138 * return cgraphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_27gp_LowerBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_27gp_LowerBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 137, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":140 + /* "planarity/full/graph.pyx":141 * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 140, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":143 + /* "planarity/full/graph.pyx":144 * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 143, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 143, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":150 + /* "planarity/full/graph.pyx":151 * ) * * def gp_EdgeInUse(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EdgeInUse, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EdgeInUse, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EdgeInUse, __pyx_t_2) < (0)) __PYX_ERR(0, 150, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EdgeInUse, __pyx_t_2) < (0)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":158 + /* "planarity/full/graph.pyx":159 * return cgraphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< * return cgraphLib.gp_UpperBoundEdges(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_2)) __PYX_ERR(0, 158, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_2)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 158, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":161 + /* "planarity/full/graph.pyx":162 * return cgraphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 161, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":169 + /* "planarity/full/graph.pyx":170 * return cgraphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 169, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_2) < (0)) __PYX_ERR(0, 169, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_2) < (0)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":177 + /* "planarity/full/graph.pyx":178 * return cgraphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 177, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":185 + /* "planarity/full/graph.pyx":186 * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< * return cgraphLib.gp_LowerBoundVertices(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 185, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 185, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":188 + /* "planarity/full/graph.pyx":189 * return cgraphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< * return cgraphLib.gp_UpperBoundVertices(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 188, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 188, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":191 + /* "planarity/full/graph.pyx":192 * return cgraphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< * return ( * (v >= self.gp_LowerBoundVertices()) and */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 191, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_2) < (0)) __PYX_ERR(0, 191, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_2) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":198 + /* "planarity/full/graph.pyx":199 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< * 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_49gp_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[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_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[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_2) < (0)) __PYX_ERR(0, 198, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_2) < (0)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":202 + /* "planarity/full/graph.pyx":203 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< * 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_51gp_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[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_51gp_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[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_2) < (0)) __PYX_ERR(0, 202, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_2) < (0)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":206 + /* "planarity/full/graph.pyx":207 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< * 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_53gp_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[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 206, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_53gp_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[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_2) < (0)) __PYX_ERR(0, 206, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_2) < (0)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":210 + /* "planarity/full/graph.pyx":211 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_2) < (0)) __PYX_ERR(0, 210, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_2) < (0)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":218 + /* "planarity/full/graph.pyx":219 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_2) < (0)) __PYX_ERR(0, 218, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_2) < (0)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":238 + /* "planarity/full/graph.pyx":239 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< * 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_59gp_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[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 238, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_59gp_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[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_2) < (0)) __PYX_ERR(0, 238, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_2) < (0)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":242 + /* "planarity/full/graph.pyx":243 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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, 242, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_2) < (0)) __PYX_ERR(0, 242, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_2) < (0)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":250 + /* "planarity/full/graph.pyx":251 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< * cdef char* renditionString = NULL * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_2) < (0)) __PYX_ERR(0, 250, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_2) < (0)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":264 + /* "planarity/full/graph.pyx":265 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< * 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_65gp_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[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_65gp_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[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_2) < (0)) __PYX_ERR(0, 264, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_2) < (0)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":268 + /* "planarity/full/graph.pyx":269 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< * 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_67gp_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[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 268, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_67gp_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[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_2) < (0)) __PYX_ERR(0, 268, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_2) < (0)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":272 + /* "planarity/full/graph.pyx":273 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< * 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, 272, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 272, __pyx_L1_error) - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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_3)) __PYX_ERR(0, 272, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 273, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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_3)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); #endif __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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, 272, __pyx_L1_error) + 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, 273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":279 + /* "planarity/full/graph.pyx":280 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< * 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, 279, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 280, __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, 279, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __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, 280, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __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, 279, __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, 280, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":1 @@ -11337,34 +11539,74 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":289 + /* "planarity/full/graph.pyx":290 + * + * + * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< + * return capiutils.gp_GetQuietModeFlag() + * +*/ + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_1gp_GetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, 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_3)) __PYX_ERR(0, 290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); + #endif + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, __pyx_t_3) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "planarity/full/graph.pyx":294 + * + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< + * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) + * +*/ + __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_None) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_3gp_SetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); 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 (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, __pyx_t_2) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graph.pyx":298 * * * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() * return encoded_version.decode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_1gp_GetProjectVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, 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, 289, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5gp_GetProjectVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 289, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":294 + /* "planarity/full/graph.pyx":303 * * * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() * return encoded_version.decode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_3gp_GetLibPlanarityVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 294, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":1 @@ -11438,39 +11680,39 @@ 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[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{27},{13},{20},{33},{30},{24},{27},{14},{3},{13},{5},{2},{20},{1},{18},{12},{18},{18},{1},{10},{12},{7},{15},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{29},{7},{14},{14},{24},{18},{12},{9},{11},{24},{21},{7},{14},{27},{24},{18},{21},{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},{14},{27},{39},{130},{44},{44},{44},{45},{42},{69},{117},{27},{28},{11},{80},{27},{114},{14},{44},{51},{44},{44},{21},{21},{9},{64},{57},{49}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2164 bytes) */ -const char* const cstring = "(\265/\375`Y\023UC\000zY\344\022H\340\316:\0070\3143\004\326B\030\305G\030\010\003a \014\204\2010\020Fq\254\021\035\321\266\224\330\236|\347\202\355$!k\0372c\333\366>\277\002\327\316\304L\374\020/v\311WL#,t\004\272\241\355\336(\230\275\020\014\377\000\023\001\036\001#6k2\212\330\227}o\277\017\2030\254c\364?\014'\356\320>\r\363\267\341\231\355|\244Y\256\261K\364\034\304\247\267\345\356\375\316\237\r\335\036j\215C\266?\267\372g\235\343\327v\014q6\206\262\"\256[\235;\230G\230\215\205\226?\347\030\364`#\267\274{O\3427\266*\027TNV\246\225\325\373\273\227\301\207e\360?\222\355x\326\355\367P\365:T\275\267\307\220\333Bve\264\267lK\350\014>\310\261\354\275\310m\307\251T\214j\365\"\215]\321\271\363\377\354g\323(\321\367&2\210s\317:\333\036j\313\363K\310\306\276\375[\207\271\343\220\266\303\330~q%\356\357#\214J\312\314\333\370])\023:\360\337c\367\306\2155\006W4x\227\354\254g\032;\023\361\226\331O\177\277\275\016g\035\267\222\351\274;\267$\333\367\333t\350\331\260\227\360~\346Y\\\317[\366]g\030\355\355\367`\306'Q\260\367\360\356W\347\013z\373\362\327\271\217\341\016=Q\230=\215\343\030\307\276u\273\227K7\334\352\336\0160\035`^0*S\312\245+\251`T)\224\212\213b\014\212\177\253\363\177e\376^~\031\336aw\215\241\313~\2320\305\177\313\276\364\341\246\322\371\264RI\221q\205\257\326\375\276\256\343\316\373\363{=\321\323\260\352\301|RIi\301\2348\220Z\235\311\3252\275b`Z\235\252K\255d\272V\351\272^\272\324\251dr\361`z\241<\240Rw\346\205\"u\253\216tM/%\323}u\343\310\006\226\033N\024\241\200\340\030C\271\327\003q\266\345\335O\364\370\331{\337\033\277\337\367\332\016\2168\366\237\r\365\307\263(D\303\017D\340\3030hq(\024\013{\3362\037\376\026\315\253z\326\250\333\016a3Y~U\277}\347;\237\372\277x\036\0261i\217\\\207x\214F\211c(\333\025\323\367\007\2774\"B\272\242\314\223\211b6\364<\177\267\305\232\210B!\021\253\301\006\252\013\307\254\225,\2344uv\316\232\231\301Qki\013FM\316\317d\231\006p\312J5\240,g7\261y\240\\\220r\322\013\270d\225+d\007\331p\225%\035AA3\304\374\230\036\310\016|\316\314\031N""\336\nxn86\272\222\244\374\310X3<\271\017\t2\201\231bZ\340j20r\004\004\254\350T\214H\020\211@#\367\321\310\265X\253g\243\312\260\2428UN\320I\242\202\250 FC\320\017:\252\245\244\024\203c\345\340\240\245st\226x\254\036\236\\\247\202er\230\034\323Szxnj%.MH\004\0309V\tR\236\250Q\251\301\270\000\340Y\301)=:\253\215\377\010b\233m\024\307\357\376\254\363\357\367j\276\303\275_\217\327\333<\006>\327{\354\277u\230{\376\364\355A<\326\304{\305P\024\211.\315_}\307\2533\246\335K\343\264\313\363\3554\254\357\2039\246s\270W 8\236>\300r\352\312\356\365\364\030\313|\277\355~\377\205\236~.\303\340\351\377\312\362\016o,\274%<\034\340\031ra\242\374>\270\307\177~\244\351R\364)\005\217\316\032\303\206\362\330\232\274u\222\264.\254\351\027\327B]{\360\252\353d\245\241\007}\027%\265>\370\227\013\240^\256\024CU\230\375\006p\353\352\330g8\345\242b\217\001\252h*\017\024(\\\343\3407\336\2662\321lRs\210\001Z\372\001\242\007Mq;\246\034\363\022\2615\301\337\211\221\240p\034EnJn*\010\2622\376\212P\226!kA\035\227\302\313\346\306T\212\320\276\226-\3530\245J\346\3711(L\216P\335\211Vq\260\0100\213:[\010\311\345\002/\372\375\322#\014\010\305\304!\203\3042\024\316@\026\215\020j$\\s\2326\250t#\036G\343\344\2775d\250\337c\241\217\224\355\277\034$\010\337\343\352\373\265e\2125U~\312As\002\245\205z\311\233,\214[\300\202K\3507\020\030\3669\345\260\347\253?}z\211@\253\002Us\211\266\016\301K\032/\221\307\206S\300\271\r\305\203\276\332\366\254WX`I\316\271z\350\241\001\252\341g\267/<\370\\\364\324\014\374S\334;\353\033\377/!o\240C\345\277\027\330\317\007\325\266\332*\254\233\216s!\336a\220\342\212\033\332@\351\217\356\n\303\261\331F\010#,\315M\221\020#Fkc\314T\007\216\305\223\010\376\027\263\024\310d\257\223D\241\014\204a\320\2571\227\206k\235\340\031\205A\222\"!\342\220\325\222]\321\017\002\357$)\t\205\027\026< \024*\t\n\030\r\005\275\210%kk \264\357/k,\234\350\022@\333\233l\251\244o4\354\006\262\346Q\263\005_\316\322/\205\020w/\244\031\262\372\234\340~\363\310+\242\351\024\372\016\260\n0\311G\325s\337u-\340T\320\241b\024\276\256\201\267\201\027I>{\376\330\035)\233$7Mt\r-\033\370\300\357\3468\301!G\276\r\311\001\233\275\017\034\261/\031\006\255^\255\274\325\351\320k\310rb1\202\231pI\332(\322:1\364\276\372\r\311@\255\260\213\320\037\022)Ig\321\342{=\314\244\326\177i\n\024\243\035A\223\324\300\006\032\025\244;vgY\024\353\216\035\004 %e\343\363\000\020yk\343\240\253\217\00012y\251\303\236""\t\336\037\2456\0342\014\000Pm\203x\216/8\022\016u\210\305I&\027\014C\224\350g\t\211f\220\210\366\214ZG\253\243=@\265:\321\315s\205\366\361\375&\320\353\023i\243"; - PyObject *data = __Pyx_DecompressString(cstring, 2164, 3); + const struct { const unsigned int length: 8; } index[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{27},{13},{20},{33},{30},{24},{27},{14},{3},{13},{5},{4},{2},{20},{1},{18},{12},{18},{18},{1},{10},{12},{7},{15},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{29},{7},{14},{14},{24},{19},{18},{12},{9},{11},{24},{21},{7},{14},{19},{27},{24},{18},{21},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{16},{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},{12},{38},{14},{27},{14},{27},{39},{130},{44},{44},{44},{45},{42},{69},{117},{27},{28},{11},{80},{27},{114},{14},{44},{51},{44},{44},{21},{21},{9},{13},{64},{57},{49}}; + #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2202 bytes) */ +const char* const cstring = "(\265/\375`\254\023\205D\000zZ\030\023H\360\314:\007\314\300\306\212\302\2075{4:\2541\342\246\301t\246hL\310\204\t\356\260[Jf'\037\204l-G\226\005\003|\367\276\317\177s\370\276s\r\035\017\037}\347\314\354\316\321\271r\227\315\021Qn\373\005h\362\037\001\004\001\025\001!\001#\221H\304b\260#8k2\212\330\237\201oA\020\2071\254g\364\177Lg\333\242\375\032\346\217\3034\333\371X\263\\\343\327\350y\210Q\217\313\375\373\235A+\272]\324\032\213l\177n\365\323:\307\257\355(\352\254,em\272nu\356a\036cV&Z\376\234\343\360\213\215\334\362\376=\210\337\330\252TP9a\235XV\357\357_\016?\226\303\0071\255\333\357\342\352\265\270\372o\217\"\307\211\354\312hs\331\206\3209l\220e\371{\033\267\035\253T3+\326\333l\354\212\316\235?hA\234N\215\300\027\221C\234{\326\331vQ[\236_DV\006\356\337Z\314\035\213\265-\312\366\333X\266\375}\224QI\241}\033\377+%\002\014\377=\366o\334X\343\220e\203\267\311\322z\266\2614\033\3363\013\352\357\271\327\"\255\353X3\235w\347\266d\373~\234\026?+\366\020\337\323>\253\353y\317\276\353\034\253\275\005?\314\0305\n\263\274\305+\023o\210\017\307\376\303\273_\235o\370\355\313_\347>\212[\374Fb\376\264\216c,{\327\355_6\345t\254{ad`d`2\253\223\312\3053\255dV\252\324\212\333l3)\376\256\316\037\226\371\177\371gx\213\3755\212.\373mD\025\377={\323\206\334Jg\024K%\205\346%\302\\\027\004\275\216;\357\317\357\375F_\303\253\0173J%\305%\203\322Pry\247\227\353\004\233\221qy+O\305\242\361\\\246\373z\361T(\323\311%\346\004K\305\244T\267\006\226*y,\257tO/\246\323\205y\343H\006\226\234\3166B\t\303Q\206r\357\027\342\214\313\273\237\350\021\264\367\3767\202\277\357\265=\034\261\354A+j\220\347\221\250\206\033\214\302\217\341\320b\221H&\366\274i@\374.\233_\365\254S\271-\306h\263\374\253\236\373\316wF\365\177\371>l\303\245=r-\3423:e\033E\331\256\234\276\177\370\246\021\221\322\265\315\276\331HfE\3173x[\254I\035\363V\262tR\325\3519ofFG\275\245-\03059A\263eb\340\264\225b@Y\316nb\263@\231 \355\244\025p\331*W\310\036\302\341*K:\202\206fH\014\331\201O\232Y\303\311\034\201O\016\307\206W\222\224\037\031k""\306g\007\002A\0360S\314\n\335M\306\305n@\200\023\236\t\022\031\"\rh\354@\032;Wk\375pV\027V\022\247\312\031:IT\0205\304h\010zKK\351\005\307\312\321AM'\351,\361X=>;\317D\313\3440;\346\247\364\370\344\334J\\\232\220\006.v\255\022\244\034q\243rsaA\3619\321)=\327{\354\277\265\230{\006u\356C<\336l\367\332D\333htm\376\352;^\235q\355\336\032\257]\236o\257a}?\3142\235_\017\2121\375\363\330\0227+\014G\324\206XV\335\331\275\237\036e\231\357\307]\360A\361\323\317g8D\375\337\341\031ba\242\374\365\377\270 \010\232\254\203\224\3030\254\262\241R\271\013\016\017\206#\300v\215W\035\300\332\272\204\010\341\334\226\365\266\0019eD\220\016\376MpeC\224Y^\216\345\3371\370\271\332\027GB\361\324\361\322%\"sT\036\225\241\230\246\"\"\002\0029Xp\036\006\223I\003M\r60a\336*v%\306k\013\320Z\027>\277\320\331\201\265J\202d\260\265\2646\007}Rbm9L\273\275\270\221d\031(\204\212\245\302Mnx2\224\323\000u\r2f\231rwY\321\252\266.5\206\375\353PuR\317M\332V\375\312\313QFApO\333\204\022\014\323\266\263#@\227\206\216\375q\236\272*\316\250v\307\331I\201RHT\272\202\002\204\017%\005\336Kn\222E\251()\t\331\025Q\016\226\020[b\331v\"\225\311\006\260\246\021\320)\225\0144\0262Tx\331\010\364\003\033\202\033\037\321iS bvH.\206\222x\025\205N\307\2021h\212\204\245K+ \253dq\305/\010\201\222\002(\276/`\0167\211s\374U5\331\333\317\224C\364\263\333\235\n\022f_\003\222\344\231\210Q\004\001\314\323`\332\332$\361\247\263r\023\27544 \032\303+\013\004\256\245N\n\266P\264\247\3030\234\272\243/\265%I\004R\2166lA\001\231\354iy\220\337\215\362\204\204\220#\247\032\321H\271\337\232(\210\227S\021,&\272\033\\K\232md\373\267Qh\257\344$r\215\3255\r\364\273\257\317],\244\234\376\036#\005Z\260\277diA0\221Q\0064m\024\200\320\r\272\352\304E\331\335\353\324\0161\215\014\330\034\334)\246\307H}\025'\276\220""\337\024\\{z?\315\263\250pot\370\347O\261p\225\234'\352;\313\003\364\3570\366 \362\253\256\322\005\255\205\226\252;\2532\334\355\272\352\354\326\242\333\262f\306\036c,kZ'\264\306\216F\022PxwN\230\353\303\025\027\205\216\340-9\321\225\352\334\223\035\320R\2673\237\033J`\271*\363\227\336[\311\216\253\237&M\335\025\255\254\335\357\034\257n\276\224\244\211>\241\247\275\r\266\367-S\213\212\347\225\271\331|\037\010\356\031U\220(\232z\201\231!\357\027\177,\312\347\237}.\263\361\351\231\n\\\035\345\006*K\212v\030&)@\333J\032B]\350\316\032i\242q&\177\361\022d9U,E\002\224\2161e\r\004\031\225\231\001H\0045.\260\360\372\031\303\003%b$\030>~\206,h\221\177\"\356H\247\n\022\010\345(s\240"; - PyObject *data = __Pyx_DecompressString(cstring, 2339, 2); + #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (2389 bytes) */ +const char* const cstring = "BZh91AY&SY\000qW\351\000\001y\177\377\357\377\377\347\377\377\377\377\277\357\377\374\277\377\377\376@@@@@@@@@@@@@\000@\000`\t?\031\244T\267]v\335\231B\224\000\000\024\367\200\317\tDBLj14d\315\004\2316\024\364\322l\210\323\324\003\023@h4\320\r4i\240\321\220i\3522f\221\3514\320I \215&hS\323H\332\242~\244\375)\372\247\250\365=M\037\251\2444\032\r\032\003@\000\000\001\240h\000\320\000\rT\374\232\244\375)\264@\031\007\250hh\320\031\0004d\000\031\006\201\220\000\000\001\220\032\000\010\247\245M\006\230\214\002d\30214`\t\2400M\0320C&\230\000\000&@\302\001\200\202\014\000\023\000\0010L\000\000\000\000\023\000\230\010`\000\010\300\000\000H\220\231\0050M\023dOHjz\t\350\325<$\361OQ\247\250\000\000\000\000\000\000d\003\321=G\251J\261_\351>\330{\236\350\377\337\270\275\331\023\217G\245\223\364\322\340\224K\322\023S\227\375\014S\034\313\350\275IC\365\\!\266\306\r4\320\332cli\245cJ\n\351Wk\352HJ\n\331\244\224\313`I\021\223\312\313hm\211\273\204\022f|!\033EyZ\034\305x;R*j\304\225mYL\300\261P\331\212\357zT\232\363\022/\213\212\241!\350\224E\327\322\265\265t\335\242R'\232VX\375\233\364\376\177\217\323\343\215\324o\340;\254\210t?\007Q\333\221\026\3333\330\227\005\336W?O\014\177E[\031\227]H{\206\205\355v\220\3247\367I\013<\230C\264\027\272\231\332\341n=\305\317\242\310\254GB\212\267Q\323!:\2724Rg\375\356pM\257\235\020\210\346\034\325\276\027{pkp\265D\254~i3\343\325{6j\030O\204\343P\210\363\323w]F\270%\364\223\006\255\002\251R\226M\214gR\261\2201rZXd4)\365\342#\\\204\3744\206\352>Vv\360\2333\025\375\026Rh\203\304!\366\317\302K\260E T\307\205\237\235\331\273 \023\325+\006\031)2\241\363\023\215\307\307(\351Q\310xA\035\354\314\243\030\257Y\347L~n'\016^3\242^2\217\320u\274o\330v\334\017x\314\014\310C\014&i\315\331e\350SF\254\373\336n\23599PWI\322{\036me\032\326\013\264\025T=\032\212\252\252\260\207\242\372\374\360\202\222!\030\213R\313\205\210\335\n\347\300r\221\250\336U\327\337<-\321\266.W+6=\3450\3718\273\004\035\377Mu\025_gD\236\215[\232|\244\017d\210(\263\337\311s\224~\244\276nx\214Lm'""j\243-\344AF\356u\322\360\000zh\251Z\361\210\030!\367M\244F\341[\220\224\311\323\334\372\311\313\024U\\V+\014\310\252H\233\2318'!\200p\371\370\005\374W\300H\327\345\365\362\213\314\024\226>c\365c\312*\206\300_\323\3758\265n\0312\020\314\334\256\275\033\030B&\220\302\023\322x\264Z #e\220\245JGuv\271\362\335\333\247\026\013J\274\330|\375d\303.\305\244DA\021\007\364'\221\374\305\314\271\350\374\017\276\327\2070\342\333_-*iO5\253_\215\324\336<\202\261\2236<\350}\274\267r4&\225\354\345X\346\237\366\342\273\301\363\022\244\275\017K\223\244\212q\0364=\235\377ce(\344\367>\215\002\343W\367\311z\242T7X\231Be\226TU\025\264I\301d\263\311L\036\3665)\0206K\345\200\2253\223\331\3543a!^\266\344\271\207 -\275\300\251Y\373\036\010\273s\177\245\207\351\004\352\221\3157\331wL\275v\r\254\030\010\240\322\220\255\010\323t\306\317b\352#hQ@)\001\353\261\001@((\254\217\342\361#\241\202'Sf\266\235i\244\322.qH\344\231h\300\236\200\302\321at\250t#\0243\207u\234\251\274]\0109\0271Yd/\247\245\025u\370%\307i.\253\242\022\016\335#0-\337\347\321Hc\317\213\364\333\303z\033\n\300.\\\374\270\220\327\240Aai@\304[]\347\332\226\2564Z\243\215e$\227\227\300vR]=\251\312\030\244\300\356\261\355\321\264\314#\203E\030o)h\314F\350\013\"\352\206\311\212\355\220\261\265RI\343j1\214F\221\255\333'T\306\034(\005\370\361\321\231\267\331I\236''\r\021\000\231\031\244\2059!\265\004\231\000\022\202]#\203\302\226l\356%SK\t\215\022\027B\020\330\016\267\224)1Esw\216%\263i\325\333\264\345\323\0205\275\311Js\025\330\353\325e\"\371\"\\\t\226\337S+X[\355ct*\334dH0\271\320\276\351\311\322t\233n\353\217|\272\020O\261\201\3773:\314\353\220\226f\036\221\244=\023a\262\026\227\302\241Z\325\302\026\310\274~\016V2\357\014\027\ni\030\316vR\260\312\331\314\247\004\347<\316\223\232Ac\020x\362\320\243\357o\266\233n\003z\t\255G\240\330\206\006E1\027S[\337p\374\006\031\032\n\233p<\302\322\230\2166H\311b\351\261,\256VM\201\221\235\240\032E\255w6;(\002b\367f\223\212\333\207\362\262\344\233\257M3\0029\306$\306]t\213\223\244\370\243&np\335\361""\276\311\271\3160~\027\231\334\333nM\273\263D\245\025{\361\025\325G,)\023w\270~\027\rp<\251\025x\273\235\314y \324\321\235N\"\206\246\264\306\370\271\026\372p\322\005\t\242\0011\325\274\224\004\311\303!2\004\303\237\226G\237\\\0077\014\222;\374\253\t\347S\360\246hI\021u\362\323\004\315\010\302E\272\230=\020\224\214\265X\260\023\204\247e\3006;\360T\0262\327\202X\2549\322\362\202\231u\026C\033\033\033\033x\306\361\272\376\213\005X\306i\235\306l\341\360R\324\332cv:\335\261\256\006\201@\357\013\307\202E\327l\304\210nd\003\030\253\027m]\036%\252\2336J\253\2454\350\004LyX\237\0016\336-\034\351\204V\010~\376\206\232\005@.3\366.&\304\311\314\033\024\204\020\207e\030\262\275{H\025q!\264+\370\354\215\227\350\320\252Xm\203\007\221\306\225X\224\272\003\342..\343\031\222\313*\235\223\010\010M\262\235\302\306\351G\215>s\224\3038],\250\\]\220\260\341\370b;\306\343EN\340m\\`\204u8\322\323m`NYQ$\003\277\223T\031P\334,\257Gn\277-\370\271\232\027\255\353/%\307\222\221)\023\232\240\363\255\346b\230\210\210\010\010\352\260\340<\r&\222\006\232\032l`\303\274\\t\245\304j\013\320Z\027cW\321l\300\330\245A2XZ\333\315\201\357\025&&\323\224\312\367\266\222,\203%\020\221r\\$\326\327\203)L\360\007pi\2233\313\217\272\316m\027X\251\2507\357Z\003\267K<\365\316\267\352\254\264\024d\025\t\372!\004\2032v\324w\366\256C\227v5\341\3420\340\202r\355xi!\303l\205\304\212\220\222\235 s\235#=$\213RPR\023\262.Q\016\226\020[Z\327\\E*\244\032\202\230G0\246\\\030o\0262Tx\331\010\354\2065\010l\177A\245L\201\211\331 \255x\022\331\211\207\227\352\326sQ\202M\207\212\266\276f;N\340\335\3143\017\230\215\316\025S\302+Z\\\337\031Mt\365\363n\020\374y\266\346\241BL\313\317\311T\232\304(\202\000\3534\333i\036@[\264\347\331\002\356\312\020\306\3322w\263\336\323\256\027C\266q\235g\355~\3018;`G\2244@\260\010\220\261\024\375\220\202A\033\236\245\000[\001(\253%v\210\000\200\000\210\014\210\267\n\305\355\271\242\210\211\"b&\322j\241\257\276\272\006\276g\263e\026\232\376B7\021\036\311\343-\245\376\267\036\262|\322Oox\337*+6Wm\030""\240\225QQ\006\260\366\225\200\356\006\307\261Z\210\272\337.u\200\340\032\301\276\262Y\252WOV\031E\024(QHTE\027*\356\217\357`\310-\355\3628'\320\331\206\226\245\224\"\316\265\3032\016\342\226\277\322\375\367\024\251/\002W\027\264\273\230\372\257nL\233\372kkR>'\006\007\247WK\001/(X4\366\341G\217\361\271^'._~<\374\335\310\276\351\034\214#\253hB\231\247\342\014\371\023\373]l\323\253\307\033\223*\326\033\362L\271L\"\031\312\023k\207\023\315!U\242^+J\205?\005u\273\357\265\325\244\247\352e$\237\370\302+[\027\252\374\207():\261\303\213\230C\006J\371\305gY\361\335Y\016\221&P\221=\214(\224L7$\377\027rE8P\220\000qW\351"; + PyObject *data = __Pyx_DecompressString(cstring, 2389, 2); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (2147 bytes) */ -const char* const cstring = "x\332\225WKs\333F\022\016\313\332]\332\221Wf,%J\225m\rce)\3132\275\212\224l\326\221\327\005S\224\3152M\221\022\035\305I\252\246 `H\"\206\000\022\003\350\261\217*\037u\344\021G\034q\304\221G\036u\304\221G\375\004\377\204\355\031\200 (>\234TI\344Lw\1773=\335\375M\017\263;\242\242\022\031\221\243C\370T4\223\324\r\305\021\r\251\361\273\001\033\177\024\260\371\307\354w-\223\030M~\010\026\240\337\211*O\0074\211Q\323\215\2430\374:LES\321\265\230\205\001\013\022#0\220\303\300\347Fc>\316\254\006J\224y\301\235Q(\322t\023\022\254\230\212\250*\377&r\266\240\035\303HF2\241\246\242\361}\003\317\237\240\023\370j\222\360 e\006.\275)\026#Dp>\346\270h\"\332$\222RS`\363\257\372zU\321\336\301V29eF\310b\363'(3A}|EMu\313\220\310G\\)\351\032)\351&Af\003|\310\005\225\010J\231\250\312!\213\"Qy\310\025\t\262\306\2144T\316\227\037m~\277\211D\310\220A~#\222I\021\265\016%U\244\224P\244\327\320\241\245\250\020\nd\2365!K\250PCg\272\2054\022\346\n\354\342\000\263A\240\370\211\311\006(#j\020_\036D\014p\310@\006\311\212\001\233(\307\204\241wD\225\222\354~p6\346\302H\330):\262\250\211\032\"\003\300\222T<\"H7XZ9\001\233g\375 \004\245\324_,\310FC\0142|H\300\253x\232\337h\342\241\312]\020e\340\271\\'h\305ZC\307\017\320S\264\222\311d\327\3203P`\215\005\223\371\305\323\001:Y\241\014H8<\203j\274\324\262u\251\336\3049\360\205\227\325\312\203H\336\304\333D%&\311\303\006\221\370\tx\022$\225\357\233aVVs\024\312@\005\355\r\235\210\014\252\205\341\363\032\005\0161@Nl\212\0220+\302\2603\262|p\204\024j\231\020`/\210\271\243\030\324\234\340\036\273\333`\003v\377\005\333\200}\211(\365\306\241n|\334'n|jN;\372\300\270\000\271\031\215@\211\234\014\315\367\210(\017\t\016\340\022a\253C\231\006\t\207se2}^\213h\350\034\252xH\324\354W}-p\205\3412u\361(\223Uh\220RY\323\241\006k\242\245\232\010c\203\310\226D0F\262\305kE\323\265G""\300\236c\250\"\320J\254\2400\216n\277\3075KU\037s?\262\315\263\323\255\340:\n\210\373\257\007\301\315g\205u$Tq~\373E\036\347\204\262\220+T\337\342b\341u\241\232\177\375<\277\275S\024^\354\343\355=\341\240\\\024J\302^L\270\373\246\232\337\033\221\216\010\366\363\302^\356\345\316\356\036\364\213\261\342\215\361\342\315\035\210k\t\010\3063\301?\262Q\020$~\233`\334\027CMQ\240\366U\005$E\220e\226\364h\036\021#\222\014H1\020E\315\020\262\314n\355\252\316\274\231\246\337\347\361\035X\204\034\212\004\021\177\006\022\326\010\006\263\021\322\014T\274e\035@\306b\033\217\323F\035y\254rc\232rs\262n\270\253\216\263(\217(w\200LC\021\005\376\215=[\234\364qaih\022\322|Xv:\002\372\221Sk\033\336Gd \217\310<\220\320!`\201\006\270HP\324O\210\361\\\267\202#\354\233\272!\306\314\007Z\006S$B#\025\273\021b\023ed\347*4\024\236\366=B\201\324\205\376[.2x\003\215t\362\326\303Z:F>\342\022\277\223J\205bi\267\304Y\266-$?\271>{\276y\376\037\373\276]\351\315~\326^""\263E\273u\231\\\264\223N\302\231w*\357\205^r\321_|\350\256\273\333^\202\315\346\375\371`6\333\311uZ\021&4\\\367R\336\262'\206\206\301L\355\336\357V\206\014A\265\352\246\335M\367\277\376\017\245\013\311\257\354\205\352\336\255T\357\326g\355t{\375\275\360\341\317\243\276\201\236\211o\364f\347\316\317\300\307k\316\206\003\302\317\333\277\201\273\251^r\316\237[\262\271S\253\266\300\026\273=\177\231\374\024\0269mSX\346\255\323p\305\201\226-\265\320~\355\244\234eG\365\036t\266\272\364\"=\344(\203\232\355'v\305\026#\017\276\357$:\034\372\245\375WGtLw\313\233h\373\264S\351\210\201\355M\247\342\310\356Z\020\233q\266\317:\255n\"\260\235sZ\356\214[\354$\006\266[v\313ID\266\317\273\351\356:\267\365\027W\334\204;\357\376\332I\2157\266\251\223v\326/\007Y\234\355\010\323,\247\256a\317:\202Su\357x\373}\337\276k\337n?o\313\366\337 \027\353\221\177,\361\351\313\217\251\347\333\257`\223\031\247\350]\363\376\321\271\3379\350\346\272\255\310\350\261\333\362f<\301\377v\247+\202\370\326\275X\365\254\271\202[\365\356t\366\273\211\341\302\212\262y\237\271\030\327\245\320\240\242\277v*C\365\231\366sU\277z\340\037\374\024\343\300\365\336\354\355\3663'\343\246\3344T\326\371\377\240f\006U\372\305\342\345\354\255v\242\235\n=z\344V\\\331[\353H\335\324\220G\013\355\267\376\275\277{\177\342\356,\255\370+[\235|\367vW\350}\235u\217:\337v\257u\327{\253\017\203\240\017\nw\303[\367\204\0177>\271~\317\376\325\375\302KxP\333\031\247\305BV\200\242\221\2355\000\377\320\225.R\221K\214P\353!\013\263\256\350\232\036\314.\223w\355_\334\277@$\023\275\344\262#\260\005^\332\202]u\356\270?{\264\023\257vf{e3\177>HB\261{\363b\337/\367Y\350/\345\273\225./\344\353\275\233s\347\264\275\354\177\276\306.\01063\332\363\376\302C w\253\267\220\016\263\221\036\266}\314\274\213l\263\020\270toa)\254\205\304\373Dof\325_\315Adf>=\177fg`\221t(|y\221\270\"\274q\376\260]\361g\356\302\035\221\374\216\345\262\273\t\325\002\361|j_\263y\311=d4\273L.\331\226\003e\360\245\235\262\323\366?a\230L\265\3572\305\334y\313\237y\353\277\375\271""\227D>\332\352@\374\347\333E\037}\003\351\024/\303\2256 \350\217\\\352\245c\025\302\201\253\254:\220s\035\312d\331U!\242\323\001\377\007\\/\2703"; - PyObject *data = __Pyx_DecompressString(cstring, 2147, 1); + #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (2184 bytes) */ +const char* const cstring = "x\332\225WKs\333F\0226\313\332]\312\221Wf,'J\225\037\303\330Y\312\262L\257\"%\233u\344u\301\024e\263LS\244DE\353l\252\246F\300\220D\014\001$\006\320c\037U>\352\310#\2168\342\310#\217<\352\210#\217\372\t\376\t\3333\000A\320$\345\244J\"g\272\373\233\351\351\356oz\230\335\"\252F\025D\017\017\340S\325-Z7U\353\024\311\r*\277\313\206J\313@\262\241\037Q\323B9\304,S\325\353\\V>\265\032\206\036\nb\266\364\304\242\272\202\352&i6\320\261j5\320\246I\216\313\032\321\211\311\255m\331\262M\312.E\274\376vm\227\022Sn\374f\300\332\357\005\254\377>\373m\333\242fS\034\202\007\3507\242\312\227\003\232\324\254\031\346a\030~\003\246\304R\r=fa\302\202\324\014\014\2240\360\271\361\230O2\253\201\022e^\ngT\206t\303\202\004\253\226J4\365\337T\311\026\364#\030)H\241\314Ru\261o\340\371St\014_M\032\036\244\314\301\245\275b1B\004\347\343\216\023\013\261&\225\325\232\n\233\177=\320k\252\376\016\266R\350\t7B6\237?E\231)\352\243\217\324\314\260M\231~\302\225\222\241\323\222aQd5\300\207\\P\211\240T\250\246\036\360(RM\204\\\225!k\334HG\345|\371\361\372\017\353\210@\206L\372+\225-\206\230} k\2041\312\220QC\007\266\252A(\220u\332\204,\241B\r\235\0326\322i\230+\260\213\003\254\006\205\342\247\026\037\240\014\321!\276\"\210\030\340\220\201\014RT\0236Q\217(Go\021\215\321\354np6\356\302X\330\031:\264\231\205\032\204\003`IF\016)2L\236VA\300\346\351 \010A)\r\026\013\262\321 A\206\017(x\025O\363\236N\0164\341\002Q\200\347J\235\242%{\005\035=D\317\320R&\223]A\317A\201u\036L\356\227H\007\350\024\225q \025\360\014\252\211R\313\326\345z\023\347\300\027QVK\017#y\023oR\215Z4\017\033D\342\247\340I\220T\261o\206[\331\315q(\007\025\364=6\025\031T\013\307\347u\006\034\342\200\034i\022\031\230\025a\370\031y>\004B\016\265\\\010\260\227\324\332RMfMq\217\337m\260\001\277\377\202m\300\276D\325z\343\3000?\355\2230>\261.;\372\320\270\000\271\031\217@\211\036\217\314w(QF\004\373p\211\360\325\241L\203\204\303\2712\231\001\257\t\0329\207F\016\250\226\375z\240\005\256p\\\246N\0163Y\225\005)Ut\003j\260Fl\315B\030\233T\261e\2121RlQ+""\272\241?\006\366\034A\025\201V\346\005\205qt\373=\251\331\232\366D\370\221m\236\236l\004\327Q@\334\177<\014n>;\254#\251\212\363\233/\3638'\225\245\\\241\372\026\027\013o\n\325\374\233\027\371\315\255\242\364r\027o\356H\373\345\242T\222vb\302\355\275j~gL:&\330\315K;\271W[\333;\320/&\212\327&\213\327\267 \256% \230\310\204\370\310FA\220\305m\202\361@\0145\305\200\332\037+ )\222\242\360\244G\363\210\030\221dH\212\241(j\206\220e~kW\r\356\315e\372]\021\337\241E\310\241H\020\361g(\341\215`8\033#\315P%Z\326>d,\266\361$m\324\221'*\327.S\256O\327\215v\325I\026\3451\345\026\220i$\242\300\277\211g\213\223>.,\215LB\232\217\312N\306@?\tjm\302\373\210\016\345\021\231\207\0226\002,\260\000\027\t\212\30615_\030vp\204]\3130I\314|\250\3450U\246,R\361\033!6Q\307v\256BC\021i\337\241\014H]\030\274\345\"\203=h\244\323\267\036\325\262\t\3621\227\304\235T*\024K\333%\301\262M\351E1_\332\256n\277\346\355y\3735\306\345\323\023\370\337\204.\214yLw\340\276!\354T\227U#+\033\246aC\007\244L\2745\201|\334k\031n\r\212Uh\242&\221\351\001\221\337\361\306\207\215\0326L\265\216\305\225C\305+gK#u&F!\224\352\262\241P%\374\302p\0252\336\215q\315\326e\214\353\3607\3401\036R7N\332\021\272N'\352e\024\215\2213N\313\001!'Rq\032\t\247\320o\n\361&S\3562\262M\241Y\214`\343\324\372\210T\301\264\250\036D\350\237\202\250oA\177\010\2514\312\262Q~\005\263\262i\360\327\330\030\264b\253\324z\003\311\344\251\036'a\234~\021\361b\224\233F\266\2114\013\t6J-\230\355\216\2731\215g\323\0306\316\255\211\254\032\360I\325\371\273\035\353\320\234\3409\202U\206#\246\200\366\220\035b|H\200 \370\020\\\342\377\230\327\273\230\332\200\303\240\341X\370\244\307#\256\303\034\363\267\010\036<\215\270@\020\nV\217\366\214\312#\313{|V\350\233F\023\232?P9\244O\313&Z\260\307\360\3410\326=#\001=\341C]Q\371S7\240\211I\341\207\220\316\250V\023\3355t\030F\341\203$\326s\361\204\376\313L9p<\032`[\027O\024j\232\206\031\274Fp\360\223U\334\001B\214\261\005\231\203\317\006\035t\177\030\212Dc\305n\332\342\301r\004\357(\2332\361\010\366\257\254vR\375\353i7""\345\246\375\231E'\361!yev\356l\375\354?\316}\247\322\237\373\274\275\342\020\247u\221\\t\222n\302]p+\357\245~r\321_|\344\255z\233\235\004\237-\370\013\301l\256\233\353\266\"Lh\010\353w\036tHh\030\314\264\336\375^e\304\020T\313^\332[\367\376\353\377X:\227\375\312N\250\356\337H\365o|\336N\267W\337K\037\3768\356\033\350\271\370Z\177n\376\354\024|\274\352\256\271 \374\242\375+\270\233\352'\347\375\371{\216pj\331\221\370b7\027.\222\237\301\"'m\006\313\274u\033\036\031j\371R\267\332o \032\017\\\255\363\260\273\321c\347\351\021G9\324j?u*\016\211<\370\241\233\350\n\350W\316\237]\342Z\336Fg\252\355\263n\245K\002\333\353n\305U\274\225 6\223l\237w[\275D`;\357\266\274\031\257\330M\014m7\234\226\233\210l_\364\322\275Ua\353/.y\to\301\373\245\233\232l\35407\355\256^\014\2638\327\225.\263\274t\rg\316\225\334\252w\273\263;\360\355\373\366\315\366\213\266\342\374\005r\261\032\371\307\023\237\276\370\224z\241\375\0326\231q\213\235\253\235\277u\357w\367{\271^+2z\342\265:3\035\311\377n\253G@|\343n\254zV<\311\253vnww{\211\321\302\212\262y\237\273\030\327\245\320\260\242\277q+#\365\231\366sU\277\272\357\357\3773\306\201\331\376\334\315\366s7\343\245\2744T\326\331\377\240f\206U\372\345\342\305\334\215v\242\235\n=z\354U<\245\263\322\225{\251\021\217n\265\337\372w\377\332\371\203p\347\336\222\277\264\321\315\367n\366\244\3767Y\357\260\373]\357jo\265\277\374(\010\372\260p\327:\253\035\351\303\265+\263w\235_\274/;\t`m2\343\266x\310\nP4\212\273\002\340\037{\362y*r\211\023j5da\326#\236\325\201\331E\362\216\363/\357O\020\311D?\371\300\225\370\002\257\034\311\251\272\267\275\237;\254\033\257vn\373\321f\376B\220\204b\357\372\371\256_\036\260\320\277\227\357Uz\242\220g\373\327\347\317X\373\201\377\305\n\277 \370\314l/\370\267\036\001\271[\375[\3510\033\351Q\333'\334\273\3106\013\201K\367o\335\013k!\361>\321\237Y\366\227s\020\231\231\317\316\236;\031~]\205\302W\347\211\217\204\327\316\036\265+\376\225;pG\314\200\303\300\006\177\206O\222\337\363\304\366\326\241t \270\317\234\253\216\250\277G\234s""\027\311{\216\355BM|\345\244\234\264\363w\030&S\355;\\1\177\326\362g\336\372o\177\356'\221\2176\272\220\214\205v\321G\337Bn\311E\270\322\032d\340\261\307:\351X\271\010\3402/\025\344\316B\315<\3604\010\357\345\200\377\003K\331\327\217"; + PyObject *data = __Pyx_DecompressString(cstring, 2184, 1); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #else /* compression: none (5209 bytes) */ -const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_EdgeInUs""eGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNILNONEMBEDDABLENOTOKOK__Pyx_PyDict_NextRefaasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencodedencoded_version__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetLibPlanarityVersionFullgp_GetNgp_GetNeighborgp_GetNextEdgegp_GetProjectVersionFullgp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_Writeinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__new_edge_capacitynew_graphoutfile_nameplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlink\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340\010\030\230\010\240\001\240\024\240Q\200A\330\010\030\320\030+\2501\250D\260\001\200A\330\010\024""\320\024+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\030\320\0301\260\021\260$\260a\200A\330\010\024\320\0241\260\021\260$\260l\300#\300Q\330\014\022\220,\230a\230q\200A\330\010\024\320\024*\250!\2504\250|\320;N\310c\320QR\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\025\220M\240\021\240$\240l\260)\270<\300s\310!\330\014\022\220,\230a\230q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\031\230\016\240a\240t\250<\260q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\031\230\r\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\031\230\017\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\031\320\030(\250\001\250\024\250\\\270\021\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\030\320\030+\2501\250D\260\014\270A\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\030\230\014\240A\240T\250\034\260S\270\001\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\024\220K\230q\240\004\240L\260\003\2607\270#\270W\300C\300q\330\014\022\220,\230a\330\020/\250q\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\024\320\024,\250A\250T\260\034\270S""\300\001\330\014\022\220,\230a\230q\200A\330\010\024\220M\240\021\240$\240l\260#\260S\270\001\330\014\022\220,\230a\230q\200A\330\021 \240\001\240\024\240Q\200A\330\010%\240Q\330\010\024\320\0241\260\021\260$\260l\300!\320CT\320TW\320WX\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\024\320\024-\250Q\250d\260,\270c\300\021\330\014\022\220,\230a\230q\200A\330\010\025\220Y\320\0360\260\005\260S\270\001\330\037(\320(<\270E\300\023\300A\330%.\250m\2705\300\003\3001\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\024\220I\230Q\230d\240,\250m\270;\300c\310\021\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\030\320\030.\250a\250t\2601\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\024\220H\230A\230T\240\034\250Z\260s\270!\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\024\320\024/\250q\260\004\260L\300\r\310S\320PQ\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\025!\240\021\240$\240l\260!\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\025\037\230q\240\004\240L\260\001\200\001\330\004*\320*C\3001\330\004\013\210?\230'\240\021\240!\200\001\330\004*\320*H\310\001\330\004\013\210?\230'\240\021\240!\200\001\330\004\n\210+\220Q\320\004\035\230Q\330\0106\260l\300!\3004\300q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\021\031\230\021\230!\2309\240A\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010 \320 <\270A\330\020\024\220L\320 2\260,\270a\340\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010 \240\t\250\021\250$\250l\270!\330""\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; + #else /* compression: none (5292 bytes) */ +const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_EdgeInUs""eGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNILNONEMBEDDABLENOTOKNoneOK__Pyx_PyDict_NextRefaasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencodedencoded_version__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetLibPlanarityVersionFullgp_GetNgp_GetNeighborgp_GetNextEdgegp_GetProjectVersionFullgp_GetQuietModeFlaggp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_SetQuietModeFlaggp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_Writeinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__newQuietModeFlagnew_edge_capacitynew_graphoutfile_nameplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlink\320\0001\260\021\330\r!\240\021\240!\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340""\010\030\230\010\240\001\240\024\240Q\200A\330\010\030\320\030+\2501\250D\260\001\200A\330\010\024\320\024+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\030\320\0301\260\021\260$\260a\200A\330\010\024\320\0241\260\021\260$\260l\300#\300Q\330\014\022\220,\230a\230q\200A\330\010\024\320\024*\250!\2504\250|\320;N\310c\320QR\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\025\220M\240\021\240$\240l\260)\270<\300s\310!\330\014\022\220,\230a\230q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\031\230\016\240a\240t\250<\260q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\031\230\r\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\031\230\017\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\031\320\030(\250\001\250\024\250\\\270\021\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\030\320\030+\2501\250D\260\014\270A\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\030\230\014\240A\240T\250\034\260S\270\001\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\024\220K\230q\240\004\240L\260\003\2607\270#\270W\300C\300q\330\014\022\220,\230a\330\020/\250q""\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\024\320\024,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\024\220M\240\021\240$\240l\260#\260S\270\001\330\014\022\220,\230a\230q\200A\330\021 \240\001\240\024\240Q\200A\330\010%\240Q\330\010\024\320\0241\260\021\260$\260l\300!\320CT\320TW\320WX\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\024\320\024-\250Q\250d\260,\270c\300\021\330\014\022\220,\230a\230q\200A\330\010\025\220Y\320\0360\260\005\260S\270\001\330\037(\320(<\270E\300\023\300A\330%.\250m\2705\300\003\3001\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\024\220I\230Q\230d\240,\250m\270;\300c\310\021\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\030\320\030.\250a\250t\2601\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\024\220H\230A\230T\240\034\250Z\260s\270!\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\024\320\024/\250q\260\004\260L\300\r\310S\320PQ\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\025!\240\021\240$\240l\260!\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\025\037\230q\240\004\240L\260\001\200\001\330\004*\320*C\3001\330\004\013\210?\230'\240\021\240!\200\001\330\004*\320*H\310\001\330\004\013\210?\230'\240\021\240!\200\001\330\004\n\210+\220Q\320\000\035\230Q\330\004\024\320\024(\250\001\320\004\035\230Q\330\0106\260l\300!\3004\300q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\021\031\230\021\230!\2309\240A\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010 \320 <\270A\330\020\024\220L\320 2\260,\270a\340""\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010 \240\t\250\021\250$\250l\270!\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; PyObject *data = NULL; CYTHON_UNUSED_VAR(__Pyx_DecompressString); #endif PyObject **stringtab = __pyx_mstate->__pyx_string_tab; Py_ssize_t pos = 0; - for (int i = 0; i < 190; i++) { + for (int i = 0; i < 194; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); if (likely(string) && i >= 52) PyUnicode_InternInPlace(&string); @@ -11481,7 +11723,7 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str stringtab[i] = string; pos += bytes_length; } - for (int i = 190; i < 221; i++) { + for (int i = 194; i < 227; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); stringtab[i] = string; @@ -11492,15 +11734,15 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str } } Py_XDECREF(data); - for (Py_ssize_t i = 0; i < 221; i++) { + for (Py_ssize_t i = 0; i < 227; i++) { if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { __PYX_ERR(0, 1, __pyx_L1_error) } } #if CYTHON_IMMORTAL_CONSTANTS { - PyObject **table = stringtab + 190; - for (Py_ssize_t i=0; i<31; ++i) { + PyObject **table = stringtab + 194; + for (Py_ssize_t i=0; i<33; ++i) { #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING #if PY_VERSION_HEX < 0x030E0000 if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1) @@ -11572,172 +11814,172 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { PyObject* tuple_dedup_map = PyDict_New(); if (unlikely(!tuple_dedup_map)) return -1; { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 40}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 41}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n}; __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_InitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_M_l_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 44}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 45}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ReinitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 47}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 48}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_new_edge_capacity}; __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_4_NcQR_a_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 53}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 54}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 56}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 57}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetN, __pyx_mstate->__pyx_kp_b_iso88591_4_Q_aq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 65}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 66}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_src_graph, __pyx_mstate->__pyx_n_u_src_graph_uninit_error}; __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_CopyGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_M_l, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 89}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 90}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_theGraph_dup, __pyx_mstate->__pyx_n_u_new_graph}; __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DupGraph, __pyx_mstate->__pyx_kp_b_iso88591_Q_6l_4q_1_Qa_uA_9A_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 100}; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 101}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_FindEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 108}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 109}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetVertexDegree, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_1D_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 114}; + const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 115}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_ulink, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_vlink}; __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_AddEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 129}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 130}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DeleteEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_8_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 137}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 138}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 140}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 141}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 143}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 144}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_s_t1_r_d_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 150}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 151}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EdgeInUse, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 158}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 159}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 161}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 162}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNextEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 169}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 170}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNeighbor, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 177}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 178}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetFirstEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_a_B_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 185}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 186}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 188}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 189}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 191}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 192}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsVertex, __pyx_mstate->__pyx_kp_b_iso88591_A_s_D_r_4q_l, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 198}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 199}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 202}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 203}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 206}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 207}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 210}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 211}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Read, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_HAT_Zs_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 218}; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 219}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_mode_code, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Write, __pyx_mstate->__pyx_kp_b_iso88591_A_Y_0_S_E_A_m5_1_4q_A_31A_q_IQd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 238}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 239}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_c_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 242}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 243}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_mstate->__pyx_kp_b_iso88591_A_q_q_L_SPQ_a_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 250}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 251}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_renditionString, __pyx_mstate->__pyx_n_u_string_conversion_error}; __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_1_l_CTTWWX_aq_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 264}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 265}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_mstate->__pyx_kp_b_iso88591_A_1_l_Q_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 268}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 269}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 272}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 273}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_embedFlags, __pyx_mstate->__pyx_n_u_embed_result}; __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Embed, __pyx_mstate->__pyx_kp_b_iso88591_l_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 279}; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 280}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_copy_of_orig_graph, __pyx_mstate->__pyx_n_u_embed_result, __pyx_mstate->__pyx_n_u_check_result}; __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_mstate->__pyx_kp_b_iso88591_YYZ_A_L_2_a_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad; } @@ -11752,14 +11994,24 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 289}; + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 290}; + PyObject* const varnames[] = {0}; + __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 294}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_newQuietModeFlag}; + __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_SetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 298}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; - __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetProjectVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetProjectVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 294}; + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 303}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; - __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad; } Py_DECREF(tuple_dedup_map); return 0; diff --git a/planarity/full/graph.pyx b/planarity/full/graph.pyx index 07b5a9d..afa94e8 100644 --- a/planarity/full/graph.pyx +++ b/planarity/full/graph.pyx @@ -9,6 +9,7 @@ operate over graphP structs. from libc.stdlib cimport free +from planarity.full cimport capiutils from planarity.full cimport cappconst from planarity.full cimport cgraphLib @@ -286,6 +287,14 @@ cdef class Graph: return check_result +def gp_GetQuietModeFlag() -> int: + return capiutils.gp_GetQuietModeFlag() + + +def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: + capiutils.gp_SetQuietModeFlag(newQuietModeFlag) + + def gp_GetProjectVersionFull(): cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() return encoded_version.decode('utf-8') From 6c74183e6cea6a8c08ebf76a74f2a374aca2b338 Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Wed, 20 May 2026 15:44:06 -0700 Subject: [PATCH 2/8] Added line of trailing whitespace so gitHub doesn't complain --- planarity/full/capiutils.pxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planarity/full/capiutils.pxd b/planarity/full/capiutils.pxd index c1ea5f0..54054fc 100644 --- a/planarity/full/capiutils.pxd +++ b/planarity/full/capiutils.pxd @@ -5,4 +5,4 @@ Specifically exposes contents from apiutils.h. cdef extern from "../c/graphLib/lowLevelUtils/apiutils.h": int gp_GetQuietModeFlag() - void gp_SetQuietModeFlag(int newQuietModeFlag) \ No newline at end of file + void gp_SetQuietModeFlag(int newQuietModeFlag) From 888a65c03bb9ebeda3be1d09e411c4ca5b950e3a Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Mon, 25 May 2026 21:41:33 -0700 Subject: [PATCH 3/8] Holy guacamole, this was a heck of a refactor. Now, we have the graphLib.pyx Cython module, which directly wraps every function from the C graphLib via cimport of cgraphLib.pxd. I added the graphLib.pxd so that graph.pyx and g6IterationUtils.pyx modules are able to access the functions and constants surfaced from the cgraphLib via the graphLib. You can now think of graph.pyx and g6IterationUtils.pyx as being "views" of the graphLib rather than direct wrappers themselves. --- examples/full/quiet_mode_test.py | 25 - examples/full/test_quiet_mode.py | 41 + planarity/__init__.py | 14 +- planarity/classic/planarity.c | 36 +- planarity/full/capiutils.pxd | 8 - planarity/full/cappconst.pxd | 7 - planarity/full/cg6IterationDefs.pxd | 35 - planarity/full/cgraphLib.pxd | 54 +- planarity/full/g6IterationUtils.c | 1746 +++-- planarity/full/g6IterationUtils.pyx | 35 +- planarity/full/graph.c | 3764 +++++----- planarity/full/graph.pxd | 4 +- planarity/full/graph.pyx | 128 +- planarity/full/graphLib.c | 10034 ++++++++++++++++++++++++++ planarity/full/graphLib.pxd | 108 + planarity/full/graphLib.pyx | 241 + setup.py | 30 +- 17 files changed, 13599 insertions(+), 2711 deletions(-) delete mode 100644 examples/full/quiet_mode_test.py create mode 100644 examples/full/test_quiet_mode.py delete mode 100644 planarity/full/capiutils.pxd delete mode 100644 planarity/full/cappconst.pxd delete mode 100644 planarity/full/cg6IterationDefs.pxd create mode 100644 planarity/full/graphLib.c create mode 100644 planarity/full/graphLib.pxd create mode 100644 planarity/full/graphLib.pyx diff --git a/examples/full/quiet_mode_test.py b/examples/full/quiet_mode_test.py deleted file mode 100644 index 5d201ae..0000000 --- a/examples/full/quiet_mode_test.py +++ /dev/null @@ -1,25 +0,0 @@ -"""Script to check whether setting quiet mode is successful - -NOTE: For this test to be meaningful, you must add a Message() and/or -ErrorMessage() to the C graphLib layer in gp_New() so that when we initialize -the Graph instances and __cinit__() calls gp_New(), we'll see that the messages -are *not* displayed by default, but then once the global variable quietModeFlag -is updated via gp_SetQuietModeFlag(), the messages are displayed. -""" - -#!/usr/bin/env python - - -from planarity import ( - gp_GetQuietModeFlag, - gp_SetQuietModeFlag, - Graph, -) - - -if __name__ == "__main__": - print(f"quiet mode flag before first gp_New(): {gp_GetQuietModeFlag()}") - graph = Graph() - gp_SetQuietModeFlag(0) - print(f"quiet mode flag before second gp_New() (i.e. after disabling quiet mode): {gp_GetQuietModeFlag()}") - graph = Graph() \ No newline at end of file diff --git a/examples/full/test_quiet_mode.py b/examples/full/test_quiet_mode.py new file mode 100644 index 0000000..449e97e --- /dev/null +++ b/examples/full/test_quiet_mode.py @@ -0,0 +1,41 @@ +"""Script to check whether setting quiet mode is successful + +NOTE: For this test to be meaningful, the filename supplied must not correspond +to an existing file so that the first time we try to initialize the G6ReadIterator, +no gp_ErrorMessage() are displayed, but then after setting the quietMode flag to +0 via gp_SetQuietModeFlag(), the gp_ErrorMessage()s reporting the failure are +output to stderr. + +""" + +#!/usr/bin/env python + +import sys, traceback + +from planarity import ( + gp_GetQuietModeFlag, + gp_SetQuietModeFlag, + G6ReadIterator, + Graph, +) + + +if __name__ == "__main__": + filename = 'DOES_NOT_EXIST.g6' if (len(sys.argv) < 2) else sys.argv[1] + graph = Graph() + reader = G6ReadIterator(graph) + try: + reader.g6_InitReaderWithFileName(filename) + except RuntimeError as e: + print('='*50) + print() + traceback.print_exception(e) + print() + print('='*50) + print() + + gp_SetQuietModeFlag(0) + try: + reader.g6_InitReaderWithFileName(filename) + except RuntimeError as e: + traceback.print_exception(e) \ No newline at end of file diff --git a/planarity/__init__.py b/planarity/__init__.py index 3d8de50..ab49dc4 100644 --- a/planarity/__init__.py +++ b/planarity/__init__.py @@ -2,13 +2,7 @@ from .classic.planarity_functions import * from .classic.planarity_networkx import * -from .full.g6IterationUtils import G6ReadIterator, G6WriteIterator -from .full.graph import ( - gp_GetQuietModeFlag, - gp_SetQuietModeFlag, - gp_GetProjectVersionFull, - gp_GetLibPlanarityVersionFull, - Graph, +from .full.graphLib import ( OK, AT_EDGE_CAPACITY_LIMIT, NONEMBEDDABLE, @@ -20,7 +14,13 @@ EMBEDFLAGS_SEARCHFORK23, EMBEDFLAGS_SEARCHFORK33, EMBEDFLAGS_SEARCHFORK4, + gp_GetQuietModeFlag, + gp_SetQuietModeFlag, + gp_GetProjectVersionFull, + gp_GetLibPlanarityVersionFull, ) +from .full.graph import Graph +from .full.g6IterationUtils import G6ReadIterator, G6WriteIterator # NOTE: In the future, we could automatically generate the version number by # configuring setuptools-scm, but presently this seems simpler. diff --git a/planarity/classic/planarity.c b/planarity/classic/planarity.c index 9295a37..d34187a 100644 --- a/planarity/classic/planarity.c +++ b/planarity/classic/planarity.c @@ -1,4 +1,4 @@ -/* Generated by Cython 3.2.4 */ +/* Generated by Cython 3.2.5 */ /* BEGIN: Cython Metadata { @@ -66,8 +66,8 @@ END: Cython Metadata */ #elif PY_VERSION_HEX < 0x03080000 #error Cython requires Python 3.8+. #else -#define __PYX_ABI_VERSION "3_2_4" -#define CYTHON_HEX_VERSION 0x030204F0 +#define __PYX_ABI_VERSION "3_2_5" +#define CYTHON_HEX_VERSION 0x030205F0 #define CYTHON_FUTURE_DIVISION 1 /* CModulePreamble */ #include @@ -2819,7 +2819,7 @@ static int __pyx_pw_9planarity_7classic_9planarity_6PGraph_1__init__(PyObject *_ { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_graph,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 17, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 17, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -4788,7 +4788,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_data,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, 108, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 108, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -5176,7 +5176,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_data,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, 133, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 133, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -5830,7 +5830,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_path,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, 172, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 172, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -6158,7 +6158,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 3, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 3, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -7500,11 +7500,11 @@ __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) res = PyTuple_New(n); if (unlikely(res == NULL)) return NULL; for (i = 0; i < n; i++) { + Py_INCREF(src[i]); if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) { Py_DECREF(res); return NULL; } - Py_INCREF(src[i]); } return res; } @@ -8801,7 +8801,7 @@ static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyOb } /* dict_iter */ -#if CYTHON_COMPILING_IN_PYPY +#if CYTHON_AVOID_BORROWED_REFS #include #endif static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, @@ -8809,7 +8809,7 @@ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_di is_dict = is_dict || likely(PyDict_CheckExact(iterable)); *p_source_is_dict = is_dict; if (is_dict) { -#if !CYTHON_COMPILING_IN_PYPY +#if !CYTHON_AVOID_BORROWED_REFS *p_orig_length = PyDict_Size(iterable); Py_INCREF(iterable); return iterable; @@ -8838,7 +8838,7 @@ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_di iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); if (!iterable) return NULL; -#if !CYTHON_COMPILING_IN_PYPY +#if !CYTHON_AVOID_BORROWED_REFS if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) return iterable; #endif @@ -9562,8 +9562,8 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, CYTHON_UNUSED_VAR(max_char); CYTHON_UNUSED_VAR(result_ulength); for (i=0; i__pyx_empty_unicode, value_tuple); bad: @@ -9603,8 +9603,8 @@ static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) { #if CYTHON_VECTORCALL static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { (void)__Pyx_PyObject_FastCallDict; - if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; Py_INCREF(key); + if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; args[n] = value; return 0; } @@ -10964,7 +10964,6 @@ __Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) { PyList_SET_ITEM(fromlist, 0, marker); #else if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) { - Py_DECREF(marker); Py_DECREF(fromlist); return NULL; } @@ -11205,8 +11204,7 @@ __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); -#if !CYTHON_COMPILING_IN_LIMITED_API -#if PY_VERSION_HEX < 0x030900B1 +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API Py_CLEAR(__Pyx_CyFunction_GetClassObj(m)); #else { @@ -11214,7 +11212,6 @@ __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) ((PyCMethodObject *) (m))->mm_class = NULL; Py_XDECREF(cls); } -#endif #endif Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); @@ -11266,11 +11263,10 @@ static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); __Pyx_VISIT_CONST(m->func_code); -#if !CYTHON_COMPILING_IN_LIMITED_API Py_VISIT(__Pyx_CyFunction_GetClassObj(m)); -#endif Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); + Py_VISIT(m->func_annotations); Py_VISIT(m->func_is_coroutine); Py_VISIT(m->defaults); return 0; diff --git a/planarity/full/capiutils.pxd b/planarity/full/capiutils.pxd deleted file mode 100644 index 54054fc..0000000 --- a/planarity/full/capiutils.pxd +++ /dev/null @@ -1,8 +0,0 @@ -"""C-level interface for the Edge Addition Planarity Suite Graph Library - -Specifically exposes contents from apiutils.h. -""" - -cdef extern from "../c/graphLib/lowLevelUtils/apiutils.h": - int gp_GetQuietModeFlag() - void gp_SetQuietModeFlag(int newQuietModeFlag) diff --git a/planarity/full/cappconst.pxd b/planarity/full/cappconst.pxd deleted file mode 100644 index 7ec6186..0000000 --- a/planarity/full/cappconst.pxd +++ /dev/null @@ -1,7 +0,0 @@ -"""C-level interface for the Edge Addition Planarity Suite Graph Library - -Specifically exposes contents from appconst.h. -""" - -cdef extern from "../c/graphLib/lowLevelUtils/appconst.h": - cdef int OK, NOTOK, NULL, NIL, NIL_CHAR diff --git a/planarity/full/cg6IterationDefs.pxd b/planarity/full/cg6IterationDefs.pxd deleted file mode 100644 index 3739229..0000000 --- a/planarity/full/cg6IterationDefs.pxd +++ /dev/null @@ -1,35 +0,0 @@ -"""C-level interface for the Edge Addition Planarity Suite Graph Library - -Specifically provides definitions for functions and macros that are required -to interact with .g6 graph files. -""" - -from planarity.full.cgraphLib cimport graphP - - -cdef extern from "../c/graphLib/io/g6-read-iterator.h": - ctypedef struct G6ReadIterator: - pass - ctypedef G6ReadIterator * G6ReadIteratorP - - int g6_NewReader(G6ReadIteratorP *, graphP) - bint g6_EndReached(G6ReadIteratorP) - - int g6_InitReaderWithFileName(G6ReadIteratorP, char *) - - int g6_ReadGraph(G6ReadIteratorP) - - int g6_FreeReader(G6ReadIteratorP *) - - -cdef extern from "../c/graphLib/io/g6-write-iterator.h": - ctypedef struct G6WriteIterator: - pass - ctypedef G6WriteIterator * G6WriteIteratorP - - int g6_NewWriter(G6WriteIteratorP *, graphP) - int g6_InitWriterWithFileName(G6WriteIteratorP, char *) - - int g6_WriteGraph(G6WriteIteratorP) - - int g6_FreeWriter(G6WriteIteratorP *) diff --git a/planarity/full/cgraphLib.pxd b/planarity/full/cgraphLib.pxd index d14a2ed..3b5c88c 100644 --- a/planarity/full/cgraphLib.pxd +++ b/planarity/full/cgraphLib.pxd @@ -1,9 +1,23 @@ """C-level interface for the Edge Addition Planarity Suite Graph Library Specifically provides definitions for functions and macros that are required -to interact with graphP structs. +to interact with graphP structs and to expose the G6 read and write iterator +machinery. """ +cdef extern from "../c/graphLib/lowLevelUtils/apiutils.h": + int gp_GetQuietModeFlag() + void gp_SetQuietModeFlag(int newQuietModeFlag) + + +cdef extern from "../c/graphLib/graphLib.h": + char *gp_GetProjectVersionFull() + char *gp_GetLibPlanarityVersionFull() + + +cdef extern from "../c/graphLib/lowLevelUtils/appconst.h": + cdef int OK, NOTOK, NULL, NIL, NIL_CHAR + cdef extern from "../c/graphLib/graph.h": ctypedef struct graphStruct: @@ -45,9 +59,9 @@ cdef extern from "../c/graphLib/graph.h": int gp_UpperBoundEdges(graphP theGraph) - int gp_GetNextEdge(graphP theGraph, int v) + int gp_GetNextEdge(graphP theGraph, int e) - int gp_GetNeighbor(graphP theGraph, int v) + int gp_GetNeighbor(graphP theGraph, int e) int gp_GetFirstEdge(graphP theGraph, int v) @@ -57,11 +71,6 @@ cdef extern from "../c/graphLib/graph.h": int gp_IsVertex(graphP theGraph, int v) -cdef extern from "../c/graphLib/graphLib.h": - char *gp_GetProjectVersionFull() - char *gp_GetLibPlanarityVersionFull() - - cdef extern from "../c/graphLib/homeomorphSearch/graphK23Search.h": int gp_ExtendWith_K23Search(graphP theGraph) @@ -102,3 +111,32 @@ cdef extern from "../c/graphLib/planarityRelated/graphPlanarity.h": int NONEMBEDDABLE int EMBEDFLAGS_PLANAR, EMBEDFLAGS_DRAWPLANAR, EMBEDFLAGS_OUTERPLANAR int EMBEDFLAGS_SEARCHFORK23, EMBEDFLAGS_SEARCHFORK33, EMBEDFLAGS_SEARCHFORK4 + + +cdef extern from "../c/graphLib/io/g6-read-iterator.h": + ctypedef struct G6ReadIterator: + pass + ctypedef G6ReadIterator * G6ReadIteratorP + + int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph) + bint g6_EndReached(G6ReadIteratorP theG6ReadIterator) + + int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName) + + int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator) + + void g6_FreeReader(G6ReadIteratorP *pG6ReadIterator) + + +cdef extern from "../c/graphLib/io/g6-write-iterator.h": + ctypedef struct G6WriteIterator: + pass + ctypedef G6WriteIterator * G6WriteIteratorP + + int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph) + + int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName) + + int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) + + void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) \ No newline at end of file diff --git a/planarity/full/g6IterationUtils.c b/planarity/full/g6IterationUtils.c index d56c8fb..75913f5 100644 --- a/planarity/full/g6IterationUtils.c +++ b/planarity/full/g6IterationUtils.c @@ -1,42 +1,11 @@ -/* Generated by Cython 3.2.4 */ +/* Generated by Cython 3.2.5 */ /* BEGIN: Cython Metadata { "distutils": { - "include_dirs": [ - "planarity/c/graphLib" - ], "name": "planarity.full.g6IterationUtils", "sources": [ - "planarity/full/g6IterationUtils.pyx", - "planarity/c/graphLib/graphDFSUtils.c", - "planarity/c/graphLib/graphLib.c", - "planarity/c/graphLib/graph.c", - "planarity/c/graphLib/io/g6-api-utilities.c", - "planarity/c/graphLib/io/g6-read-iterator.c", - "planarity/c/graphLib/io/strOrFile.c", - "planarity/c/graphLib/io/g6-write-iterator.c", - "planarity/c/graphLib/io/strbuf.c", - "planarity/c/graphLib/io/graphIO.c", - "planarity/c/graphLib/extensionSystem/graphExtensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK23Search_Extensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK33Search_Extensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK4Search.c", - "planarity/c/graphLib/homeomorphSearch/graphK4Search_Extensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK33Search.c", - "planarity/c/graphLib/homeomorphSearch/graphK23Search.c", - "planarity/c/graphLib/planarityRelated/graphTests.c", - "planarity/c/graphLib/planarityRelated/graphPlanarity_Extensions.c", - "planarity/c/graphLib/planarityRelated/graphEmbed.c", - "planarity/c/graphLib/planarityRelated/graphOuterplanarObstruction.c", - "planarity/c/graphLib/planarityRelated/graphNonplanar.c", - "planarity/c/graphLib/planarityRelated/graphIsolator.c", - "planarity/c/graphLib/planarityRelated/graphOuterplanarity_Extensions.c", - "planarity/c/graphLib/planarityRelated/graphDrawPlanar.c", - "planarity/c/graphLib/planarityRelated/graphDrawPlanar_Extensions.c", - "planarity/c/graphLib/lowLevelUtils/stack.c", - "planarity/c/graphLib/lowLevelUtils/apiutils.c", - "planarity/c/graphLib/lowLevelUtils/listcoll.c" + "planarity/full/g6IterationUtils.pyx" ] }, "module_name": "planarity.full.g6IterationUtils" @@ -65,8 +34,8 @@ END: Cython Metadata */ #elif PY_VERSION_HEX < 0x03080000 #error Cython requires Python 3.8+. #else -#define __PYX_ABI_VERSION "3_2_4" -#define CYTHON_HEX_VERSION 0x030204F0 +#define __PYX_ABI_VERSION "3_2_5" +#define CYTHON_HEX_VERSION 0x030205F0 #define CYTHON_FUTURE_DIVISION 1 /* CModulePreamble */ #include @@ -1161,9 +1130,9 @@ static int __Pyx_init_co_variables(void) { #define __PYX_HAVE_API__planarity__full__g6IterationUtils /* Early includes */ #include "../c/graphLib/lowLevelUtils/apiutils.h" +#include "../c/graphLib/graphLib.h" #include "../c/graphLib/lowLevelUtils/appconst.h" #include "../c/graphLib/graph.h" -#include "../c/graphLib/graphLib.h" #include "../c/graphLib/homeomorphSearch/graphK23Search.h" #include "../c/graphLib/homeomorphSearch/graphK33Search.h" #include "../c/graphLib/homeomorphSearch/graphK4Search.h" @@ -1573,10 +1542,10 @@ struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator; struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6WriteIterator; /* "graph.pxd":12 - * from planarity.full cimport cgraphLib + * from planarity.full cimport graphLib * * cdef class Graph: # <<<<<<<<<<<<<< - * cdef cgraphLib.graphP _theGraph + * cdef graphLib.graphP _theGraph */ struct __pyx_obj_9planarity_4full_5graph_Graph { PyObject_HEAD @@ -1584,11 +1553,11 @@ struct __pyx_obj_9planarity_4full_5graph_Graph { }; -/* "planarity/full/g6IterationUtils.pyx":17 +/* "planarity/full/g6IterationUtils.pyx":15 * * * cdef class G6ReadIterator: # <<<<<<<<<<<<<< - * cdef cg6IterationDefs.G6ReadIteratorP _g6ReadIterator + * cdef graphLib.G6ReadIteratorP _g6ReadIterator * */ struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator { @@ -1597,11 +1566,11 @@ struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator { }; -/* "planarity/full/g6IterationUtils.pyx":66 +/* "planarity/full/g6IterationUtils.pyx":63 * * * cdef class G6WriteIterator: # <<<<<<<<<<<<<< - * cdef cg6IterationDefs.G6WriteIteratorP _g6WriteIterator + * cdef graphLib.G6WriteIteratorP _g6WriteIterator * */ struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6WriteIterator { @@ -1992,9 +1961,67 @@ static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject * static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif +/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); + +/* GetBuiltinName.proto (used by GetModuleGlobalName) */ +static PyObject *__Pyx_GetBuiltinName(PyObject *name); + +/* PyDictVersioning.proto (used by GetModuleGlobalName) */ +#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS +#define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) +#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) +#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ + (version_var) = __PYX_GET_DICT_VERSION(dict);\ + (cache_var) = (value); +#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ + static PY_UINT64_T __pyx_dict_version = 0;\ + static PyObject *__pyx_dict_cached_value = NULL;\ + if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ + (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\ + } else {\ + (VAR) = __pyx_dict_cached_value = (LOOKUP);\ + __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ + }\ +} +static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); +static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); +static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); +#else +#define __PYX_GET_DICT_VERSION(dict) (0) +#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) +#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); +#endif + +/* GetModuleGlobalName.proto */ +#if CYTHON_USE_DICT_VERSIONS +#define __Pyx_GetModuleGlobalName(var, name) do {\ + static PY_UINT64_T __pyx_dict_version = 0;\ + static PyObject *__pyx_dict_cached_value = NULL;\ + (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\ + (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\ + __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ +} while(0) +#define __Pyx_GetModuleGlobalNameUncached(var, name) do {\ + PY_UINT64_T __pyx_dict_version;\ + PyObject *__pyx_dict_cached_value;\ + (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ +} while(0) +static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value); +#else +#define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name) +#define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name) +static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name); +#endif + /* PyMemoryError_Check.proto */ #define __Pyx_PyExc_MemoryError_Check(obj) __Pyx_TypeCheck(obj, PyExc_MemoryError) +/* WriteUnraisableException.proto */ +static void __Pyx_WriteUnraisable(const char *name, int clineno, + int lineno, const char *filename, + int full_traceback, int nogil); + /* RejectKeywords.export */ static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds); @@ -2042,31 +2069,47 @@ CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t); static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k); #define __Pyx_DelItemOnTypeDict(tp, k) __Pyx__DelItemOnTypeDict((PyTypeObject*)tp, k) -/* PyObjectGetAttrStrNoError.proto (used by SetupReduce) */ -static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); - /* SetupReduce.proto */ static int __Pyx_setup_reduce(PyObject* type_obj); /* TypeImport.proto */ -#ifndef __PYX_HAVE_RT_ImportType_proto_3_2_4 -#define __PYX_HAVE_RT_ImportType_proto_3_2_4 +#ifndef __PYX_HAVE_RT_ImportType_proto_3_2_5 +#define __PYX_HAVE_RT_ImportType_proto_3_2_5 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L #include #endif #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L -#define __PYX_GET_STRUCT_ALIGNMENT_3_2_4(s) alignof(s) +#define __PYX_GET_STRUCT_ALIGNMENT_3_2_5(s) alignof(s) #else -#define __PYX_GET_STRUCT_ALIGNMENT_3_2_4(s) sizeof(void*) +#define __PYX_GET_STRUCT_ALIGNMENT_3_2_5(s) sizeof(void*) #endif -enum __Pyx_ImportType_CheckSize_3_2_4 { - __Pyx_ImportType_CheckSize_Error_3_2_4 = 0, - __Pyx_ImportType_CheckSize_Warn_3_2_4 = 1, - __Pyx_ImportType_CheckSize_Ignore_3_2_4 = 2 +enum __Pyx_ImportType_CheckSize_3_2_5 { + __Pyx_ImportType_CheckSize_Error_3_2_5 = 0, + __Pyx_ImportType_CheckSize_Warn_3_2_5 = 1, + __Pyx_ImportType_CheckSize_Ignore_3_2_5 = 2 }; -static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_4 check_size); +static PyTypeObject *__Pyx_ImportType_3_2_5(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_5 check_size); +#endif + +/* FunctionImport.proto */ +static int __Pyx_ImportFunction_3_2_5(PyObject *module, const char *funcname, void (**f)(void), const char *sig); + +/* HasAttr.proto (used by ImportImpl) */ +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 +#define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n) +#else +static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *); #endif +/* ImportImpl.export */ +static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level); + +/* Import.proto */ +static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level); + +/* ImportFrom.proto */ +static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); + /* dict_setdefault.proto (used by FetchCommonType) */ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value); @@ -2200,32 +2243,6 @@ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, PyObject *module, PyObject *globals, PyObject* code); -/* PyDictVersioning.proto (used by CLineInTraceback) */ -#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS -#define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) -#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) -#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ - (version_var) = __PYX_GET_DICT_VERSION(dict);\ - (cache_var) = (value); -#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ - static PY_UINT64_T __pyx_dict_version = 0;\ - static PyObject *__pyx_dict_cached_value = NULL;\ - if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ - (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\ - } else {\ - (VAR) = __pyx_dict_cached_value = (LOOKUP);\ - __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ - }\ -} -static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); -static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); -static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); -#else -#define __PYX_GET_DICT_VERSION(dict) (0) -#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) -#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); -#endif - /* CLineInTraceback.proto (used by AddTraceback) */ #if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); @@ -2259,24 +2276,7 @@ static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); -/* FormatTypeName.proto */ -#if CYTHON_COMPILING_IN_LIMITED_API -typedef PyObject *__Pyx_TypeName; -#define __Pyx_FMT_TYPENAME "%U" -#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj) -#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 -#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName -#else -static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp); -#endif -#else // !LIMITED_API -typedef const char *__Pyx_TypeName; -#define __Pyx_FMT_TYPENAME "%.200s" -#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name) -#define __Pyx_DECREF_TypeName(obj) -#endif - -/* GCCDiagnostics.proto (used by CIntToPy) */ +/* GCCDiagnostics.proto */ #if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) #define __Pyx_HAS_GCC_DIAGNOSTIC #endif @@ -2299,6 +2299,26 @@ static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, P #define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value) #endif +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value); + +/* FormatTypeName.proto */ +#if CYTHON_COMPILING_IN_LIMITED_API +typedef PyObject *__Pyx_TypeName; +#define __Pyx_FMT_TYPENAME "%U" +#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj) +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 +#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName +#else +static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp); +#endif +#else // !LIMITED_API +typedef const char *__Pyx_TypeName; +#define __Pyx_FMT_TYPENAME "%.200s" +#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name) +#define __Pyx_DECREF_TypeName(obj) +#endif + /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value); @@ -2397,11 +2417,18 @@ static int __Pyx_State_RemoveModule(void*); /* Module declarations from "planarity.full" */ -/* Module declarations from "planarity.full.cappconst" */ - /* Module declarations from "planarity.full.cgraphLib" */ -/* Module declarations from "planarity.full.cg6IterationDefs" */ +/* Module declarations from "planarity.full.graphLib" */ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_NewReader)(G6ReadIteratorP *, graphP); /*proto*/ +static PyObject *(*__pyx_f_9planarity_4full_8graphLib_g6_EndReached)(G6ReadIteratorP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName)(G6ReadIteratorP, char *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_ReadGraph)(G6ReadIteratorP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_FreeReader)(G6ReadIteratorP *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_NewWriter)(G6WriteIteratorP *, graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName)(G6WriteIteratorP, char *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_g6_WriteGraph)(G6WriteIteratorP); /*proto*/ +static void (*__pyx_f_9planarity_4full_8graphLib_g6_FreeWriter)(G6WriteIteratorP *); /*proto*/ /* Module declarations from "planarity.full.graph" */ @@ -2461,7 +2488,7 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; PyObject *__pyx_codeobj_tab[9]; - PyObject *__pyx_string_tab[72]; + PyObject *__pyx_string_tab[78]; PyObject *__pyx_number_tab[1]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ @@ -2514,15 +2541,15 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #define __pyx_kp_u_Unable_to_initialize_writer_with __pyx_string_tab[8] #define __pyx_kp_u_Unable_to_read_graph_as_g6_ReadG __pyx_string_tab[9] #define __pyx_kp_u_Unable_to_write_graph_as_g6_Writ __pyx_string_tab[10] -#define __pyx_kp_u_add_note __pyx_string_tab[11] -#define __pyx_kp_u_disable __pyx_string_tab[12] -#define __pyx_kp_u_enable __pyx_string_tab[13] -#define __pyx_kp_u_gc __pyx_string_tab[14] -#define __pyx_kp_u_isenabled __pyx_string_tab[15] -#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[16] -#define __pyx_kp_u_planarity_full_g6IterationUtils_2 __pyx_string_tab[17] -#define __pyx_kp_u_stringsource __pyx_string_tab[18] -#define __pyx_n_u_FileName __pyx_string_tab[19] +#define __pyx_kp_u__2 __pyx_string_tab[11] +#define __pyx_kp_u_add_note __pyx_string_tab[12] +#define __pyx_kp_u_disable __pyx_string_tab[13] +#define __pyx_kp_u_enable __pyx_string_tab[14] +#define __pyx_kp_u_gc __pyx_string_tab[15] +#define __pyx_kp_u_isenabled __pyx_string_tab[16] +#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[17] +#define __pyx_kp_u_planarity_full_g6IterationUtils_2 __pyx_string_tab[18] +#define __pyx_kp_u_stringsource __pyx_string_tab[19] #define __pyx_n_u_G6ReadIterator __pyx_string_tab[20] #define __pyx_n_u_G6ReadIterator___reduce_cython __pyx_string_tab[21] #define __pyx_n_u_G6ReadIterator___setstate_cython __pyx_string_tab[22] @@ -2534,47 +2561,53 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #define __pyx_n_u_G6WriteIterator___setstate_cytho __pyx_string_tab[28] #define __pyx_n_u_G6WriteIterator_g6_InitWriterWit __pyx_string_tab[29] #define __pyx_n_u_G6WriteIterator_g6_WriteGraph __pyx_string_tab[30] -#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[31] -#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[32] -#define __pyx_n_u_cline_in_traceback __pyx_string_tab[33] -#define __pyx_n_u_curr_graph __pyx_string_tab[34] -#define __pyx_n_u_encoded __pyx_string_tab[35] -#define __pyx_n_u_func __pyx_string_tab[36] -#define __pyx_n_u_g6_EndReached __pyx_string_tab[37] -#define __pyx_n_u_g6_InitReaderWithFileName __pyx_string_tab[38] -#define __pyx_n_u_g6_InitWriterWithFileName __pyx_string_tab[39] -#define __pyx_n_u_g6_ReadGraph __pyx_string_tab[40] -#define __pyx_n_u_g6_WriteGraph __pyx_string_tab[41] -#define __pyx_n_u_getstate __pyx_string_tab[42] -#define __pyx_n_u_gp_GetN __pyx_string_tab[43] -#define __pyx_n_u_graph_to_write __pyx_string_tab[44] -#define __pyx_n_u_infile_name __pyx_string_tab[45] -#define __pyx_n_u_is_coroutine __pyx_string_tab[46] -#define __pyx_n_u_items __pyx_string_tab[47] -#define __pyx_n_u_main __pyx_string_tab[48] -#define __pyx_n_u_module __pyx_string_tab[49] -#define __pyx_n_u_name __pyx_string_tab[50] -#define __pyx_n_u_outfile_name __pyx_string_tab[51] -#define __pyx_n_u_planarity_full_g6IterationUtils __pyx_string_tab[52] -#define __pyx_n_u_pop __pyx_string_tab[53] -#define __pyx_n_u_pyx_state __pyx_string_tab[54] -#define __pyx_n_u_qualname __pyx_string_tab[55] -#define __pyx_n_u_reduce __pyx_string_tab[56] -#define __pyx_n_u_reduce_cython __pyx_string_tab[57] -#define __pyx_n_u_reduce_ex __pyx_string_tab[58] -#define __pyx_n_u_self __pyx_string_tab[59] -#define __pyx_n_u_set_name __pyx_string_tab[60] -#define __pyx_n_u_setdefault __pyx_string_tab[61] -#define __pyx_n_u_setstate __pyx_string_tab[62] -#define __pyx_n_u_setstate_cython __pyx_string_tab[63] -#define __pyx_n_u_test __pyx_string_tab[64] -#define __pyx_n_u_values __pyx_string_tab[65] -#define __pyx_kp_b_iso88591_A_1_a __pyx_string_tab[66] -#define __pyx_kp_b_iso88591_A_A_5Qd_MZWccd_aq __pyx_string_tab[67] -#define __pyx_kp_b_iso88591_A_A_Q_aq __pyx_string_tab[68] -#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[69] -#define __pyx_kp_b_iso88591_A_q_A_5Qd_LJVbbc_a __pyx_string_tab[70] -#define __pyx_kp_b_iso88591_Q __pyx_string_tab[71] +#define __pyx_n_u_OK __pyx_string_tab[31] +#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[32] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[33] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[34] +#define __pyx_n_u_curr_graph __pyx_string_tab[35] +#define __pyx_n_u_encoded __pyx_string_tab[36] +#define __pyx_n_u_encodedInfileName __pyx_string_tab[37] +#define __pyx_n_u_encodedOutputFileName __pyx_string_tab[38] +#define __pyx_n_u_func __pyx_string_tab[39] +#define __pyx_n_u_g6_EndReached __pyx_string_tab[40] +#define __pyx_n_u_g6_InitReaderWithFileName __pyx_string_tab[41] +#define __pyx_n_u_g6_InitWriterWithFileName __pyx_string_tab[42] +#define __pyx_n_u_g6_ReadGraph __pyx_string_tab[43] +#define __pyx_n_u_g6_WriteGraph __pyx_string_tab[44] +#define __pyx_n_u_getstate __pyx_string_tab[45] +#define __pyx_n_u_gp_GetN __pyx_string_tab[46] +#define __pyx_n_u_graphLib __pyx_string_tab[47] +#define __pyx_n_u_graph_to_write __pyx_string_tab[48] +#define __pyx_n_u_infile_name __pyx_string_tab[49] +#define __pyx_n_u_is_coroutine __pyx_string_tab[50] +#define __pyx_n_u_items __pyx_string_tab[51] +#define __pyx_n_u_main __pyx_string_tab[52] +#define __pyx_n_u_module __pyx_string_tab[53] +#define __pyx_n_u_name __pyx_string_tab[54] +#define __pyx_n_u_outfile_name __pyx_string_tab[55] +#define __pyx_n_u_planarity_full __pyx_string_tab[56] +#define __pyx_n_u_planarity_full_g6IterationUtils __pyx_string_tab[57] +#define __pyx_n_u_pop __pyx_string_tab[58] +#define __pyx_n_u_pyx_state __pyx_string_tab[59] +#define __pyx_n_u_qualname __pyx_string_tab[60] +#define __pyx_n_u_reduce __pyx_string_tab[61] +#define __pyx_n_u_reduce_cython __pyx_string_tab[62] +#define __pyx_n_u_reduce_ex __pyx_string_tab[63] +#define __pyx_n_u_self __pyx_string_tab[64] +#define __pyx_n_u_set_name __pyx_string_tab[65] +#define __pyx_n_u_setdefault __pyx_string_tab[66] +#define __pyx_n_u_setstate __pyx_string_tab[67] +#define __pyx_n_u_setstate_cython __pyx_string_tab[68] +#define __pyx_n_u_test __pyx_string_tab[69] +#define __pyx_n_u_values __pyx_string_tab[70] +#define __pyx_kp_b_PyObject_G6ReadIteratorP_int_G6R __pyx_string_tab[71] +#define __pyx_kp_b_iso88591_A_1_Qd2EE___ggh_aq __pyx_string_tab[72] +#define __pyx_kp_b_iso88591_A_7s_a __pyx_string_tab[73] +#define __pyx_kp_b_iso88591_A_9_HA_aq __pyx_string_tab[74] +#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[75] +#define __pyx_kp_b_iso88591_A_q_Q_Qd2DDWWZZbbc_a __pyx_string_tab[76] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[77] #define __pyx_int_0 __pyx_number_tab[0] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE @@ -2596,7 +2629,7 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator); Py_CLEAR(clear_module_state->__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator); for (int i=0; i<9; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<72; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } + for (int i=0; i<78; ++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 */ @@ -2626,7 +2659,7 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void Py_VISIT(traverse_module_state->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator); Py_VISIT(traverse_module_state->__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator); for (int i=0; i<9; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<72; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } + for (int i=0; i<78; ++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 */ @@ -2641,8 +2674,8 @@ return 0; #endif /* #### Code section: module_code ### */ -/* "planarity/full/g6IterationUtils.pyx":20 - * cdef cg6IterationDefs.G6ReadIteratorP _g6ReadIterator +/* "planarity/full/g6IterationUtils.pyx":18 + * cdef graphLib.G6ReadIteratorP _g6ReadIterator * * def __cinit__(self, curr_graph: graph.Graph): # <<<<<<<<<<<<<< * try: @@ -2671,32 +2704,32 @@ static int __pyx_pw_9planarity_4full_16g6IterationUtils_14G6ReadIterator_1__cini { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_curr_graph,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 20, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 18, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 20, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(0, 18, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 20, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 18, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18, __pyx_L3_error) } __pyx_v_curr_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -2707,7 +2740,7 @@ static int __pyx_pw_9planarity_4full_16g6IterationUtils_14G6ReadIterator_1__cini __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_curr_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 0, "curr_graph", 0))) __PYX_ERR(0, 20, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_curr_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 0, "curr_graph", 0))) __PYX_ERR(0, 18, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit__(((struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator *)__pyx_v_self), __pyx_v_curr_graph); /* function exit code */ @@ -2755,7 +2788,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "planarity/full/g6IterationUtils.pyx":21 + /* "planarity/full/g6IterationUtils.pyx":19 * * def __cinit__(self, curr_graph: graph.Graph): * try: # <<<<<<<<<<<<<< @@ -2771,7 +2804,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "planarity/full/g6IterationUtils.pyx":22 + /* "planarity/full/g6IterationUtils.pyx":20 * def __cinit__(self, curr_graph: graph.Graph): * try: * curr_graph.gp_GetN() # <<<<<<<<<<<<<< @@ -2785,12 +2818,12 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L3_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/g6IterationUtils.pyx":21 + /* "planarity/full/g6IterationUtils.pyx":19 * * def __cinit__(self, curr_graph: graph.Graph): * try: # <<<<<<<<<<<<<< @@ -2806,7 +2839,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "planarity/full/g6IterationUtils.pyx":23 + /* "planarity/full/g6IterationUtils.pyx":21 * try: * curr_graph.gp_GetN() * except RuntimeError as invalid_graph_error: # <<<<<<<<<<<<<< @@ -2816,7 +2849,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_RuntimeError)))); if (__pyx_t_7) { __Pyx_AddTraceback("planarity.full.g6IterationUtils.G6ReadIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_8) < 0) __PYX_ERR(0, 23, __pyx_L5_except_error) + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_8) < 0) __PYX_ERR(0, 21, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_8); @@ -2824,7 +2857,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit __pyx_v_invalid_graph_error = __pyx_t_5; /*try:*/ { - /* "planarity/full/g6IterationUtils.pyx":24 + /* "planarity/full/g6IterationUtils.pyx":22 * curr_graph.gp_GetN() * except RuntimeError as invalid_graph_error: * raise ValueError( # <<<<<<<<<<<<<< @@ -2837,11 +2870,11 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Graph_to_populate_is_not_allocat}; __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24, __pyx_L14_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_9); } - /* "planarity/full/g6IterationUtils.pyx":26 + /* "planarity/full/g6IterationUtils.pyx":24 * raise ValueError( * "Graph to populate is not allocated." * ) from invalid_graph_error # <<<<<<<<<<<<<< @@ -2850,10 +2883,10 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit */ __Pyx_Raise(__pyx_t_9, 0, 0, __pyx_v_invalid_graph_error); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(0, 24, __pyx_L14_error) + __PYX_ERR(0, 22, __pyx_L14_error) } - /* "planarity/full/g6IterationUtils.pyx":23 + /* "planarity/full/g6IterationUtils.pyx":21 * try: * curr_graph.gp_GetN() * except RuntimeError as invalid_graph_error: # <<<<<<<<<<<<<< @@ -2896,7 +2929,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit } goto __pyx_L5_except_error; - /* "planarity/full/g6IterationUtils.pyx":21 + /* "planarity/full/g6IterationUtils.pyx":19 * * def __cinit__(self, curr_graph: graph.Graph): * try: # <<<<<<<<<<<<<< @@ -2912,56 +2945,68 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit __pyx_L8_try_end:; } - /* "planarity/full/g6IterationUtils.pyx":28 + /* "planarity/full/g6IterationUtils.pyx":26 * ) from invalid_graph_error * * self._g6ReadIterator = NULL # <<<<<<<<<<<<<< * - * if cg6IterationDefs.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != cappconst.OK: + * if graphLib.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != graphLib.OK: */ __pyx_v_self->_g6ReadIterator = NULL; - /* "planarity/full/g6IterationUtils.pyx":30 + /* "planarity/full/g6IterationUtils.pyx":28 * self._g6ReadIterator = NULL * - * if cg6IterationDefs.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != graphLib.OK: # <<<<<<<<<<<<<< * raise MemoryError( * "Unable to initialize G6ReadIterator, as call to " */ - __pyx_t_19 = (g6_NewReader((&__pyx_v_self->_g6ReadIterator), __pyx_v_curr_graph->_theGraph) != OK); + __pyx_t_11 = __pyx_f_9planarity_4full_8graphLib_g6_NewReader((&__pyx_v_self->_g6ReadIterator), __pyx_v_curr_graph->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = PyObject_RichCompare(__pyx_t_8, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_19 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_19 < 0))) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_t_19)) { - /* "planarity/full/g6IterationUtils.pyx":31 + /* "planarity/full/g6IterationUtils.pyx":29 * - * if cg6IterationDefs.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != cappconst.OK: + * if graphLib.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != graphLib.OK: * raise MemoryError( # <<<<<<<<<<<<<< * "Unable to initialize G6ReadIterator, as call to " * "g6_NewReader() in EAPS graphLib failed." */ - __pyx_t_5 = NULL; + __pyx_t_4 = NULL; __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_G6ReadItera}; - __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_G6ReadItera}; + __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); } - __Pyx_Raise(__pyx_t_8, 0, 0, 0); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __PYX_ERR(0, 31, __pyx_L1_error) + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __PYX_ERR(0, 29, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":30 + /* "planarity/full/g6IterationUtils.pyx":28 * self._g6ReadIterator = NULL * - * if cg6IterationDefs.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != graphLib.OK: # <<<<<<<<<<<<<< * raise MemoryError( * "Unable to initialize G6ReadIterator, as call to " */ } - /* "planarity/full/g6IterationUtils.pyx":20 - * cdef cg6IterationDefs.G6ReadIteratorP _g6ReadIterator + /* "planarity/full/g6IterationUtils.pyx":18 + * cdef graphLib.G6ReadIteratorP _g6ReadIterator * * def __cinit__(self, curr_graph: graph.Graph): # <<<<<<<<<<<<<< * try: @@ -2985,7 +3030,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator___cinit return __pyx_r; } -/* "planarity/full/g6IterationUtils.pyx":36 +/* "planarity/full/g6IterationUtils.pyx":34 * ) * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -3008,8 +3053,11 @@ static void __pyx_pw_9planarity_4full_16g6IterationUtils_14G6ReadIterator_3__dea static void __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_2__dealloc__(struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator *__pyx_v_self) { int __pyx_t_1; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; - /* "planarity/full/g6IterationUtils.pyx":37 + /* "planarity/full/g6IterationUtils.pyx":35 * * def __dealloc__(self): * if self._g6ReadIterator != NULL: # <<<<<<<<<<<<<< @@ -3019,16 +3067,16 @@ static void __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_2__dea __pyx_t_1 = (__pyx_v_self->_g6ReadIterator != NULL); if (__pyx_t_1) { - /* "planarity/full/g6IterationUtils.pyx":42 + /* "planarity/full/g6IterationUtils.pyx":40 * # by calling their respective __dealloc__, so at that point the * # graphP will be cleaned up with gp_Free() - * cg6IterationDefs.g6_FreeReader(&self._g6ReadIterator) # <<<<<<<<<<<<<< + * graphLib.g6_FreeReader(&self._g6ReadIterator) # <<<<<<<<<<<<<< * * def g6_EndReached(self): */ - (void)(g6_FreeReader((&__pyx_v_self->_g6ReadIterator))); + __pyx_f_9planarity_4full_8graphLib_g6_FreeReader((&__pyx_v_self->_g6ReadIterator)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":37 + /* "planarity/full/g6IterationUtils.pyx":35 * * def __dealloc__(self): * if self._g6ReadIterator != NULL: # <<<<<<<<<<<<<< @@ -3037,7 +3085,7 @@ static void __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_2__dea */ } - /* "planarity/full/g6IterationUtils.pyx":36 + /* "planarity/full/g6IterationUtils.pyx":34 * ) * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -3046,13 +3094,17 @@ static void __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_2__dea */ /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_WriteUnraisable("planarity.full.g6IterationUtils.G6ReadIterator.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); + __pyx_L0:; } -/* "planarity/full/g6IterationUtils.pyx":44 - * cg6IterationDefs.g6_FreeReader(&self._g6ReadIterator) +/* "planarity/full/g6IterationUtils.pyx":42 + * graphLib.g6_FreeReader(&self._g6ReadIterator) * * def g6_EndReached(self): # <<<<<<<<<<<<<< - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) + * return graphLib.g6_EndReached(self._g6ReadIterator) * */ @@ -3108,25 +3160,25 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_4 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("g6_EndReached", 0); - /* "planarity/full/g6IterationUtils.pyx":45 + /* "planarity/full/g6IterationUtils.pyx":43 * * def g6_EndReached(self): - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) # <<<<<<<<<<<<<< + * return graphLib.g6_EndReached(self._g6ReadIterator) # <<<<<<<<<<<<<< * * def g6_InitReaderWithFileName(self, str infile_name): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(g6_EndReached(__pyx_v_self->_g6ReadIterator)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_g6_EndReached(__pyx_v_self->_g6ReadIterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/g6IterationUtils.pyx":44 - * cg6IterationDefs.g6_FreeReader(&self._g6ReadIterator) + /* "planarity/full/g6IterationUtils.pyx":42 + * graphLib.g6_FreeReader(&self._g6ReadIterator) * * def g6_EndReached(self): # <<<<<<<<<<<<<< - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) + * return graphLib.g6_EndReached(self._g6ReadIterator) * */ @@ -3141,8 +3193,8 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_4 return __pyx_r; } -/* "planarity/full/g6IterationUtils.pyx":47 - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) +/* "planarity/full/g6IterationUtils.pyx":45 + * return graphLib.g6_EndReached(self._g6ReadIterator) * * def g6_InitReaderWithFileName(self, str infile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * @@ -3189,32 +3241,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_infile_name,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, 47, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 45, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 47, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 45, __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, "g6_InitReaderWithFileName", 0) < (0)) __PYX_ERR(0, 47, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "g6_InitReaderWithFileName", 0) < (0)) __PYX_ERR(0, 45, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("g6_InitReaderWithFileName", 1, 1, 1, i); __PYX_ERR(0, 47, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("g6_InitReaderWithFileName", 1, 1, 1, i); __PYX_ERR(0, 45, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 47, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 45, __pyx_L3_error) } __pyx_v_infile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("g6_InitReaderWithFileName", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 47, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("g6_InitReaderWithFileName", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 45, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3225,7 +3277,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 47, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 45, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_6g6_InitReaderWithFileName(((struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator *)__pyx_v_self), __pyx_v_infile_name); /* function exit code */ @@ -3247,86 +3299,100 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_6g6_InitReaderWithFileName(struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6ReadIterator *__pyx_v_self, PyObject *__pyx_v_infile_name) { PyObject *__pyx_v_encoded = 0; - char const *__pyx_v_FileName; + char const *__pyx_v_encodedInfileName; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; - size_t __pyx_t_5; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("g6_InitReaderWithFileName", 0); - /* "planarity/full/g6IterationUtils.pyx":49 + /* "planarity/full/g6IterationUtils.pyx":47 * def g6_InitReaderWithFileName(self, str infile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') # <<<<<<<<<<<<<< - * cdef const char *FileName = encoded - * + * cdef const char *encodedInfileName = encoded + * if graphLib.g6_InitReaderWithFileName(self._g6ReadIterator, encodedInfileName) != graphLib.OK: */ if (unlikely(__pyx_v_infile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 49, __pyx_L1_error) + __PYX_ERR(0, 47, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/g6IterationUtils.pyx":50 + /* "planarity/full/g6IterationUtils.pyx":48 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') - * cdef const char *FileName = encoded # <<<<<<<<<<<<<< - * - * if cg6IterationDefs.g6_InitReaderWithFileName(self._g6ReadIterator, FileName) != cappconst.OK: + * cdef const char *encodedInfileName = encoded # <<<<<<<<<<<<<< + * if graphLib.g6_InitReaderWithFileName(self._g6ReadIterator, encodedInfileName) != graphLib.OK: + * raise RuntimeError( */ - __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 50, __pyx_L1_error) - __pyx_v_FileName = __pyx_t_2; + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 48, __pyx_L1_error) + __pyx_v_encodedInfileName = __pyx_t_2; - /* "planarity/full/g6IterationUtils.pyx":52 - * cdef const char *FileName = encoded - * - * if cg6IterationDefs.g6_InitReaderWithFileName(self._g6ReadIterator, FileName) != cappconst.OK: # <<<<<<<<<<<<<< + /* "planarity/full/g6IterationUtils.pyx":49 + * cdef bytes encoded = infile_name.encode('utf-8') + * cdef const char *encodedInfileName = encoded + * if graphLib.g6_InitReaderWithFileName(self._g6ReadIterator, encodedInfileName) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to initialize reader with filename, as " */ - __pyx_t_3 = (g6_InitReaderWithFileName(__pyx_v_self->_g6ReadIterator, __pyx_v_FileName) != OK); - if (unlikely(__pyx_t_3)) { - - /* "planarity/full/g6IterationUtils.pyx":53 - * - * if cg6IterationDefs.g6_InitReaderWithFileName(self._g6ReadIterator, FileName) != cappconst.OK: + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName(__pyx_v_self->_g6ReadIterator, __pyx_v_encodedInfileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_6)) { + + /* "planarity/full/g6IterationUtils.pyx":50 + * cdef const char *encodedInfileName = encoded + * if graphLib.g6_InitReaderWithFileName(self._g6ReadIterator, encodedInfileName) != graphLib.OK: * raise RuntimeError( # <<<<<<<<<<<<<< * f"Unable to initialize reader with filename, as " * "g6_InitReaderWithFileName() in EAPS graphLib failed." */ - __pyx_t_4 = NULL; - __pyx_t_5 = 1; + __pyx_t_5 = NULL; + __pyx_t_7 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_reader_with}; - __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, 53, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_reader_with}; + __pyx_t_4 = __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_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 50, __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_ERR(0, 53, __pyx_L1_error) + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __PYX_ERR(0, 50, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":52 - * cdef const char *FileName = encoded - * - * if cg6IterationDefs.g6_InitReaderWithFileName(self._g6ReadIterator, FileName) != cappconst.OK: # <<<<<<<<<<<<<< + /* "planarity/full/g6IterationUtils.pyx":49 + * cdef bytes encoded = infile_name.encode('utf-8') + * cdef const char *encodedInfileName = encoded + * if graphLib.g6_InitReaderWithFileName(self._g6ReadIterator, encodedInfileName) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to initialize reader with filename, as " */ } - /* "planarity/full/g6IterationUtils.pyx":47 - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) + /* "planarity/full/g6IterationUtils.pyx":45 + * return graphLib.g6_EndReached(self._g6ReadIterator) * * def g6_InitReaderWithFileName(self, str infile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * @@ -3339,6 +3405,7 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_6 __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("planarity.full.g6IterationUtils.G6ReadIterator.g6_InitReaderWithFileName", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -3348,11 +3415,11 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_6 return __pyx_r; } -/* "planarity/full/g6IterationUtils.pyx":58 +/* "planarity/full/g6IterationUtils.pyx":55 * ) * * def g6_ReadGraph(self): # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: + * if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: * raise RuntimeError( */ @@ -3405,56 +3472,70 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_8 int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + 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("g6_ReadGraph", 0); - /* "planarity/full/g6IterationUtils.pyx":59 + /* "planarity/full/g6IterationUtils.pyx":56 * * def g6_ReadGraph(self): - * if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to read graph, as g6_ReadGraph() in EAPS graphLib " */ - __pyx_t_1 = (g6_ReadGraph(__pyx_v_self->_g6ReadIterator) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_g6_ReadGraph(__pyx_v_self->_g6ReadIterator); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 56, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_5)) { - /* "planarity/full/g6IterationUtils.pyx":60 + /* "planarity/full/g6IterationUtils.pyx":57 * def g6_ReadGraph(self): - * if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: + * if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: * raise RuntimeError( # <<<<<<<<<<<<<< * f"Unable to read graph, as g6_ReadGraph() in EAPS graphLib " * "failed." */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_4 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Unable_to_read_graph_as_g6_ReadG}; - __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, 60, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Unable_to_read_graph_as_g6_ReadG}; + __pyx_t_3 = __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_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __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_ERR(0, 60, __pyx_L1_error) + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __PYX_ERR(0, 57, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":59 + /* "planarity/full/g6IterationUtils.pyx":56 * * def g6_ReadGraph(self): - * if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to read graph, as g6_ReadGraph() in EAPS graphLib " */ } - /* "planarity/full/g6IterationUtils.pyx":58 + /* "planarity/full/g6IterationUtils.pyx":55 * ) * * def g6_ReadGraph(self): # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: + * if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: * raise RuntimeError( */ @@ -3464,6 +3545,7 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_8 __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.g6IterationUtils.G6ReadIterator.g6_ReadGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -3600,7 +3682,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 3, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 3, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -3678,8 +3760,8 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_14G6ReadIterator_1 return __pyx_r; } -/* "planarity/full/g6IterationUtils.pyx":69 - * cdef cg6IterationDefs.G6WriteIteratorP _g6WriteIterator +/* "planarity/full/g6IterationUtils.pyx":66 + * cdef graphLib.G6WriteIteratorP _g6WriteIterator * * def __cinit__(self, graph.Graph graph_to_write): # <<<<<<<<<<<<<< * try: @@ -3708,32 +3790,32 @@ static int __pyx_pw_9planarity_4full_16g6IterationUtils_15G6WriteIterator_1__cin { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_graph_to_write,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 69, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 66, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 69, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 66, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 69, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(0, 66, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 69, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 66, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 69, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 66, __pyx_L3_error) } __pyx_v_graph_to_write = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 69, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 66, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3744,7 +3826,7 @@ static int __pyx_pw_9planarity_4full_16g6IterationUtils_15G6WriteIterator_1__cin __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_graph_to_write), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "graph_to_write", 0))) __PYX_ERR(0, 69, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_graph_to_write), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "graph_to_write", 0))) __PYX_ERR(0, 66, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cinit__(((struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6WriteIterator *)__pyx_v_self), __pyx_v_graph_to_write); /* function exit code */ @@ -3792,7 +3874,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "planarity/full/g6IterationUtils.pyx":70 + /* "planarity/full/g6IterationUtils.pyx":67 * * def __cinit__(self, graph.Graph graph_to_write): * try: # <<<<<<<<<<<<<< @@ -3808,7 +3890,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "planarity/full/g6IterationUtils.pyx":71 + /* "planarity/full/g6IterationUtils.pyx":68 * def __cinit__(self, graph.Graph graph_to_write): * try: * if graph_to_write.gp_GetN() == 0: # <<<<<<<<<<<<<< @@ -3822,14 +3904,14 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L3_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 68, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } - __pyx_t_7 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_4, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 71, __pyx_L3_error) + __pyx_t_7 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_4, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 68, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_7)) { - /* "planarity/full/g6IterationUtils.pyx":72 + /* "planarity/full/g6IterationUtils.pyx":69 * try: * if graph_to_write.gp_GetN() == 0: * raise ValueError( # <<<<<<<<<<<<<< @@ -3842,14 +3924,14 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Graph_to_write_is_not_initialize}; __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L3_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 72, __pyx_L3_error) + __PYX_ERR(0, 69, __pyx_L3_error) - /* "planarity/full/g6IterationUtils.pyx":71 + /* "planarity/full/g6IterationUtils.pyx":68 * def __cinit__(self, graph.Graph graph_to_write): * try: * if graph_to_write.gp_GetN() == 0: # <<<<<<<<<<<<<< @@ -3858,7 +3940,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini */ } - /* "planarity/full/g6IterationUtils.pyx":70 + /* "planarity/full/g6IterationUtils.pyx":67 * * def __cinit__(self, graph.Graph graph_to_write): * try: # <<<<<<<<<<<<<< @@ -3874,7 +3956,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "planarity/full/g6IterationUtils.pyx":75 + /* "planarity/full/g6IterationUtils.pyx":72 * "Graph to write is not initialized." * ) * except RuntimeError as invalid_graph_error: # <<<<<<<<<<<<<< @@ -3884,7 +3966,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_RuntimeError)))); if (__pyx_t_8) { __Pyx_AddTraceback("planarity.full.g6IterationUtils.G6WriteIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_9) < 0) __PYX_ERR(0, 75, __pyx_L5_except_error) + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_9) < 0) __PYX_ERR(0, 72, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_9); @@ -3892,7 +3974,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini __pyx_v_invalid_graph_error = __pyx_t_5; /*try:*/ { - /* "planarity/full/g6IterationUtils.pyx":76 + /* "planarity/full/g6IterationUtils.pyx":73 * ) * except RuntimeError as invalid_graph_error: * raise ValueError( # <<<<<<<<<<<<<< @@ -3905,11 +3987,11 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_mstate_global->__pyx_kp_u_Graph_to_write_is_not_allocated}; __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 76, __pyx_L15_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 73, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); } - /* "planarity/full/g6IterationUtils.pyx":78 + /* "planarity/full/g6IterationUtils.pyx":75 * raise ValueError( * "Graph to write is not allocated." * ) from invalid_graph_error # <<<<<<<<<<<<<< @@ -3918,10 +4000,10 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini */ __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_invalid_graph_error); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __PYX_ERR(0, 76, __pyx_L15_error) + __PYX_ERR(0, 73, __pyx_L15_error) } - /* "planarity/full/g6IterationUtils.pyx":75 + /* "planarity/full/g6IterationUtils.pyx":72 * "Graph to write is not initialized." * ) * except RuntimeError as invalid_graph_error: # <<<<<<<<<<<<<< @@ -3964,7 +4046,7 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini } goto __pyx_L5_except_error; - /* "planarity/full/g6IterationUtils.pyx":70 + /* "planarity/full/g6IterationUtils.pyx":67 * * def __cinit__(self, graph.Graph graph_to_write): * try: # <<<<<<<<<<<<<< @@ -3980,56 +4062,68 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini __pyx_L8_try_end:; } - /* "planarity/full/g6IterationUtils.pyx":80 + /* "planarity/full/g6IterationUtils.pyx":77 * ) from invalid_graph_error * * self._g6WriteIterator = NULL # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != cappconst.OK: + * if graphLib.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != graphLib.OK: * raise MemoryError( */ __pyx_v_self->_g6WriteIterator = NULL; - /* "planarity/full/g6IterationUtils.pyx":81 + /* "planarity/full/g6IterationUtils.pyx":78 * * self._g6WriteIterator = NULL - * if cg6IterationDefs.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != graphLib.OK: # <<<<<<<<<<<<<< * raise MemoryError( * "Unable to initialize G6WriteIterator, as g6_NewWriter() in " */ - __pyx_t_7 = (g6_NewWriter((&__pyx_v_self->_g6WriteIterator), __pyx_v_graph_to_write->_theGraph) != OK); + __pyx_t_12 = __pyx_f_9planarity_4full_8graphLib_g6_NewWriter((&__pyx_v_self->_g6WriteIterator), __pyx_v_graph_to_write->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 78, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = PyObject_RichCompare(__pyx_t_9, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_t_7)) { - /* "planarity/full/g6IterationUtils.pyx":82 + /* "planarity/full/g6IterationUtils.pyx":79 * self._g6WriteIterator = NULL - * if cg6IterationDefs.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != cappconst.OK: + * if graphLib.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != graphLib.OK: * raise MemoryError( # <<<<<<<<<<<<<< * "Unable to initialize G6WriteIterator, as g6_NewWriter() in " * "EAPS graphLib failed." */ - __pyx_t_5 = NULL; + __pyx_t_4 = NULL; __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_G6WriteIter}; - __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 82, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_G6WriteIter}; + __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 79, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); } - __Pyx_Raise(__pyx_t_9, 0, 0, 0); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(0, 82, __pyx_L1_error) + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __PYX_ERR(0, 79, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":81 + /* "planarity/full/g6IterationUtils.pyx":78 * * self._g6WriteIterator = NULL - * if cg6IterationDefs.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != graphLib.OK: # <<<<<<<<<<<<<< * raise MemoryError( * "Unable to initialize G6WriteIterator, as g6_NewWriter() in " */ } - /* "planarity/full/g6IterationUtils.pyx":69 - * cdef cg6IterationDefs.G6WriteIteratorP _g6WriteIterator + /* "planarity/full/g6IterationUtils.pyx":66 + * cdef graphLib.G6WriteIteratorP _g6WriteIterator * * def __cinit__(self, graph.Graph graph_to_write): # <<<<<<<<<<<<<< * try: @@ -4053,12 +4147,12 @@ static int __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator___cini return __pyx_r; } -/* "planarity/full/g6IterationUtils.pyx":87 +/* "planarity/full/g6IterationUtils.pyx":84 * ) * * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._g6WriteIterator != NULL: - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + * graphLib.g6_FreeWriter(&self._g6WriteIterator) */ /* Python wrapper */ @@ -4076,48 +4170,55 @@ static void __pyx_pw_9planarity_4full_16g6IterationUtils_15G6WriteIterator_3__de static void __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_2__dealloc__(struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6WriteIterator *__pyx_v_self) { int __pyx_t_1; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; - /* "planarity/full/g6IterationUtils.pyx":88 + /* "planarity/full/g6IterationUtils.pyx":85 * * def __dealloc__(self): * if self._g6WriteIterator != NULL: # <<<<<<<<<<<<<< - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + * graphLib.g6_FreeWriter(&self._g6WriteIterator) * */ __pyx_t_1 = (__pyx_v_self->_g6WriteIterator != NULL); if (__pyx_t_1) { - /* "planarity/full/g6IterationUtils.pyx":89 + /* "planarity/full/g6IterationUtils.pyx":86 * def __dealloc__(self): * if self._g6WriteIterator != NULL: - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) # <<<<<<<<<<<<<< + * graphLib.g6_FreeWriter(&self._g6WriteIterator) # <<<<<<<<<<<<<< * * def g6_InitWriterWithFileName(self, str outfile_name): */ - (void)(g6_FreeWriter((&__pyx_v_self->_g6WriteIterator))); + __pyx_f_9planarity_4full_8graphLib_g6_FreeWriter((&__pyx_v_self->_g6WriteIterator)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 86, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":88 + /* "planarity/full/g6IterationUtils.pyx":85 * * def __dealloc__(self): * if self._g6WriteIterator != NULL: # <<<<<<<<<<<<<< - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + * graphLib.g6_FreeWriter(&self._g6WriteIterator) * */ } - /* "planarity/full/g6IterationUtils.pyx":87 + /* "planarity/full/g6IterationUtils.pyx":84 * ) * * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._g6WriteIterator != NULL: - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + * graphLib.g6_FreeWriter(&self._g6WriteIterator) */ /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_WriteUnraisable("planarity.full.g6IterationUtils.G6WriteIterator.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); + __pyx_L0:; } -/* "planarity/full/g6IterationUtils.pyx":91 - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) +/* "planarity/full/g6IterationUtils.pyx":88 + * graphLib.g6_FreeWriter(&self._g6WriteIterator) * * def g6_InitWriterWithFileName(self, str outfile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * @@ -4164,32 +4265,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,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, 91, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 88, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 91, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 88, __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, "g6_InitWriterWithFileName", 0) < (0)) __PYX_ERR(0, 91, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "g6_InitWriterWithFileName", 0) < (0)) __PYX_ERR(0, 88, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("g6_InitWriterWithFileName", 1, 1, 1, i); __PYX_ERR(0, 91, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("g6_InitWriterWithFileName", 1, 1, 1, i); __PYX_ERR(0, 88, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 91, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 88, __pyx_L3_error) } __pyx_v_outfile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("g6_InitWriterWithFileName", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 91, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("g6_InitWriterWithFileName", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 88, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -4200,7 +4301,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 91, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 88, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_4g6_InitWriterWithFileName(((struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6WriteIterator *)__pyx_v_self), __pyx_v_outfile_name); /* function exit code */ @@ -4222,86 +4323,100 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_4g6_InitWriterWithFileName(struct __pyx_obj_9planarity_4full_16g6IterationUtils_G6WriteIterator *__pyx_v_self, PyObject *__pyx_v_outfile_name) { PyObject *__pyx_v_encoded = 0; - char const *__pyx_v_FileName; + char const *__pyx_v_encodedOutputFileName; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; - size_t __pyx_t_5; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("g6_InitWriterWithFileName", 0); - /* "planarity/full/g6IterationUtils.pyx":93 + /* "planarity/full/g6IterationUtils.pyx":90 * def g6_InitWriterWithFileName(self, str outfile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< - * cdef const char *FileName = encoded + * cdef const char *encodedOutputFileName = encoded * */ if (unlikely(__pyx_v_outfile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 93, __pyx_L1_error) + __PYX_ERR(0, 90, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/g6IterationUtils.pyx":94 + /* "planarity/full/g6IterationUtils.pyx":91 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') - * cdef const char *FileName = encoded # <<<<<<<<<<<<<< + * cdef const char *encodedOutputFileName = encoded # <<<<<<<<<<<<<< * - * if cg6IterationDefs.g6_InitWriterWithFileName(self._g6WriteIterator, FileName) != cappconst.OK: + * if graphLib.g6_InitWriterWithFileName(self._g6WriteIterator, encodedOutputFileName) != graphLib.OK: */ - __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error) - __pyx_v_FileName = __pyx_t_2; + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L1_error) + __pyx_v_encodedOutputFileName = __pyx_t_2; - /* "planarity/full/g6IterationUtils.pyx":96 - * cdef const char *FileName = encoded + /* "planarity/full/g6IterationUtils.pyx":93 + * cdef const char *encodedOutputFileName = encoded * - * if cg6IterationDefs.g6_InitWriterWithFileName(self._g6WriteIterator, FileName) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_InitWriterWithFileName(self._g6WriteIterator, encodedOutputFileName) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") * */ - __pyx_t_3 = (g6_InitWriterWithFileName(__pyx_v_self->_g6WriteIterator, __pyx_v_FileName) != OK); - if (unlikely(__pyx_t_3)) { + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName(__pyx_v_self->_g6WriteIterator, __pyx_v_encodedOutputFileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 93, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_6)) { - /* "planarity/full/g6IterationUtils.pyx":97 + /* "planarity/full/g6IterationUtils.pyx":94 * - * if cg6IterationDefs.g6_InitWriterWithFileName(self._g6WriteIterator, FileName) != cappconst.OK: + * if graphLib.g6_InitWriterWithFileName(self._g6WriteIterator, encodedOutputFileName) != graphLib.OK: * raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") # <<<<<<<<<<<<<< * * def g6_WriteGraph(self): */ - __pyx_t_4 = NULL; - __pyx_t_5 = 1; + __pyx_t_5 = NULL; + __pyx_t_7 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_writer_with}; - __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, 97, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Unable_to_initialize_writer_with}; + __pyx_t_4 = __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_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __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_ERR(0, 97, __pyx_L1_error) + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __PYX_ERR(0, 94, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":96 - * cdef const char *FileName = encoded + /* "planarity/full/g6IterationUtils.pyx":93 + * cdef const char *encodedOutputFileName = encoded * - * if cg6IterationDefs.g6_InitWriterWithFileName(self._g6WriteIterator, FileName) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_InitWriterWithFileName(self._g6WriteIterator, encodedOutputFileName) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") * */ } - /* "planarity/full/g6IterationUtils.pyx":91 - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + /* "planarity/full/g6IterationUtils.pyx":88 + * graphLib.g6_FreeWriter(&self._g6WriteIterator) * * def g6_InitWriterWithFileName(self, str outfile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * @@ -4314,6 +4429,7 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("planarity.full.g6IterationUtils.G6WriteIterator.g6_InitWriterWithFileName", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -4323,11 +4439,11 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_ return __pyx_r; } -/* "planarity/full/g6IterationUtils.pyx":99 +/* "planarity/full/g6IterationUtils.pyx":96 * raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") * * def g6_WriteGraph(self): # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: + * if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: * raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") */ @@ -4380,52 +4496,66 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_ int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + 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("g6_WriteGraph", 0); - /* "planarity/full/g6IterationUtils.pyx":100 + /* "planarity/full/g6IterationUtils.pyx":97 * * def g6_WriteGraph(self): - * if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") */ - __pyx_t_1 = (g6_WriteGraph(__pyx_v_self->_g6WriteIterator) != OK); - if (unlikely(__pyx_t_1)) { + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_g6_WriteGraph(__pyx_v_self->_g6WriteIterator); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 97, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 97, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 97, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(__pyx_t_5)) { - /* "planarity/full/g6IterationUtils.pyx":101 + /* "planarity/full/g6IterationUtils.pyx":98 * def g6_WriteGraph(self): - * if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: + * if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: * raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") # <<<<<<<<<<<<<< */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_4 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Unable_to_write_graph_as_g6_Writ}; - __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, 101, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Unable_to_write_graph_as_g6_Writ}; + __pyx_t_3 = __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_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __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_ERR(0, 101, __pyx_L1_error) + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __PYX_ERR(0, 98, __pyx_L1_error) - /* "planarity/full/g6IterationUtils.pyx":100 + /* "planarity/full/g6IterationUtils.pyx":97 * * def g6_WriteGraph(self): - * if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: # <<<<<<<<<<<<<< + * if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") */ } - /* "planarity/full/g6IterationUtils.pyx":99 + /* "planarity/full/g6IterationUtils.pyx":96 * raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") * * def g6_WriteGraph(self): # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: + * if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: * raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") */ @@ -4435,6 +4565,7 @@ static PyObject *__pyx_pf_9planarity_4full_16g6IterationUtils_15G6WriteIterator_ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.g6IterationUtils.G6WriteIterator.g6_WriteGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -4571,7 +4702,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 3, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 3, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -4979,15 +5110,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ #if CYTHON_USE_TYPE_SPECS - __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_16g6IterationUtils_G6ReadIterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator)) __PYX_ERR(0, 17, __pyx_L1_error) - if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_16g6IterationUtils_G6ReadIterator_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) + __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_16g6IterationUtils_G6ReadIterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator)) __PYX_ERR(0, 15, __pyx_L1_error) + if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_16g6IterationUtils_G6ReadIterator_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 15, __pyx_L1_error) #else __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator = &__pyx_type_9planarity_4full_16g6IterationUtils_G6ReadIterator; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS - if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) + if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 15, __pyx_L1_error) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator); @@ -4997,18 +5128,18 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator->tp_getattro = PyObject_GenericGetAttr; } #endif - if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_G6ReadIterator, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) - if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) + if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_G6ReadIterator, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 15, __pyx_L1_error) + if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator) < (0)) __PYX_ERR(0, 15, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS - __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator)) __PYX_ERR(0, 66, __pyx_L1_error) - if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) + __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator)) __PYX_ERR(0, 63, __pyx_L1_error) + if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 63, __pyx_L1_error) #else __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator = &__pyx_type_9planarity_4full_16g6IterationUtils_G6WriteIterator; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS - if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) + if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 63, __pyx_L1_error) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator); @@ -5018,8 +5149,8 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator->tp_getattro = PyObject_GenericGetAttr; } #endif - if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_G6WriteIterator, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) - if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) + if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_G6WriteIterator, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 63, __pyx_L1_error) + if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator) < (0)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -5038,15 +5169,15 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) { /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule("planarity.full.graph"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = __Pyx_ImportType_3_2_4(__pyx_t_1, "planarity.full.graph", "Graph", + __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = __Pyx_ImportType_3_2_5(__pyx_t_1, "planarity.full.graph", "Graph", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 - sizeof(struct __pyx_obj_9planarity_4full_5graph_Graph), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_9planarity_4full_5graph_Graph), + sizeof(struct __pyx_obj_9planarity_4full_5graph_Graph), __PYX_GET_STRUCT_ALIGNMENT_3_2_5(struct __pyx_obj_9planarity_4full_5graph_Graph), #elif CYTHON_COMPILING_IN_LIMITED_API - sizeof(struct __pyx_obj_9planarity_4full_5graph_Graph), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_9planarity_4full_5graph_Graph), + sizeof(struct __pyx_obj_9planarity_4full_5graph_Graph), __PYX_GET_STRUCT_ALIGNMENT_3_2_5(struct __pyx_obj_9planarity_4full_5graph_Graph), #else - sizeof(struct __pyx_obj_9planarity_4full_5graph_Graph), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_9planarity_4full_5graph_Graph), + sizeof(struct __pyx_obj_9planarity_4full_5graph_Graph), __PYX_GET_STRUCT_ALIGNMENT_3_2_5(struct __pyx_obj_9planarity_4full_5graph_Graph), #endif - __Pyx_ImportType_CheckSize_Warn_3_2_4); if (!__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) __PYX_ERR(2, 12, __pyx_L1_error) + __Pyx_ImportType_CheckSize_Warn_3_2_5); if (!__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; @@ -5068,10 +5199,38 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) { static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) { __Pyx_RefNannyDeclarations CYTHON_UNUSED_VAR(__pyx_mstate); + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ + { + __pyx_t_1 = PyImport_ImportModule("planarity.full.graphLib"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_PyObject_G6ReadIteratorP_int_G6R); + #if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error) + #endif + const char * __pyx_import_name = __pyx_import_signature + 249; + void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_EndReached, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeReader, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewReader, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_ReadGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewWriter, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_WriteGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeWriter, (void (**)(void)) NULL}; + void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers; + const char *__pyx_import_current_signature = __pyx_import_signature; + while (*__pyx_import_pointer) { + if (__Pyx_ImportFunction_3_2_5(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + ++__pyx_import_pointer; + __pyx_import_name = strchr(__pyx_import_name, '\0') + 1; + __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1; + if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature; + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } __Pyx_RefNannyFinishContext(); return 0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_RefNannyFinishContext(); + return -1; } #if CYTHON_PEP489_MULTI_PHASE_INIT @@ -5254,6 +5413,8 @@ static CYTHON_SMALL_CODE int __pyx_pymod_exec_g6IterationUtils(PyObject *__pyx_p __pyx_mstatetype *__pyx_mstate = NULL; PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; + Py_ssize_t __pyx_t_3; + PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -5337,52 +5498,76 @@ __Pyx_RefNannySetupContext("PyInit_g6IterationUtils", 0); if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) if (unlikely((__Pyx_modinit_type_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) (void)__Pyx_modinit_variable_import_code(__pyx_mstate); - (void)__Pyx_modinit_function_import_code(__pyx_mstate); + if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Execution code ---*/ - /* "planarity/full/g6IterationUtils.pyx":44 - * cg6IterationDefs.g6_FreeReader(&self._g6ReadIterator) + /* "planarity/full/g6IterationUtils.pyx":12 + * from planarity.full cimport graph + * + * from planarity.full import graphLib # <<<<<<<<<<<<<< + * + * +*/ + { + PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_graphLib}; + __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_planarity_full, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error) + } + __pyx_t_2 = __pyx_t_1; + __Pyx_GOTREF(__pyx_t_2); + { + PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_graphLib}; + __pyx_t_3 = 0; { + __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 12, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/g6IterationUtils.pyx":42 + * graphLib.g6_FreeReader(&self._g6ReadIterator) * * def g6_EndReached(self): # <<<<<<<<<<<<<< - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) + * return graphLib.g6_EndReached(self._g6ReadIterator) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_14G6ReadIterator_5g6_EndReached, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6ReadIterator_g6_EndReached, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_14G6ReadIterator_5g6_EndReached, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6ReadIterator_g6_EndReached, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator, __pyx_mstate_global->__pyx_n_u_g6_EndReached, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator, __pyx_mstate_global->__pyx_n_u_g6_EndReached, __pyx_t_2) < (0)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/g6IterationUtils.pyx":47 - * return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) + /* "planarity/full/g6IterationUtils.pyx":45 + * return graphLib.g6_EndReached(self._g6ReadIterator) * * def g6_InitReaderWithFileName(self, str infile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_14G6ReadIterator_7g6_InitReaderWithFileName, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6ReadIterator_g6_InitReaderWith, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_14G6ReadIterator_7g6_InitReaderWithFileName, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6ReadIterator_g6_InitReaderWith, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator, __pyx_mstate_global->__pyx_n_u_g6_InitReaderWithFileName, __pyx_t_2) < (0)) __PYX_ERR(0, 47, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator, __pyx_mstate_global->__pyx_n_u_g6_InitReaderWithFileName, __pyx_t_2) < (0)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/g6IterationUtils.pyx":58 + /* "planarity/full/g6IterationUtils.pyx":55 * ) * * def g6_ReadGraph(self): # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: + * if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_14G6ReadIterator_9g6_ReadGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6ReadIterator_g6_ReadGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_14G6ReadIterator_9g6_ReadGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6ReadIterator_g6_ReadGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator, __pyx_mstate_global->__pyx_n_u_g6_ReadGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 58, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6ReadIterator, __pyx_mstate_global->__pyx_n_u_g6_ReadGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":1 @@ -5412,34 +5597,34 @@ __Pyx_RefNannySetupContext("PyInit_g6IterationUtils", 0); if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/g6IterationUtils.pyx":91 - * cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + /* "planarity/full/g6IterationUtils.pyx":88 + * graphLib.g6_FreeWriter(&self._g6WriteIterator) * * def g6_InitWriterWithFileName(self, str outfile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_15G6WriteIterator_5g6_InitWriterWithFileName, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6WriteIterator_g6_InitWriterWit, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_15G6WriteIterator_5g6_InitWriterWithFileName, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6WriteIterator_g6_InitWriterWit, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator, __pyx_mstate_global->__pyx_n_u_g6_InitWriterWithFileName, __pyx_t_2) < (0)) __PYX_ERR(0, 91, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator, __pyx_mstate_global->__pyx_n_u_g6_InitWriterWithFileName, __pyx_t_2) < (0)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/g6IterationUtils.pyx":99 + /* "planarity/full/g6IterationUtils.pyx":96 * raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") * * def g6_WriteGraph(self): # <<<<<<<<<<<<<< - * if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: + * if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: * raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_15G6WriteIterator_7g6_WriteGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6WriteIterator_g6_WriteGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_16g6IterationUtils_15G6WriteIterator_7g6_WriteGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_G6WriteIterator_g6_WriteGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_g6IterationUtils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator, __pyx_mstate_global->__pyx_n_u_g6_WriteGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 99, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_16g6IterationUtils_G6WriteIterator, __pyx_mstate_global->__pyx_n_u_g6_WriteGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":1 @@ -5484,6 +5669,7 @@ __Pyx_RefNannySetupContext("PyInit_g6IterationUtils", 0); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_4); if (__pyx_m) { if (__pyx_mstate->__pyx_d && stringtab_initialized) { __Pyx_AddTraceback("init planarity.full.g6IterationUtils", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -5539,42 +5725,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[] = {{1},{35},{32},{34},{179},{87},{80},{98},{98},{64},{66},{8},{7},{6},{2},{9},{50},{35},{14},{8},{14},{32},{34},{28},{40},{27},{15},{33},{35},{41},{29},{20},{18},{18},{10},{7},{8},{13},{25},{25},{12},{13},{12},{7},{14},{11},{13},{5},{8},{10},{8},{12},{31},{3},{11},{12},{10},{17},{13},{4},{12},{10},{12},{19},{8},{6},{28},{48},{27},{13},{49},{9}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (785 bytes) */ -const char* const cstring = "(\265/\375`<\006=\030\000\006\246y30u:\000\2232\305\250\325\021\250G:`\302\255\013F\203\355\244\214[\2311d\333;IY>Z\273j\313\272\2654M\313q\030\014\332-o{\276\315\236\360c\000f\000d\000\374~\231\272\351\357\213\356\224\271\212\342\314\204\257\353\033\352\231\312\237\222\3038\253|\375\3367!\306]\276\017]\306-G\372\030c\003\243\2024Bbj\375\241\264\177\0315\375\237uLN\217\264\232\036\025\302\377L_G8r>\371\222Jio\256\010\353\234\217\277R\276\222\375\337\344\266\272q}6m\317\226\200\004\322~\005\255\224\213\334\355\220\213n\273\371'\3672\217\\i\274\022j~e\364\257\264c|#\022\027\023\247y\324\247\314\330\364\362\206\255K\364)_\306\230D\321x\205$\032a\211\010\3537>j\rm\316\007\371>\246\260\365M\342s\025\215\022\236\330\243,\227\337\371H\334F>t+#ChT6\255\362\337WJ\037D}i\372\312n*\273\2766z/\351Mk\255\033R.\353\216\036+\244\336\326rp\006>\314\341\263\337T\366\204\327\251|\256\332\n\257*!E]\225?\371\250\037J\221\023\212\324\035\335\004#\035\371\367\367\375v\303\353\303\241\345\352\325\350\3558\241\266\353N\371,\032\232\305\234\\f\201zi\037}s\353\206\363I\233\245\236\t\236\001\200V\010b,\254\205u\262B\t\251j\272\200\016\306A\025\273R\247\223j(\255\026\200D\027\353\2413\350>jR\021\262\240\013\353e\225\302\301\212\252\222*C\201\245\340\363 \3202P\205T\t]L\212A H\264cP\320z)\212\236\003\202\326\305*\347\007\244\202\205\320\205:\217\224\202@K\264s\235\233\317\346\372ww6O>\037W\323\335[\335\256\253}r\261vS\371h:{\250\201\2452\310\310\010\rIR\230Bk0\204\030\304\254\354\302\301$\204\030$\206@\204\206Db\004\223\242\242Bq\214\t\020%[\n\344\265<\301@z\374\031P\321\345\203\007$9\034\232\351]\221g9\337\213\034\220\2624[%\236\366\220\177W\214Y\211\020\200\211;\022v\327\240\243f\200\216\306\270\263\034\220\311l\356e30-\010\213\200\202t\254\342\300)\201\321vA\301=\3704\"M\263=qs\037'\376Y\366`%H\343Z\373\022Z\264z%J_l\232\177\\\357C\244\306G\232U\025\206U\306sXV\312\030`\365\020\333L$Wp\235\235x\250\005\177\234\222h\230\243p\321\337\255\324\245\343\361\005\254Q\201\370\323\374jH\216Ys\211B""\270\305\212\307\373\361\335\364b\333mV^\341\005vbq\212W\311\020\314CB\355\237lw\312\262\301\355i\003in>\274\214w#\224\247zt\3521\2656)\n\"*\300=\t\236>\213;y\0259:\ro\331B&= 0x030e0000 /* compression: zstd (913 bytes) */ +const char* const cstring = "(\265/\375`\n\010=\034\000\326(\20440u:\000\223\365\240\200)\010\310\024\243V\033A\301\267z'e\334\312\214!\255\355$e\371\350DUGB\226\275}\222\326%ig>\025\356i\2260\271\246\003j\000r\000l\000\262i\225\377\276R\372\034\370\3752\365\325\337\027\335)o\225\343\314\204M\3275\356\231\312\237r\3038\253|\375\3367!\266]\276\017]\306-G\372\370B\343b\"uJ1\265\376P\332\277\314M\377g\035\223\323#\255\253\347B\370\337\352+*G\316'_R)\355M\204u\316\307_)_\311\376onZ\325\270>\257\264gIL\0018\234f\272S~\013\206\212b\316-\243\340\036}S\353\206\363I\033i\177\202V\272E\356v\270E\267\335\374s{\231G\2564^\tU~e\364\257\264c|\037\250\021\027\023\247y4\343\325\313\033\266.\321\247|\031c\022E\305,)\220\023C""\245\017\350\225fdi\023\n\032\360\014\265es\002\241\254/\330~\273\336P\023LD\204\361\301\256\322U\247\246V\323\216\214\251\003L\370\235F\254&\361\346z\"\204\302\256\355H\260f\023\0144\0001\254\313^v\030|\315+J\006\004\n\001`#X\312\002\216d\266\202i\230\025`\254\017T\020\221\256H\234\032R\333\314\212QY\220\300\274\362Q\314\251\222\210\033\034\325\010D\006\000m\253\021\033\242N\215\357\002\260\301'#\200d\211J\246HW\275\t\254;\021\265\025\022\242\337\334\315\224\237S\tj\211\340\305\002\216x\200\202\0052\205%\367#BF\250\366\234\022F\231\310?\251\366:b\374\027\273C\0079|\264\032\247\363\001\213\277\246\377\205I\355a\3053\353\344(\226\355O\364\311\227P\357\321\3152\317\277\271$i\264_#\247\361\217\017\370\273\222)\302\204\205\001\277\266\250"; - PyObject *data = __Pyx_DecompressString(cstring, 946, 2); + #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (1080 bytes) */ +const char* const cstring = "BZh91AY&SY=f\245J\000\000\202\177\377d\324|\202g\377\265\347\257\355\372\234\277\377\377\361@@@@@@@@@\000@@@\000P\004\005\354\356\355\325:q6\332\270\022JdJze?)\232iG\232\246G\250z\215\036\220\320\304z@\311\220h\033SOH\323\365M\243\324\362\240\222SL\020'\250\223G\250i\221\223\020\000\001\2404\030F\232\000\320\304\006\022\"!4\231OFH\301\033S@h\000h\000\000\000\000\000\001\300\323M4\032\032\032\031\032\001\220\006\206\200\323F@\000\014& 4\022)5G\262\247\240\232\233\325=5=4\215\030\231\0064\232h4h44\300\200\006\021\243jM\273\275\300~ a\351n\244\334\334\3645]\014\253f\030\215\205)b\"P\254\224\251\210[I\2119B\353\006\361tb\014\342\344\210\310\354\360\255\215qf\345\200\263\006I\363\013Py\013*a\354\024\314\361@/\305\005\370\256`\311\323\177\013\3163\344\352\2622#}C\022\2115\033\227q^\276}\365*\310&B\203a\2136\030\033\033\036\300\242\227\372R\034\212JJ\202\013\2363\025\371\270\231ZdZ\013\370\016\273\221a\316\352^=\271o\234\"C ^\234yi\232\343kp\213av\230\324\222\357\271\302\235\376\024\367\352\213\033\017\035\202\002y>\035\264E\024D6*\023m2'\003\037\002\350\250\035\302*\333lm\2661\261\267\353\300\224\010z.\235t\215\310s3,\313v\205>kq\365z\n\305XP\026/\341Dr\005\214ZE\353\200L&\"D\202|4\375\261A\3270&\206\035\020\005>\304h\001\245~ \366\312Q)\267\274\217\266\254j;\360\305\231M\016e,\240\360\335D\2403h\310\350`/\271\n\315\270\307k\320\344\2555\253+m\220\031\230\t\005\321\240W\2456\363\364\377C\020\306\332i\351n+{\031\000T*\250-k\014u\215Ab.P\304\212\232\241 \256i\230\\ks\240\217F\234\030KvE\023\306S\305\262\354$\357P\366d\214b\227\212\331\245\326\312D\003`\234,\363\215hfvP\007\014\007M\275\263d\326\376\230\001\275\235\200\323e,\014\333\020Z%Q\030\212E\"\220\333q\r\266\362M\017\322\312\302\006d?\372\346\276p\231mH\25715n\210\026\325m\261*\035\007\302\350P\272o\264\254R\351,\033lcm\2756\201Zl\356\260\322\235F\265\332\332\rg\274\374\344\325\026\212\302a\223{\362w\326g\316\351\n\263\24537L\266\334\314\314\346\245\233N\240ZetT\353,\215&\003Bw\3064\3404\262\263 \216\201u\036\265\373""\272ii1\235\2412F\013\202\204m\325A]\272\262d\214\264\241\216\257D'\010\345 \244A6\006\023\010\021E\nn\302.\323+QV\225\005\274qh\210\203\002\t\226\224\264U\030\335\252\260\344q\\p\200\3114\024\345\231\204\233\033\375\212B\353-V\253\267,S\316W\346fv\230\014T\323\240e\276\251e\226\n\036\"\213J<\275\tH\250M\232LH\220\360\317lz7\34542\341\014\200&\307\233)\3027\366q\216\371\247%P\321H\220\300\263-\024\255\r\244\330\330\342\201_\260Wc]\214\337\224\300gY\304\233lX\324\343/\303L-\rEt\240\312\365\352D\343\227\2279\030R\026)XA\224xX\177\267*\\\247N\212\3126 \3550E\241G\260\243\024\271\222\304\240\010\210e\214Y\300OF\370\021\2105\322\204m\032\0250)\305\013#\204\212\352\274\327\206\010\261J\030\177\244i%v\236\213\265\026!\245{\352]\233o%\220$C\332Q\314\321\340^\202\344N)\214Q\304\326\321\227\222fj1\376\377\201\3659\250\377\034a\330)\371Q\035|u\374{\275\344\363DsiS\323V)\270\253\200\252\271\r\375\375\317\265\357\027\233r\357\344\3534\023\360;'\177\021\013\317\370\273\222)\302\204\201\3535*P"; + PyObject *data = __Pyx_DecompressString(cstring, 1080, 2); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (778 bytes) */ -const char* const cstring = "x\332\225T\317k\023A\024\246 X\304\203\025\301C\025G(T\261\335\"\324\"\242-A\333R\251!QjA\205avfv3:\231Iwf\333\254\210\364\350\261\307\034=\3561G\217\036s\334c\216\376)\276\331M\322\374\324v!ag\336\367\276\367\355{\337\314\326nD\0325d5j\350F,\211\345H\030\244\264EDJMa\315\274\001\344$\022\027\217\013%\254 R|\005DY\303\276\255\021\213^&\266\246\225\3030.\205\317#`\220\t26\022\324\362\310\201\024\252lWV\327\237\256#\242\030\212\370gN\255A&\366\251$\306p\203t\200\374XH+\024\262I\203\033\017\355\005(\3211R\234\263\374S\0007\234`k\\!\303\255{A\313D\201\351\036\300\n\225\207\020\336\201h\031\242\227\255\220O\372\037\025\n\335\227\256\340\204\027\341>\231\223\232\373\353B\371\205\001G\010r%\377c \214a0\005g\3028*\236\023\206T\230\342\215)\rv\rH,-\3028\342,\246\034c\304\342\274\250\322j\025\354{\014\255\201(u]\302\270!\211\"P:Y\013b)\327\302\215b\270`\272\003+\244\361\032I\363\2713\275\n\215\216#\3127\373}\032\265\330\350\312\033\024\247\3711\302x\"\016.7`\356\231\010\350\310\266b\260Ek\234M\306\246\273c\0227\030\313\230u\307\226\323\004\217\003\246(\036\205\314\264\324\024\340\371\2641\256$M\370\275\202{\005NR\023>+ &QTh\217\352H\307p}pC%\374c\0017AD(\367\t\375B\343(\302\271?\270\242\232q\206q\020+\212\361H\347f\266j\246\330\341\246\215\t\r\373\035\300a\003\357r[\316\313c\253q\356g\241\334\t\303\356\210aa\360@<\204\352\006\343:\001\371\360\3245\213\001\006O\216\304\000\032\344\r\334\35097z\343n\204\253\037\034\013\355\352\3118\212\211,H\316\335>1\311\301\006o\272!\312 \037e\2578\274\365\016\314\320\200\361\224acl\271\001\3201\22117\247\245\356\374b\353E:\227\336\312V\267~}\353<\356^\277y\266\322\"\335\033\013\247\245?\363w[\237\322\333\355\271\366Bw~\351'\254\027\263\305'\355j\233e""\317\336t>d\2074\243\254\227\320:*\2706\323\205t)\363J\277\357t\252#\241{\255\357i5e\355\373\005\357\307\364jz\324\236\233\340\335\357\274\316\336\373\231O\207\204\314u\257\\\373\361\350\254\372\027{\261\274\016"; - PyObject *data = __Pyx_DecompressString(cstring, 778, 1); + #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (909 bytes) */ +const char* const cstring = "x\332\225U\317o\3336\024v\200\0015\206\035\226e@O\003X\240k\223.Q\261\241HW`\353\0204N\026lH\234\rE\200.\000A\221\224\314\215!\035\376H\242\036\206\036w\3141G\037}\3641\307\376\t:\372\330?e\217\222\355H\216\2655\002l\211\357}\357{\217\217\037\311h\327\220~\0179\215\372\272\357%q\034\t\213\224v\210H\251)\214Y4\203\234\033\361\361~\241\204\023D\212\267\200\330\327`w=\342\320\253\314\365\264\n\030\306\245\210\271\001\006\231!\353\214\240\216\233\000R\250\333\351n<\373\376\031\"\212!\303\377\344\324Yd}L%\261\226[\244\023\024{!\235P\310e}n#\264\227\240L{\2448g\305T\000W\rp=\256\220\345.|\240\307DAy\304\t\2550\204\013\225>FL\030H\"\316x\210\336!\322\362\350\265\"\261,\3067\023A\273\233\277q\302\366\\([\233uD,\242\320\207\200J7\361>?\017nnV\327 \010u\266\272\277\2434\364\346W\021\243\204\010\t\235h\240=\n\235\253\361\226|\205\375\316|\246\250\002\235\013\327C\t\300\0249\341S\322=\200\225U\036\201{\007\274\373\340\275k\206b\245\377#CY\367\2353\204\302K\367\224,\224Z\350\353\243\342K\001\326\010\212J\376\217\341'\302\030\006Up&l\340\342\005cJ\205-\277\230\322\240\327\204x\351\020\306\2063O9\306\210\371\"\253\322j\003\364{\006\275\001/\rm\302\270/\211\"\220;{\232x)\237\246\233\345\352\202\352^;!m\324\317.~\010\252W\251\325\336P\376\262\256\255\372(\232%\245\305\376\301\370\226\037\344mA\325\215\010hEG10\321\036g\267}\213eq\0337[\2179\315\316\r\027\025<\017XPq\035\322\250\245\005\300\233e>\370\005\343nv\001\277m8R`\023]\300\304\022b3E\205\216\2506\332\303\311\301-\225\360\217\005\034\002\206P\036\023\372\027\365\306\340B\032\\Q\3158\233\274\366T2I<1\034x\327\367nZ\r\306\211W\024\343Z\207\033[\3328\251jsk\023\002\346i\247p\332\307\273\334\355O\365[\274\261\323\270\020\276(\352\304a/ba\361l\252\340:\261\030\237\020\230,<'\232y\200\301S 1\200fq3\325FA\265\365Q4\257a\2701@\347\320\352Iq\247\236\310\222\362f\217\334\322\301\314\300/\202\004dR\010aR\n|M\266YE\036x\201T0v\334\002\350\214H\317m7;\210\303-\201\236\254\326\025\333]k\t\345\320\274\025=i\262\257\227GCC\334b\353:\242=b*""\2345q.\"\255\003\032\3147\264gZ\260E\274k\255\232\344\302h\307p^j\256U\275\220ZUq\265\032\265\331\252^:\255\232\010[\215\272\235\246-=\357\266>\264\277\272:\036\336\037-\215\226\307\355oG\313\037\332+\371\312\306\360p\310\362\357:y\3478?\3069N\363\2647\376\354\213\313\365+ru\372nk\334^\271\374q\2604\3702\377\372\371\310^\257\276\1770q\216?_.\275/\007\313\203\207\371\243\027\327+\327?\277\337\252\205\336\277\374{p8`\303\007e\356?\206\367\206\247\243\245q\033r\216+\271\267\363\355\243\374\350M\376&\316cZ\241_\032\177\362\351?\337\\\036\376\013\305&[\301"; + PyObject *data = __Pyx_DecompressString(cstring, 909, 1); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #else /* compression: none (1852 bytes) */ -const char* const bytes = "?Graph to populate is not allocated.Graph to write is not allocated.Graph to write is not initialized.Note that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Unable to initialize G6ReadIterator, as call to g6_NewReader() in EAPS graphLib failed.Unable to initialize G6WriteIterator, as g6_NewWriter() in EAPS graphLib failed.Unable to initialize reader with filename, as g6_InitReaderWithFileName() in EAPS graphLib failed.Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.Unable to read graph, as g6_ReadGraph() in EAPS graphLib failed.Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.add_notedisableenablegcisenabledno default __reduce__ due to non-trivial __cinit__planarity/full/g6IterationUtils.pyxFileNameG6ReadIteratorG6ReadIterator.__reduce_cython__G6ReadIterator.__setstate_cython__G6ReadIterator.g6_EndReachedG6ReadIterator.g6_InitReaderWithFileNameG6ReadIterator.g6_ReadGraphG6WriteIteratorG6WriteIterator.__reduce_cython__G6WriteIterator.__setstate_cython__G6WriteIterator.g6_InitWriterWithFileNameG6WriteIterator.g6_WriteGraph__Pyx_PyDict_NextRefasyncio.coroutinescline_in_tracebackcurr_graphencoded__func__g6_EndReachedg6_InitReaderWithFileNameg6_InitWriterWithFileNameg6_ReadGraphg6_WriteGraph__getstate__gp_GetNgraph_to_writeinfile_name_is_coroutineitems__main____module____name__outfile_nameplanarity.full.g6IterationUtilspop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__self__set_name__setdefault__setstate____setstate_cython____test__values\200A\330\010\033\230=\250\001\250\024\320-?\270|\3101\330\014\022\220,\230a\330\020\021\200A\340\010\035\230\\\250\027\260\001\260\021\330\010$\240A\340\010\033\320\0335\260Q\260d\320:M\310Z\320Wc\320cd\330\014\022\220,\230a\230q\200A\330\010\033\230>\250\021\250$\320.A\300\034\310Q\330\014\022\220,\230a\230q\200A\330""\010\037\230~\250Q\250d\260!\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\033\320\0335\260Q\260d\320:L\310J\320Vb\320bc\330\014\022\220,\230a\330\020\021\200\001\330\004\n\210+\220Q"; + #else /* compression: none (2314 bytes) */ +const char* const bytes = ".Graph to populate is not allocated.Graph to write is not allocated.Graph to write is not initialized.Note that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Unable to initialize G6ReadIterator, as call to g6_NewReader() in EAPS graphLib failed.Unable to initialize G6WriteIterator, as g6_NewWriter() in EAPS graphLib failed.Unable to initialize reader with filename, as g6_InitReaderWithFileName() in EAPS graphLib failed.Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.Unable to read graph, as g6_ReadGraph() in EAPS graphLib failed.Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.?add_notedisableenablegcisenabledno default __reduce__ due to non-trivial __cinit__planarity/full/g6IterationUtils.pyxG6ReadIteratorG6ReadIterator.__reduce_cython__G6ReadIterator.__setstate_cython__G6ReadIterator.g6_EndReachedG6ReadIterator.g6_InitReaderWithFileNameG6ReadIterator.g6_ReadGraphG6WriteIteratorG6WriteIterator.__reduce_cython__G6WriteIterator.__setstate_cython__G6WriteIterator.g6_InitWriterWithFileNameG6WriteIterator.g6_WriteGraphOK__Pyx_PyDict_NextRefasyncio.coroutinescline_in_tracebackcurr_graphencodedencodedInfileNameencodedOutputFileName__func__g6_EndReachedg6_InitReaderWithFileNameg6_InitWriterWithFileNameg6_ReadGraphg6_WriteGraph__getstate__gp_GetNgraphLibgraph_to_writeinfile_name_is_coroutineitems__main____module____name__outfile_nameplanarity.fullplanarity.full.g6IterationUtilspop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__self__set_name__setdefault__setstate____setstate_cython____test__valuesPyObject *(G6ReadIteratorP)\000int (G6ReadIteratorP *)\000int (G6ReadIteratorP *, graphP)\000int (G6ReadIteratorP)\000int (G6ReadIteratorP, char *)\000int (G6WriteIteratorP *, graphP)\000int (G6WriteIteratorP)\000int (G6WriteIteratorP, char *)\000void (G6WriteIterato""rP *)\000g6_EndReached\000g6_FreeReader\000g6_NewReader\000g6_ReadGraph\000g6_InitReaderWithFileName\000g6_NewWriter\000g6_WriteGraph\000g6_InitWriterWithFileName\000g6_FreeWriter\200A\340\010\035\230\\\250\027\260\001\260\021\330\0101\260\021\340\010\023\320\023-\250Q\250d\3202E\320E\\\320\\_\320_g\320gh\330\014\022\220,\230a\230q\200A\330\010\023\220=\240\001\240\024\320%7\260s\270(\300!\330\014\022\220,\230a\330\020\021\200A\330\010\023\220>\240\021\240$\320&9\270\023\270H\300A\330\014\022\220,\230a\230q\200A\330\010\027\220~\240Q\240d\250!\200A\340\010\035\230[\250\007\250q\260\001\330\010-\250Q\330\010\023\320\023-\250Q\250d\3202D\320DW\320WZ\320Zb\320bc\330\014\022\220,\230a\330\020\021\200\001\330\004\n\210+\220Q"; PyObject *data = NULL; CYTHON_UNUSED_VAR(__Pyx_DecompressString); #endif PyObject **stringtab = __pyx_mstate->__pyx_string_tab; Py_ssize_t pos = 0; - for (int i = 0; i < 66; i++) { + for (int i = 0; i < 71; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); - if (likely(string) && i >= 19) PyUnicode_InternInPlace(&string); + if (likely(string) && i >= 20) PyUnicode_InternInPlace(&string); if (unlikely(!string)) { Py_XDECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) @@ -5582,7 +5768,7 @@ const char* const bytes = "?Graph to populate is not allocated.Graph to write is stringtab[i] = string; pos += bytes_length; } - for (int i = 66; i < 72; i++) { + for (int i = 71; i < 78; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); stringtab[i] = string; @@ -5593,15 +5779,15 @@ const char* const bytes = "?Graph to populate is not allocated.Graph to write is } } Py_XDECREF(data); - for (Py_ssize_t i = 0; i < 72; i++) { + for (Py_ssize_t i = 0; i < 78; i++) { if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { __PYX_ERR(0, 1, __pyx_L1_error) } } #if CYTHON_IMMORTAL_CONSTANTS { - PyObject **table = stringtab + 66; - for (Py_ssize_t i=0; i<6; ++i) { + PyObject **table = stringtab + 71; + for (Py_ssize_t i=0; i<7; ++i) { #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING #if PY_VERSION_HEX < 0x030E0000 if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1) @@ -5673,19 +5859,19 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { PyObject* tuple_dedup_map = PyDict_New(); if (unlikely(!tuple_dedup_map)) return -1; { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 44}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 42}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_EndReached, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 47}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; - __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_InitReaderWithFileName, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_5Qd_LJVbbc_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 45}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_encodedInfileName}; + __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_InitReaderWithFileName, __pyx_mstate->__pyx_kp_b_iso88591_A_q_Q_Qd2DDWWZZbbc_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 58}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 55}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_ReadGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_ReadGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_7s_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1}; @@ -5698,14 +5884,14 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 91}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; - __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_InitWriterWithFileName, __pyx_mstate->__pyx_kp_b_iso88591_A_A_5Qd_MZWccd_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 88}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_encodedOutputFileName}; + __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_InitWriterWithFileName, __pyx_mstate->__pyx_kp_b_iso88591_A_1_Qd2EE___ggh_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 99}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 96}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_WriteGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_A_Q_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_g6IterationUtils_2, __pyx_mstate->__pyx_n_u_g6_WriteGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_9_HA_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1}; @@ -5807,11 +5993,11 @@ __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) res = PyTuple_New(n); if (unlikely(res == NULL)) return NULL; for (i = 0; i < n; i++) { + Py_INCREF(src[i]); if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) { Py_DECREF(res); return NULL; } - Py_INCREF(src[i]); } return res; } @@ -7341,23 +7527,160 @@ static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, } #endif -/* RejectKeywords */ -static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) { - PyObject *key = NULL; - if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) { - key = __Pyx_PySequence_ITEM(kwds, 0); - } else { -#if CYTHON_AVOID_BORROWED_REFS - PyObject *pos = NULL; -#else - Py_ssize_t pos = 0; -#endif -#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments) - if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return; -#endif - __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL); -#if CYTHON_AVOID_BORROWED_REFS - Py_XDECREF(pos); +/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */ +#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 +static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) + __Pyx_PyErr_Clear(); +} +#endif +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) { + PyObject *result; +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + (void) PyObject_GetOptionalAttr(obj, attr_name, &result); + return result; +#else +#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS + PyTypeObject* tp = Py_TYPE(obj); + if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) { + return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1); + } +#endif + result = __Pyx_PyObject_GetAttrStr(obj, attr_name); + if (unlikely(!result)) { + __Pyx_PyObject_GetAttrStr_ClearAttributeError(); + } + return result; +#endif +} + +/* GetBuiltinName (used by GetModuleGlobalName) */ +static PyObject *__Pyx_GetBuiltinName(PyObject *name) { + PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name); + if (unlikely(!result) && !PyErr_Occurred()) { + PyErr_Format(PyExc_NameError, + "name '%U' is not defined", name); + } + return result; +} + +/* PyDictVersioning (used by GetModuleGlobalName) */ +#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { + PyObject *dict = Py_TYPE(obj)->tp_dict; + return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; +} +static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { + PyObject **dictptr = NULL; + Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; + if (offset) { +#if CYTHON_COMPILING_IN_CPYTHON + dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); +#else + dictptr = _PyObject_GetDictPtr(obj); +#endif + } + return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; +} +static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { + PyObject *dict = Py_TYPE(obj)->tp_dict; + if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) + return 0; + return obj_dict_version == __Pyx_get_object_dict_version(obj); +} +#endif + +/* GetModuleGlobalName */ +#if CYTHON_USE_DICT_VERSIONS +static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value) +#else +static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name) +#endif +{ + PyObject *result; +#if CYTHON_COMPILING_IN_LIMITED_API + if (unlikely(!__pyx_m)) { + if (!PyErr_Occurred()) + PyErr_SetNone(PyExc_NameError); + return NULL; + } + result = PyObject_GetAttr(__pyx_m, name); + if (likely(result)) { + return result; + } + PyErr_Clear(); +#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS + if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear(); + __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version) + if (likely(result)) { + return result; + } +#else + result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash); + __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version) + if (likely(result)) { + return __Pyx_NewRef(result); + } + PyErr_Clear(); +#endif + return __Pyx_GetBuiltinName(name); +} + +/* WriteUnraisableException */ +static void __Pyx_WriteUnraisable(const char *name, int clineno, + int lineno, const char *filename, + int full_traceback, int nogil) { + PyObject *old_exc, *old_val, *old_tb; + PyObject *ctx; + __Pyx_PyThreadState_declare + PyGILState_STATE state; + if (nogil) + state = PyGILState_Ensure(); + else state = (PyGILState_STATE)0; + CYTHON_UNUSED_VAR(clineno); + CYTHON_UNUSED_VAR(lineno); + CYTHON_UNUSED_VAR(filename); + CYTHON_MAYBE_UNUSED_VAR(nogil); + __Pyx_PyThreadState_assign + __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); + if (full_traceback) { + Py_XINCREF(old_exc); + Py_XINCREF(old_val); + Py_XINCREF(old_tb); + __Pyx_ErrRestore(old_exc, old_val, old_tb); + PyErr_PrintEx(0); + } + ctx = PyUnicode_FromString(name); + __Pyx_ErrRestore(old_exc, old_val, old_tb); + if (!ctx) { + PyErr_WriteUnraisable(Py_None); + } else { + PyErr_WriteUnraisable(ctx); + Py_DECREF(ctx); + } + if (nogil) + PyGILState_Release(state); +} + +/* RejectKeywords */ +static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) { + PyObject *key = NULL; + if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) { + key = __Pyx_PySequence_ITEM(kwds, 0); + } else { +#if CYTHON_AVOID_BORROWED_REFS + PyObject *pos = NULL; +#else + Py_ssize_t pos = 0; +#endif +#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments) + if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return; +#endif + __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL); +#if CYTHON_AVOID_BORROWED_REFS + Py_XDECREF(pos); #endif } if (likely(key)) { @@ -7916,35 +8239,6 @@ static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k) { return result; } -/* PyObjectGetAttrStrNoError (used by SetupReduce) */ -#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 -static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) { - __Pyx_PyThreadState_declare - __Pyx_PyThreadState_assign - if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) - __Pyx_PyErr_Clear(); -} -#endif -static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) { - PyObject *result; -#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 - (void) PyObject_GetOptionalAttr(obj, attr_name, &result); - return result; -#else -#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS - PyTypeObject* tp = Py_TYPE(obj); - if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) { - return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1); - } -#endif - result = __Pyx_PyObject_GetAttrStr(obj, attr_name); - if (unlikely(!result)) { - __Pyx_PyObject_GetAttrStr_ClearAttributeError(); - } - return result; -#endif -} - /* SetupReduce */ static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { int ret; @@ -8055,10 +8349,10 @@ static int __Pyx_setup_reduce(PyObject* type_obj) { } /* TypeImport */ -#ifndef __PYX_HAVE_RT_ImportType_3_2_4 -#define __PYX_HAVE_RT_ImportType_3_2_4 -static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject *module, const char *module_name, const char *class_name, - size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_4 check_size) +#ifndef __PYX_HAVE_RT_ImportType_3_2_5 +#define __PYX_HAVE_RT_ImportType_3_2_5 +static PyTypeObject *__Pyx_ImportType_3_2_5(PyObject *module, const char *module_name, const char *class_name, + size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_5 check_size) { PyObject *result = 0; Py_ssize_t basicsize; @@ -8114,7 +8408,7 @@ static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject *module, const char *module module_name, class_name, size, basicsize+itemsize); goto bad; } - if (check_size == __Pyx_ImportType_CheckSize_Error_3_2_4 && + if (check_size == __Pyx_ImportType_CheckSize_Error_3_2_5 && ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " @@ -8122,7 +8416,7 @@ static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject *module, const char *module module_name, class_name, size, basicsize, basicsize+itemsize); goto bad; } - else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_2_4 && (size_t)basicsize > size) { + else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_2_5 && (size_t)basicsize > size) { if (PyErr_WarnFormat(NULL, 0, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", @@ -8137,6 +8431,239 @@ static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject *module, const char *module } #endif +/* PxdImportShared (used by FunctionImport) */ +#ifndef __PYX_HAVE_RT_ImportFromPxd_3_2_5 +#define __PYX_HAVE_RT_ImportFromPxd_3_2_5 +static int __Pyx_ImportFromPxd_3_2_5(PyObject *module, const char *name, void **p, const char *sig, const char *what) { + PyObject *d = 0; + PyObject *cobj = 0; + d = PyObject_GetAttrString(module, "__pyx_capi__"); + if (!d) + goto bad; +#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000) + PyDict_GetItemStringRef(d, name, &cobj); +#else + cobj = PyDict_GetItemString(d, name); + Py_XINCREF(cobj); +#endif + if (!cobj) { + PyErr_Format(PyExc_ImportError, + "%.200s does not export expected C %.8s %.200s", + PyModule_GetName(module), what, name); + goto bad; + } + if (!PyCapsule_IsValid(cobj, sig)) { + PyErr_Format(PyExc_TypeError, + "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)", + what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj)); + goto bad; + } + *p = PyCapsule_GetPointer(cobj, sig); + if (!(*p)) + goto bad; + Py_DECREF(d); + Py_DECREF(cobj); + return 0; +bad: + Py_XDECREF(d); + Py_XDECREF(cobj); + return -1; +} +#endif + +/* FunctionImport */ +#ifndef __PYX_HAVE_RT_ImportFunction_3_2_5 +#define __PYX_HAVE_RT_ImportFunction_3_2_5 +static int __Pyx_ImportFunction_3_2_5(PyObject *module, const char *funcname, void (**f)(void), const char *sig) { + union { + void (*fp)(void); + void *p; + } tmp; + int result = __Pyx_ImportFromPxd_3_2_5(module, funcname, &tmp.p, sig, "function"); + if (result == 0) { + *f = tmp.fp; + } + return result; +} +#endif + +/* HasAttr (used by ImportImpl) */ +#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 +static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) { + PyObject *r; + if (unlikely(!PyUnicode_Check(n))) { + PyErr_SetString(PyExc_TypeError, + "hasattr(): attribute name must be string"); + return -1; + } + r = __Pyx_PyObject_GetAttrStrNoError(o, n); + if (!r) { + return (unlikely(PyErr_Occurred())) ? -1 : 0; + } else { + Py_DECREF(r); + return 1; + } +} +#endif + +/* ImportImpl (used by Import) */ +static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) { + PyObject *imported_module = PyImport_GetModule(qualname); + if (unlikely(!imported_module)) { + *module = NULL; + if (PyErr_Occurred()) { + return -1; + } + return 0; + } + *module = imported_module; + return 1; +} +static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) { + PyObject *imported_module; + PyObject *top_level_package_name; + Py_ssize_t i; + int status, module_found; + Py_ssize_t dot_index; + module_found = __Pyx__Import_GetModule(qualname, &imported_module); + if (unlikely(!module_found || module_found == -1)) { + *module = NULL; + return module_found; + } + if (imported_names) { + for (i = 0; i < len_imported_names; i++) { + PyObject *imported_name = imported_names[i]; +#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 + int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name); +#else + int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name); + if (unlikely(has_imported_attribute == -1)) goto error; +#endif + if (!has_imported_attribute) { + goto not_found; + } + } + *module = imported_module; + return 1; + } + dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1); + if (dot_index == -1) { + *module = imported_module; + return 1; + } + if (unlikely(dot_index == -2)) goto error; + top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index); + if (unlikely(!top_level_package_name)) goto error; + Py_DECREF(imported_module); + status = __Pyx__Import_GetModule(top_level_package_name, module); + Py_DECREF(top_level_package_name); + return status; +error: + Py_DECREF(imported_module); + *module = NULL; + return -1; +not_found: + Py_DECREF(imported_module); + *module = NULL; + return 0; +} +static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) { + PyObject *module = 0; + PyObject *empty_dict = 0; + PyObject *from_list = 0; + int module_found; + if (!qualname) { + qualname = name; + } + module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module); + if (likely(module_found == 1)) { + return module; + } else if (unlikely(module_found == -1)) { + return NULL; + } + empty_dict = PyDict_New(); + if (unlikely(!empty_dict)) + goto bad; + if (imported_names) { +#if CYTHON_COMPILING_IN_CPYTHON + from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names); + if (unlikely(!from_list)) + goto bad; +#else + from_list = PyList_New(len_imported_names); + if (unlikely(!from_list)) goto bad; + for (Py_ssize_t i=0; i__pyx_d, level); +} + +/* ImportFrom */ +static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { + PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); + if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { + const char* module_name_str = 0; + PyObject* module_name = 0; + PyObject* module_dot = 0; + PyObject* full_name = 0; + PyErr_Clear(); + module_name_str = PyModule_GetName(module); + if (unlikely(!module_name_str)) { goto modbad; } + module_name = PyUnicode_FromString(module_name_str); + if (unlikely(!module_name)) { goto modbad; } + module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u_); + if (unlikely(!module_dot)) { goto modbad; } + full_name = PyUnicode_Concat(module_dot, name); + if (unlikely(!full_name)) { goto modbad; } + #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400) ||\ + CYTHON_COMPILING_IN_GRAAL + { + PyObject *modules = PyImport_GetModuleDict(); + if (unlikely(!modules)) + goto modbad; + value = PyObject_GetItem(modules, full_name); + } + #else + value = PyImport_GetModule(full_name); + #endif + modbad: + Py_XDECREF(full_name); + Py_XDECREF(module_dot); + Py_XDECREF(module_name); + } + if (unlikely(!value)) { + PyErr_Format(PyExc_ImportError, "cannot import name %S", name); + } + return value; +} + /* dict_setdefault (used by FetchCommonType) */ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) { PyObject* value; @@ -8836,7 +9363,6 @@ __Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) { PyList_SET_ITEM(fromlist, 0, marker); #else if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) { - Py_DECREF(marker); Py_DECREF(fromlist); return NULL; } @@ -9077,8 +9603,7 @@ __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); -#if !CYTHON_COMPILING_IN_LIMITED_API -#if PY_VERSION_HEX < 0x030900B1 +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API Py_CLEAR(__Pyx_CyFunction_GetClassObj(m)); #else { @@ -9086,7 +9611,6 @@ __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) ((PyCMethodObject *) (m))->mm_class = NULL; Py_XDECREF(cls); } -#endif #endif Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); @@ -9138,11 +9662,10 @@ static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); __Pyx_VISIT_CONST(m->func_code); -#if !CYTHON_COMPILING_IN_LIMITED_API Py_VISIT(__Pyx_CyFunction_GetClassObj(m)); -#endif Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); + Py_VISIT(m->func_annotations); Py_VISIT(m->func_is_coroutine); Py_VISIT(m->defaults); return 0; @@ -9517,32 +10040,6 @@ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qual return op; } -/* PyDictVersioning (used by CLineInTraceback) */ -#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS -static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { - PyObject *dict = Py_TYPE(obj)->tp_dict; - return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; -} -static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { - PyObject **dictptr = NULL; - Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; - if (offset) { -#if CYTHON_COMPILING_IN_CPYTHON - dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); -#else - dictptr = _PyObject_GetDictPtr(obj); -#endif - } - return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; -} -static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { - PyObject *dict = Py_TYPE(obj)->tp_dict; - if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) - return 0; - return obj_dict_version == __Pyx_get_object_dict_version(obj); -} -#endif - /* CLineInTraceback (used by AddTraceback) */ #if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000 @@ -9837,6 +10334,107 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, } #endif +/* PyObjectVectorCallKwBuilder (used by CIntToPy) */ +#if CYTHON_VECTORCALL +static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + (void)__Pyx_PyObject_FastCallDict; + Py_INCREF(key); + if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; + args[n] = value; + return 0; +} +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + (void)__Pyx_VectorcallBuilder_AddArgStr; + if (unlikely(!PyUnicode_Check(key))) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + return -1; + } + return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n); +} +static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + PyObject *pyKey = PyUnicode_FromString(key); + if (!pyKey) return -1; + return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n); +} +#else // CYTHON_VECTORCALL +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) { + if (unlikely(!PyUnicode_Check(key))) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + return -1; + } + return PyDict_SetItem(builder, key, value); +} +#endif + +/* CIntToPy */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) { +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif + const int neg_one = (int) -1, const_zero = (int) 0; +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic pop +#endif + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(int) < sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(int) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); +#if !CYTHON_COMPILING_IN_PYPY + } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif + } + } else { + if (sizeof(int) <= sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { + return PyLong_FromLongLong((PY_LONG_LONG) value); + } + } + { + unsigned char *bytes = (unsigned char *)&value; +#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 + if (is_unsigned) { + return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); + } else { + return PyLong_FromNativeBytes(bytes, sizeof(value), -1); + } +#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 + int one = 1; int little = (int)*(unsigned char *)&one; + return _PyLong_FromByteArray(bytes, sizeof(int), + little, !is_unsigned); +#else + int one = 1; int little = (int)*(unsigned char *)&one; + PyObject *from_bytes, *result = NULL, *kwds = NULL; + PyObject *py_bytes = NULL, *order_str = NULL; + from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); + if (!from_bytes) return NULL; + py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int)); + if (!py_bytes) goto limited_bad; + order_str = PyUnicode_FromString(little ? "little" : "big"); + if (!order_str) goto limited_bad; + { + PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str }; + if (!is_unsigned) { + kwds = __Pyx_MakeVectorcallBuilderKwds(1); + if (!kwds) goto limited_bad; + if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad; + } + result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds); + } + limited_bad: + Py_XDECREF(kwds); + Py_XDECREF(order_str); + Py_XDECREF(py_bytes); + Py_XDECREF(from_bytes); + return result; +#endif + } +} + /* FormatTypeName */ #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000 static __Pyx_TypeName @@ -9870,44 +10468,12 @@ __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp) result = name; name = NULL; } else { - result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u_); + result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__2); } goto done; } #endif -/* PyObjectVectorCallKwBuilder (used by CIntToPy) */ -#if CYTHON_VECTORCALL -static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { - (void)__Pyx_PyObject_FastCallDict; - if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; - Py_INCREF(key); - args[n] = value; - return 0; -} -CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { - (void)__Pyx_VectorcallBuilder_AddArgStr; - if (unlikely(!PyUnicode_Check(key))) { - PyErr_SetString(PyExc_TypeError, "keywords must be strings"); - return -1; - } - return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n); -} -static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) { - PyObject *pyKey = PyUnicode_FromString(key); - if (!pyKey) return -1; - return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n); -} -#else // CYTHON_VECTORCALL -CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) { - if (unlikely(!PyUnicode_Check(key))) { - PyErr_SetString(PyExc_TypeError, "keywords must be strings"); - return -1; - } - return PyDict_SetItem(builder, key, value); -} -#endif - /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC diff --git a/planarity/full/g6IterationUtils.pyx b/planarity/full/g6IterationUtils.pyx index b6fbb9e..0c7361e 100644 --- a/planarity/full/g6IterationUtils.pyx +++ b/planarity/full/g6IterationUtils.pyx @@ -6,16 +6,14 @@ Cython wrapper for the Edge Addition Planarity Suite Graph Library Wraps structs pertaining to G6 file iteration using a Cython class and wraps pertinent functions and macros. """ - -from planarity.full cimport cappconst -from planarity.full cimport cg6IterationDefs -from planarity.full cimport cgraphLib - +from planarity.full cimport graphLib from planarity.full cimport graph +from planarity.full import graphLib + cdef class G6ReadIterator: - cdef cg6IterationDefs.G6ReadIteratorP _g6ReadIterator + cdef graphLib.G6ReadIteratorP _g6ReadIterator def __cinit__(self, curr_graph: graph.Graph): try: @@ -27,7 +25,7 @@ cdef class G6ReadIterator: self._g6ReadIterator = NULL - if cg6IterationDefs.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != cappconst.OK: + if graphLib.g6_NewReader(&self._g6ReadIterator, curr_graph._theGraph) != graphLib.OK: raise MemoryError( "Unable to initialize G6ReadIterator, as call to " "g6_NewReader() in EAPS graphLib failed." @@ -39,24 +37,23 @@ cdef class G6ReadIterator: # the C layer; Python will then clean up the instance variables # by calling their respective __dealloc__, so at that point the # graphP will be cleaned up with gp_Free() - cg6IterationDefs.g6_FreeReader(&self._g6ReadIterator) + graphLib.g6_FreeReader(&self._g6ReadIterator) def g6_EndReached(self): - return cg6IterationDefs.g6_EndReached(self._g6ReadIterator) + return graphLib.g6_EndReached(self._g6ReadIterator) def g6_InitReaderWithFileName(self, str infile_name): # Convert Python str to UTF-8 encoded bytes, and then to const char * cdef bytes encoded = infile_name.encode('utf-8') - cdef const char *FileName = encoded - - if cg6IterationDefs.g6_InitReaderWithFileName(self._g6ReadIterator, FileName) != cappconst.OK: + cdef const char *encodedInfileName = encoded + if graphLib.g6_InitReaderWithFileName(self._g6ReadIterator, encodedInfileName) != graphLib.OK: raise RuntimeError( f"Unable to initialize reader with filename, as " "g6_InitReaderWithFileName() in EAPS graphLib failed." ) def g6_ReadGraph(self): - if cg6IterationDefs.g6_ReadGraph(self._g6ReadIterator) != cappconst.OK: + if graphLib.g6_ReadGraph(self._g6ReadIterator) != graphLib.OK: raise RuntimeError( f"Unable to read graph, as g6_ReadGraph() in EAPS graphLib " "failed." @@ -64,7 +61,7 @@ cdef class G6ReadIterator: cdef class G6WriteIterator: - cdef cg6IterationDefs.G6WriteIteratorP _g6WriteIterator + cdef graphLib.G6WriteIteratorP _g6WriteIterator def __cinit__(self, graph.Graph graph_to_write): try: @@ -78,7 +75,7 @@ cdef class G6WriteIterator: ) from invalid_graph_error self._g6WriteIterator = NULL - if cg6IterationDefs.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != cappconst.OK: + if graphLib.g6_NewWriter(&self._g6WriteIterator, graph_to_write._theGraph) != graphLib.OK: raise MemoryError( "Unable to initialize G6WriteIterator, as g6_NewWriter() in " "EAPS graphLib failed." @@ -86,16 +83,16 @@ cdef class G6WriteIterator: def __dealloc__(self): if self._g6WriteIterator != NULL: - cg6IterationDefs.g6_FreeWriter(&self._g6WriteIterator) + graphLib.g6_FreeWriter(&self._g6WriteIterator) def g6_InitWriterWithFileName(self, str outfile_name): # Convert Python str to UTF-8 encoded bytes, and then to const char * cdef bytes encoded = outfile_name.encode('utf-8') - cdef const char *FileName = encoded + cdef const char *encodedOutputFileName = encoded - if cg6IterationDefs.g6_InitWriterWithFileName(self._g6WriteIterator, FileName) != cappconst.OK: + if graphLib.g6_InitWriterWithFileName(self._g6WriteIterator, encodedOutputFileName) != graphLib.OK: raise RuntimeError(f"Unable to initialize writer with filename, as g6_InitWriterWithFileName() in EAPS graphLib failed.") def g6_WriteGraph(self): - if cg6IterationDefs.g6_WriteGraph(self._g6WriteIterator) != cappconst.OK: + if graphLib.g6_WriteGraph(self._g6WriteIterator) != graphLib.OK: raise RuntimeError(f"Unable to write graph, as g6_WriteGraph() in EAPS graphLib failed.") diff --git a/planarity/full/graph.c b/planarity/full/graph.c index c04b389..fda25f9 100644 --- a/planarity/full/graph.c +++ b/planarity/full/graph.c @@ -1,43 +1,12 @@ -/* Generated by Cython 3.2.4 */ +/* Generated by Cython 3.2.5 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], - "include_dirs": [ - "planarity/c/graphLib" - ], "name": "planarity.full.graph", "sources": [ - "planarity/full/graph.pyx", - "planarity/c/graphLib/graphDFSUtils.c", - "planarity/c/graphLib/graphLib.c", - "planarity/c/graphLib/graph.c", - "planarity/c/graphLib/io/g6-api-utilities.c", - "planarity/c/graphLib/io/g6-read-iterator.c", - "planarity/c/graphLib/io/strOrFile.c", - "planarity/c/graphLib/io/g6-write-iterator.c", - "planarity/c/graphLib/io/strbuf.c", - "planarity/c/graphLib/io/graphIO.c", - "planarity/c/graphLib/extensionSystem/graphExtensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK23Search_Extensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK33Search_Extensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK4Search.c", - "planarity/c/graphLib/homeomorphSearch/graphK4Search_Extensions.c", - "planarity/c/graphLib/homeomorphSearch/graphK33Search.c", - "planarity/c/graphLib/homeomorphSearch/graphK23Search.c", - "planarity/c/graphLib/planarityRelated/graphTests.c", - "planarity/c/graphLib/planarityRelated/graphPlanarity_Extensions.c", - "planarity/c/graphLib/planarityRelated/graphEmbed.c", - "planarity/c/graphLib/planarityRelated/graphOuterplanarObstruction.c", - "planarity/c/graphLib/planarityRelated/graphNonplanar.c", - "planarity/c/graphLib/planarityRelated/graphIsolator.c", - "planarity/c/graphLib/planarityRelated/graphOuterplanarity_Extensions.c", - "planarity/c/graphLib/planarityRelated/graphDrawPlanar.c", - "planarity/c/graphLib/planarityRelated/graphDrawPlanar_Extensions.c", - "planarity/c/graphLib/lowLevelUtils/stack.c", - "planarity/c/graphLib/lowLevelUtils/apiutils.c", - "planarity/c/graphLib/lowLevelUtils/listcoll.c" + "planarity/full/graph.pyx" ] }, "module_name": "planarity.full.graph" @@ -66,8 +35,8 @@ END: Cython Metadata */ #elif PY_VERSION_HEX < 0x03080000 #error Cython requires Python 3.8+. #else -#define __PYX_ABI_VERSION "3_2_4" -#define CYTHON_HEX_VERSION 0x030204F0 +#define __PYX_ABI_VERSION "3_2_5" +#define CYTHON_HEX_VERSION 0x030205F0 #define CYTHON_FUTURE_DIVISION 1 /* CModulePreamble */ #include @@ -1161,8 +1130,10 @@ static int __Pyx_init_co_variables(void) { #define __PYX_HAVE__planarity__full__graph #define __PYX_HAVE_API__planarity__full__graph /* Early includes */ -#include "../c/graphLib/graph.h" +#include "../c/graphLib/lowLevelUtils/apiutils.h" #include "../c/graphLib/graphLib.h" +#include "../c/graphLib/lowLevelUtils/appconst.h" +#include "../c/graphLib/graph.h" #include "../c/graphLib/homeomorphSearch/graphK23Search.h" #include "../c/graphLib/homeomorphSearch/graphK33Search.h" #include "../c/graphLib/homeomorphSearch/graphK4Search.h" @@ -1170,10 +1141,10 @@ static int __Pyx_init_co_variables(void) { #include "../c/graphLib/planarityRelated/graphDrawPlanar.h" #include "../c/graphLib/planarityRelated/graphOuterplanarity.h" #include "../c/graphLib/planarityRelated/graphPlanarity.h" +#include "../c/graphLib/io/g6-read-iterator.h" +#include "../c/graphLib/io/g6-write-iterator.h" #include #include -#include "../c/graphLib/lowLevelUtils/apiutils.h" -#include "../c/graphLib/lowLevelUtils/appconst.h" #ifdef _OPENMP #include #endif /* _OPENMP */ @@ -1571,10 +1542,10 @@ static const char* const __pyx_f[] = { struct __pyx_obj_9planarity_4full_5graph_Graph; /* "planarity/full/graph.pxd":12 - * from planarity.full cimport cgraphLib + * from planarity.full cimport graphLib * * cdef class Graph: # <<<<<<<<<<<<<< - * cdef cgraphLib.graphP _theGraph + * cdef graphLib.graphP _theGraph */ struct __pyx_obj_9planarity_4full_5graph_Graph { PyObject_HEAD @@ -1858,6 +1829,11 @@ static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject /* RaiseException.export */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); +/* WriteUnraisableException.proto */ +static void __Pyx_WriteUnraisable(const char *name, int clineno, + int lineno, const char *filename, + int full_traceback, int nogil); + /* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); @@ -2084,32 +2060,6 @@ static CYTHON_INLINE PyObject* __Pyx_decode_c_string( /* PyTypeError_Check.proto */ #define __Pyx_PyExc_TypeError_Check(obj) __Pyx_TypeCheck(obj, PyExc_TypeError) -/* decode_c_bytes.proto (used by decode_bytes) */ -static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes( - const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop, - const char* encoding, const char* errors, - PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)); - -/* decode_bytes.proto */ -static CYTHON_INLINE PyObject* __Pyx_decode_bytes( - PyObject* string, Py_ssize_t start, Py_ssize_t stop, - const char* encoding, const char* errors, - PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) { - char* as_c_string; - Py_ssize_t size; -#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE - as_c_string = PyBytes_AS_STRING(string); - size = PyBytes_GET_SIZE(string); -#else - if (PyBytes_AsStringAndSize(string, &as_c_string, &size) < 0) { - return NULL; - } -#endif - return __Pyx_decode_c_bytes( - as_c_string, size, - start, stop, encoding, errors, decode_func); -} - /* AllocateExtensionType.proto */ static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final); @@ -2151,6 +2101,25 @@ static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k); /* SetupReduce.proto */ static int __Pyx_setup_reduce(PyObject* type_obj); +/* FunctionImport.proto */ +static int __Pyx_ImportFunction_3_2_5(PyObject *module, const char *funcname, void (**f)(void), const char *sig); + +/* HasAttr.proto (used by ImportImpl) */ +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 +#define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n) +#else +static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *); +#endif + +/* ImportImpl.export */ +static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level); + +/* Import.proto */ +static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level); + +/* ImportFrom.proto */ +static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); + /* dict_setdefault.proto (used by FetchCommonType) */ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value); @@ -2317,6 +2286,9 @@ static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); +/* CIntFromPy.proto */ +static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *); + /* PyObjectVectorCallKwBuilder.proto (used by CIntToPy) */ CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n); #if CYTHON_VECTORCALL @@ -2338,9 +2310,6 @@ static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, P /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value); -/* CIntFromPy.proto */ -static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *); - /* FormatTypeName.proto */ #if CYTHON_COMPILING_IN_LIMITED_API typedef PyObject *__Pyx_TypeName; @@ -2455,14 +2424,48 @@ static int __Pyx_State_RemoveModule(void*); /* Module declarations from "planarity.full.cgraphLib" */ +/* Module declarations from "planarity.full.graphLib" */ +static graphP (*__pyx_f_9planarity_4full_8graphLib_gp_New)(void); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_InitGraph)(graphP, int); /*proto*/ +static void (*__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph)(graphP); /*proto*/ +static void (*__pyx_f_9planarity_4full_8graphLib_gp_Free)(graphP *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetN)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph)(graphP, graphP); /*proto*/ +static graphP (*__pyx_f_9planarity_4full_8graphLib_gp_DupGraph)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_FindEdge)(graphP, int, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_AddEdge)(graphP, int, int, int, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_IsEdge)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_IsVertex)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_Read)(graphP, char *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_Write)(graphP, char *, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile)(graphP, char *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString)(graphP, char **); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_Embed)(graphP, unsigned int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity)(graphP, graphP, int); /*proto*/ + /* Module declarations from "libc.string" */ /* Module declarations from "libc.stdlib" */ -/* Module declarations from "planarity.full.capiutils" */ - -/* Module declarations from "planarity.full.cappconst" */ - /* Module declarations from "planarity.full.graph" */ /* #### Code section: typeinfo ### */ /* #### Code section: before_global_var ### */ @@ -2513,10 +2516,6 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_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); /* proto */ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_SetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_newQuietModeFlag); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_4gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_tp_new_9planarity_4full_5graph_Graph(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ /* #### Code section: late_includes ### */ /* #### Code section: module_state ### */ @@ -2543,8 +2542,8 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; - PyObject *__pyx_codeobj_tab[40]; - PyObject *__pyx_string_tab[227]; + PyObject *__pyx_codeobj_tab[36]; + PyObject *__pyx_string_tab[222]; PyObject *__pyx_number_tab[1]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ @@ -2686,133 +2685,128 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #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_None __pyx_string_tab[100] -#define __pyx_n_u_OK __pyx_string_tab[101] -#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[102] -#define __pyx_n_u_a __pyx_string_tab[103] -#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[104] -#define __pyx_n_u_check_result __pyx_string_tab[105] -#define __pyx_n_u_cline_in_traceback __pyx_string_tab[106] -#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[107] -#define __pyx_n_u_e __pyx_string_tab[108] -#define __pyx_n_u_embedFlags __pyx_string_tab[109] -#define __pyx_n_u_embed_result __pyx_string_tab[110] -#define __pyx_n_u_encoded __pyx_string_tab[111] -#define __pyx_n_u_encoded_version __pyx_string_tab[112] -#define __pyx_n_u_func __pyx_string_tab[113] -#define __pyx_n_u_g __pyx_string_tab[114] -#define __pyx_n_u_getstate __pyx_string_tab[115] -#define __pyx_n_u_gp_AddEdge __pyx_string_tab[116] -#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[117] -#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[118] -#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[119] -#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[120] -#define __pyx_n_u_gp_DupGraph __pyx_string_tab[121] -#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[122] -#define __pyx_n_u_gp_Embed __pyx_string_tab[123] -#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[124] -#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[125] -#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[126] -#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[127] -#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[128] -#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[129] -#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[130] -#define __pyx_n_u_gp_FindEdge __pyx_string_tab[131] -#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[132] -#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[133] -#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[134] +#define __pyx_n_u_OK __pyx_string_tab[100] +#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[101] +#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[102] +#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[103] +#define __pyx_n_u_WRITE_G6 __pyx_string_tab[104] +#define __pyx_n_u_a __pyx_string_tab[105] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[106] +#define __pyx_n_u_check_result __pyx_string_tab[107] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[108] +#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[109] +#define __pyx_n_u_e __pyx_string_tab[110] +#define __pyx_n_u_embedFlags __pyx_string_tab[111] +#define __pyx_n_u_embed_result __pyx_string_tab[112] +#define __pyx_n_u_encoded __pyx_string_tab[113] +#define __pyx_n_u_func __pyx_string_tab[114] +#define __pyx_n_u_g __pyx_string_tab[115] +#define __pyx_n_u_getstate __pyx_string_tab[116] +#define __pyx_n_u_gp_AddEdge __pyx_string_tab[117] +#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[118] +#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[119] +#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[120] +#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[121] +#define __pyx_n_u_gp_DupGraph __pyx_string_tab[122] +#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[123] +#define __pyx_n_u_gp_Embed __pyx_string_tab[124] +#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[125] +#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[126] +#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[127] +#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[128] +#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[129] +#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[130] +#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[131] +#define __pyx_n_u_gp_FindEdge __pyx_string_tab[132] +#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[133] +#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[134] #define __pyx_n_u_gp_GetN __pyx_string_tab[135] #define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[136] #define __pyx_n_u_gp_GetNextEdge __pyx_string_tab[137] -#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[138] -#define __pyx_n_u_gp_GetQuietModeFlag __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_LowerBoundEdgeStorage __pyx_string_tab[144] -#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[145] -#define __pyx_n_u_gp_Read __pyx_string_tab[146] -#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[147] -#define __pyx_n_u_gp_SetQuietModeFlag __pyx_string_tab[148] -#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[149] -#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[150] -#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[151] -#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[152] -#define __pyx_n_u_gp_Write __pyx_string_tab[153] -#define __pyx_n_u_infile_name __pyx_string_tab[154] -#define __pyx_n_u_int __pyx_string_tab[155] -#define __pyx_n_u_is_coroutine __pyx_string_tab[156] -#define __pyx_n_u_items __pyx_string_tab[157] -#define __pyx_n_u_m __pyx_string_tab[158] -#define __pyx_n_u_main __pyx_string_tab[159] -#define __pyx_n_u_mode __pyx_string_tab[160] -#define __pyx_n_u_mode_code __pyx_string_tab[161] -#define __pyx_n_u_module __pyx_string_tab[162] -#define __pyx_n_u_n __pyx_string_tab[163] -#define __pyx_n_u_name __pyx_string_tab[164] -#define __pyx_n_u_newQuietModeFlag __pyx_string_tab[165] -#define __pyx_n_u_new_edge_capacity __pyx_string_tab[166] -#define __pyx_n_u_new_graph __pyx_string_tab[167] -#define __pyx_n_u_outfile_name __pyx_string_tab[168] -#define __pyx_n_u_planarity_full_graph __pyx_string_tab[169] -#define __pyx_n_u_pop __pyx_string_tab[170] -#define __pyx_n_u_pyx_state __pyx_string_tab[171] -#define __pyx_n_u_qualname __pyx_string_tab[172] -#define __pyx_n_u_reduce __pyx_string_tab[173] -#define __pyx_n_u_reduce_cython __pyx_string_tab[174] -#define __pyx_n_u_reduce_ex __pyx_string_tab[175] -#define __pyx_n_u_renditionString __pyx_string_tab[176] -#define __pyx_n_u_return __pyx_string_tab[177] -#define __pyx_n_u_self __pyx_string_tab[178] -#define __pyx_n_u_set_name __pyx_string_tab[179] -#define __pyx_n_u_setdefault __pyx_string_tab[180] -#define __pyx_n_u_setstate __pyx_string_tab[181] -#define __pyx_n_u_setstate_cython __pyx_string_tab[182] -#define __pyx_n_u_src_graph __pyx_string_tab[183] -#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[184] -#define __pyx_n_u_string_conversion_error __pyx_string_tab[185] -#define __pyx_n_u_test __pyx_string_tab[186] -#define __pyx_n_u_theFileName __pyx_string_tab[187] -#define __pyx_n_u_theGraph_dup __pyx_string_tab[188] -#define __pyx_n_u_u __pyx_string_tab[189] -#define __pyx_n_u_ulink __pyx_string_tab[190] -#define __pyx_n_u_v __pyx_string_tab[191] -#define __pyx_n_u_values __pyx_string_tab[192] -#define __pyx_n_u_vlink __pyx_string_tab[193] -#define __pyx_kp_b_iso88591_1 __pyx_string_tab[194] -#define __pyx_kp_b_iso88591_4_Q_aq_Q __pyx_string_tab[195] -#define __pyx_kp_b_iso88591_A_1D __pyx_string_tab[196] -#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[197] -#define __pyx_kp_b_iso88591_A_1_a __pyx_string_tab[198] -#define __pyx_kp_b_iso88591_A_1_l_Q_aq __pyx_string_tab[199] -#define __pyx_kp_b_iso88591_A_4_NcQR_a_1 __pyx_string_tab[200] -#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_M_l __pyx_string_tab[201] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_at_q __pyx_string_tab[202] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a __pyx_string_tab[203] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L __pyx_string_tab[204] -#define __pyx_kp_b_iso88591_A_4t_q_a_B_1 __pyx_string_tab[205] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_1D_A __pyx_string_tab[206] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S __pyx_string_tab[207] -#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W __pyx_string_tab[208] -#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[209] -#define __pyx_kp_b_iso88591_A_M_l_S_aq __pyx_string_tab[210] -#define __pyx_kp_b_iso88591_A_Q __pyx_string_tab[211] -#define __pyx_kp_b_iso88591_A_Q_1_l_CTTWWX_aq_A_a __pyx_string_tab[212] -#define __pyx_kp_b_iso88591_A_Qd_c_aq __pyx_string_tab[213] -#define __pyx_kp_b_iso88591_A_Y_0_S_E_A_m5_1_4q_A_31A_q_IQd __pyx_string_tab[214] -#define __pyx_kp_b_iso88591_A_at1 __pyx_string_tab[215] -#define __pyx_kp_b_iso88591_A_q_A_HAT_Zs_aq __pyx_string_tab[216] -#define __pyx_kp_b_iso88591_A_q_q_L_SPQ_a_EQa __pyx_string_tab[217] -#define __pyx_kp_b_iso88591_A_s_D_r_4q_l __pyx_string_tab[218] -#define __pyx_kp_b_iso88591_A_s_t1_r_d_q_L __pyx_string_tab[219] -#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[220] -#define __pyx_kp_b_iso88591_H __pyx_string_tab[221] -#define __pyx_kp_b_iso88591_Q __pyx_string_tab[222] -#define __pyx_kp_b_iso88591_Q_2 __pyx_string_tab[223] -#define __pyx_kp_b_iso88591_Q_6l_4q_1_Qa_uA_9A_a_q __pyx_string_tab[224] -#define __pyx_kp_b_iso88591_YYZ_A_L_2_a_3d_s_aq_q __pyx_string_tab[225] -#define __pyx_kp_b_iso88591_l_3d_s_aq_q __pyx_string_tab[226] +#define __pyx_n_u_gp_GetVertexDegree __pyx_string_tab[138] +#define __pyx_n_u_gp_InitGraph __pyx_string_tab[139] +#define __pyx_n_u_gp_IsEdge __pyx_string_tab[140] +#define __pyx_n_u_gp_IsVertex __pyx_string_tab[141] +#define __pyx_n_u_gp_LowerBoundEdgeStorage __pyx_string_tab[142] +#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[143] +#define __pyx_n_u_gp_Read __pyx_string_tab[144] +#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[145] +#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[146] +#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[147] +#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[148] +#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[149] +#define __pyx_n_u_gp_Write __pyx_string_tab[150] +#define __pyx_n_u_graphLib __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 __pyx_string_tab[166] +#define __pyx_n_u_planarity_full_graph __pyx_string_tab[167] +#define __pyx_n_u_pop __pyx_string_tab[168] +#define __pyx_n_u_pyx_state __pyx_string_tab[169] +#define __pyx_n_u_qualname __pyx_string_tab[170] +#define __pyx_n_u_reduce __pyx_string_tab[171] +#define __pyx_n_u_reduce_cython __pyx_string_tab[172] +#define __pyx_n_u_reduce_ex __pyx_string_tab[173] +#define __pyx_n_u_renditionString __pyx_string_tab[174] +#define __pyx_n_u_return __pyx_string_tab[175] +#define __pyx_n_u_self __pyx_string_tab[176] +#define __pyx_n_u_set_name __pyx_string_tab[177] +#define __pyx_n_u_setdefault __pyx_string_tab[178] +#define __pyx_n_u_setstate __pyx_string_tab[179] +#define __pyx_n_u_setstate_cython __pyx_string_tab[180] +#define __pyx_n_u_src_graph __pyx_string_tab[181] +#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[182] +#define __pyx_n_u_string_conversion_error __pyx_string_tab[183] +#define __pyx_n_u_test __pyx_string_tab[184] +#define __pyx_n_u_theFileName __pyx_string_tab[185] +#define __pyx_n_u_theGraph_dup __pyx_string_tab[186] +#define __pyx_n_u_u __pyx_string_tab[187] +#define __pyx_n_u_ulink __pyx_string_tab[188] +#define __pyx_n_u_v __pyx_string_tab[189] +#define __pyx_n_u_values __pyx_string_tab[190] +#define __pyx_n_u_vlink __pyx_string_tab[191] +#define __pyx_kp_b_graphP_graphP_graphP_void_int_gr __pyx_string_tab[192] +#define __pyx_kp_b_iso88591_4_Q_aq_xq_A __pyx_string_tab[193] +#define __pyx_kp_b_iso88591_A_0_A_aq __pyx_string_tab[194] +#define __pyx_kp_b_iso88591_A_0_Q __pyx_string_tab[195] +#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[196] +#define __pyx_kp_b_iso88591_A_4_3a_aq __pyx_string_tab[197] +#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a __pyx_string_tab[198] +#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[199] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a __pyx_string_tab[200] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q __pyx_string_tab[201] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q __pyx_string_tab[202] +#define __pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L __pyx_string_tab[203] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4_1 __pyx_string_tab[204] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq __pyx_string_tab[205] +#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a __pyx_string_tab[206] +#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[207] +#define __pyx_kp_b_iso88591_A_Cq_aq __pyx_string_tab[208] +#define __pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a __pyx_string_tab[209] +#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[210] +#define __pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a __pyx_string_tab[211] +#define __pyx_kp_b_iso88591_A_l_MSPQ_a_1 __pyx_string_tab[212] +#define __pyx_kp_b_iso88591_A_q_A __pyx_string_tab[213] +#define __pyx_kp_b_iso88591_A_q_A_81D_Jc_aq __pyx_string_tab[214] +#define __pyx_kp_b_iso88591_A_q_at_Cq_a_EQa __pyx_string_tab[215] +#define __pyx_kp_b_iso88591_A_s_D_r_4q __pyx_string_tab[216] +#define __pyx_kp_b_iso88591_A_s_t1_r_d_at_q __pyx_string_tab[217] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[218] +#define __pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q __pyx_string_tab[219] +#define __pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q __pyx_string_tab[220] +#define __pyx_kp_b_iso88591_y_3d_s_aq_q __pyx_string_tab[221] #define __pyx_int_0 __pyx_number_tab[0] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE @@ -2830,8 +2824,8 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { #endif 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<40; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<227; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } + for (int i=0; i<36; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<222; ++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 */ @@ -2857,8 +2851,8 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode); 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<40; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<227; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } + for (int i=0; i<36; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<222; ++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 */ @@ -2878,7 +2872,7 @@ return 0; * cdef class Graph: * def __cinit__(self): # <<<<<<<<<<<<<< * global global_id_count - * self._theGraph = cgraphLib.gp_New() + * self._theGraph = graphLib.gp_New() */ /* Python wrapper */ @@ -2909,10 +2903,11 @@ static int __pyx_pw_9planarity_4full_5graph_5Graph_1__cinit__(PyObject *__pyx_v_ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + graphP __pyx_t_1; + int __pyx_t_2; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + PyObject *__pyx_t_4 = NULL; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -2921,45 +2916,46 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p /* "planarity/full/graph.pyx":33 * def __cinit__(self): * global global_id_count - * self._theGraph = cgraphLib.gp_New() # <<<<<<<<<<<<<< + * self._theGraph = graphLib.gp_New() # <<<<<<<<<<<<<< * if self._theGraph == NULL: * raise MemoryError("gp_New() failed.") */ - __pyx_v_self->_theGraph = gp_New(); + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_New(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 33, __pyx_L1_error) + __pyx_v_self->_theGraph = __pyx_t_1; /* "planarity/full/graph.pyx":34 * global global_id_count - * self._theGraph = cgraphLib.gp_New() + * self._theGraph = graphLib.gp_New() * if self._theGraph == NULL: # <<<<<<<<<<<<<< * raise MemoryError("gp_New() failed.") * */ - __pyx_t_1 = (__pyx_v_self->_theGraph == NULL); - if (unlikely(__pyx_t_1)) { + __pyx_t_2 = (__pyx_v_self->_theGraph == NULL); + if (unlikely(__pyx_t_2)) { /* "planarity/full/graph.pyx":35 - * self._theGraph = cgraphLib.gp_New() + * self._theGraph = graphLib.gp_New() * if self._theGraph == NULL: * raise MemoryError("gp_New() failed.") # <<<<<<<<<<<<<< * * def __dealloc__(self): */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_4 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_New_failed}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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, 35, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_New_failed}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_3)) __PYX_ERR(0, 35, __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, 35, __pyx_L1_error) /* "planarity/full/graph.pyx":34 * global global_id_count - * self._theGraph = cgraphLib.gp_New() + * self._theGraph = graphLib.gp_New() * if self._theGraph == NULL: # <<<<<<<<<<<<<< * raise MemoryError("gp_New() failed.") * @@ -2971,15 +2967,15 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p * cdef class Graph: * def __cinit__(self): # <<<<<<<<<<<<<< * global global_id_count - * self._theGraph = cgraphLib.gp_New() + * self._theGraph = graphLib.gp_New() */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; @@ -2992,7 +2988,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p * * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._theGraph != NULL: - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) */ /* Python wrapper */ @@ -3010,12 +3006,15 @@ static void __pyx_pw_9planarity_4full_5graph_5Graph_3__dealloc__(PyObject *__pyx static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { int __pyx_t_1; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; /* "planarity/full/graph.pyx":38 * * def __dealloc__(self): * if self._theGraph != NULL: # <<<<<<<<<<<<<< - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) * */ __pyx_t_1 = (__pyx_v_self->_theGraph != NULL); @@ -3024,17 +3023,17 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob /* "planarity/full/graph.pyx":39 * def __dealloc__(self): * if self._theGraph != NULL: - * cgraphLib.gp_Free(&self._theGraph) # <<<<<<<<<<<<<< + * graphLib.gp_Free(&self._theGraph) # <<<<<<<<<<<<<< * * def gp_InitGraph(self, int n): */ - gp_Free((&__pyx_v_self->_theGraph)); + __pyx_f_9planarity_4full_8graphLib_gp_Free((&__pyx_v_self->_theGraph)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 39, __pyx_L1_error) /* "planarity/full/graph.pyx":38 * * def __dealloc__(self): * if self._theGraph != NULL: # <<<<<<<<<<<<<< - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) * */ } @@ -3044,17 +3043,21 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob * * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._theGraph != NULL: - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) */ /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_WriteUnraisable("planarity.full.graph.Graph.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); + __pyx_L0:; } /* "planarity/full/graph.pyx":41 - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< - * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: + * if graphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ @@ -3098,7 +3101,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,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, 41, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 41, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -3147,11 +3150,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_n) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -3160,55 +3164,56 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ /* "planarity/full/graph.pyx":42 * * def gp_InitGraph(self, int n): - * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_InitGraph() failed.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __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, 42, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 42, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __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, 42, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 42, __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, 42, __pyx_L1_error) __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, 42, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 42, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":43 * def gp_InitGraph(self, int n): - * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: + * if graphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") # <<<<<<<<<<<<<< * * def gp_ReinitGraph(self): */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 43, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_InitGraph_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, 43, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 43, __pyx_L1_error) /* "planarity/full/graph.pyx":42 * * def gp_InitGraph(self, int n): - * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_InitGraph() failed.") * */ } /* "planarity/full/graph.pyx":41 - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< - * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: + * if graphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ @@ -3216,9 +3221,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_InitGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -3231,7 +3236,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< - * cgraphLib.gp_ReinitGraph(self._theGraph) + * graphLib.gp_ReinitGraph(self._theGraph) * */ @@ -3281,37 +3286,45 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_6gp_ReinitGraph(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ReinitGraph", 0); /* "planarity/full/graph.pyx":46 * * def gp_ReinitGraph(self): - * cgraphLib.gp_ReinitGraph(self._theGraph) # <<<<<<<<<<<<<< + * graphLib.gp_ReinitGraph(self._theGraph) # <<<<<<<<<<<<<< * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): */ - gp_ReinitGraph(__pyx_v_self->_theGraph); + __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 46, __pyx_L1_error) /* "planarity/full/graph.pyx":45 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< - * cgraphLib.gp_ReinitGraph(self._theGraph) + * graphLib.gp_ReinitGraph(self._theGraph) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ReinitGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "planarity/full/graph.pyx":48 - * cgraphLib.gp_ReinitGraph(self._theGraph) + * graphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: + * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ @@ -3355,7 +3368,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_new_edge_capacity,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, 48, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 48, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -3404,13 +3417,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_new_edge_capacity) { 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; - int __pyx_t_4; - PyObject *__pyx_t_5[3]; - PyObject *__pyx_t_6 = NULL; - size_t __pyx_t_7; + PyObject *__pyx_t_4 = NULL; + int __pyx_t_5; + PyObject *__pyx_t_6[3]; + PyObject *__pyx_t_7 = NULL; + size_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -3419,29 +3433,30 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( /* "planarity/full/graph.pyx":49 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " */ - __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, 49, __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, 49, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(__pyx_v_self->_theGraph, __pyx_v_new_edge_capacity); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __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, 49, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 49, __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, 49, __pyx_L1_error) __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, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":50 * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: + * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< * "gp_EnsureEdgeCapacity() failed to set edge capacity to " * f"{new_edge_capacity}.") */ - __pyx_t_2 = NULL; + __pyx_t_3 = NULL; /* "planarity/full/graph.pyx":52 * raise RuntimeError( @@ -3450,50 +3465,50 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( * * def gp_GetEdgeCapacity(self): */ - __pyx_t_1 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __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_1; - __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u_; + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_gp_EnsureEdgeCapacity_failed_to; + __pyx_t_6[1] = __pyx_t_2; + __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u_; /* "planarity/full/graph.pyx":51 - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: + * if graphLib.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_1) + 1, 127); - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 51, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_7 = 1; + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, 55 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 1, 127); + if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_8 = 1; { - 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_3)) __PYX_ERR(0, 50, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + 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_4)) __PYX_ERR(0, 50, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 50, __pyx_L1_error) /* "planarity/full/graph.pyx":49 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " */ } /* "planarity/full/graph.pyx":48 - * cgraphLib.gp_ReinitGraph(self._theGraph) + * graphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: + * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ @@ -3501,10 +3516,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_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_6); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_EnsureEdgeCapacity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -3517,7 +3532,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + * return graphLib.gp_GetEdgeCapacity(self._theGraph) * */ @@ -3567,7 +3582,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -3576,28 +3592,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st /* "planarity/full/graph.pyx":55 * * def gp_GetEdgeCapacity(self): - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_GetEdgeCapacity(self._theGraph) # <<<<<<<<<<<<<< * * def gp_GetN(self)-> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetEdgeCapacity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 55, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":54 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + * return graphLib.gp_GetEdgeCapacity(self._theGraph) * */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_GetEdgeCapacity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -3607,7 +3624,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st } /* "planarity/full/graph.pyx":57 - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + * return graphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< * """ @@ -3664,6 +3681,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; size_t __pyx_t_4; + int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -3684,7 +3702,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ * if self._theGraph == NULL: * raise RuntimeError("Graph is not initialized.") # <<<<<<<<<<<<<< * - * return cgraphLib.gp_GetN(self._theGraph) + * return graphLib.gp_GetN(self._theGraph) */ __pyx_t_3 = NULL; __pyx_t_4 = 1; @@ -3711,12 +3729,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ /* "planarity/full/graph.pyx":64 * raise RuntimeError("Graph is not initialized.") * - * return cgraphLib.gp_GetN(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_GetN(self._theGraph) # <<<<<<<<<<<<<< * * def gp_CopyGraph(self, Graph src_graph): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyLong_From_int(gp_GetN(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) + __pyx_t_5 = __pyx_f_9planarity_4full_8graphLib_gp_GetN(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 64, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 64, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_2); @@ -3724,7 +3743,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ goto __pyx_L0; /* "planarity/full/graph.pyx":57 - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + * return graphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< * """ @@ -3744,7 +3763,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ } /* "planarity/full/graph.pyx":66 - * return cgraphLib.gp_GetN(self._theGraph) + * return graphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< * # NOTE: this is interpreting the self as the dstGraph, i.e. copying @@ -3791,7 +3810,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_src_graph,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, 66, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 66, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -4168,11 +4187,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ /* "planarity/full/graph.pyx":87 * "to copy graphP struct.") * - * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_CopyGraph() failed.") * */ - __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, 87, __pyx_L1_error) + __pyx_t_12 = __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(__pyx_v_self->_theGraph, __pyx_v_src_graph->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 87, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __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, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -4185,7 +4205,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ /* "planarity/full/graph.pyx":88 * - * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: + * if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: * raise RuntimeError(f"gp_CopyGraph() failed.") # <<<<<<<<<<<<<< * * def gp_DupGraph(self) -> Graph: @@ -4206,14 +4226,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ /* "planarity/full/graph.pyx":87 * "to copy graphP struct.") * - * if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_CopyGraph() failed.") * */ } /* "planarity/full/graph.pyx":66 - * return cgraphLib.gp_GetN(self._theGraph) + * return graphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< * # NOTE: this is interpreting the self as the dstGraph, i.e. copying @@ -4242,7 +4262,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: */ @@ -4294,10 +4314,11 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_new_graph = 0; struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + graphP __pyx_t_1; + int __pyx_t_2; PyObject *__pyx_t_3 = NULL; - size_t __pyx_t_4; + PyObject *__pyx_t_4 = NULL; + size_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -4306,45 +4327,46 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full /* "planarity/full/graph.pyx":91 * * def gp_DupGraph(self) -> Graph: - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) # <<<<<<<<<<<<<< + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) # <<<<<<<<<<<<<< * if theGraph_dup == NULL: * raise MemoryError("gp_DupGraph() failed.") */ - __pyx_v_theGraph_dup = gp_DupGraph(__pyx_v_self->_theGraph); + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L1_error) + __pyx_v_theGraph_dup = __pyx_t_1; /* "planarity/full/graph.pyx":92 * def gp_DupGraph(self) -> Graph: - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: # <<<<<<<<<<<<<< * raise MemoryError("gp_DupGraph() failed.") * */ - __pyx_t_1 = (__pyx_v_theGraph_dup == NULL); - if (unlikely(__pyx_t_1)) { + __pyx_t_2 = (__pyx_v_theGraph_dup == NULL); + if (unlikely(__pyx_t_2)) { /* "planarity/full/graph.pyx":93 - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: * raise MemoryError("gp_DupGraph() failed.") # <<<<<<<<<<<<<< * * cdef Graph new_graph = Graph() */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_4 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_DupGraph_failed}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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, 93, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_DupGraph_failed}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_3)) __PYX_ERR(0, 93, __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, 93, __pyx_L1_error) /* "planarity/full/graph.pyx":92 * def gp_DupGraph(self) -> Graph: - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: # <<<<<<<<<<<<<< * raise MemoryError("gp_DupGraph() failed.") * @@ -4355,33 +4377,33 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full * raise MemoryError("gp_DupGraph() failed.") * * cdef Graph new_graph = Graph() # <<<<<<<<<<<<<< - * cgraphLib.gp_Free(&new_graph._theGraph) + * graphLib.gp_Free(&new_graph._theGraph) * new_graph._theGraph = theGraph_dup */ - __pyx_t_3 = NULL; - __pyx_t_4 = 1; + __pyx_t_4 = NULL; + __pyx_t_5 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; - __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_callargs+__pyx_t_4, (1-__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, 95, __pyx_L1_error) - __Pyx_GOTREF((PyObject *)__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; + __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error) + __Pyx_GOTREF((PyObject *)__pyx_t_3); } - __pyx_v_new_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_t_2); - __pyx_t_2 = 0; + __pyx_v_new_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_t_3); + __pyx_t_3 = 0; /* "planarity/full/graph.pyx":96 * * cdef Graph new_graph = Graph() - * cgraphLib.gp_Free(&new_graph._theGraph) # <<<<<<<<<<<<<< + * graphLib.gp_Free(&new_graph._theGraph) # <<<<<<<<<<<<<< * new_graph._theGraph = theGraph_dup * */ - gp_Free((&__pyx_v_new_graph->_theGraph)); + __pyx_f_9planarity_4full_8graphLib_gp_Free((&__pyx_v_new_graph->_theGraph)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L1_error) /* "planarity/full/graph.pyx":97 * cdef Graph new_graph = Graph() - * cgraphLib.gp_Free(&new_graph._theGraph) + * graphLib.gp_Free(&new_graph._theGraph) * new_graph._theGraph = theGraph_dup # <<<<<<<<<<<<<< * * return new_graph @@ -4404,14 +4426,14 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DupGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -4470,7 +4492,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_v,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, 101, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 101, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 2: @@ -4534,6 +4556,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -4633,7 +4656,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") # <<<<<<<<<<<<<< * - * return cgraphLib.gp_FindEdge(self._theGraph, u, v) + * return graphLib.gp_FindEdge(self._theGraph, u, v) */ __pyx_t_3 = NULL; __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 105, __pyx_L1_error) @@ -4670,12 +4693,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ /* "planarity/full/graph.pyx":107 * raise RuntimeError(f"'{v}' is not a valid vertex label.") * - * return cgraphLib.gp_FindEdge(self._theGraph, u, v) # <<<<<<<<<<<<<< + * return graphLib.gp_FindEdge(self._theGraph, u, v) # <<<<<<<<<<<<<< * * def gp_GetVertexDegree(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_FindEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 107, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -4704,7 +4728,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ } /* "planarity/full/graph.pyx":109 - * return cgraphLib.gp_FindEdge(self._theGraph, u, v) + * return graphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): @@ -4751,7 +4775,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 109, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 109, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -4808,6 +4832,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -4843,7 +4868,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") # <<<<<<<<<<<<<< * - * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) + * return graphLib.gp_GetVertexDegree(self._theGraph, v) */ __pyx_t_3 = NULL; __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) @@ -4880,19 +4905,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st /* "planarity/full/graph.pyx":113 * raise RuntimeError(f"'{v}' is not a valid vertex label.") * - * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) # <<<<<<<<<<<<<< + * return graphLib.gp_GetVertexDegree(self._theGraph, v) # <<<<<<<<<<<<<< * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetVertexDegree(__pyx_v_self->_theGraph, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":109 - * return cgraphLib.gp_FindEdge(self._theGraph, u, v) + * return graphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): @@ -4914,7 +4940,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st } /* "planarity/full/graph.pyx":115 - * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) + * return graphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< * if ulink != 0 and ulink != 1: @@ -4964,7 +4990,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_ulink,&__pyx_mstate_global->__pyx_n_u_v,&__pyx_mstate_global->__pyx_n_u_vlink,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, 115, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 115, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 4: @@ -5041,10 +5067,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p PyObject *__pyx_t_5[3]; PyObject *__pyx_t_6 = NULL; size_t __pyx_t_7; - PyObject *__pyx_t_8 = NULL; + int __pyx_t_8; PyObject *__pyx_t_9 = NULL; - PyObject *__pyx_t_10[9]; - PyObject *__pyx_t_11 = NULL; + PyObject *__pyx_t_10 = NULL; + PyObject *__pyx_t_11[9]; + PyObject *__pyx_t_12 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -5147,7 +5174,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p * raise RuntimeError( * f"Invalid link index for vlink: '{vlink}'." # <<<<<<<<<<<<<< * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: + * if graphLib.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, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -5183,11 +5210,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p /* "planarity/full/graph.pyx":124 * f"Invalid link index for vlink: '{vlink}'." * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< + * if graphLib.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_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, 124, __pyx_L1_error) + __pyx_t_8 = __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 124, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __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, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); @@ -5200,7 +5228,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p /* "planarity/full/graph.pyx":125 * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: + * if graphLib.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}." @@ -5208,7 +5236,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __pyx_t_4 = NULL; /* "planarity/full/graph.pyx":126 - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: + * if graphLib.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}." @@ -5218,8 +5246,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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, 126, __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, 126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); + __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); /* "planarity/full/graph.pyx":127 * raise RuntimeError( @@ -5228,38 +5256,38 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p * ) * */ - __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 127, __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_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; - __pyx_t_10[5] = __pyx_t_8; - __pyx_t_10[6] = __pyx_mstate_global->__pyx_kp_u_and_vlink; - __pyx_t_10[7] = __pyx_t_9; - __pyx_t_10[8] = __pyx_mstate_global->__pyx_kp_u_; + __pyx_t_10 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_11[0] = __pyx_mstate_global->__pyx_kp_u_Unable_to_add_edge_u_v; + __pyx_t_11[1] = __pyx_t_2; + __pyx_t_11[2] = __pyx_mstate_global->__pyx_kp_u__4; + __pyx_t_11[3] = __pyx_t_3; + __pyx_t_11[4] = __pyx_mstate_global->__pyx_kp_u_with_ulink; + __pyx_t_11[5] = __pyx_t_9; + __pyx_t_11[6] = __pyx_mstate_global->__pyx_kp_u_and_vlink; + __pyx_t_11[7] = __pyx_t_10; + __pyx_t_11[8] = __pyx_mstate_global->__pyx_kp_u_; /* "planarity/full/graph.pyx":126 - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: + * if graphLib.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_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, 126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_11); + __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_11, 9, 29 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 15 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 13 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10) + 1, 127); + if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_12); __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_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_7 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_11}; + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_12}; __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; + __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); } @@ -5270,14 +5298,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p /* "planarity/full/graph.pyx":124 * f"Invalid link index for vlink: '{vlink}'." * ) - * if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " */ } /* "planarity/full/graph.pyx":115 - * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) + * return graphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< * if ulink != 0 and ulink != 1: @@ -5292,9 +5320,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_11); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_AddEdge", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -5351,7 +5379,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 130, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 130, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -5408,6 +5436,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -5488,12 +5517,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct /* "planarity/full/graph.pyx":136 * ) * - * return cgraphLib.gp_DeleteEdge(self._theGraph, e) # <<<<<<<<<<<<<< + * return graphLib.gp_DeleteEdge(self._theGraph, e) # <<<<<<<<<<<<<< * * def gp_LowerBoundEdgeStorage(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_DeleteEdge(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 136, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -5522,10 +5552,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct } /* "planarity/full/graph.pyx":138 - * return cgraphLib.gp_DeleteEdge(self._theGraph, e) + * return graphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * */ @@ -5575,7 +5605,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStorage(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -5584,28 +5615,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor /* "planarity/full/graph.pyx":139 * * def gp_LowerBoundEdgeStorage(self): - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< * * def gp_UpperBoundEdgeStorage(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_LowerBoundEdgeStorage(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 139, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":138 - * return cgraphLib.gp_DeleteEdge(self._theGraph, e) + * return graphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_LowerBoundEdgeStorage", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -5615,10 +5647,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor } /* "planarity/full/graph.pyx":141 - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * */ @@ -5668,7 +5700,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStorage(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -5677,28 +5710,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor /* "planarity/full/graph.pyx":142 * * def gp_UpperBoundEdgeStorage(self): - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< * * def gp_IsEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundEdgeStorage(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 142, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":141 - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_UpperBoundEdgeStorage", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -5708,7 +5742,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor } /* "planarity/full/graph.pyx":144 - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< * return ( @@ -5755,7 +5789,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 144, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 144, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -5830,7 +5864,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and # <<<<<<<<<<<<<< * (e < self.gp_UpperBoundEdgeStorage()) and - * cgraphLib.gp_IsEdge(self._theGraph, e) + * graphLib.gp_IsEdge(self._theGraph, e) */ __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -5861,7 +5895,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and * (e < self.gp_UpperBoundEdgeStorage()) and # <<<<<<<<<<<<<< - * cgraphLib.gp_IsEdge(self._theGraph, e) + * graphLib.gp_IsEdge(self._theGraph, e) * ) */ __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 147, __pyx_L1_error) @@ -5892,11 +5926,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py /* "planarity/full/graph.pyx":148 * (e >= self.gp_LowerBoundEdgeStorage()) and * (e < self.gp_UpperBoundEdgeStorage()) and - * cgraphLib.gp_IsEdge(self._theGraph, e) # <<<<<<<<<<<<<< + * graphLib.gp_IsEdge(self._theGraph, e) # <<<<<<<<<<<<<< * ) * */ - __pyx_t_7 = gp_IsEdge(__pyx_v_self->_theGraph, __pyx_v_e); + __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error) __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; @@ -5907,7 +5941,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py goto __pyx_L0; /* "planarity/full/graph.pyx":144 - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< * return ( @@ -5976,7 +6010,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 151, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 151, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -6033,6 +6067,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6113,12 +6148,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ /* "planarity/full/graph.pyx":157 * ) * - * return cgraphLib.gp_EdgeInUse(self._theGraph, e) # <<<<<<<<<<<<<< + * return graphLib.gp_EdgeInUse(self._theGraph, e) # <<<<<<<<<<<<<< * * def gp_UpperBoundEdges(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -6147,10 +6183,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ } /* "planarity/full/graph.pyx":159 - * return cgraphLib.gp_EdgeInUse(self._theGraph, e) + * return graphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) + * return graphLib.gp_UpperBoundEdges(self._theGraph) * */ @@ -6200,7 +6236,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6209,28 +6246,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st /* "planarity/full/graph.pyx":160 * * def gp_UpperBoundEdges(self): - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_UpperBoundEdges(self._theGraph) # <<<<<<<<<<<<<< * * def gp_GetNextEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundEdges(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 160, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 160, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":159 - * return cgraphLib.gp_EdgeInUse(self._theGraph, e) + * return graphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) + * return graphLib.gp_UpperBoundEdges(self._theGraph) * */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_UpperBoundEdges", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -6240,7 +6278,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st } /* "planarity/full/graph.pyx":162 - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) + * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): @@ -6287,7 +6325,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 162, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 162, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -6344,6 +6382,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6424,19 +6463,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct /* "planarity/full/graph.pyx":168 * ) * - * return cgraphLib.gp_GetNextEdge(self._theGraph, e) # <<<<<<<<<<<<<< + * return graphLib.gp_GetNextEdge(self._theGraph, e) # <<<<<<<<<<<<<< * * def gp_GetNeighbor(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 168, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 168, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":162 - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) + * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): @@ -6458,7 +6498,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct } /* "planarity/full/graph.pyx":170 - * return cgraphLib.gp_GetNextEdge(self._theGraph, e) + * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): @@ -6505,7 +6545,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 170, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 170, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -6562,6 +6602,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6642,19 +6683,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct /* "planarity/full/graph.pyx":176 * ) * - * return cgraphLib.gp_GetNeighbor(self._theGraph, e) # <<<<<<<<<<<<<< + * return graphLib.gp_GetNeighbor(self._theGraph, e) # <<<<<<<<<<<<<< * * def gp_GetFirstEdge(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":170 - * return cgraphLib.gp_GetNextEdge(self._theGraph, e) + * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): @@ -6676,7 +6718,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct } /* "planarity/full/graph.pyx":178 - * return cgraphLib.gp_GetNeighbor(self._theGraph, e) + * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): @@ -6723,7 +6765,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 178, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 178, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -6780,6 +6822,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc int __pyx_t_6; PyObject *__pyx_t_7[3]; PyObject *__pyx_t_8 = NULL; + int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6860,19 +6903,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc /* "planarity/full/graph.pyx":184 * ) * - * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) # <<<<<<<<<<<<<< + * return graphLib.gp_GetFirstEdge(self._theGraph, v) # <<<<<<<<<<<<<< * * def gp_LowerBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 184, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":178 - * return cgraphLib.gp_GetNeighbor(self._theGraph, e) + * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): @@ -6894,10 +6938,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc } /* "planarity/full/graph.pyx":186 - * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) + * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) + * return graphLib.gp_LowerBoundVertices(self._theGraph) * */ @@ -6947,7 +6991,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -6956,28 +7001,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices /* "planarity/full/graph.pyx":187 * * def gp_LowerBoundVertices(self): - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_LowerBoundVertices(self._theGraph) # <<<<<<<<<<<<<< * * def gp_UpperBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_LowerBoundVertices(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 187, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":186 - * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) + * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) + * return graphLib.gp_LowerBoundVertices(self._theGraph) * */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_LowerBoundVertices", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -6987,10 +7033,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices } /* "planarity/full/graph.pyx":189 - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) + * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) + * return graphLib.gp_UpperBoundVertices(self._theGraph) * */ @@ -7040,7 +7086,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -7049,28 +7096,29 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices /* "planarity/full/graph.pyx":190 * * def gp_UpperBoundVertices(self): - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) # <<<<<<<<<<<<<< + * return graphLib.gp_UpperBoundVertices(self._theGraph) # <<<<<<<<<<<<<< * * def gp_IsVertex(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_UpperBoundVertices(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":189 - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) + * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) + * return graphLib.gp_UpperBoundVertices(self._theGraph) * */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_UpperBoundVertices", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -7080,7 +7128,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices } /* "planarity/full/graph.pyx":192 - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) + * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< * return ( @@ -7127,7 +7175,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 192, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 192, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -7202,7 +7250,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ * return ( * (v >= self.gp_LowerBoundVertices()) and # <<<<<<<<<<<<<< * (v < self.gp_UpperBoundVertices()) and - * cgraphLib.gp_IsVertex(self._theGraph, v) + * graphLib.gp_IsVertex(self._theGraph, v) */ __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -7233,7 +7281,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ * return ( * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and # <<<<<<<<<<<<<< - * cgraphLib.gp_IsVertex(self._theGraph, v) + * graphLib.gp_IsVertex(self._theGraph, v) * ) */ __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 195, __pyx_L1_error) @@ -7264,11 +7312,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ /* "planarity/full/graph.pyx":196 * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and - * cgraphLib.gp_IsVertex(self._theGraph, v) # <<<<<<<<<<<<<< + * graphLib.gp_IsVertex(self._theGraph, v) # <<<<<<<<<<<<<< * ) * */ - __pyx_t_7 = gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); + __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 196, __pyx_L1_error) __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; @@ -7279,7 +7327,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L0; /* "planarity/full/graph.pyx":192 - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) + * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< * return ( @@ -7304,7 +7352,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") */ @@ -7354,11 +7402,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -7367,45 +7416,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear /* "planarity/full/graph.pyx":200 * * def gp_ExtendWith_K23Search(self): - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K23Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __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, 200, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 200, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __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, 200, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __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, 200, __pyx_L1_error) __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, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 200, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":201 * def gp_ExtendWith_K23Search(self): - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_K33Search(self): */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 201, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K23S}; + __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, 201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + } + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 201, __pyx_L1_error) /* "planarity/full/graph.pyx":200 * * def gp_ExtendWith_K23Search(self): - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ @@ -7415,7 +7465,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") */ @@ -7423,9 +7473,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K23Search", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -7438,7 +7488,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") */ @@ -7488,11 +7538,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -7501,45 +7552,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear /* "planarity/full/graph.pyx":204 * * def gp_ExtendWith_K33Search(self): - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K33Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __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, 204, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 204, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __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, 204, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __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, 204, __pyx_L1_error) __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, 204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 204, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":205 * def gp_ExtendWith_K33Search(self): - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_K4Search(self): */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K33S}; + __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, 205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 205, __pyx_L1_error) /* "planarity/full/graph.pyx":204 * * def gp_ExtendWith_K33Search(self): - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ @@ -7549,7 +7601,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") */ @@ -7557,9 +7609,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K33Search", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -7572,7 +7624,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") */ @@ -7622,11 +7674,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -7635,45 +7688,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc /* "planarity/full/graph.pyx":208 * * def gp_ExtendWith_K4Search(self): - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K4Search structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_K4Search(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __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, 208, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __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, 208, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 208, __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, 208, __pyx_L1_error) __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, 208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 208, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":209 * def gp_ExtendWith_K4Search(self): - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") # <<<<<<<<<<<<<< * * def gp_Read(self, str infile_name): */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 209, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K4Se}; + __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, 209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 209, __pyx_L1_error) /* "planarity/full/graph.pyx":208 * * def gp_ExtendWith_K4Search(self): - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K4Search structures.") * */ @@ -7683,7 +7737,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") */ @@ -7691,9 +7745,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K4Search", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -7750,7 +7804,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_infile_name,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, 211, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 211, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -7813,10 +7867,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; - PyObject *__pyx_t_3 = NULL; + int __pyx_t_3; PyObject *__pyx_t_4 = NULL; - int __pyx_t_5; - size_t __pyx_t_6; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -7843,7 +7898,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ * cdef bytes encoded = infile_name.encode('utf-8') * cdef const char *FileName = encoded # <<<<<<<<<<<<<< * - * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: + * if graphLib.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, 214, __pyx_L1_error) __pyx_v_FileName = __pyx_t_2; @@ -7851,45 +7906,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ /* "planarity/full/graph.pyx":216 * cdef const char *FileName = encoded * - * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_Read() failed.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 216, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __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, 216, __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, 216, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 216, __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, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(__pyx_t_5)) { + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 216, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(__pyx_t_6)) { /* "planarity/full/graph.pyx":217 * - * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: + * if graphLib.gp_Read(self._theGraph, FileName) != OK: * raise RuntimeError(f"gp_Read() failed.") # <<<<<<<<<<<<<< * * def gp_Write(self, str outfile_name, str mode): */ - __pyx_t_3 = NULL; - __pyx_t_6 = 1; + __pyx_t_4 = NULL; + __pyx_t_7 = 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, 217, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_Read_failed}; + __pyx_t_5 = __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; + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); } - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 217, __pyx_L1_error) /* "planarity/full/graph.pyx":216 * cdef const char *FileName = encoded * - * if cgraphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_Read() failed.") * */ @@ -7908,8 +7964,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Read", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -7923,8 +7979,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< - * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ /* Python wrapper */ @@ -7968,7 +8024,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,&__pyx_mstate_global->__pyx_n_u_mode,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, 219, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 219, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 2: @@ -8041,14 +8097,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; - int __pyx_t_4; - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - PyObject *__pyx_t_7 = NULL; - PyObject *__pyx_t_8[3]; - size_t __pyx_t_9; - char const *__pyx_t_10; - int __pyx_t_11; + PyObject *__pyx_t_4 = NULL; + int __pyx_t_5; + PyObject *__pyx_t_6 = NULL; + int __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_9[3]; + size_t __pyx_t_10; + char const *__pyx_t_11; + int __pyx_t_12; + int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -8057,77 +8115,86 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx /* "planarity/full/graph.pyx":220 * * def gp_Write(self, str outfile_name, str mode): - * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" # <<<<<<<<<<<<<< - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" - * else (cgraphLib.WRITE_G6 if mode == "g" + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" # <<<<<<<<<<<<<< + * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * else (graphLib.WRITE_G6 if mode == "g" */ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 220, __pyx_L1_error) if (__pyx_t_2) { - __pyx_t_3 = __Pyx_PyLong_From_int(WRITE_ADJLIST); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = __pyx_t_3; - __pyx_t_3 = 0; + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJLIST); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_1 = __pyx_t_4; + __pyx_t_4 = 0; } else { /* "planarity/full/graph.pyx":221 * def gp_Write(self, str outfile_name, str mode): - * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" # <<<<<<<<<<<<<< - * else (cgraphLib.WRITE_G6 if mode == "g" + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" # <<<<<<<<<<<<<< + * else (graphLib.WRITE_G6 if mode == "g" * else None))) */ - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 221, __pyx_L1_error) - if (__pyx_t_4) { - __pyx_t_5 = __Pyx_PyLong_From_int(WRITE_ADJMATRIX); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 221, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_3 = __pyx_t_5; - __pyx_t_5 = 0; + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 221, __pyx_L1_error) + if (__pyx_t_5) { + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJMATRIX); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_4 = __pyx_t_6; + __pyx_t_6 = 0; } else { /* "planarity/full/graph.pyx":222 - * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" - * else (cgraphLib.WRITE_G6 if mode == "g" # <<<<<<<<<<<<<< + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * else (graphLib.WRITE_G6 if mode == "g" # <<<<<<<<<<<<<< * else None))) * if not mode_code: */ - __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 222, __pyx_L1_error) - if (__pyx_t_6) { - __pyx_t_7 = __Pyx_PyLong_From_int(WRITE_G6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 222, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_5 = __pyx_t_7; - __pyx_t_7 = 0; + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 222, __pyx_L1_error) + if (__pyx_t_7) { + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_G6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_6 = __pyx_t_8; + __pyx_t_8 = 0; } else { /* "planarity/full/graph.pyx":223 - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" - * else (cgraphLib.WRITE_G6 if mode == "g" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * else (graphLib.WRITE_G6 if mode == "g" * else None))) # <<<<<<<<<<<<<< * if not mode_code: * raise ValueError( */ __Pyx_INCREF(Py_None); - __pyx_t_5 = Py_None; + __pyx_t_6 = Py_None; } - __pyx_t_3 = __pyx_t_5; - __pyx_t_5 = 0; + __pyx_t_4 = __pyx_t_6; + __pyx_t_6 = 0; } - __pyx_t_1 = __pyx_t_3; - __pyx_t_3 = 0; + __pyx_t_1 = __pyx_t_4; + __pyx_t_4 = 0; } __pyx_v_mode_code = __pyx_t_1; __pyx_t_1 = 0; /* "planarity/full/graph.pyx":224 - * else (cgraphLib.WRITE_G6 if mode == "g" + * else (graphLib.WRITE_G6 if mode == "g" * else None))) * if not mode_code: # <<<<<<<<<<<<<< * raise ValueError( * f"Invalid graph format specifier \"{mode}\" is not one of " */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 224, __pyx_L1_error) - __pyx_t_4 = (!__pyx_t_2); - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = (!__pyx_t_2); + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":225 * else None))) @@ -8136,7 +8203,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx * f"Invalid graph format specifier \"{mode}\" is not one of " * "'gam'." */ - __pyx_t_3 = NULL; + __pyx_t_4 = NULL; /* "planarity/full/graph.pyx":226 * if not mode_code: @@ -8145,21 +8212,21 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx * "'gam'." * ) */ - __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_graph_format_specifier; - __pyx_t_8[1] = __pyx_t_5; - __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_is_not_one_of_gam; - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 32 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 22, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5)); - if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_9 = 1; + __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_graph_format_specifier; + __pyx_t_9[1] = __pyx_t_6; + __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_is_not_one_of_gam; + __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 32 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 22, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6)); + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 226, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_10 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7}; - __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8}; + __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } @@ -8168,7 +8235,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __PYX_ERR(0, 225, __pyx_L1_error) /* "planarity/full/graph.pyx":224 - * else (cgraphLib.WRITE_G6 if mode == "g" + * else (graphLib.WRITE_G6 if mode == "g" * else None))) * if not mode_code: # <<<<<<<<<<<<<< * raise ValueError( @@ -8197,41 +8264,42 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_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) != OK: + * if graphLib.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, 232, __pyx_L1_error) - __pyx_v_theFileName = __pyx_t_10; + __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L1_error) + __pyx_v_theFileName = __pyx_t_11; /* "planarity/full/graph.pyx":234 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< + * if graphLib.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, 234, __pyx_L1_error) - __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, 234, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error) + __pyx_t_13 = __pyx_f_9planarity_4full_8graphLib_gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_12); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __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, 234, __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, 234, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 234, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 234, __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, 234, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 234, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":235 * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< * f"gp_Write() of graph to '{outfile_name}' failed." * ) */ - __pyx_t_7 = NULL; + __pyx_t_8 = NULL; /* "planarity/full/graph.pyx":236 - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." # <<<<<<<<<<<<<< * ) @@ -8239,30 +8307,30 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __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_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_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 236, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); + __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_gp_Write_of_graph_to; + __pyx_t_9[1] = __pyx_t_1; + __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_failed; + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_9 = 1; + __pyx_t_10 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; - __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_3)) __PYX_ERR(0, 235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; + __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 235, __pyx_L1_error) /* "planarity/full/graph.pyx":234 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." */ @@ -8272,8 +8340,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< - * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ /* function exit code */ @@ -8282,8 +8350,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_7); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Write", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -8298,7 +8367,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") */ @@ -8348,11 +8417,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -8361,45 +8431,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla /* "planarity/full/graph.pyx":240 * * def gp_ExtendWith_DrawPlanar(self): - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __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, 240, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 240, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __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, 240, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 240, __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, 240, __pyx_L1_error) __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, 240, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 240, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":241 * def gp_ExtendWith_DrawPlanar(self): - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: + * if graphLib.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_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 241, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Draw}; + __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, 241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 241, __pyx_L1_error) /* "planarity/full/graph.pyx":240 * * def gp_ExtendWith_DrawPlanar(self): - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ @@ -8409,7 +8480,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") */ @@ -8417,9 +8488,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_DrawPlanar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -8476,7 +8547,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,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, 243, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 243, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -8539,12 +8610,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; - PyObject *__pyx_t_3 = NULL; + int __pyx_t_3; PyObject *__pyx_t_4 = NULL; - int __pyx_t_5; - PyObject *__pyx_t_6[3]; - PyObject *__pyx_t_7 = NULL; - size_t __pyx_t_8; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + PyObject *__pyx_t_7[3]; + PyObject *__pyx_t_8 = NULL; + size_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -8571,7 +8643,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: + * if graphLib.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, 246, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_2; @@ -8579,55 +8651,56 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT /* "planarity/full/graph.pyx":248 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ - __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, 248, __pyx_L1_error) + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __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, 248, __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, 248, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 248, __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, 248, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(__pyx_t_5)) { + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(__pyx_t_6)) { /* "planarity/full/graph.pyx":249 * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: + * if graphLib.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_3 = NULL; + __pyx_t_4 = NULL; __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 249, __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_1; - __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u__3; - __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, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); + __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_fi; + __pyx_t_7[1] = __pyx_t_1; + __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; + __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 36 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 2, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_8 = 1; + __pyx_t_9 = 1; { - 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_4)) __PYX_ERR(0, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8}; + __pyx_t_5 = __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_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); } - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 249, __pyx_L1_error) /* "planarity/full/graph.pyx":248 * cdef const char *theFileName = encoded * - * if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ @@ -8646,9 +8719,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_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_7); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToFile", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -8663,7 +8736,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< * cdef char* renditionString = NULL - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: */ /* Python wrapper */ @@ -8714,16 +8787,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_v_string_conversion_error = NULL; 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; - int __pyx_t_4; - size_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_4 = NULL; + int __pyx_t_5; + size_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; - Py_ssize_t __pyx_t_9; - int __pyx_t_10; + PyObject *__pyx_t_9 = NULL; + Py_ssize_t __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; int __pyx_t_13; @@ -8744,7 +8817,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL # <<<<<<<<<<<<<< - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: * raise RuntimeError(f"Failed to render embedding to C string.") */ __pyx_v_renditionString = NULL; @@ -8752,45 +8825,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT /* "planarity/full/graph.pyx":253 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to C string.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __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, 253, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 253, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __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, 253, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 253, __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, 253, __pyx_L1_error) __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, 253, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 253, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":254 * cdef char* renditionString = NULL - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: * raise RuntimeError(f"Failed to render embedding to C string.") # <<<<<<<<<<<<<< * * try: */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_C}; - __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, 254, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_C}; + __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, 254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 254, __pyx_L1_error) /* "planarity/full/graph.pyx":253 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to C string.") * */ @@ -8807,10 +8881,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign - __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8); - __Pyx_XGOTREF(__pyx_t_6); + __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); + __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { /* "planarity/full/graph.pyx":257 @@ -8821,11 +8895,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * raise RuntimeError( */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 257, __pyx_L7_error) - __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_9, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 257, __pyx_L7_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_r = __pyx_t_3; - __pyx_t_3 = 0; + __pyx_t_10 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(0, 257, __pyx_L7_error) + __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_10, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 257, __pyx_L7_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L11_try_return; /* "planarity/full/graph.pyx":256 @@ -8837,9 +8911,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ } __pyx_L7_error:; - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":258 * try: @@ -8848,15 +8922,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * raise RuntimeError( * "Failed to convert C string to Python string." */ - __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception)))); - if (__pyx_t_10) { + __pyx_t_1 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception)))); + if (__pyx_t_1) { __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToString", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 258, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 258, __pyx_L9_except_error) + __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); - __Pyx_XGOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_t_2); - __pyx_v_string_conversion_error = __pyx_t_2; + __Pyx_INCREF(__pyx_t_3); + __pyx_v_string_conversion_error = __pyx_t_3; /*try:*/ { /* "planarity/full/graph.pyx":259 @@ -8867,10 +8941,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * ) from string_conversion_error */ __pyx_t_12 = NULL; - __pyx_t_5 = 1; + __pyx_t_6 = 1; { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_mstate_global->__pyx_kp_u_Failed_to_convert_C_string_to_Py}; - __pyx_t_11 = __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_t_11 = __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_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 259, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_11); @@ -8911,7 +8985,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); - __pyx_t_10 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; + __pyx_t_1 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; { __Pyx_DECREF(__pyx_v_string_conversion_error); __pyx_v_string_conversion_error = 0; } @@ -8924,7 +8998,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; - __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; + __pyx_lineno = __pyx_t_1; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; goto __pyx_L9_except_error; } } @@ -8939,16 +9013,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * except Exception as string_conversion_error: */ __pyx_L9_except_error:; - __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); - __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); + __Pyx_XGIVEREF(__pyx_t_9); + __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); goto __pyx_L5_error; __pyx_L11_try_return:; - __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); - __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); + __Pyx_XGIVEREF(__pyx_t_9); + __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); goto __pyx_L4_return; } } @@ -8965,21 +9039,21 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign - __pyx_t_8 = 0; __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_9 = 0; __pyx_t_8 = 0; __pyx_t_7 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18); - if ( unlikely(__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_6) < 0)) __Pyx_ErrFetch(&__pyx_t_8, &__pyx_t_7, &__pyx_t_6); + if ( unlikely(__Pyx_GetException(&__pyx_t_9, &__pyx_t_8, &__pyx_t_7) < 0)) __Pyx_ErrFetch(&__pyx_t_9, &__pyx_t_8, &__pyx_t_7); + __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_7); - __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_18); - __pyx_t_13 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_21 = __pyx_filename; + __pyx_t_13 = __pyx_lineno; __pyx_t_1 = __pyx_clineno; __pyx_t_21 = __pyx_filename; { free(__pyx_v_renditionString); } @@ -8987,12 +9061,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_19, __pyx_t_18); + __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); - __Pyx_XGIVEREF(__pyx_t_6); - __Pyx_ErrRestore(__pyx_t_8, __pyx_t_7, __pyx_t_6); - __pyx_t_8 = 0; __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; - __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_21; + __Pyx_ErrRestore(__pyx_t_9, __pyx_t_8, __pyx_t_7); + __pyx_t_9 = 0; __pyx_t_8 = 0; __pyx_t_7 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; + __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_1; __pyx_filename = __pyx_t_21; goto __pyx_L1_error; } __pyx_L4_return: { @@ -9010,14 +9084,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< * cdef char* renditionString = NULL - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: */ /* 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_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToString", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -9033,7 +9107,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ @@ -9083,11 +9157,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerplanarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -9096,45 +9171,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl /* "planarity/full/graph.pyx":266 * * def gp_ExtendWith_Outerplanarity(self): - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __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, 266, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 266, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __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, 266, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 266, __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, 266, __pyx_L1_error) __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, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 266, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":267 * def gp_ExtendWith_Outerplanarity(self): - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") # <<<<<<<<<<<<<< * * def gp_ExtendWith_Planarity(self): */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Oute}; + __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, 267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 267, __pyx_L1_error) /* "planarity/full/graph.pyx":266 * * def gp_ExtendWith_Outerplanarity(self): - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * */ @@ -9144,7 +9220,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ @@ -9152,9 +9228,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Outerplanarity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -9167,7 +9243,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") */ @@ -9217,11 +9293,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { 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; - int __pyx_t_4; - size_t __pyx_t_5; + 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; @@ -9230,45 +9307,46 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari /* "planarity/full/graph.pyx":270 * * def gp_ExtendWith_Planarity(self): - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ - __pyx_t_1 = __Pyx_PyLong_From_int(gp_ExtendWith_Planarity(__pyx_v_self->_theGraph)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __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, 270, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 270, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __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, 270, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __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, 270, __pyx_L1_error) __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, 270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(__pyx_t_4)) { + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 270, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { /* "planarity/full/graph.pyx":271 * def gp_ExtendWith_Planarity(self): - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") # <<<<<<<<<<<<<< * * def gp_Embed(self, int embedFlags) -> int: */ - __pyx_t_2 = NULL; - __pyx_t_5 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - 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, 271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Plan}; + __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, 271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 271, __pyx_L1_error) /* "planarity/full/graph.pyx":270 * * def gp_ExtendWith_Planarity(self): - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ @@ -9278,7 +9356,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") */ @@ -9286,9 +9364,9 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_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_XDECREF(__pyx_t_4); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Planarity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -9301,7 +9379,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: */ @@ -9345,7 +9423,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_embedFlags,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, 273, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 273, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -9396,11 +9474,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - int __pyx_t_5; - size_t __pyx_t_6; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9409,69 +9488,70 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx /* "planarity/full/graph.pyx":274 * * def gp_Embed(self, int embedFlags) -> int: - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< + * embed_result = graphLib.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); + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error) + __pyx_v_embed_result = __pyx_t_1; /* "planarity/full/graph.pyx":275 * def gp_Embed(self, int embedFlags) -> int: - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * embed_result = graphLib.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, 275, __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, 275, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __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, 275, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L1_error) __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, 275, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (__pyx_t_5) { + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 275, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (__pyx_t_6) { } else { - __pyx_t_1 = __pyx_t_5; + __pyx_t_2 = __pyx_t_6; 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, 275, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __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, 275, __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, 275, __pyx_L1_error) + __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 275, __pyx_L1_error) __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, 275, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_1 = __pyx_t_5; + __pyx_t_2 = __pyx_t_6; __pyx_L4_bool_binop_done:; - if (unlikely(__pyx_t_1)) { + if (unlikely(__pyx_t_2)) { /* "planarity/full/graph.pyx":276 - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * embed_result = graphLib.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; + __pyx_t_4 = NULL; + __pyx_t_7 = 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, 276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_to_perform_embed_operatio}; + __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_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 276, __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, 276, __pyx_L1_error) /* "planarity/full/graph.pyx":275 * def gp_Embed(self, int embedFlags) -> int: - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to perform embed operation.") * @@ -9486,26 +9566,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 278, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 278, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_3); + __pyx_t_3 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":273 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Embed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -9518,7 +9598,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * check_result = cgraphLib.gp_TestEmbedResultIntegrity( + * check_result = graphLib.gp_TestEmbedResultIntegrity( * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ @@ -9563,7 +9643,7 @@ 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, 280, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 280, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 2: @@ -9631,11 +9711,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - int __pyx_t_5; - size_t __pyx_t_6; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -9644,11 +9725,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt /* "planarity/full/graph.pyx":281 * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: - * check_result = cgraphLib.gp_TestEmbedResultIntegrity( # <<<<<<<<<<<<<< + * check_result = graphLib.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); + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 281, __pyx_L1_error) + __pyx_v_check_result = __pyx_t_1; /* "planarity/full/graph.pyx":284 * self._theGraph, copy_of_orig_graph._theGraph, embed_result @@ -9657,32 +9739,32 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt * 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, 284, __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, 284, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __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, 284, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L1_error) __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, 284, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (__pyx_t_5) { + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (__pyx_t_6) { } else { - __pyx_t_1 = __pyx_t_5; + __pyx_t_2 = __pyx_t_6; 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, 284, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __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, 284, __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, 284, __pyx_L1_error) + __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 284, __pyx_L1_error) __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, 284, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_1 = __pyx_t_5; + __pyx_t_2 = __pyx_t_6; __pyx_L4_bool_binop_done:; - if (unlikely(__pyx_t_1)) { + if (unlikely(__pyx_t_2)) { /* "planarity/full/graph.pyx":285 * ) @@ -9691,17 +9773,17 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt * * return check_result */ - __pyx_t_3 = NULL; - __pyx_t_6 = 1; + __pyx_t_4 = NULL; + __pyx_t_7 = 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, 285, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_embed_integrity_check}; + __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_4); __pyx_t_4 = 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 @@ -9717,30 +9799,28 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt * raise RuntimeError("Failed embed integrity check.") * * return check_result # <<<<<<<<<<<<<< - * - * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 287, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 287, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_3); + __pyx_t_3 = 0; goto __pyx_L0; /* "planarity/full/graph.pyx":280 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * check_result = cgraphLib.gp_TestEmbedResultIntegrity( + * check_result = graphLib.gp_TestEmbedResultIntegrity( * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("planarity.full.graph.Graph.gp_TestEmbedResultIntegrity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -9877,7 +9957,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0}; const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 3, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 3, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: @@ -9954,356 +10034,6 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(C __Pyx_RefNannyFinishContext(); return __pyx_r; } - -/* "planarity/full/graph.pyx":290 - * - * - * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< - * return capiutils.gp_GetQuietModeFlag() - * -*/ - -/* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_1gp_GetQuietModeFlag(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_gp_GetQuietModeFlag, "gp_GetQuietModeFlag() -> int"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_1gp_GetQuietModeFlag = {"gp_GetQuietModeFlag", (PyCFunction)__pyx_pw_9planarity_4full_5graph_1gp_GetQuietModeFlag, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_gp_GetQuietModeFlag}; -static PyObject *__pyx_pw_9planarity_4full_5graph_1gp_GetQuietModeFlag(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { - CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_GetQuietModeFlag (wrapper)", 0); - __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); - __pyx_r = __pyx_pf_9planarity_4full_5graph_gp_GetQuietModeFlag(__pyx_self); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_9planarity_4full_5graph_gp_GetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_GetQuietModeFlag", 0); - - /* "planarity/full/graph.pyx":291 - * - * def gp_GetQuietModeFlag() -> int: - * return capiutils.gp_GetQuietModeFlag() # <<<<<<<<<<<<<< - * - * -*/ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetQuietModeFlag()); 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; - goto __pyx_L0; - - /* "planarity/full/graph.pyx":290 - * - * - * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< - * return capiutils.gp_GetQuietModeFlag() - * -*/ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("planarity.full.graph.gp_GetQuietModeFlag", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "planarity/full/graph.pyx":294 - * - * - * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< - * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) - * -*/ - -/* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_3gp_SetQuietModeFlag(PyObject *__pyx_self, -#if CYTHON_METH_FASTCALL -PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds -#else -PyObject *__pyx_args, PyObject *__pyx_kwds -#endif -); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_2gp_SetQuietModeFlag, "gp_SetQuietModeFlag(int newQuietModeFlag) -> None"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_3gp_SetQuietModeFlag = {"gp_SetQuietModeFlag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_3gp_SetQuietModeFlag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_2gp_SetQuietModeFlag}; -static PyObject *__pyx_pw_9planarity_4full_5graph_3gp_SetQuietModeFlag(PyObject *__pyx_self, -#if CYTHON_METH_FASTCALL -PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds -#else -PyObject *__pyx_args, PyObject *__pyx_kwds -#endif -) { - int __pyx_v_newQuietModeFlag; - #if !CYTHON_METH_FASTCALL - CYTHON_UNUSED Py_ssize_t __pyx_nargs; - #endif - CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject* values[1] = {0}; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_SetQuietModeFlag (wrapper)", 0); - #if !CYTHON_METH_FASTCALL - #if CYTHON_ASSUME_SAFE_SIZE - __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); - #else - __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; - #endif - #endif - __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - { - PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_newQuietModeFlag,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, 294, __pyx_L3_error) - if (__pyx_kwds_len > 0) { - switch (__pyx_nargs) { - case 1: - values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - 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_SetQuietModeFlag", 0) < (0)) __PYX_ERR(0, 294, __pyx_L3_error) - for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, i); __PYX_ERR(0, 294, __pyx_L3_error) } - } - } else if (unlikely(__pyx_nargs != 1)) { - 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, 294, __pyx_L3_error) - } - __pyx_v_newQuietModeFlag = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_newQuietModeFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 294, __pyx_L3_error) - } - goto __pyx_L6_skip; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 294, __pyx_L3_error) - __pyx_L6_skip:; - goto __pyx_L4_argument_unpacking_done; - __pyx_L3_error:; - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - __Pyx_AddTraceback("planarity.full.graph.gp_SetQuietModeFlag", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_2gp_SetQuietModeFlag(__pyx_self, __pyx_v_newQuietModeFlag); - - /* function exit code */ - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_9planarity_4full_5graph_2gp_SetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_newQuietModeFlag) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_SetQuietModeFlag", 0); - - /* "planarity/full/graph.pyx":295 - * - * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: - * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) # <<<<<<<<<<<<<< - * - * -*/ - gp_SetQuietModeFlag(__pyx_v_newQuietModeFlag); - - /* "planarity/full/graph.pyx":294 - * - * - * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< - * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) - * -*/ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "planarity/full/graph.pyx":298 - * - * - * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< - * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() - * return encoded_version.decode('utf-8') -*/ - -/* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_4gp_GetProjectVersionFull, "gp_GetProjectVersionFull()"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5gp_GetProjectVersionFull = {"gp_GetProjectVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_5graph_5gp_GetProjectVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_4gp_GetProjectVersionFull}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { - CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_GetProjectVersionFull (wrapper)", 0); - __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); - __pyx_r = __pyx_pf_9planarity_4full_5graph_4gp_GetProjectVersionFull(__pyx_self); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_9planarity_4full_5graph_4gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { - PyObject *__pyx_v_encoded_version = 0; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_GetProjectVersionFull", 0); - - /* "planarity/full/graph.pyx":299 - * - * def gp_GetProjectVersionFull(): - * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() # <<<<<<<<<<<<<< - * return encoded_version.decode('utf-8') - * -*/ - __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetProjectVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "planarity/full/graph.pyx":300 - * def gp_GetProjectVersionFull(): - * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() - * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< - * - * -*/ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "planarity/full/graph.pyx":298 - * - * - * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< - * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() - * return encoded_version.decode('utf-8') -*/ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("planarity.full.graph.gp_GetProjectVersionFull", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_encoded_version); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "planarity/full/graph.pyx":303 - * - * - * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< - * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() - * return encoded_version.decode('utf-8') -*/ - -/* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull, "gp_GetLibPlanarityVersionFull()"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull = {"gp_GetLibPlanarityVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull}; -static PyObject *__pyx_pw_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { - CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull (wrapper)", 0); - __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); - __pyx_r = __pyx_pf_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull(__pyx_self); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_9planarity_4full_5graph_6gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { - PyObject *__pyx_v_encoded_version = 0; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull", 0); - - /* "planarity/full/graph.pyx":304 - * - * def gp_GetLibPlanarityVersionFull(): - * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() # <<<<<<<<<<<<<< - * return encoded_version.decode('utf-8') -*/ - __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetLibPlanarityVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "planarity/full/graph.pyx":305 - * def gp_GetLibPlanarityVersionFull(): - * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() - * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< -*/ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 305, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "planarity/full/graph.pyx":303 - * - * - * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< - * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() - * return encoded_version.decode('utf-8') -*/ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("planarity.full.graph.gp_GetLibPlanarityVersionFull", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_encoded_version); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} /* #### Code section: module_exttypes ### */ static PyObject *__pyx_tp_new_9planarity_4full_5graph_Graph(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { @@ -10577,10 +10307,38 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) { static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) { __Pyx_RefNannyDeclarations CYTHON_UNUSED_VAR(__pyx_mstate); + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ + { + __pyx_t_1 = PyImport_ImportModule("planarity.full.graphLib"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_graphP_graphP_graphP_void_int_gr); + #if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error) + #endif + const char * __pyx_import_name = __pyx_import_signature + 312; + void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DupGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_New, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetN, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Read, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Write, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_InitGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsVertex, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_FindEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_AddEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Embed, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Free, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph, (void (**)(void)) NULL}; + void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers; + const char *__pyx_import_current_signature = __pyx_import_signature; + while (*__pyx_import_pointer) { + if (__Pyx_ImportFunction_3_2_5(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + ++__pyx_import_pointer; + __pyx_import_name = strchr(__pyx_import_name, '\0') + 1; + __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1; + if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature; + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } __Pyx_RefNannyFinishContext(); return 0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_RefNannyFinishContext(); + return -1; } #if CYTHON_PEP489_MULTI_PHASE_INIT @@ -10763,7 +10521,8 @@ static CYTHON_SMALL_CODE int __pyx_pymod_exec_graph(PyObject *__pyx_pyinit_modul __pyx_mstatetype *__pyx_mstate = NULL; PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; + Py_ssize_t __pyx_t_3; + PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -10847,255 +10606,312 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) (void)__Pyx_modinit_type_import_code(__pyx_mstate); (void)__Pyx_modinit_variable_import_code(__pyx_mstate); - (void)__Pyx_modinit_function_import_code(__pyx_mstate); + if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Execution code ---*/ + /* "planarity/full/graph.pyx":13 + * from planarity.full cimport graphLib + * + * from planarity.full import graphLib # <<<<<<<<<<<<<< + * + * +*/ + { + PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_graphLib}; + __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_planarity_full, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) + } + __pyx_t_2 = __pyx_t_1; + __Pyx_GOTREF(__pyx_t_2); + { + PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_graphLib}; + __pyx_t_3 = 0; { + __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 13, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + /* "planarity/full/graph.pyx":16 - * from planarity.full cimport cgraphLib * - * OK = cappconst.OK # <<<<<<<<<<<<<< - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * + * OK = graphLib.OK # <<<<<<<<<<<<<< + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE */ - __pyx_t_2 = __Pyx_PyLong_From_int(OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OK, __pyx_t_2) < (0)) __PYX_ERR(0, 16, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OK, __pyx_t_4) < (0)) __PYX_ERR(0, 16, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":17 * - * OK = cappconst.OK - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE - * NOTOK = cappconst.NOTOK + * OK = graphLib.OK + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE + * NOTOK = graphLib.NOTOK */ - __pyx_t_2 = __Pyx_PyLong_From_int(AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":18 - * OK = cappconst.OK - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< - * NOTOK = cappconst.NOTOK - * NIL = cappconst.NIL + * OK = graphLib.OK + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< + * NOTOK = graphLib.NOTOK + * NIL = graphLib.NIL */ - __pyx_t_2 = __Pyx_PyLong_From_int(NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_4) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":19 - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE - * NOTOK = cappconst.NOTOK # <<<<<<<<<<<<<< - * NIL = cappconst.NIL + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE + * NOTOK = graphLib.NOTOK # <<<<<<<<<<<<<< + * NIL = graphLib.NIL * */ - __pyx_t_2 = __Pyx_PyLong_From_int(NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":20 - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE - * NOTOK = cappconst.NOTOK - * NIL = cappconst.NIL # <<<<<<<<<<<<<< + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE + * NOTOK = graphLib.NOTOK + * NIL = graphLib.NIL # <<<<<<<<<<<<<< * - * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR + * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR */ - __pyx_t_2 = __Pyx_PyLong_From_int(NIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_2) < (0)) __PYX_ERR(0, 20, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NIL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_4) < (0)) __PYX_ERR(0, 20, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":22 - * NIL = cappconst.NIL + * NIL = graphLib.NIL * - * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR # <<<<<<<<<<<<<< - * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR - * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR # <<<<<<<<<<<<<< + * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR + * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":23 * - * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR - * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR # <<<<<<<<<<<<<< - * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR - * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR + * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR # <<<<<<<<<<<<<< + * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_4) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":24 - * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR - * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR - * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR # <<<<<<<<<<<<<< - * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 - * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 + * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR + * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR + * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":25 - * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR - * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR - * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 # <<<<<<<<<<<<<< - * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 - * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 + * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR + * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 + * EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_4) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":26 - * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR - * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 - * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 # <<<<<<<<<<<<<< - * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 + * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 * */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":27 - * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 - * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 - * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 + * EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 # <<<<<<<<<<<<<< * * */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_4) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":41 - * cgraphLib.gp_Free(&self._theGraph) + * graphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< - * if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: + * if graphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_5gp_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[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_5gp_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[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_InitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 41, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_InitGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 41, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":45 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< - * cgraphLib.gp_ReinitGraph(self._theGraph) + * graphLib.gp_ReinitGraph(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_7gp_ReinitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ReinitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_7gp_ReinitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ReinitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ReinitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 45, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ReinitGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 45, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":48 - * cgraphLib.gp_ReinitGraph(self._theGraph) + * graphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< - * if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: + * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_9gp_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[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_9gp_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[2])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 48, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 48, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_t_4) < (0)) __PYX_ERR(0, 48, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":54 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + * return graphLib.gp_GetEdgeCapacity(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_11gp_GetEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_11gp_GetEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 54, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetEdgeCapacity, __pyx_t_4) < (0)) __PYX_ERR(0, 54, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":57 - * return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + * return graphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< * """ * Returns the number of vertices in the graph. */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 57, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_13gp_GetN, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetN, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_13gp_GetN, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetN, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_t_2) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_t_3) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "planarity/full/graph.pyx":66 - * return cgraphLib.gp_GetN(self._theGraph) + * return graphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_15gp_CopyGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_CopyGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_15gp_CopyGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_CopyGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_CopyGraph, __pyx_t_3) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) - __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_CopyGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":90 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< - * cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __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_Graph) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_17gp_DupGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DupGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Graph) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_17gp_DupGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DupGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #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_DupGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DupGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":101 * return new_graph @@ -11104,43 +10920,43 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_19gp_FindEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_FindEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_19gp_FindEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_FindEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_FindEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 101, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_FindEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 101, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":109 - * return cgraphLib.gp_FindEdge(self._theGraph, u, v) + * return graphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_21gp_GetVertexDegree, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetVertexDegree, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 109, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_21gp_GetVertexDegree, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetVertexDegree, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetVertexDegree, __pyx_t_2) < (0)) __PYX_ERR(0, 109, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetVertexDegree, __pyx_t_4) < (0)) __PYX_ERR(0, 109, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":115 - * return cgraphLib.gp_GetVertexDegree(self._theGraph, v) + * return graphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< * if ulink != 0 and ulink != 1: * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_23gp_AddEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_AddEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_23gp_AddEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_AddEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_AddEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 115, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_AddEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 115, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":130 * ) @@ -11149,58 +10965,58 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_25gp_DeleteEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DeleteEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_25gp_DeleteEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DeleteEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DeleteEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 130, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DeleteEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 130, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":138 - * return cgraphLib.gp_DeleteEdge(self._theGraph, e) + * return graphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_27gp_LowerBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_27gp_LowerBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 138, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_t_4) < (0)) __PYX_ERR(0, 138, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":141 - * return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 141, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_t_4) < (0)) __PYX_ERR(0, 141, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":144 - * return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 144, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 144, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":151 * ) @@ -11209,163 +11025,163 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EdgeInUse, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EdgeInUse, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EdgeInUse, __pyx_t_2) < (0)) __PYX_ERR(0, 151, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EdgeInUse, __pyx_t_4) < (0)) __PYX_ERR(0, 151, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":159 - * return cgraphLib.gp_EdgeInUse(self._theGraph, e) + * return graphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) + * return graphLib.gp_UpperBoundEdges(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_2)) __PYX_ERR(0, 159, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_4)) __PYX_ERR(0, 159, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 159, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_4) < (0)) __PYX_ERR(0, 159, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":162 - * return cgraphLib.gp_UpperBoundEdges(self._theGraph) + * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 162, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":170 - * return cgraphLib.gp_GetNextEdge(self._theGraph, e) + * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_2) < (0)) __PYX_ERR(0, 170, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_4) < (0)) __PYX_ERR(0, 170, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":178 - * return cgraphLib.gp_GetNeighbor(self._theGraph, e) + * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 178, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 178, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 178, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":186 - * return cgraphLib.gp_GetFirstEdge(self._theGraph, v) + * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) + * return graphLib.gp_LowerBoundVertices(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 186, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_4) < (0)) __PYX_ERR(0, 186, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":189 - * return cgraphLib.gp_LowerBoundVertices(self._theGraph) + * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) + * return graphLib.gp_UpperBoundVertices(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 189, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_4) < (0)) __PYX_ERR(0, 189, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":192 - * return cgraphLib.gp_UpperBoundVertices(self._theGraph) + * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< * return ( * (v >= self.gp_LowerBoundVertices()) and */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_2) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_4) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":199 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * if graphLib.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_49gp_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[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_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[22])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_2) < (0)) __PYX_ERR(0, 199, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_4) < (0)) __PYX_ERR(0, 199, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":203 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * if graphLib.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_51gp_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[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_51gp_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[23])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 203, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_2) < (0)) __PYX_ERR(0, 203, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_4) < (0)) __PYX_ERR(0, 203, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":207 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * if graphLib.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_53gp_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[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_53gp_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[24])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_2) < (0)) __PYX_ERR(0, 207, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_4) < (0)) __PYX_ERR(0, 207, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":211 * raise RuntimeError("Failed to extend graph with K4Search structures.") @@ -11374,43 +11190,43 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_2) < (0)) __PYX_ERR(0, 211, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_4) < (0)) __PYX_ERR(0, 211, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":219 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< - * mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" - * else (cgraphLib.WRITE_ADJMATRIX if mode == "m" + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_2) < (0)) __PYX_ERR(0, 219, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_4) < (0)) __PYX_ERR(0, 219, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":239 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: + * if graphLib.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_59gp_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[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_59gp_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[27])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_2) < (0)) __PYX_ERR(0, 239, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_4) < (0)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":243 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") @@ -11419,111 +11235,111 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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, 243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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_4)) __PYX_ERR(0, 243, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_2) < (0)) __PYX_ERR(0, 243, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_4) < (0)) __PYX_ERR(0, 243, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":251 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< * cdef char* renditionString = NULL - * if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: + * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_2) < (0)) __PYX_ERR(0, 251, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_4) < (0)) __PYX_ERR(0, 251, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":265 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * if graphLib.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_65gp_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[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_65gp_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[30])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_2) < (0)) __PYX_ERR(0, 265, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_4) < (0)) __PYX_ERR(0, 265, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":269 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * if graphLib.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_67gp_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[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_67gp_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[31])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_2) < (0)) __PYX_ERR(0, 269, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_4) < (0)) __PYX_ERR(0, 269, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":273 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + * embed_result = graphLib.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, 273, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 273, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 273, __pyx_L1_error) - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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_3)) __PYX_ERR(0, 273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Embed, __pyx_t_2) < (0)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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, 273, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "planarity/full/graph.pyx":280 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * check_result = cgraphLib.gp_TestEmbedResultIntegrity( + * check_result = graphLib.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, 280, __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, 280, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 280, __pyx_L1_error) + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #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, 280, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_t_4) < (0)) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___reduce_cython, 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(1, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___reduce_cython, 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_4)) __PYX_ERR(1, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(1, 1, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(1, 1, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":3 * def __reduce_cython__(self): @@ -11531,100 +11347,30 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); - #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(1, 3, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "planarity/full/graph.pyx":290 - * - * - * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< - * return capiutils.gp_GetQuietModeFlag() - * -*/ - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_1gp_GetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, 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_3)) __PYX_ERR(0, 290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); - #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, __pyx_t_3) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "planarity/full/graph.pyx":294 - * - * - * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< - * capiutils.gp_SetQuietModeFlag(newQuietModeFlag) - * -*/ - __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_None) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_3gp_SetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); 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 (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, __pyx_t_2) < (0)) __PYX_ERR(0, 294, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "planarity/full/graph.pyx":298 - * - * - * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< - * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() - * return encoded_version.decode('utf-8') -*/ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5gp_GetProjectVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 298, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); - #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 298, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "planarity/full/graph.pyx":303 - * - * - * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< - * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() - * return encoded_version.decode('utf-8') -*/ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_7gp_GetLibPlanarityVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 3, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 303, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(1, 3, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "planarity/full/graph.pyx":1 * #!/usr/bin/env python # <<<<<<<<<<<<<< * # cython: embedsignature=True * """ */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_4 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_4) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); if (__pyx_m) { if (__pyx_mstate->__pyx_d && stringtab_initialized) { __Pyx_AddTraceback("init planarity.full.graph", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -11680,39 +11426,39 @@ 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[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{27},{13},{20},{33},{30},{24},{27},{14},{3},{13},{5},{4},{2},{20},{1},{18},{12},{18},{18},{1},{10},{12},{7},{15},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{29},{7},{14},{14},{24},{19},{18},{12},{9},{11},{24},{21},{7},{14},{19},{27},{24},{18},{21},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{16},{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},{12},{38},{14},{27},{14},{27},{39},{130},{44},{44},{44},{45},{42},{69},{117},{27},{28},{11},{80},{27},{114},{14},{44},{51},{44},{44},{21},{21},{9},{13},{64},{57},{49}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2202 bytes) */ -const char* const cstring = "(\265/\375`\254\023\205D\000zZ\030\023H\360\314:\007\314\300\306\212\302\2075{4:\2541\342\246\301t\246hL\310\204\t\356\260[Jf'\037\204l-G\226\005\003|\367\276\317\177s\370\276s\r\035\017\037}\347\314\354\316\321\271r\227\315\021Qn\373\005h\362\037\001\004\001\025\001!\001#\221H\304b\260#8k2\212\330\237\201oA\020\2071\254g\364\177Lg\333\242\375\032\346\217\3034\333\371X\263\\\343\327\350y\210Q\217\313\375\373\235A+\272]\324\032\213l\177n\365\323:\307\257\355(\352\254,em\272nu\356a\036cV&Z\376\234\343\360\213\215\334\362\376=\210\337\330\252TP9a\235XV\357\357_\016?\226\303\0071\255\333\357\342\352\265\270\372o\217\"\307\211\354\312hs\331\206\3209l\220e\371{\033\267\035\253T3+\326\333l\354\212\316\235?hA\234N\215\300\027\221C\234{\326\331vQ[\236_DV\006\356\337Z\314\035\213\265-\312\366\333X\266\375}\224QI\241}\033\377+%\002\014\377=\366o\334X\343\220e\203\267\311\322z\266\2614\033\3363\013\352\357\271\327\"\255\353X3\235w\347\266d\373~\234\026?+\366\020\337\323>\253\353y\317\276\353\034\253\275\005?\314\0305\n\263\274\305+\023o\210\017\307\376\303\273_\235o\370\355\313_\347>\212[\374Fb\376\264\216c,{\327\355_6\345t\254{ad`d`2\253\223\312\3053\255dV\252\324\212\333l3)\376\256\316\037\226\371\177\371gx\213\3755\212.\373mD\025\377={\323\206\334Jg\024K%\205\346%\302\\\027\004\275\216;\357\317\357\375F_\303\253\0173J%\305%\203\322Pry\247\227\353\004\233\221qy+O\305\242\361\\\246\373z\361T(\323\311%\346\004K\305\244T\267\006\226*y,\257tO/\246\323\205y\343H\006\226\234\3166B\t\303Q\206r\357\027\342\214\313\273\237\350\021\264\367\3767\202\277\357\265=\034\261\354A+j\220\347\221\250\206\033\214\302\217\341\320b\221H&\366\274i@\374.\233_\365\254S\271-\306h\263\374\253\236\373\316wF\365\177\371>l\303\245=r-\3423:e\033E\331\256\234\276\177\370\246\021\221\322\265\315\276\331HfE\3173x[\254I\035\363V\262tR\325\3519ofFG\275\245-\03059A\263eb\340\264\225b@Y\316nb\263@\231 \355\244\025p\331*W\310\036\302\341*K:\202\206fH\014\331\201O\232Y\303\311\034\201O\016\307\206W\222\224\037\031k""\306g\007\002A\0360S\314\n\335M\306\305n@\200\023\236\t\022\031\"\rh\354@\032;Wk\375pV\027V\022\247\312\031:IT\0205\304h\010zKK\351\005\307\312\321AM'\351,\361X=>;\317D\313\3440;\346\247\364\370\344\334J\\\232\220\006.v\255\022\244\034q\243rsaA\3619\321)=\327{\354\277\265\230{\006u\356C<\336l\367\332D\333htm\376\352;^\235q\355\336\032\257]\236o\257a}?\3142\235_\017\2121\375\363\330\0227+\014G\324\206XV\335\331\275\237\036e\231\357\307]\360A\361\323\317g8D\375\337\341\031ba\242\374\365\377\270 \010\232\254= 0x030e0000 /* compression: zstd (2345 bytes) */ +const char* const cstring = "(\265/\375`\315\026\375H\000j^\350\023F\000\221\272\001\374?\337{\215:\326\267\216\257Q\307\327\250\343k\324\261~\034\356\215HdJ\266T\252O\336>'O\212\303\n\343}\257\377\317\207\246\335\347@\377\346|a\025\326\367\274\262\230\334=\234w?\013\2117\331\001\022\001'\001,\001\030\304\365|\272\256\302\365p?j\327CV\270:\006\352\013\2029|e\216\302\265~\335\306.^=\313^\327\262\354~O\316\256\347\271\365\321>\314&]\333\377\323}\203\267\303_\344\207\337\213\364\327\377O\263\320=_\321\006Q\210\252\244\272\274\353\377\355P\277v\250\301\321\375Y\366\257\376bJs1\245\277N\212\276\326\335\021\362\3324\310\367m\301w\010\341v\275a\373\323\243\277?\243P()\225\036U\356\010\337\337k\360\2025~\372\200\332\305\016\363\376\233\357\373E~\3756\351.\014\354\272sq\377,\316\272\010\353zT\215]\177\362D\024\222}=\353V\010\303\010\257;\371?\262g\236C\225J\356\244+\373[\345\312\306\334c\027\344\372\3334\027e\377\246\212\361\335\277\277\243\373\273\256q\361\273\342o\361i\331wo\177\367\230\376|\277f\372\202:\334\331\364\t\273\213\030&\342\026_~\351/\367\217\371\306\341\327\261\327|\177R\354\342\367\021\367\307o>g\r&&N,\227G\302\325:\241D\220<\\r\235X)0\315\302\377\333$\333M\205\361\210\223\021'\256\223T\tU\342\221R')\324)\345\307\021\345\3445\353{\355\332^\177[\307r\027\177\213\024K\272V\021Q^\367\230&\225\260\245\3706\251D\241\224\226\350ba\020\364~\376\376k\217\361\367\321\263\234\322\3416\211B\254\023S\210\021\313+\265X%\027\312\t\313Ky(U\212\307\"\341\226\211\2072\221J%$J\256\023\211\023\n\237p\235F\236\312\033\341\222\t\251\204]\036\371\361\201\304v\033?\"aH\302D0\376\302\274k\273\377\020N\202\027c\375\221\240\356\030\337\037\222\031\246\301+r\320\357O7\313\020>\241~\345\360\346\256\203\211\177\367\0240k\226\212N\235l]|\311b[\247\276M\177\337\267\351k\223\357\366\367\227\307<\352\244\347\235G\341\247\221\354\366\035)\351\257CM\372\2500\302c\354\213}`\267\323~\203\001)\t\372\317|\316\270\2544\025\304*m\200""\272N\357\214\221\325\225\352!\247\036\024L\215y\222\246\007\246\005\304\004`zX\255\234\365\262\242R\221\351`\203]\225 +\0046\332\313\003N\373\001\211h.\247\005I\300r\312~\361(`%\224~\345\200\201u\265\226c\345\\@gr\027C\275xHJq\363\263\342\231\247\021\nU\366\\!o\035k\273\232N\232\033\005\243\337g\341O\275\312p\273\216\035\223\306\027\342\213\312\327\375\ny\372\031\005Sz\022\265\355\217i#\340\312I?dCE4&s\034?zX\371K}q\031\220\017\331\204)\036\032_Qi#\320B\206\363\244\330\322\352\231\0209\003\3774)\352\332R\020\243FzU\360\256\202P\252\323f\366\326R]\037\367\242\016\034\341\207\2754\266\1772\275\314\031}\326[\332\342j\360\330\261\334Vxo\223\341\234%\017\362sU\356R\233I\207\203G\317=;A\254,\231 \216\375\253\026d\027\200\037\325\367\262\032\201\207\246\360\340\217(\355\367KT\260,r\r\010\375\307\317F\342\3459]b\357\230\376\305\352\317\002o\005\001\353\251\332'\t\200\304\010\223\340m\025\371\307\261)5\364\213\265\022^o\214\365;\201\352\035\003Ph\204\037\254_sp\320\352\3514\370W\201e\326\004\355GB^\240d\345\217\032x\363\361j\003l\235\327W\304y\032\312\014f\253\364\241\026\204v\324e\271\033k~\210&\002\326\334&\201\330=B\213\361\\\300\034-\006Z\370\013\314\007\2205S\311F\221.\002\016P\256\021K\273\253\206n\306+Q\377\222\371f\310h""\t\204\373q\346\355|\222h\360b=\001\031P\321S\240\240\005\320\013\020\265\026\010\214v\377%?\004\316\2644`{\210\255L\364\261*\364\010\202\336\371\251\000\205O\206\t\371\033\206\013\036\027s\006\242\036-\224\337\344\360DK\235\207B\203\272\202O\322\243\306\346\036/\035\345\2161,\\\037c\234\350\327\223\353}r\330,U\207\311\201\224\326\"Z`\357\241\263\233\020B\242<\367\032$\207oN?\373b\r5\3507\365\270\345?\275\003i\241\251\023\316\"\320\204\245\247-\317\226\301\2467\010\276s\016\010\026r\tD\211\304\220\371\252\264\256\375\332\252\322\244A\037\332\3255)\004\254\254\021\224\272C\355\303H\321\216a \002\355c#O\317\330\335u! \221L+\025k\275\205\354\264\217r\022\344\003\202AmA\234\311w}\262\230\ngI!\262\027\334\236tt\031(\tg\221F\372\334ZF\253\243=\300jI\"\3447jb\235\367\231\000R\217\3572\003"; + PyObject *data = __Pyx_DecompressString(cstring, 2345, 3); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (2389 bytes) */ -const char* const cstring = "BZh91AY&SY\000qW\351\000\001y\177\377\357\377\377\347\377\377\377\377\277\357\377\374\277\377\377\376@@@@@@@@@@@@@\000@\000`\t?\031\244T\267]v\335\231B\224\000\000\024\367\200\317\tDBLj14d\315\004\2316\024\364\322l\210\323\324\003\023@h4\320\r4i\240\321\220i\3522f\221\3514\320I \215&hS\323H\332\242~\244\375)\372\247\250\365=M\037\251\2444\032\r\032\003@\000\000\001\240h\000\320\000\rT\374\232\244\375)\264@\031\007\250hh\320\031\0004d\000\031\006\201\220\000\000\001\220\032\000\010\247\245M\006\230\214\002d\30214`\t\2400M\0320C&\230\000\000&@\302\001\200\202\014\000\023\000\0010L\000\000\000\000\023\000\230\010`\000\010\300\000\000H\220\231\0050M\023dOHjz\t\350\325<$\361OQ\247\250\000\000\000\000\000\000d\003\321=G\251J\261_\351>\330{\236\350\377\337\270\275\331\023\217G\245\223\364\322\340\224K\322\023S\227\375\014S\034\313\350\275IC\365\\!\266\306\r4\320\332cli\245cJ\n\351Wk\352HJ\n\331\244\224\313`I\021\223\312\313hm\211\273\204\022f|!\033EyZ\034\305x;R*j\304\225mYL\300\261P\331\212\357zT\232\363\022/\213\212\241!\350\224E\327\322\265\265t\335\242R'\232VX\375\233\364\376\177\217\323\343\215\324o\340;\254\210t?\007Q\333\221\026\3333\330\227\005\336W?O\014\177E[\031\227]H{\206\205\355v\220\3247\367I\013<\230C\264\027\272\231\332\341n=\305\317\242\310\254GB\212\267Q\323!:\2724Rg\375\356pM\257\235\020\210\346\034\325\276\027{pkp\265D\254~i3\343\325{6j\030O\204\343P\210\363\323w]F\270%\364\223\006\255\002\251R\226M\214gR\261\2201rZXd4)\365\342#\\\204\3744\206\352>Vv\360\2333\025\375\026Rh\203\304!\366\317\302K\260E T\307\205\237\235\331\273 \023\325+\006\031)2\241\363\023\215\307\307(\351Q\310xA\035\354\314\243\030\257Y\347L~n'\016^3\242^2\217\320u\274o\330v\334\017x\314\014\310C\014&i\315\331e\350SF\254\373\336n\23599PWI\322{\036me\032\326\013\264\025T=\032\212\252\252\260\207\242\372\374\360\202\222!\030\213R\313\205\210\335\n\347\300r\221\250\336U\327\337<-\321\266.W+6=\3450\3718\273\004\035\377Mu\025_gD\236\215[\232|\244\017d\210(\263\337\311s\224~\244\276nx\214Lm'""j\243-\344AF\356u\322\360\000zh\251Z\361\210\030!\367M\244F\341[\220\224\311\323\334\372\311\313\024U\\V+\014\310\252H\233\2318'!\200p\371\370\005\374W\300H\327\345\365\362\213\314\024\226>c\365c\312*\206\300_\323\3758\265n\0312\020\314\334\256\275\033\030B&\220\302\023\322x\264Z #e\220\245JGuv\271\362\335\333\247\026\013J\274\330|\375d\303.\305\244DA\021\007\364'\221\374\305\314\271\350\374\017\276\327\2070\342\333_-*iO5\253_\215\324\336<\202\261\2236<\350}\274\267r4&\225\354\345X\346\237\366\342\273\301\363\022\244\275\017K\223\244\212q\0364=\235\377ce(\344\367>\215\002\343W\367\311z\242T7X\231Be\226TU\025\264I\301d\263\311L\036\3665)\0206K\345\200\2253\223\331\3543a!^\266\344\271\207 -\275\300\251Y\373\036\010\273s\177\245\207\351\004\352\221\3157\331wL\275v\r\254\030\010\240\322\220\255\010\323t\306\317b\352#hQ@)\001\353\261\001@((\254\217\342\361#\241\202'Sf\266\235i\244\322.qH\344\231h\300\236\200\302\321at\250t#\0243\207u\234\251\274]\0109\0271Yd/\247\245\025u\370%\307i.\253\242\022\016\335#0-\337\347\321Hc\317\213\364\333\303z\033\n\300.\\\374\270\220\327\240Aai@\304[]\347\332\226\2564Z\243\215e$\227\227\300vR]=\251\312\030\244\300\356\261\355\321\264\314#\203E\030o)h\314F\350\013\"\352\206\311\212\355\220\261\265RI\343j1\214F\221\255\333'T\306\034(\005\370\361\321\231\267\331I\236''\r\021\000\231\031\244\2059!\265\004\231\000\022\202]#\203\302\226l\356%SK\t\215\022\027B\020\330\016\267\224)1Esw\216%\263i\325\333\264\345\323\0205\275\311Js\025\330\353\325e\"\371\"\\\t\226\337S+X[\355ct*\334dH0\271\320\276\351\311\322t\233n\353\217|\272\020O\261\201\3773:\314\353\220\226f\036\221\244=\023a\262\026\227\302\241Z\325\302\026\310\274~\016V2\357\014\027\ni\030\316vR\260\312\331\314\247\004\347<\316\223\232Ac\020x\362\320\243\357o\266\233n\003z\t\255G\240\330\206\006E1\027S[\337p\374\006\031\032\n\233p<\302\322\230\2166H\311b\351\261,\256VM\201\221\235\240\032E\255w6;(\002b\367f\223\212\333\207\362\262\344\233\257M3\0029\306$\306]t\213\223\244\370\243&np\335\361""\276\311\271\3160~\027\231\334\333nM\273\263D\245\025{\361\025\325G,)\023w\270~\027\rp<\251\025x\273\235\314y \324\321\235N\"\206\246\264\306\370\271\026\372p\322\005\t\242\0011\325\274\224\004\311\303!2\004\303\237\226G\237\\\0077\014\222;\374\253\t\347S\360\246hI\021u\362\323\004\315\010\302E\272\230=\020\224\214\265X\260\023\204\247e\3006;\360T\0262\327\202X\2549\322\362\202\231u\026C\033\033\033\033x\306\361\272\376\213\005X\306i\235\306l\341\360R\324\332cv:\335\261\256\006\201@\357\013\307\202E\327l\304\210nd\003\030\253\027m]\036%\252\2336J\253\2454\350\004LyX\237\0016\336-\034\351\204V\010~\376\206\232\005@.3\366.&\304\311\314\033\024\204\020\207e\030\262\275{H\025q!\264+\370\354\215\227\350\320\252Xm\203\007\221\306\225X\224\272\003\342..\343\031\222\313*\235\223\010\010M\262\235\302\306\351G\215>s\224\3038],\250\\]\220\260\341\370b;\306\343EN\340m\\`\204u8\322\323m`NYQ$\003\277\223T\031P\334,\257Gn\277-\370\271\232\027\255\353/%\307\222\221)\023\232\240\363\255\346b\230\210\210\010\010\352\260\340<\r&\222\006\232\032l`\303\274\\t\245\304j\013\320Z\027cW\321l\300\330\245A2XZ\333\315\201\357\025&&\323\224\312\367\266\222,\203%\020\221r\\$\326\327\203)L\360\007pi\2233\313\217\272\316m\027X\251\2507\357Z\003\267K<\365\316\267\352\254\264\024d\025\t\372!\004\2032v\324w\366\256C\227v5\341\3420\340\202r\355xi!\303l\205\304\212\220\222\235 s\235#=$\213RPR\023\262.Q\016\226\020[Z\327\\E*\244\032\202\230G0\246\\\030o\0262Tx\331\010\354\2065\010l\177A\245L\201\211\331 \255x\022\331\211\207\227\352\326sQ\202M\207\212\266\276f;N\340\335\3143\017\230\215\316\025S\302+Z\\\337\031Mt\365\363n\020\374y\266\346\241BL\313\317\311T\232\304(\202\000\3534\333i\036@[\264\347\331\002\356\312\020\306\3322w\263\336\323\256\027C\266q\235g\355~\3018;`G\2244@\260\010\220\261\024\375\220\202A\033\236\245\000[\001(\253%v\210\000\200\000\210\014\210\267\n\305\355\271\242\210\211\"b&\322j\241\257\276\272\006\276g\263e\026\232\376B7\021\036\311\343-\245\376\267\036\262|\322Oox\337*+6Wm\030""\240\225QQ\006\260\366\225\200\356\006\307\261Z\210\272\337.u\200\340\032\301\276\262Y\252WOV\031E\024(QHTE\027*\356\217\357`\310-\355\3628'\320\331\206\226\245\224\"\316\265\3032\016\342\226\277\322\375\367\024\251/\002W\027\264\273\230\372\257nL\233\372kkR>'\006\007\247WK\001/(X4\366\341G\217\361\271^'._~<\374\335\310\276\351\034\214#\253hB\231\247\342\014\371\023\373]l\323\253\307\033\223*\326\033\362L\271L\"\031\312\023k\207\023\315!U\242^+J\205?\005u\273\357\265\325\244\247\352e$\237\370\302+[\027\252\374\207():\261\303\213\230C\006J\371\305gY\361\335Y\016\221&P\221=\214(\224L7$\377\027rE8P\220\000qW\351"; - PyObject *data = __Pyx_DecompressString(cstring, 2389, 2); + #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (2517 bytes) */ +const char* const cstring = "BZh91AY&SY\020U\315\310\000\001\251\377\377\355\376\377\347\377\377\377\177\277\377\377\376\277\377\377\377\300@@@@@@@@@@@@\000@\000`\t\372\357\275\346\257\023\236\336\273\267\255\3578\352Atb!B]e\367\301\360%\021M#(fhj4\361O$\324\311\350\236S\3216\246\2154\323@d\0324\000\006\200\006\215\250\014\203b\232zj\t$\205O\362\230&\223\311OM@6\240\007\250\320\0004\320\003@\000\000\000\001\241\240\006\200\003S\310\202MSzBd\310\014\232\03212\r\000\000\000\003@\000\r\000\006\200dh\000$(\"\236\225=\023=\032\023je=\023&CF#\312\000\000\000\000\000\000\000\006\200\000\004D\246F\206Fi42h0#FFFC&M\006\000\023L\201\220\302m\000\000\023\324\300\230\t\024!\240\020\023\023M*{)\372\021\251\264\3212F\217SL\215\032\000\310\030\02020ji\210\032\032\006A\253\004\002c2!Sv\306g\247\273G\207\267\325\227\t\346MBQ\"'\236Q\006\244|V\205j'\234\024\271\374\334\264\026\356 \347\366\343X\342n\253[|\rF]\272\r%I\274\211\200\326^\300Cm\214\032i\241\264\306\330\323KR\3024\253n\357PJ\3704\222\211evH-\251o\r\360$\010\205\031\245\204\311\030\346\266&X\363\241\273\004\224\324%0E9\007\313\"O)\2652\236\t\366\215\\\344\254BW\"\"\003\004\2527K\036\275\004\325%A]*\306\256a\261'\014\014\335G4\037y\326\001\225\207\3669j\000ETH\270\302\371\2165T\270:\345\310P\304\0078\276l\202\263\240Z\355W\014\211B\325\330\343\331\216\302\321\003:\360PY\346\304C\200\313\n\260\306\002\315\030\030\344%U\364\255\004%B*`\354\324\215E\026Z\342Jb\363>\345\001a\272\262O\020\210F\266{\236\343\23346B\"\260\326\250Z;6&\312X\243T\242\213)\2471\361\320\243!a\234\323\311\315\277\241t\007K$\240\316O?\255sS2\243k8a=\034\255VS\251 B\264\262l\315G!\303NC\370\003\352\222Q\022:]e$\261\255Pe\271\300\236G\263eIR\212\342&c\304\234\333\3167\243\213.9\2421f\212\242\225o\304\022\377O\032\tw\331X:\321\025x\330\3673j8$\246E\260R\240\336\t\305\310\032\321T\025PAE\021]\367\303\203m4q\353\373\372j5l\341\345\327\032\315\261$\310S\333\210\374H\361\232=_Y\266\333ne5\316\177\237\324\255\034\351\027\207_v~\345\007\324\315s\336nG\021\\\203\310\343\360\3043\230\353\305T""\251\n0G\024^-f\364\324 \310\361\256:\364K\226\365Q\244k\2279 \214i\024\2219\316Q\332K\311\213\273IXYIE)\367R\210#\225h\362\257X\004\007\337L\030Z\323\002\257>\271\365/\221+l\375|U\3154\361\352\271O\223\260\372&\375 \333\033t\216\024\314\024J\256D\240\244E4\221\277P\275\365\341H\323\344\2356\302j\260\262\036\333\263h\240\204Q\370\322\342\224\330\321\025\2427\tW<7\202\016N\221\320s\202of\363w\005WXff^7\216\255\332v\270\324\236\253\003(V\265\237wA!p\034\265\306\266A\301\220pg\304^e\213\031id\366f\036\333\361\212|:\367\341I\374\253\270\025N\275q\370\204Da@\300\315z-W\006\235\t\340b\314\340\214\265k\322\331\277G\306\021,\323z\016\200t6\271\033\373n\2667\036\357\014X\255<+6\001\261\240\350Mn\321\335\027x\353ccc\3438\305\326\276\266\256\017\007=\331\n\216\320\260\326ML\261(\277\r2S\267\310\023\001\352\364QJ\"`\340u\340\332p@\226\033Y\371n\253?\334\370\340\264\255<\303-G)\337M\206f\035#\023ak@\022hE\206\"\2502\200k\341T\332\337\275\222\333\025\224\000\240r6\216u\001\203\034[\354\375\273\345I\002l\264\251\201f\235\344\363\266\317pk\300@]dRo0-\322I\343\"\031\303\252\334Q\020\262cr-\2611=Y\231Q\252\256V\2036\332\207\311\322\n\033d\212\201^\373\364\222\030\347I\025\372p\324\206\304\231\010\266\2622L\373!\252I$A\351\200\312\t\202\206\212\317R9\270\221:\207\r\005\021\021\337\347\354\240;=\231F\036\010\304R`E\217\035\205\340\264c\3020\274#\223\002\034p\t\242\232\205\262H)\r\220V\316\271\240\210\367\032(\241\314\344\206\373\357, )\006\235\027QJ\261\362\265\027\021@ \344\200\231+(\205J\215&\302\025j\000\235\0359\351\303}_\203\205FF(\215\035\"\244LBm\003\252\262\202\211\n\025_\3345\2338\306\307\t\233\014\311\232d\233P\334\274\203\\-\273[\220a\264\360\311\226\232\224J\206\2703\032\027\274Y\232\312\320/s5\005\251wc=\353Gj\332\255\273\334\355\303\254\005.K\013\377\327bt\025\304\212X0\377cH\212/k`\265\302V\0017l\245\204\314\204sA\\\326_-0\350\t\255\027\337uAe\325\342](\022\224\260tE\002\231h\235\277:e\017\253;m\241\215\270\n\370\022\014\306\263\300\306\221\250\321\201U\342\224\236w\007""\336V\\dU\0346\037M\010f\260\317\013YN\262\362\333[\006,\256H\324.\302\362u\337\031\002\211\256\026N\005\257\243\371\273\251\001\272\272\245\200\271\206$1\240\030\325\357t{\367\254\331\246\255!\271%$\223*kR\026\222\322\324\312\213%+iM$\222I\322H)\253l\354\215\025\3433Rn\311;3*)I;\t)#f\207\232\204\274\231Iy/!3 \342\262\334\353\372\265M6&\327\021cIu\235\206\264\316\267\026\2015\023\215 Q4\221\004\014qa\036\270@\241X\310\231\004\303\230\367\250q\273\330.V\326\222\311\017\241\224\261\016\016\375\r3*H\207-\261\317\002K2.\211\317o\023y\240\225\353\r5\225\201\257\3654{l\220\212\232U\\\031\235\330\005\002\306;/A\200Y\332K\316\020H\246\205p\323\032lm\261\267l2\023\356\324\024\261\214\321*\013\360\372\34246\3306\3619f\201\255\206\201A\352\013$\213[ND\203\250\323\314\342XL9\374:h\321N\215\323\006\235\200\225\036ji(\333\324k\232\rK\302>\356\306\255\203\004\"\346\257.\365beJ\211\264\024\020\242\036$\344\346\2068\301\n\253T\033\022\257eH\325\352\310#\2168\342\310#\217<\352\210#\217\372\t\376\t\3333\000A\320$\345\244J\"g\272\373\233\351\351\356oz\230\335\"\252F\025D\017\017\340S\325-Z7U\353\024\311\r*\277\313\206J\313@\262\241\037Q\323B9\304,S\325\353\\V>\265\032\206\036\nb\266\364\304\242\272\202\352&i6\320\261j5\320\246I\216\313\032\321\211\311\255m\331\262M\312.E\274\376vm\227\022Sn\374f\300\332\357\005\254\377>\373m\333\242fS\034\202\007\3507\242\312\227\003\232\324\254\031\346a\030~\003\246\304R\r=fa\302\202\324\014\014\2240\360\271\361\230O2\253\201\022e^\ngT\206t\303\202\004\253\226J4\365\337T\311\026\364#\030)H\241\314Ru\261o\340\371St\014_M\032\036\244\314\301\245\275b1B\004\347\343\216\023\013\261&\225\325\232\n\233\177=\320k\252\376\016\266R\350\t7B6\237?E\231)\352\243\217\324\314\260M\231~\302\225\222\241\323\222aQd5\300\207\\P\211\240T\250\246\036\360(RM\204\\\225!k\334HG\345|\371\361\372\017\353\210@\206L\372+\225-\206\230} k\2041\312\220QC\007\266\252A(\220u\332\204,\241B\r\235\0326\322i\230+\260\213\003\254\006\205\342\247\026\037\240\014\321!\276\"\210\030\340\220\201\014RT\0236Q\217(Go\021\215\321\354np6\356\302X\330\031:\264\231\205\032\204\003`IF\016)2L\236VA\300\346\351 \010A)\r\026\013\262\321 A\206\017(x\025O\363\236N\0164\341\002Q\200\347J\235\242%{\005\035=D\317\320R&\223]A\317A\201u\036L\356\227H\007\350\024\225q \025\360\014\252\211R\313\326\345z\023\347\300\027QVK\017#y\023oR\215Z4\017\033D\342\247\340I\220T\261o\206[\331\315q(\007\025\364=6\025\031T\013\307\347u\006\034\342\200\034i\022\031\230\025a\370\031y>\004B\016\265\\\010\260\227\324\332RMfMq\217\337m\260\001\277\377\202m\300\276D\325z\343\3000?\355\2230>\261.;\372\320\270\000\271\031\217@\211\036\217\314w(QF\004\373p\211\360\325\241L\203\204\303\2712\231\001\257\t\0329\207F\016\250\226\375z\240\005\256p\\\246N\0163Y\225\005)Ut\003j\260Fl\315B\030\233T\261e\2121RlQ+""\272\241?\006\366\034A\025\201V\346\005\205qt\373=\251\331\232\366D\370\221m\236\236l\004\327Q@\334\177<\014n>;\254#\251\212\363\233/\3638'\225\245\\\241\372\026\027\013o\n\325\374\233\027\371\315\255\242\364r\027o\356H\373\345\242T\222vb\302\355\275j~gL:&\330\315K;\271W[\333;\320/&\212\327&\213\327\267 \256% \230\310\204\370\310FA\220\305m\202\361@\0145\305\200\332\037+ )\222\242\360\244G\363\210\030\221dH\212\241(j\206\220e~kW\r\356\315e\372]\021\337\241E\310\241H\020\361g(\341\215`8\033#\315P%Z\326>d,\266\361$m\324\221'*\327.S\256O\327\215v\325I\026\3451\345\026\220i$\242\300\277\211g\213\223>.,\215LB\232\217\312N\306@?\tjm\302\373\210\016\345\021\231\207\0226\002,\260\000\027\t\212\30615_\030vp\204]\3130I\314|\250\3450U\246,R\361\033!6Q\307v\256BC\021i\337\241\014H]\030\274\345\"\203=h\244\323\267\036\325\262\t\3621\227\304\235T*\024K\333%\301\262M\351E1_\332\256n\277\346\355y\3735\306\345\323\023\370\337\204.\214yLw\340\276!\354T\227U#+\033\246aC\007\244L\2745\201|\334k\031n\r\212Uh\242&\221\351\001\221\337\361\306\207\215\0326L\265\216\305\225C\305+gK#u&F!\224\352\262\241P%\374\302p\0252\336\215q\315\326e\214\353\3607\3401\036R7N\332\021\272N'\352e\024\215\2213N\313\001!'Rq\032\t\247\320o\n\361&S\3562\262M\241Y\214`\343\324\372\210T\301\264\250\036D\350\237\202\250oA\177\010\2514\312\262Q~\005\263\262i\360\327\330\030\264b\253\324z\003\311\344\251\036'a\234~\021\361b\224\233F\266\2114\013\t6J-\230\355\216\2731\215g\323\0306\316\255\211\254\032\360I\325\371\273\035\353\320\234\3409\202U\206#\246\200\366\220\035b|H\200 \370\020\\\342\377\230\327\273\230\332\200\303\240\341X\370\244\307#\256\303\034\363\267\010\036<\215\270@\020\nV\217\366\214\312#\313{|V\350\233F\023\232?P9\244O\313&Z\260\307\360\3410\326=#\001=\341C]Q\371S7\240\211I\341\207\220\316\250V\023\3355t\030F\341\203$\326s\361\204\376\313L9p<\032`[\027O\024j\232\206\031\274Fp\360\223U\334\001B\214\261\005\231\203\317\006\035t\177\030\212Dc\305n\332\342\301r\004\357(\2332\361\010\366\257\254vR\375\353i7""\345\246\375\231E'\361!yev\356l\375\354?\316}\247\322\237\373\274\275\342\020\247u\221\\t\222n\302]p+\357\245~r\321_|\344\255z\233\235\004\237-\370\013\301l\256\233\353\266\"Lh\010\353w\036tHh\030\314\264\336\375^e\304\020T\313^\332[\367\376\353\377X:\227\375\312N\250\356\337H\365o|\336N\267W\337K\037\3768\356\033\350\271\370Z\177n\376\354\024|\274\352\256\271 \374\242\375+\270\233\352'\347\375\371{\216pj\331\221\370b7\027.\222\237\301\"'m\006\313\274u\033\036\031j\371R\267\332o \032\017\\\255\363\260\273\321c\347\351\021G9\324j?u*\016\211<\370\241\233\350\n\350W\316\237]\342Z\336Fg\252\355\263n\245K\002\333\353n\305U\274\225 6\223l\237w[\275D`;\357\266\274\031\257\330M\014m7\234\226\233\210l_\364\322\275Ua\353/.y\to\301\373\245\233\232l\35407\355\256^\014\2638\327\225.\263\274t\rg\316\225\334\252w\273\263;\360\355\373\366\315\366\213\266\342\374\005r\261\032\371\307\023\237\276\370\224z\241\375\0326\231q\213\235\253\235\277u\357w\367{\271^+2z\342\265:3\035\311\377n\253G@|\343n\254zV<\311\253vnww{\211\321\302\212\262y\237\273\030\327\245\320\260\242\277q+#\365\231\366sU\277\272\357\357\3773\306\201\331\376\334\315\366s7\343\245\2744T\326\331\377\240f\206U\372\345\342\305\334\215v\242\235\n=z\354U<\245\263\322\225{\251\021\217n\265\337\372w\377\332\371\203p\347\336\222\277\264\321\315\367n\366\244\3767Y\357\260\373]\357jo\265\277\374(\010\372\260p\327:\253\035\351\303\265+\263w\235_\274/;\t`m2\343\266x\310\nP4\212\273\002\340\037{\362y*r\211\023j5da\326#\236\325\201\331E\362\216\363/\357O\020\311D?\371\300\225\370\002\257\034\311\251\272\267\275\237;\254\033\257vn\373\321f\376B\220\204b\357\372\371\256_\036\260\320\277\227\357Uz\242\220g\373\327\347\317X\373\201\377\305\n\277 \370\314l/\370\267\036\001\271[\375[\3510\033\351Q\333'\334\273\3106\013\201K\367o\335\013k!\361>\321\237Y\366\227s\020\231\231\317\316\236;\031~]\205\302W\347\211\217\204\327\316\036\265+\376\225;pG\314\200\303\300\006\177\206O\222\337\363\304\366\326\241t \270\317\234\253\216\250\277G\234s""\027\311{\216\355BM|\345\244\234\264\363w\030&S\355;\\1\177\326\362g\336\372o\177\356'\221\2176\272\220\214\205v\321G\337Bn\311E\270\322\032d\340\261\307:\351X\271\010\3402/\025\344\316B\315<\3604\010\357\345\200\377\003K\331\327\217"; - PyObject *data = __Pyx_DecompressString(cstring, 2184, 1); + #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (2332 bytes) */ +const char* const cstring = "x\332\225WKs\333F\022\006\313\252]\332\253-K\221\022y\253l\013\312\332K\353E/#%\345\365c]\020I)\214i\212\022i+N\2745\005\001C\0221\005Px\350\261k\357\346\250#\2168\342\210#\2178\362\350#\216<\352'\370'l\317\000\004\001\021\244\023\225\004a\3721\323\323\335_w#\273\315Km,\262\370\350\020\236\222\254\343\246*\351\347\254\320\302\302\273l\300\324\025VP\344\023\254\352l\236\325tU\222\233\204V=\327[\212\034\020\"\262\370L\307\262\3106U\276\323bO%\275\305\026T\376\264\332\346e^%\322\206\240\033*\326&j\274\370f\243\206yUh\375f\205\215\337\253\260\371\373\344w\r\035\253\035z\t\342\240\337\250U\235\254\320\301jCQ\217\002\367+\260\344uI\221#\022*l\210U_@\014\034\237\037\365y\222X\003\230lf\207\032#i\254\254\350\020`I\227\370\266\364o,fK\362\t\274\211\254\2105]\222\351\271\276\345\217\331S\370\327\301\301E\252D\271\362\252\\\0165\374\373\021\303y\235\325:X\220\032\022\034\376\365\200\337\226\344wp\224\210\317\210\020k\220\365c63\206}r\205\255)\206*\340\317\230RQd\\Qt\314\352-\260!\357g\"0E\334\226\016\211\027q\233\272\\\022 jDHf\253\305\352\372\346\243M\226\207\010\251\370\027,\350\032\253\031\207B\233\3274\254\261J\203=4\2446\270\202\325\317;\020%\266\324`\317\025\203\225q\020+\220\213*\350-\014\311\217u\362\302fx\031\374K\235\210@\035\"\220aEI\205C\244\023L\264\267\371\266\206\2635\377n\304\204\021\267k\354\221\241\351l\213'\n\260\245\306\037aVQIX)\000;\347\003'\370\2514\330\314\217F\213\367#|\210\301\252h\230_\311\374a\233\232\300\213\200s\261\211\331\007\306\032{\262\314>c\037d2\3315\36690\220L\234I\354\242\341\000\236(iD\021S\365\014\333\240\251\226m\n\315\016\312\203-4\255\036,\207\364\016*\3406\326q\021\016\010\311\217\301\022?\250\364\334\014\2212:\243\252D\251$\277\322\306j\372\331B\364\213\262\006\030\"\ny\276\303\013\200\254P\207\334\221\304\203j\010\001\227\020Am\007\353\333\222\252\351c\314#\265\r\016 \365\317?\006\344+Xj\266\016\025\365\3636Q\3413}\322\325\207\302%\210\315\250\007*\3704\266\336\307\274\030#\034@\021!\273C\232\372\001\207{e2\003\\\363l\354\036m""\376\020\267\263_\017\270\200\025\242\227i\362G\231\254\244\371!\025e\005r\260\301\033m\235EH\305\242!`\204X\321\240\271\"+\362:\240\347\004\262\010\270\002I(\204\302\352\367\260a\264\333\017\251\035\331\316\371\331S\277\034\371\300\375\347\262_\371\214 \217\270:*\026v\212(\317U\271|\251\376\006\225K/K\365\342\313\255ba\273\314\355\324Pa\237;\250\226\271\n\267\037!\356\276\252\027\367G\250#\204Z\221\333\317\177\277\275\273\017\375\"\221\274\221L\336\334\006\277V\000`4\022\364\221\r\235 \320j\202\320\200\0149\245\001\264\2572 (\234(\222\240\207\353\020\030!e\010\212!)l\206\020eR\265\353\n\261f\022\277F\375;\224\0100\024\022B\374\014)\244\021\014W#\240\031\262h\313:\200\210E\016N\342\206\0359\221\2711\211\2719\236\027\357\252I\022\325\021\3466\200)\346Q\300_\342\335\242\240\217\022+\261E\000\3638\355lD\3515\205V\001\346#<\244\207`\036R\264\230bI\363\365BBY9\305\352\226b\370W\250\351\212\312G\304\207\\\242&\tX\013Y\244\"D\026\322\310\311uh(4\354\373X\003P\227\006\263\\(\360\n\032\351\370\243\343\\-\201>b\022\255I\225R\271\262[\241(+p[\345be\267\276\373b\367\005B\325\3633\370+@\007F\304\237\373\270q\260\017\300G\\\341\207r\251V\017\027/\271\372~\351G\177\271\363\035\317k\347\262 )YAQ\025\003:$\326\350,\n\340$\267\022\240\252`$A\223Uy\001\037\362\302;\322\030\221\322@\212*5\021-I\230NA\333m\276\251\321\267@\025\313\202\"\302\n5\014Y@\250\t\277\003`\243!\226\243(\216\341w\016CO\202\230\013\334\260\014f\336s\332\336\343\227\037k^5\002\231\376\314\027\346\222I\304f\026\007\340\275L\337\261~v\376\010^M\365\323\367l\216\034\362\310\312Y\005{\332\371\241+\270Q\034\020\331+\006ysY\207w\364\356S\367\303\307\374\307\201k\275\305bo\257G\363\377z\377\3177/4\363\236\367\325\032\300>EV\2529\357}\271J\300\324\237g\203\300\314\306e\037\302\226\271P6K\334\331\237\277\033\244\305\361\257\251\376\324\215\213Us\317\233\272\003%!\275\331-\367R\275\371\336\036q\3443\353\232Esj\225\340\3502\275h\0316\\\030J\2315k-\223L\2365\357\020\306\315\213co\352\215\367\346\247~z\321[|\342\346\3723\363f\331c\277\351\256\271\374e\260\323\206%\332\353\220\210K\221l\240\212+$\023\026\255s'\345\314;o\301M\223\025\376\017\262z\3473"; + PyObject *data = __Pyx_DecompressString(cstring, 2332, 1); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #else /* compression: none (5292 bytes) */ -const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_EdgeInUs""eGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNILNONEMBEDDABLENOTOKNoneOK__Pyx_PyDict_NextRefaasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencodedencoded_version__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetLibPlanarityVersionFullgp_GetNgp_GetNeighborgp_GetNextEdgegp_GetProjectVersionFullgp_GetQuietModeFlaggp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_SetQuietModeFlaggp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_Writeinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__newQuietModeFlagnew_edge_capacitynew_graphoutfile_nameplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlink\320\0001\260\021\330\r!\240\021\240!\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340""\010\030\230\010\240\001\240\024\240Q\200A\330\010\030\320\030+\2501\250D\260\001\200A\330\010\024\320\024+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\030\320\0301\260\021\260$\260a\200A\330\010\024\320\0241\260\021\260$\260l\300#\300Q\330\014\022\220,\230a\230q\200A\330\010\024\320\024*\250!\2504\250|\320;N\310c\320QR\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\025\220M\240\021\240$\240l\260)\270<\300s\310!\330\014\022\220,\230a\230q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\031\230\016\240a\240t\250<\260q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\031\230\r\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\031\230\017\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\031\320\030(\250\001\250\024\250\\\270\021\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\030\320\030+\2501\250D\260\014\270A\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\030\230\014\240A\240T\250\034\260S\270\001\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\024\220K\230q\240\004\240L\260\003\2607\270#\270W\300C\300q\330\014\022\220,\230a\330\020/\250q""\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\024\320\024,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\024\220M\240\021\240$\240l\260#\260S\270\001\330\014\022\220,\230a\230q\200A\330\021 \240\001\240\024\240Q\200A\330\010%\240Q\330\010\024\320\0241\260\021\260$\260l\300!\320CT\320TW\320WX\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\024\320\024-\250Q\250d\260,\270c\300\021\330\014\022\220,\230a\230q\200A\330\010\025\220Y\320\0360\260\005\260S\270\001\330\037(\320(<\270E\300\023\300A\330%.\250m\2705\300\003\3001\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\024\220I\230Q\230d\240,\250m\270;\300c\310\021\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\030\320\030.\250a\250t\2601\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\024\220H\230A\230T\240\034\250Z\260s\270!\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\024\320\024/\250q\260\004\260L\300\r\310S\320PQ\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\025!\240\021\240$\240l\260!\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\025\037\230q\240\004\240L\260\001\200\001\330\004*\320*C\3001\330\004\013\210?\230'\240\021\240!\200\001\330\004*\320*H\310\001\330\004\013\210?\230'\240\021\240!\200\001\330\004\n\210+\220Q\320\000\035\230Q\330\004\024\320\024(\250\001\320\004\035\230Q\330\0106\260l\300!\3004\300q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\021\031\230\021\230!\2309\240A\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010 \320 <\270A\330\020\024\220L\320 2\260,\270a\340""\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010 \240\t\250\021\250$\250l\270!\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; + #else /* compression: none (6093 bytes) */ +const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_EdgeInUs""eGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNILNONEMBEDDABLENOTOKOK__Pyx_PyDict_NextRefWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6aasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencoded__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetNgp_GetNeighborgp_GetNextEdgegp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_WritegraphLibinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__new_edge_capacitynew_graphoutfile_nameplanarity.fullplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlinkgraphP (graphP)\000graphP (void)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graphP, gra""phP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (graphP *)\000void (graphP)\000gp_DupGraph\000gp_New\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000gp_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000gp_Free\000gp_ReinitGraph\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340\010\027\220x\230q\240\004\240A\200A\330\010\023\320\0230\260\001\260\024\260\\\300\023\300A\330\014\022\220,\230a\230q\200A\330\010\027\320\0270\260\001\260\024\260Q\200A\330\010\023\320\023+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\023\320\023*\250!\2504\250|\2703\270a\330\014\022\220,\230a\230q\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\024\220=\240\001\240\024\240\\\260\031\270,\300c\310\021\330\014\022\220,\230a\230q\200A\330\010\027\320\027*\250!\2504\250q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\030\220~\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:\230Q""\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\030\220}\240A\240T\250\034\260Q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\030\220\177\240a\240t\250<\260q\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\030\320\027'\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\320\027*\250!\2504\250|\2701\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\220|\2401\240D\250\014\260C\260q\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\023\220;\230a\230t\240<\250s\260'\270\023\270G\3003\300a\330\014\022\220,\230a\330\020/\250q\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\023\320\023,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\023\220=\240\001\240\024\240\\\260\023\260C\260q\330\014\022\220,\230a\230q\200A\330\010%\240Q\330\010\023\320\0230\260\001\260\024\260\\\300\021\320BS\320SV\320VW\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\027\320\027-\250Q\250d\260!\200A\330\010\025\220X\320\035/\250u\260C\260q\330\037'\320';\2705\300\003\3001\330%-\250]\270%\270s\300!\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\2209\230A\230T\240\034\250]\270+\300S\310\001\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\023\320\023)\250\021\250$\250l\320:M\310S\320PQ\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\330\020\037\230q\240\004\240A""\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\023\2208\2301\230D\240\014\250J\260c\270\021\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\320\023.\250a\250t\260<\270}\310C\310q\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\024 \240\001\240\024\240\\\260\021\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\024\036\230a\230t\240<\250q\200\001\330\004\n\210+\220Q\320\004\035\230Q\330\0104\260L\300\001\300\024\300Q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\020\030\230\001\230\021\230)\2401\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010\037\320\037;\2701\330\020\024\220L\320 2\260,\270a\340\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010\037\230y\250\001\250\024\250\\\270\021\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; PyObject *data = NULL; CYTHON_UNUSED_VAR(__Pyx_DecompressString); #endif PyObject **stringtab = __pyx_mstate->__pyx_string_tab; Py_ssize_t pos = 0; - for (int i = 0; i < 194; i++) { + for (int i = 0; i < 192; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); if (likely(string) && i >= 52) PyUnicode_InternInPlace(&string); @@ -11723,7 +11469,7 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str stringtab[i] = string; pos += bytes_length; } - for (int i = 194; i < 227; i++) { + for (int i = 192; i < 222; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); stringtab[i] = string; @@ -11734,15 +11480,15 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str } } Py_XDECREF(data); - for (Py_ssize_t i = 0; i < 227; i++) { + for (Py_ssize_t i = 0; i < 222; i++) { if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { __PYX_ERR(0, 1, __pyx_L1_error) } } #if CYTHON_IMMORTAL_CONSTANTS { - PyObject **table = stringtab + 194; - for (Py_ssize_t i=0; i<33; ++i) { + PyObject **table = stringtab + 192; + for (Py_ssize_t i=0; i<30; ++i) { #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING #if PY_VERSION_HEX < 0x030E0000 if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1) @@ -11816,172 +11562,172 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 41}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n}; - __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_InitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_M_l_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_InitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 45}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ReinitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ReinitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 48}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_new_edge_capacity}; - __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_4_NcQR_a_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_l_MSPQ_a_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 54}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 57}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetN, __pyx_mstate->__pyx_kp_b_iso88591_4_Q_aq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetN, __pyx_mstate->__pyx_kp_b_iso88591_4_Q_aq_xq_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 66}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_src_graph, __pyx_mstate->__pyx_n_u_src_graph_uninit_error}; - __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_CopyGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_M_l, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_CopyGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 90}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_theGraph_dup, __pyx_mstate->__pyx_n_u_new_graph}; - __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DupGraph, __pyx_mstate->__pyx_kp_b_iso88591_Q_6l_4q_1_Qa_uA_9A_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DupGraph, __pyx_mstate->__pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 101}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_v}; - __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_FindEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_AT_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_FindEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 109}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; - __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetVertexDegree, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_1D_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetVertexDegree, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 115}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_ulink, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_vlink}; - __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_AddEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_Kq_L_7_W, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_AddEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 130}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DeleteEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_8_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DeleteEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 138}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_0_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 141}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_0_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 144}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_s_t1_r_d_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_s_t1_r_d_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 151}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EdgeInUse, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_Qa_Qd_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EdgeInUse, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 159}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 162}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNextEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNextEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 170}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNeighbor, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNeighbor, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 178}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; - __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetFirstEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_a_B_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetFirstEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 186}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 189}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 192}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; - __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsVertex, __pyx_mstate->__pyx_kp_b_iso88591_A_s_D_r_4q_l, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsVertex, __pyx_mstate->__pyx_kp_b_iso88591_A_s_D_r_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 199}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 203}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 207}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_mstate->__pyx_kp_b_iso88591_A_4_3a_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 211}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; - __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Read, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_HAT_Zs_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Read, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_81D_Jc_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 219}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_mode_code, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; - __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Write, __pyx_mstate->__pyx_kp_b_iso88591_A_Y_0_S_E_A_m5_1_4q_A_31A_q_IQd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Write, __pyx_mstate->__pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 239}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_c_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 243}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; - __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_mstate->__pyx_kp_b_iso88591_A_q_q_L_SPQ_a_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_mstate->__pyx_kp_b_iso88591_A_q_at_Cq_a_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 251}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_renditionString, __pyx_mstate->__pyx_n_u_string_conversion_error}; - __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_1_l_CTTWWX_aq_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 265}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_mstate->__pyx_kp_b_iso88591_A_1_l_Q_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_mstate->__pyx_kp_b_iso88591_A_0_A_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 269}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 273}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_embedFlags, __pyx_mstate->__pyx_n_u_embed_result}; - __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Embed, __pyx_mstate->__pyx_kp_b_iso88591_l_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Embed, __pyx_mstate->__pyx_kp_b_iso88591_y_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 280}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_copy_of_orig_graph, __pyx_mstate->__pyx_n_u_embed_result, __pyx_mstate->__pyx_n_u_check_result}; - __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_mstate->__pyx_kp_b_iso88591_YYZ_A_L_2_a_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_mstate->__pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1}; @@ -11993,26 +11739,6 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state}; __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad; } - { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 290}; - PyObject* const varnames[] = {0}; - __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad; - } - { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 294}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_newQuietModeFlag}; - __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_SetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad; - } - { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 298}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; - __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetProjectVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad; - } - { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 303}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; - __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad; - } Py_DECREF(tuple_dedup_map); return 0; bad: @@ -12103,11 +11829,11 @@ __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) res = PyTuple_New(n); if (unlikely(res == NULL)) return NULL; for (i = 0; i < n; i++) { + Py_INCREF(src[i]); if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) { Py_DECREF(res); return NULL; } - Py_INCREF(src[i]); } return res; } @@ -12873,6 +12599,42 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject return; } +/* WriteUnraisableException */ +static void __Pyx_WriteUnraisable(const char *name, int clineno, + int lineno, const char *filename, + int full_traceback, int nogil) { + PyObject *old_exc, *old_val, *old_tb; + PyObject *ctx; + __Pyx_PyThreadState_declare + PyGILState_STATE state; + if (nogil) + state = PyGILState_Ensure(); + else state = (PyGILState_STATE)0; + CYTHON_UNUSED_VAR(clineno); + CYTHON_UNUSED_VAR(lineno); + CYTHON_UNUSED_VAR(filename); + CYTHON_MAYBE_UNUSED_VAR(nogil); + __Pyx_PyThreadState_assign + __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); + if (full_traceback) { + Py_XINCREF(old_exc); + Py_XINCREF(old_val); + Py_XINCREF(old_tb); + __Pyx_ErrRestore(old_exc, old_val, old_tb); + PyErr_PrintEx(0); + } + ctx = PyUnicode_FromString(name); + __Pyx_ErrRestore(old_exc, old_val, old_tb); + if (!ctx) { + PyErr_WriteUnraisable(Py_None); + } else { + PyErr_WriteUnraisable(ctx); + Py_DECREF(ctx); + } + if (nogil) + PyGILState_Release(state); +} + /* RaiseDoubleKeywords (used by ParseKeywordsImpl) */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, @@ -13777,8 +13539,8 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, CYTHON_UNUSED_VAR(max_char); CYTHON_UNUSED_VAR(result_ulength); for (i=0; i__pyx_empty_unicode, value_tuple); bad: @@ -14228,33 +13990,6 @@ static CYTHON_INLINE PyObject* __Pyx_decode_c_string( } } -/* decode_c_bytes (used by decode_bytes) */ -static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes( - const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop, - const char* encoding, const char* errors, - PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) { - if (unlikely((start < 0) | (stop < 0))) { - if (start < 0) { - start += length; - if (start < 0) - start = 0; - } - if (stop < 0) - stop += length; - } - if (stop > length) - stop = length; - if (unlikely(stop <= start)) - return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_unicode); - length = stop - start; - cstring += start; - if (decode_func) { - return decode_func(cstring, length, errors); - } else { - return PyUnicode_Decode(cstring, length, encoding, errors); - } -} - /* AllocateExtensionType */ static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) { if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { @@ -14823,32 +14558,265 @@ static int __Pyx_setup_reduce(PyObject* type_obj) { goto __PYX_BAD; } } - PyType_Modified((PyTypeObject*)type_obj); + PyType_Modified((PyTypeObject*)type_obj); + } + } + goto __PYX_GOOD; +__PYX_BAD: + if (!PyErr_Occurred()) { + __Pyx_TypeName type_obj_name = + __Pyx_PyType_GetFullyQualifiedName((PyTypeObject*)type_obj); + PyErr_Format(PyExc_RuntimeError, + "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name); + __Pyx_DECREF_TypeName(type_obj_name); + } + ret = -1; +__PYX_GOOD: +#if !CYTHON_USE_PYTYPE_LOOKUP + Py_XDECREF(object_reduce); + Py_XDECREF(object_reduce_ex); + Py_XDECREF(object_getstate); + Py_XDECREF(getstate); +#endif + Py_XDECREF(reduce); + Py_XDECREF(reduce_ex); + Py_XDECREF(reduce_cython); + Py_XDECREF(setstate); + Py_XDECREF(setstate_cython); + return ret; +} + +/* PxdImportShared (used by FunctionImport) */ +#ifndef __PYX_HAVE_RT_ImportFromPxd_3_2_5 +#define __PYX_HAVE_RT_ImportFromPxd_3_2_5 +static int __Pyx_ImportFromPxd_3_2_5(PyObject *module, const char *name, void **p, const char *sig, const char *what) { + PyObject *d = 0; + PyObject *cobj = 0; + d = PyObject_GetAttrString(module, "__pyx_capi__"); + if (!d) + goto bad; +#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000) + PyDict_GetItemStringRef(d, name, &cobj); +#else + cobj = PyDict_GetItemString(d, name); + Py_XINCREF(cobj); +#endif + if (!cobj) { + PyErr_Format(PyExc_ImportError, + "%.200s does not export expected C %.8s %.200s", + PyModule_GetName(module), what, name); + goto bad; + } + if (!PyCapsule_IsValid(cobj, sig)) { + PyErr_Format(PyExc_TypeError, + "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)", + what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj)); + goto bad; + } + *p = PyCapsule_GetPointer(cobj, sig); + if (!(*p)) + goto bad; + Py_DECREF(d); + Py_DECREF(cobj); + return 0; +bad: + Py_XDECREF(d); + Py_XDECREF(cobj); + return -1; +} +#endif + +/* FunctionImport */ +#ifndef __PYX_HAVE_RT_ImportFunction_3_2_5 +#define __PYX_HAVE_RT_ImportFunction_3_2_5 +static int __Pyx_ImportFunction_3_2_5(PyObject *module, const char *funcname, void (**f)(void), const char *sig) { + union { + void (*fp)(void); + void *p; + } tmp; + int result = __Pyx_ImportFromPxd_3_2_5(module, funcname, &tmp.p, sig, "function"); + if (result == 0) { + *f = tmp.fp; + } + return result; +} +#endif + +/* HasAttr (used by ImportImpl) */ +#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 +static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) { + PyObject *r; + if (unlikely(!PyUnicode_Check(n))) { + PyErr_SetString(PyExc_TypeError, + "hasattr(): attribute name must be string"); + return -1; + } + r = __Pyx_PyObject_GetAttrStrNoError(o, n); + if (!r) { + return (unlikely(PyErr_Occurred())) ? -1 : 0; + } else { + Py_DECREF(r); + return 1; + } +} +#endif + +/* ImportImpl (used by Import) */ +static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) { + PyObject *imported_module = PyImport_GetModule(qualname); + if (unlikely(!imported_module)) { + *module = NULL; + if (PyErr_Occurred()) { + return -1; + } + return 0; + } + *module = imported_module; + return 1; +} +static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) { + PyObject *imported_module; + PyObject *top_level_package_name; + Py_ssize_t i; + int status, module_found; + Py_ssize_t dot_index; + module_found = __Pyx__Import_GetModule(qualname, &imported_module); + if (unlikely(!module_found || module_found == -1)) { + *module = NULL; + return module_found; + } + if (imported_names) { + for (i = 0; i < len_imported_names; i++) { + PyObject *imported_name = imported_names[i]; +#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 + int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name); +#else + int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name); + if (unlikely(has_imported_attribute == -1)) goto error; +#endif + if (!has_imported_attribute) { + goto not_found; + } + } + *module = imported_module; + return 1; + } + dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1); + if (dot_index == -1) { + *module = imported_module; + return 1; + } + if (unlikely(dot_index == -2)) goto error; + top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index); + if (unlikely(!top_level_package_name)) goto error; + Py_DECREF(imported_module); + status = __Pyx__Import_GetModule(top_level_package_name, module); + Py_DECREF(top_level_package_name); + return status; +error: + Py_DECREF(imported_module); + *module = NULL; + return -1; +not_found: + Py_DECREF(imported_module); + *module = NULL; + return 0; +} +static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) { + PyObject *module = 0; + PyObject *empty_dict = 0; + PyObject *from_list = 0; + int module_found; + if (!qualname) { + qualname = name; + } + module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module); + if (likely(module_found == 1)) { + return module; + } else if (unlikely(module_found == -1)) { + return NULL; + } + empty_dict = PyDict_New(); + if (unlikely(!empty_dict)) + goto bad; + if (imported_names) { +#if CYTHON_COMPILING_IN_CPYTHON + from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names); + if (unlikely(!from_list)) + goto bad; +#else + from_list = PyList_New(len_imported_names); + if (unlikely(!from_list)) goto bad; + for (Py_ssize_t i=0; i__pyx_d, level); +} + +/* ImportFrom */ +static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { + PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); + if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { + const char* module_name_str = 0; + PyObject* module_name = 0; + PyObject* module_dot = 0; + PyObject* full_name = 0; + PyErr_Clear(); + module_name_str = PyModule_GetName(module); + if (unlikely(!module_name_str)) { goto modbad; } + module_name = PyUnicode_FromString(module_name_str); + if (unlikely(!module_name)) { goto modbad; } + module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u_); + if (unlikely(!module_dot)) { goto modbad; } + full_name = PyUnicode_Concat(module_dot, name); + if (unlikely(!full_name)) { goto modbad; } + #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400) ||\ + CYTHON_COMPILING_IN_GRAAL + { + PyObject *modules = PyImport_GetModuleDict(); + if (unlikely(!modules)) + goto modbad; + value = PyObject_GetItem(modules, full_name); + } + #else + value = PyImport_GetModule(full_name); + #endif + modbad: + Py_XDECREF(full_name); + Py_XDECREF(module_dot); + Py_XDECREF(module_name); + } + if (unlikely(!value)) { + PyErr_Format(PyExc_ImportError, "cannot import name %S", name); + } + return value; } /* dict_setdefault (used by FetchCommonType) */ @@ -15550,7 +15518,6 @@ __Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) { PyList_SET_ITEM(fromlist, 0, marker); #else if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) { - Py_DECREF(marker); Py_DECREF(fromlist); return NULL; } @@ -15791,8 +15758,7 @@ __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); -#if !CYTHON_COMPILING_IN_LIMITED_API -#if PY_VERSION_HEX < 0x030900B1 +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API Py_CLEAR(__Pyx_CyFunction_GetClassObj(m)); #else { @@ -15800,7 +15766,6 @@ __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) ((PyCMethodObject *) (m))->mm_class = NULL; Py_XDECREF(cls); } -#endif #endif Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); @@ -15852,11 +15817,10 @@ static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); __Pyx_VISIT_CONST(m->func_code); -#if !CYTHON_COMPILING_IN_LIMITED_API Py_VISIT(__Pyx_CyFunction_GetClassObj(m)); -#endif Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); + Py_VISIT(m->func_annotations); Py_VISIT(m->func_is_coroutine); Py_VISIT(m->defaults); return 0; @@ -16547,107 +16511,6 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, return (target_type) value;\ } -/* PyObjectVectorCallKwBuilder (used by CIntToPy) */ -#if CYTHON_VECTORCALL -static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { - (void)__Pyx_PyObject_FastCallDict; - if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; - Py_INCREF(key); - args[n] = value; - return 0; -} -CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { - (void)__Pyx_VectorcallBuilder_AddArgStr; - if (unlikely(!PyUnicode_Check(key))) { - PyErr_SetString(PyExc_TypeError, "keywords must be strings"); - return -1; - } - return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n); -} -static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) { - PyObject *pyKey = PyUnicode_FromString(key); - if (!pyKey) return -1; - return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n); -} -#else // CYTHON_VECTORCALL -CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) { - if (unlikely(!PyUnicode_Check(key))) { - PyErr_SetString(PyExc_TypeError, "keywords must be strings"); - return -1; - } - return PyDict_SetItem(builder, key, value); -} -#endif - -/* CIntToPy */ -static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) { -#ifdef __Pyx_HAS_GCC_DIAGNOSTIC -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - const int neg_one = (int) -1, const_zero = (int) 0; -#ifdef __Pyx_HAS_GCC_DIAGNOSTIC -#pragma GCC diagnostic pop -#endif - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(int) < sizeof(long)) { - return PyLong_FromLong((long) value); - } else if (sizeof(int) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); -#if !CYTHON_COMPILING_IN_PYPY - } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); -#endif - } - } else { - if (sizeof(int) <= sizeof(long)) { - return PyLong_FromLong((long) value); - } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { - return PyLong_FromLongLong((PY_LONG_LONG) value); - } - } - { - unsigned char *bytes = (unsigned char *)&value; -#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 - if (is_unsigned) { - return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); - } else { - return PyLong_FromNativeBytes(bytes, sizeof(value), -1); - } -#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 - int one = 1; int little = (int)*(unsigned char *)&one; - return _PyLong_FromByteArray(bytes, sizeof(int), - little, !is_unsigned); -#else - int one = 1; int little = (int)*(unsigned char *)&one; - PyObject *from_bytes, *result = NULL, *kwds = NULL; - PyObject *py_bytes = NULL, *order_str = NULL; - from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); - if (!from_bytes) return NULL; - py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int)); - if (!py_bytes) goto limited_bad; - order_str = PyUnicode_FromString(little ? "little" : "big"); - if (!order_str) goto limited_bad; - { - PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str }; - if (!is_unsigned) { - kwds = __Pyx_MakeVectorcallBuilderKwds(1); - if (!kwds) goto limited_bad; - if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad; - } - result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds); - } - limited_bad: - Py_XDECREF(kwds); - Py_XDECREF(order_str); - Py_XDECREF(py_bytes); - Py_XDECREF(from_bytes); - return result; -#endif - } -} - /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC @@ -16898,6 +16761,107 @@ static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) { return (int) -1; } +/* PyObjectVectorCallKwBuilder (used by CIntToPy) */ +#if CYTHON_VECTORCALL +static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + (void)__Pyx_PyObject_FastCallDict; + Py_INCREF(key); + if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; + args[n] = value; + return 0; +} +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + (void)__Pyx_VectorcallBuilder_AddArgStr; + if (unlikely(!PyUnicode_Check(key))) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + return -1; + } + return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n); +} +static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + PyObject *pyKey = PyUnicode_FromString(key); + if (!pyKey) return -1; + return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n); +} +#else // CYTHON_VECTORCALL +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) { + if (unlikely(!PyUnicode_Check(key))) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + return -1; + } + return PyDict_SetItem(builder, key, value); +} +#endif + +/* CIntToPy */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) { +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif + const int neg_one = (int) -1, const_zero = (int) 0; +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic pop +#endif + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(int) < sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(int) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); +#if !CYTHON_COMPILING_IN_PYPY + } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif + } + } else { + if (sizeof(int) <= sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { + return PyLong_FromLongLong((PY_LONG_LONG) value); + } + } + { + unsigned char *bytes = (unsigned char *)&value; +#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 + if (is_unsigned) { + return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); + } else { + return PyLong_FromNativeBytes(bytes, sizeof(value), -1); + } +#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 + int one = 1; int little = (int)*(unsigned char *)&one; + return _PyLong_FromByteArray(bytes, sizeof(int), + little, !is_unsigned); +#else + int one = 1; int little = (int)*(unsigned char *)&one; + PyObject *from_bytes, *result = NULL, *kwds = NULL; + PyObject *py_bytes = NULL, *order_str = NULL; + from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); + if (!from_bytes) return NULL; + py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int)); + if (!py_bytes) goto limited_bad; + order_str = PyUnicode_FromString(little ? "little" : "big"); + if (!order_str) goto limited_bad; + { + PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str }; + if (!is_unsigned) { + kwds = __Pyx_MakeVectorcallBuilderKwds(1); + if (!kwds) goto limited_bad; + if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad; + } + result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds); + } + limited_bad: + Py_XDECREF(kwds); + Py_XDECREF(order_str); + Py_XDECREF(py_bytes); + Py_XDECREF(from_bytes); + return result; +#endif + } +} + /* FormatTypeName */ #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000 static __Pyx_TypeName diff --git a/planarity/full/graph.pxd b/planarity/full/graph.pxd index 1c7a56c..63ab4e3 100644 --- a/planarity/full/graph.pxd +++ b/planarity/full/graph.pxd @@ -7,7 +7,7 @@ allows other Cython modules access to the Graph extension type. https://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html#sharing-extension-types """ -from planarity.full cimport cgraphLib +from planarity.full cimport graphLib cdef class Graph: - cdef cgraphLib.graphP _theGraph + cdef graphLib.graphP _theGraph diff --git a/planarity/full/graph.pyx b/planarity/full/graph.pyx index afa94e8..8a519f0 100644 --- a/planarity/full/graph.pyx +++ b/planarity/full/graph.pyx @@ -6,53 +6,53 @@ Cython wrapper for the Edge Addition Planarity Suite Graph Library Wraps a graphP struct using a Cython class and wraps functions and macros that operate over graphP structs. """ - from libc.stdlib cimport free -from planarity.full cimport capiutils -from planarity.full cimport cappconst -from planarity.full cimport cgraphLib +from planarity.full cimport graphLib + +from planarity.full import graphLib + -OK = cappconst.OK -AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT -NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE -NOTOK = cappconst.NOTOK -NIL = cappconst.NIL +OK = graphLib.OK +AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT +NONEMBEDDABLE = graphLib.NONEMBEDDABLE +NOTOK = graphLib.NOTOK +NIL = graphLib.NIL -EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR -EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR -EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR -EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 -EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 -EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 +EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR +EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR +EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR +EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 +EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 +EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 cdef class Graph: def __cinit__(self): global global_id_count - self._theGraph = cgraphLib.gp_New() + self._theGraph = graphLib.gp_New() if self._theGraph == NULL: raise MemoryError("gp_New() failed.") def __dealloc__(self): if self._theGraph != NULL: - cgraphLib.gp_Free(&self._theGraph) + graphLib.gp_Free(&self._theGraph) def gp_InitGraph(self, int n): - if cgraphLib.gp_InitGraph(self._theGraph, n) != OK: + if graphLib.gp_InitGraph(self._theGraph, n) != OK: raise RuntimeError(f"gp_InitGraph() failed.") def gp_ReinitGraph(self): - cgraphLib.gp_ReinitGraph(self._theGraph) + graphLib.gp_ReinitGraph(self._theGraph) def gp_EnsureEdgeCapacity(self, int new_edge_capacity): - if cgraphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: + if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: raise RuntimeError( "gp_EnsureEdgeCapacity() failed to set edge capacity to " f"{new_edge_capacity}.") def gp_GetEdgeCapacity(self): - return cgraphLib.gp_GetEdgeCapacity(self._theGraph) + return graphLib.gp_GetEdgeCapacity(self._theGraph) def gp_GetN(self)-> int: """ @@ -61,7 +61,7 @@ cdef class Graph: if self._theGraph == NULL: raise RuntimeError("Graph is not initialized.") - return cgraphLib.gp_GetN(self._theGraph) + return graphLib.gp_GetN(self._theGraph) def gp_CopyGraph(self, Graph src_graph): # NOTE: this is interpreting the self as the dstGraph, i.e. copying @@ -84,16 +84,16 @@ cdef class Graph: "Source and destination graphs must have the same order " "to copy graphP struct.") - if cgraphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: + if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: raise RuntimeError(f"gp_CopyGraph() failed.") def gp_DupGraph(self) -> Graph: - cdef cgraphLib.graphP theGraph_dup = cgraphLib.gp_DupGraph(self._theGraph) + cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) if theGraph_dup == NULL: raise MemoryError("gp_DupGraph() failed.") cdef Graph new_graph = Graph() - cgraphLib.gp_Free(&new_graph._theGraph) + graphLib.gp_Free(&new_graph._theGraph) new_graph._theGraph = theGraph_dup return new_graph @@ -104,13 +104,13 @@ cdef class Graph: if not self.gp_IsVertex(v): raise RuntimeError(f"'{v}' is not a valid vertex label.") - return cgraphLib.gp_FindEdge(self._theGraph, u, v) + return graphLib.gp_FindEdge(self._theGraph, u, v) def gp_GetVertexDegree(self, int v): if not self.gp_IsVertex(v): raise RuntimeError(f"'{v}' is not a valid vertex label.") - return cgraphLib.gp_GetVertexDegree(self._theGraph, v) + return graphLib.gp_GetVertexDegree(self._theGraph, v) def gp_AddEdge(self, int u, int ulink, int v, int vlink): if ulink != 0 and ulink != 1: @@ -121,7 +121,7 @@ cdef class Graph: raise RuntimeError( f"Invalid link index for vlink: '{vlink}'." ) - if cgraphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: + if graphLib.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}." @@ -133,19 +133,19 @@ cdef class Graph: f"gp_DeleteEdge() failed: invalid edge '{e}'." ) - return cgraphLib.gp_DeleteEdge(self._theGraph, e) + return graphLib.gp_DeleteEdge(self._theGraph, e) def gp_LowerBoundEdgeStorage(self): - return cgraphLib.gp_LowerBoundEdgeStorage(self._theGraph) + return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) def gp_UpperBoundEdgeStorage(self): - return cgraphLib.gp_UpperBoundEdgeStorage(self._theGraph) + return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) def gp_IsEdge(self, int e): return ( (e >= self.gp_LowerBoundEdgeStorage()) and (e < self.gp_UpperBoundEdgeStorage()) and - cgraphLib.gp_IsEdge(self._theGraph, e) + graphLib.gp_IsEdge(self._theGraph, e) ) def gp_EdgeInUse(self, int e): @@ -154,10 +154,10 @@ cdef class Graph: f"gp_EdgeInUse() failed: invalid edge index '{e}'." ) - return cgraphLib.gp_EdgeInUse(self._theGraph, e) + return graphLib.gp_EdgeInUse(self._theGraph, e) def gp_UpperBoundEdges(self): - return cgraphLib.gp_UpperBoundEdges(self._theGraph) + return graphLib.gp_UpperBoundEdges(self._theGraph) def gp_GetNextEdge(self, int e): if not self.gp_IsEdge(e): @@ -165,7 +165,7 @@ cdef class Graph: f"gp_GetNextEdge() failed: invalid edge index '{e}'." ) - return cgraphLib.gp_GetNextEdge(self._theGraph, e) + return graphLib.gp_GetNextEdge(self._theGraph, e) def gp_GetNeighbor(self, int e): if not self.gp_IsEdge(e): @@ -173,7 +173,7 @@ cdef class Graph: f"gp_GetNeighbor() failed: invalid edge index '{e}'." ) - return cgraphLib.gp_GetNeighbor(self._theGraph, e) + return graphLib.gp_GetNeighbor(self._theGraph, e) def gp_GetFirstEdge(self, int v): if not self.gp_IsVertex(v): @@ -181,31 +181,31 @@ cdef class Graph: f"gp_GetFirstEdge() failed: invalid vertex intex '{v}'." ) - return cgraphLib.gp_GetFirstEdge(self._theGraph, v) + return graphLib.gp_GetFirstEdge(self._theGraph, v) def gp_LowerBoundVertices(self): - return cgraphLib.gp_LowerBoundVertices(self._theGraph) + return graphLib.gp_LowerBoundVertices(self._theGraph) def gp_UpperBoundVertices(self): - return cgraphLib.gp_UpperBoundVertices(self._theGraph) + return graphLib.gp_UpperBoundVertices(self._theGraph) def gp_IsVertex(self, int v): return ( (v >= self.gp_LowerBoundVertices()) and (v < self.gp_UpperBoundVertices()) and - cgraphLib.gp_IsVertex(self._theGraph, v) + graphLib.gp_IsVertex(self._theGraph, v) ) def gp_ExtendWith_K23Search(self): - if cgraphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with K23Search structures.") def gp_ExtendWith_K33Search(self): - if cgraphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with K33Search structures.") def gp_ExtendWith_K4Search(self): - if cgraphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with K4Search structures.") def gp_Read(self, str infile_name): @@ -213,13 +213,13 @@ cdef class Graph: cdef bytes encoded = infile_name.encode('utf-8') cdef const char *FileName = encoded - if cgraphLib.gp_Read(self._theGraph, FileName) != OK: + if graphLib.gp_Read(self._theGraph, FileName) != OK: raise RuntimeError(f"gp_Read() failed.") def gp_Write(self, str outfile_name, str mode): - mode_code = (cgraphLib.WRITE_ADJLIST if mode == "a" - else (cgraphLib.WRITE_ADJMATRIX if mode == "m" - else (cgraphLib.WRITE_G6 if mode == "g" + mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + else (graphLib.WRITE_ADJMATRIX if mode == "m" + else (graphLib.WRITE_G6 if mode == "g" else None))) if not mode_code: raise ValueError( @@ -231,13 +231,13 @@ cdef class Graph: cdef bytes encoded = outfile_name.encode('utf-8') cdef const char *theFileName = encoded - if cgraphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: + if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: raise RuntimeError( f"gp_Write() of graph to '{outfile_name}' failed." ) def gp_ExtendWith_DrawPlanar(self): - if cgraphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: + if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with DrawPlanar structures.") def gp_DrawPlanar_RenderToFile(self, str outfile_name): @@ -245,12 +245,12 @@ cdef class Graph: cdef bytes encoded = outfile_name.encode('utf-8') cdef const char *theFileName = encoded - if cgraphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: + if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") def gp_DrawPlanar_RenderToString(self): cdef char* renditionString = NULL - if cgraphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: + if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: raise RuntimeError(f"Failed to render embedding to C string.") try: @@ -263,43 +263,25 @@ cdef class Graph: free(renditionString) def gp_ExtendWith_Outerplanarity(self): - if cgraphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with Outerplanarity structures.") def gp_ExtendWith_Planarity(self): - if cgraphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with Planarity structures.") def gp_Embed(self, int embedFlags) -> int: - embed_result = cgraphLib.gp_Embed(self._theGraph, embedFlags) + embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) if embed_result != OK and embed_result != NONEMBEDDABLE: raise RuntimeError("Failed to perform embed operation.") return embed_result def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: - check_result = cgraphLib.gp_TestEmbedResultIntegrity( + check_result = graphLib.gp_TestEmbedResultIntegrity( self._theGraph, copy_of_orig_graph._theGraph, embed_result ) if check_result != OK and check_result != NONEMBEDDABLE: raise RuntimeError("Failed embed integrity check.") return check_result - - -def gp_GetQuietModeFlag() -> int: - return capiutils.gp_GetQuietModeFlag() - - -def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: - capiutils.gp_SetQuietModeFlag(newQuietModeFlag) - - -def gp_GetProjectVersionFull(): - cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() - return encoded_version.decode('utf-8') - - -def gp_GetLibPlanarityVersionFull(): - cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() - return encoded_version.decode('utf-8') diff --git a/planarity/full/graphLib.c b/planarity/full/graphLib.c new file mode 100644 index 0000000..b8d6fe4 --- /dev/null +++ b/planarity/full/graphLib.c @@ -0,0 +1,10034 @@ +/* Generated by Cython 3.2.5 */ + +/* BEGIN: Cython Metadata +{ + "distutils": { + "depends": [ + "planarity/c/graphLib/graph.h", + "planarity/c/graphLib/graphLib.h", + "planarity/c/graphLib/homeomorphSearch/graphK23Search.h", + "planarity/c/graphLib/homeomorphSearch/graphK33Search.h", + "planarity/c/graphLib/homeomorphSearch/graphK4Search.h", + "planarity/c/graphLib/io/g6-read-iterator.h", + "planarity/c/graphLib/io/g6-write-iterator.h", + "planarity/c/graphLib/io/graphIO.h", + "planarity/c/graphLib/lowLevelUtils/apiutils.h", + "planarity/c/graphLib/lowLevelUtils/appconst.h", + "planarity/c/graphLib/planarityRelated/graphDrawPlanar.h", + "planarity/c/graphLib/planarityRelated/graphOuterplanarity.h", + "planarity/c/graphLib/planarityRelated/graphPlanarity.h" + ], + "include_dirs": [ + "planarity/full", + "planarity/c/graphLib" + ], + "name": "planarity.full.graphLib", + "sources": [ + "planarity/full/graphLib.pyx", + "planarity/c/graphLib/graphDFSUtils.c", + "planarity/c/graphLib/graphLib.c", + "planarity/c/graphLib/graph.c", + "planarity/c/graphLib/io/g6-api-utilities.c", + "planarity/c/graphLib/io/g6-read-iterator.c", + "planarity/c/graphLib/io/strOrFile.c", + "planarity/c/graphLib/io/g6-write-iterator.c", + "planarity/c/graphLib/io/strbuf.c", + "planarity/c/graphLib/io/graphIO.c", + "planarity/c/graphLib/extensionSystem/graphExtensions.c", + "planarity/c/graphLib/homeomorphSearch/graphK23Search_Extensions.c", + "planarity/c/graphLib/homeomorphSearch/graphK33Search_Extensions.c", + "planarity/c/graphLib/homeomorphSearch/graphK4Search.c", + "planarity/c/graphLib/homeomorphSearch/graphK4Search_Extensions.c", + "planarity/c/graphLib/homeomorphSearch/graphK33Search.c", + "planarity/c/graphLib/homeomorphSearch/graphK23Search.c", + "planarity/c/graphLib/planarityRelated/graphTests.c", + "planarity/c/graphLib/planarityRelated/graphPlanarity_Extensions.c", + "planarity/c/graphLib/planarityRelated/graphEmbed.c", + "planarity/c/graphLib/planarityRelated/graphOuterplanarObstruction.c", + "planarity/c/graphLib/planarityRelated/graphNonplanar.c", + "planarity/c/graphLib/planarityRelated/graphIsolator.c", + "planarity/c/graphLib/planarityRelated/graphOuterplanarity_Extensions.c", + "planarity/c/graphLib/planarityRelated/graphDrawPlanar.c", + "planarity/c/graphLib/planarityRelated/graphDrawPlanar_Extensions.c", + "planarity/c/graphLib/lowLevelUtils/stack.c", + "planarity/c/graphLib/lowLevelUtils/apiutils.c", + "planarity/c/graphLib/lowLevelUtils/listcoll.c" + ] + }, + "module_name": "planarity.full.graphLib" +} +END: Cython Metadata */ + +#ifndef PY_SSIZE_T_CLEAN +#define PY_SSIZE_T_CLEAN +#endif /* PY_SSIZE_T_CLEAN */ +/* InitLimitedAPI */ +#if defined(Py_LIMITED_API) + #if !defined(CYTHON_LIMITED_API) + #define CYTHON_LIMITED_API 1 + #endif +#elif defined(CYTHON_LIMITED_API) + #ifdef _MSC_VER + #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.") + #else + #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead. + #endif +#endif + +#include "Python.h" +#ifndef Py_PYTHON_H + #error Python headers needed to compile C extensions, please install development version of Python. +#elif PY_VERSION_HEX < 0x03080000 + #error Cython requires Python 3.8+. +#else +#define __PYX_ABI_VERSION "3_2_5" +#define CYTHON_HEX_VERSION 0x030205F0 +#define CYTHON_FUTURE_DIVISION 1 +/* CModulePreamble */ +#include +#ifndef offsetof + #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) +#endif +#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS) + #ifndef __stdcall + #define __stdcall + #endif + #ifndef __cdecl + #define __cdecl + #endif + #ifndef __fastcall + #define __fastcall + #endif +#endif +#ifndef DL_IMPORT + #define DL_IMPORT(t) t +#endif +#ifndef DL_EXPORT + #define DL_EXPORT(t) t +#endif +#define __PYX_COMMA , +#ifndef PY_LONG_LONG + #define PY_LONG_LONG LONG_LONG +#endif +#ifndef Py_HUGE_VAL + #define Py_HUGE_VAL HUGE_VAL +#endif +#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX +#if defined(GRAALVM_PYTHON) + /* For very preliminary testing purposes. Most variables are set the same as PyPy. + The existence of this section does not imply that anything works or is even tested */ + #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_CPYTHON 0 + #define CYTHON_COMPILING_IN_LIMITED_API 0 + #define CYTHON_COMPILING_IN_GRAAL 1 + #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0 + #undef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 0 + #undef CYTHON_USE_TYPE_SPECS + #define CYTHON_USE_TYPE_SPECS 0 + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #undef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 0 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #undef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 1 + #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS + #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0 + #undef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 0 + #undef CYTHON_ASSUME_SAFE_SIZE + #define CYTHON_ASSUME_SAFE_SIZE 0 + #undef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 0 + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_GIL + #define CYTHON_FAST_GIL 0 + #undef CYTHON_METH_FASTCALL + #define CYTHON_METH_FASTCALL 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 + #ifndef CYTHON_PEP487_INIT_SUBCLASS + #define CYTHON_PEP487_INIT_SUBCLASS 1 + #endif + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 1 + #undef CYTHON_USE_MODULE_STATE + #define CYTHON_USE_MODULE_STATE 0 + #undef CYTHON_USE_SYS_MONITORING + #define CYTHON_USE_SYS_MONITORING 0 + #undef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 0 + #undef CYTHON_USE_AM_SEND + #define CYTHON_USE_AM_SEND 0 + #undef CYTHON_USE_DICT_VERSIONS + #define CYTHON_USE_DICT_VERSIONS 0 + #undef CYTHON_USE_EXC_INFO_STACK + #define CYTHON_USE_EXC_INFO_STACK 1 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 + #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 + #undef CYTHON_IMMORTAL_CONSTANTS + #define CYTHON_IMMORTAL_CONSTANTS 0 +#elif defined(PYPY_VERSION) + #define CYTHON_COMPILING_IN_PYPY 1 + #define CYTHON_COMPILING_IN_CPYTHON 0 + #define CYTHON_COMPILING_IN_LIMITED_API 0 + #define CYTHON_COMPILING_IN_GRAAL 0 + #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0 + #undef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #ifndef CYTHON_USE_TYPE_SPECS + #define CYTHON_USE_TYPE_SPECS 0 + #endif + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #undef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 0 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #undef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 1 + #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS + #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1 + #undef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 0 + #ifndef CYTHON_ASSUME_SAFE_SIZE + #define CYTHON_ASSUME_SAFE_SIZE 1 + #endif + #undef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 0 + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_GIL + #define CYTHON_FAST_GIL 0 + #undef CYTHON_METH_FASTCALL + #define CYTHON_METH_FASTCALL 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 + #ifndef CYTHON_PEP487_INIT_SUBCLASS + #define CYTHON_PEP487_INIT_SUBCLASS 1 + #endif + #if PY_VERSION_HEX < 0x03090000 + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT) + #define CYTHON_PEP489_MULTI_PHASE_INIT 1 + #endif + #undef CYTHON_USE_MODULE_STATE + #define CYTHON_USE_MODULE_STATE 0 + #undef CYTHON_USE_SYS_MONITORING + #define CYTHON_USE_SYS_MONITORING 0 + #ifndef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00) + #endif + #undef CYTHON_USE_AM_SEND + #define CYTHON_USE_AM_SEND 0 + #undef CYTHON_USE_DICT_VERSIONS + #define CYTHON_USE_DICT_VERSIONS 0 + #undef CYTHON_USE_EXC_INFO_STACK + #define CYTHON_USE_EXC_INFO_STACK 0 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100) + #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 + #undef CYTHON_IMMORTAL_CONSTANTS + #define CYTHON_IMMORTAL_CONSTANTS 0 +#elif defined(CYTHON_LIMITED_API) + #ifdef Py_LIMITED_API + #undef __PYX_LIMITED_VERSION_HEX + #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API + #endif + #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_CPYTHON 0 + #define CYTHON_COMPILING_IN_LIMITED_API 1 + #define CYTHON_COMPILING_IN_GRAAL 0 + #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0 + #undef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 0 + #undef CYTHON_USE_TYPE_SPECS + #define CYTHON_USE_TYPE_SPECS 1 + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #undef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 0 + #ifndef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #endif + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS + #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0 + #endif + #undef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 0 + #undef CYTHON_ASSUME_SAFE_SIZE + #define CYTHON_ASSUME_SAFE_SIZE 0 + #undef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 0 + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_GIL + #define CYTHON_FAST_GIL 0 + #undef CYTHON_METH_FASTCALL + #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000) + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 + #ifndef CYTHON_PEP487_INIT_SUBCLASS + #define CYTHON_PEP487_INIT_SUBCLASS 1 + #endif + #ifndef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 1 + #endif + #ifndef CYTHON_USE_MODULE_STATE + #define CYTHON_USE_MODULE_STATE 0 + #endif + #undef CYTHON_USE_SYS_MONITORING + #define CYTHON_USE_SYS_MONITORING 0 + #ifndef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 0 + #endif + #ifndef CYTHON_USE_AM_SEND + #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000) + #endif + #undef CYTHON_USE_DICT_VERSIONS + #define CYTHON_USE_DICT_VERSIONS 0 + #undef CYTHON_USE_EXC_INFO_STACK + #define CYTHON_USE_EXC_INFO_STACK 0 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 + #endif + #ifndef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 1 + #endif + #undef CYTHON_IMMORTAL_CONSTANTS + #define CYTHON_IMMORTAL_CONSTANTS 0 +#else + #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_CPYTHON 1 + #define CYTHON_COMPILING_IN_LIMITED_API 0 + #define CYTHON_COMPILING_IN_GRAAL 0 + #ifdef Py_GIL_DISABLED + #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1 + #else + #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0 + #endif + #if PY_VERSION_HEX < 0x030A0000 + #undef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #elif !defined(CYTHON_USE_TYPE_SLOTS) + #define CYTHON_USE_TYPE_SLOTS 1 + #endif + #ifndef CYTHON_USE_TYPE_SPECS + #define CYTHON_USE_TYPE_SPECS 0 + #endif + #ifndef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 1 + #endif + #ifndef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 1 + #endif + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #elif !defined(CYTHON_USE_PYLIST_INTERNALS) + #define CYTHON_USE_PYLIST_INTERNALS 1 + #endif + #ifndef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 1 + #endif + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #elif !defined(CYTHON_USE_UNICODE_WRITER) + #define CYTHON_USE_UNICODE_WRITER 1 + #endif + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS + #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1 + #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS) + #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0 + #endif + #ifndef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 1 + #endif + #ifndef CYTHON_ASSUME_SAFE_SIZE + #define CYTHON_ASSUME_SAFE_SIZE 1 + #endif + #ifndef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 1 + #endif + #ifndef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 1 + #endif + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + #undef CYTHON_FAST_GIL + #define CYTHON_FAST_GIL 0 + #elif !defined(CYTHON_FAST_GIL) + #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6) + #endif + #ifndef CYTHON_METH_FASTCALL + #define CYTHON_METH_FASTCALL 1 + #endif + #ifndef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 1 + #endif + #ifndef CYTHON_PEP487_INIT_SUBCLASS + #define CYTHON_PEP487_INIT_SUBCLASS 1 + #endif + #ifndef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 1 + #endif + #ifndef CYTHON_USE_MODULE_STATE + #define CYTHON_USE_MODULE_STATE 0 + #endif + #ifndef CYTHON_USE_SYS_MONITORING + #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1) + #endif + #ifndef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 1 + #endif + #ifndef CYTHON_USE_AM_SEND + #define CYTHON_USE_AM_SEND 1 + #endif + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + #undef CYTHON_USE_DICT_VERSIONS + #define CYTHON_USE_DICT_VERSIONS 0 + #elif !defined(CYTHON_USE_DICT_VERSIONS) + #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE) + #endif + #ifndef CYTHON_USE_EXC_INFO_STACK + #define CYTHON_USE_EXC_INFO_STACK 1 + #endif + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 + #endif + #ifndef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) + #endif + #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000 + #undef CYTHON_IMMORTAL_CONSTANTS + #define CYTHON_IMMORTAL_CONSTANTS 0 // definitely won't work + #elif !defined(CYTHON_IMMORTAL_CONSTANTS) + #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) + #endif +#endif +#ifndef CYTHON_COMPRESS_STRINGS + #define CYTHON_COMPRESS_STRINGS 1 +#endif +#ifndef CYTHON_FAST_PYCCALL +#define CYTHON_FAST_PYCCALL CYTHON_FAST_PYCALL +#endif +#ifndef CYTHON_VECTORCALL +#if CYTHON_COMPILING_IN_LIMITED_API +#define CYTHON_VECTORCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000) +#else +#define CYTHON_VECTORCALL (CYTHON_FAST_PYCCALL) +#endif +#endif +#if CYTHON_USE_PYLONG_INTERNALS + #undef SHIFT + #undef BASE + #undef MASK + #ifdef SIZEOF_VOID_P + enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) }; + #endif +#endif +#ifndef __has_attribute + #define __has_attribute(x) 0 +#endif +#ifndef __has_cpp_attribute + #define __has_cpp_attribute(x) 0 +#endif +#ifndef CYTHON_RESTRICT + #if defined(__GNUC__) + #define CYTHON_RESTRICT __restrict__ + #elif defined(_MSC_VER) && _MSC_VER >= 1400 + #define CYTHON_RESTRICT __restrict + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + #define CYTHON_RESTRICT restrict + #else + #define CYTHON_RESTRICT + #endif +#endif +#ifndef CYTHON_UNUSED + #if defined(__cplusplus) + /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17 + * but leads to warnings with -pedantic, since it is a C++17 feature */ + #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) + #if __has_cpp_attribute(maybe_unused) + #define CYTHON_UNUSED [[maybe_unused]] + #endif + #endif + #endif +#endif +#ifndef CYTHON_UNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define CYTHON_UNUSED __attribute__ ((__unused__)) +# else +# define CYTHON_UNUSED +# endif +# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) +# define CYTHON_UNUSED __attribute__ ((__unused__)) +# else +# define CYTHON_UNUSED +# endif +#endif +#ifndef CYTHON_UNUSED_VAR +# if defined(__cplusplus) + template void CYTHON_UNUSED_VAR( const T& ) { } +# else +# define CYTHON_UNUSED_VAR(x) (void)(x) +# endif +#endif +#ifndef CYTHON_MAYBE_UNUSED_VAR + #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x) +#endif +#ifndef CYTHON_NCP_UNUSED +# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING +# define CYTHON_NCP_UNUSED +# else +# define CYTHON_NCP_UNUSED CYTHON_UNUSED +# endif +#endif +#ifndef CYTHON_USE_CPP_STD_MOVE + #if defined(__cplusplus) && (\ + __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)) + #define CYTHON_USE_CPP_STD_MOVE 1 + #else + #define CYTHON_USE_CPP_STD_MOVE 0 + #endif +#endif +#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) +#include +typedef uintptr_t __pyx_uintptr_t; +#ifndef CYTHON_FALLTHROUGH + #if defined(__cplusplus) + /* for clang __has_cpp_attribute(fallthrough) is true even before C++17 + * but leads to warnings with -pedantic, since it is a C++17 feature */ + #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) + #if __has_cpp_attribute(fallthrough) + #define CYTHON_FALLTHROUGH [[fallthrough]] + #endif + #endif + #ifndef CYTHON_FALLTHROUGH + #if __has_cpp_attribute(clang::fallthrough) + #define CYTHON_FALLTHROUGH [[clang::fallthrough]] + #elif __has_cpp_attribute(gnu::fallthrough) + #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] + #endif + #endif + #endif + #ifndef CYTHON_FALLTHROUGH + #if __has_attribute(fallthrough) + #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) + #else + #define CYTHON_FALLTHROUGH + #endif + #endif + #if defined(__clang__) && defined(__apple_build_version__) + #if __apple_build_version__ < 7000000 + #undef CYTHON_FALLTHROUGH + #define CYTHON_FALLTHROUGH + #endif + #endif +#endif +#ifndef Py_UNREACHABLE + #define Py_UNREACHABLE() assert(0); abort() +#endif +#ifdef __cplusplus + template + struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);}; + #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL::value) +#else + #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0) +#endif +#if CYTHON_COMPILING_IN_PYPY == 1 + #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX < 0x030A0000) +#else + #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX < 0x03090000) +#endif +#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer)) + +/* CInitCode */ +#ifndef CYTHON_INLINE + #if defined(__clang__) + #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) + #elif defined(__GNUC__) + #define CYTHON_INLINE __inline__ + #elif defined(_MSC_VER) + #define CYTHON_INLINE __inline + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + #define CYTHON_INLINE inline + #else + #define CYTHON_INLINE + #endif +#endif + +/* PythonCompatibility */ +#define __PYX_BUILD_PY_SSIZE_T "n" +#define CYTHON_FORMAT_SSIZE_T "z" +#define __Pyx_BUILTIN_MODULE_NAME "builtins" +#define __Pyx_DefaultClassType PyType_Type +#if CYTHON_COMPILING_IN_LIMITED_API + #ifndef CO_OPTIMIZED + static int CO_OPTIMIZED; + #endif + #ifndef CO_NEWLOCALS + static int CO_NEWLOCALS; + #endif + #ifndef CO_VARARGS + static int CO_VARARGS; + #endif + #ifndef CO_VARKEYWORDS + static int CO_VARKEYWORDS; + #endif + #ifndef CO_ASYNC_GENERATOR + static int CO_ASYNC_GENERATOR; + #endif + #ifndef CO_GENERATOR + static int CO_GENERATOR; + #endif + #ifndef CO_COROUTINE + static int CO_COROUTINE; + #endif +#else + #ifndef CO_COROUTINE + #define CO_COROUTINE 0x80 + #endif + #ifndef CO_ASYNC_GENERATOR + #define CO_ASYNC_GENERATOR 0x200 + #endif +#endif +static int __Pyx_init_co_variables(void); +#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE) + #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type) +#else + #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type)) +#endif +#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is) + #define __Pyx_Py_Is(x, y) Py_Is(x, y) +#else + #define __Pyx_Py_Is(x, y) ((x) == (y)) +#endif +#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone) + #define __Pyx_Py_IsNone(ob) Py_IsNone(ob) +#else + #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None) +#endif +#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue) + #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob) +#else + #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True) +#endif +#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse) + #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob) +#else + #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False) +#endif +#define __Pyx_NoneAsNull(obj) (__Pyx_Py_IsNone(obj) ? NULL : (obj)) +#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY + #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o) +#else + #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o) +#endif +#ifndef Py_TPFLAGS_CHECKTYPES + #define Py_TPFLAGS_CHECKTYPES 0 +#endif +#ifndef Py_TPFLAGS_HAVE_INDEX + #define Py_TPFLAGS_HAVE_INDEX 0 +#endif +#ifndef Py_TPFLAGS_HAVE_NEWBUFFER + #define Py_TPFLAGS_HAVE_NEWBUFFER 0 +#endif +#ifndef Py_TPFLAGS_HAVE_FINALIZE + #define Py_TPFLAGS_HAVE_FINALIZE 0 +#endif +#ifndef Py_TPFLAGS_SEQUENCE + #define Py_TPFLAGS_SEQUENCE 0 +#endif +#ifndef Py_TPFLAGS_MAPPING + #define Py_TPFLAGS_MAPPING 0 +#endif +#ifndef Py_TPFLAGS_IMMUTABLETYPE + #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8) +#endif +#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION + #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7) +#endif +#ifndef METH_STACKLESS + #define METH_STACKLESS 0 +#endif +#ifndef METH_FASTCALL + #ifndef METH_FASTCALL + #define METH_FASTCALL 0x80 + #endif + typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); + typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, + Py_ssize_t nargs, PyObject *kwnames); +#else + #if PY_VERSION_HEX >= 0x030d00A4 + # define __Pyx_PyCFunctionFast PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords + #else + # define __Pyx_PyCFunctionFast _PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #endif +#endif +#if CYTHON_METH_FASTCALL + #define __Pyx_METH_FASTCALL METH_FASTCALL + #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast + #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords +#else + #define __Pyx_METH_FASTCALL METH_VARARGS + #define __Pyx_PyCFunction_FastCall PyCFunction + #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords +#endif +#if CYTHON_VECTORCALL + #define __pyx_vectorcallfunc vectorcallfunc + #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET PY_VECTORCALL_ARGUMENTS_OFFSET + #define __Pyx_PyVectorcall_NARGS(n) PyVectorcall_NARGS((size_t)(n)) +#else + #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET 0 + #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(n)) +#endif +#if PY_VERSION_HEX >= 0x030900B1 +#define __Pyx_PyCFunction_CheckExact(func) PyCFunction_CheckExact(func) +#else +#define __Pyx_PyCFunction_CheckExact(func) PyCFunction_Check(func) +#endif +#define __Pyx_CyOrPyCFunction_Check(func) PyCFunction_Check(func) +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func) (((PyCFunctionObject*)(func))->m_ml->ml_meth) +#elif !CYTHON_COMPILING_IN_LIMITED_API +#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func) PyCFunction_GET_FUNCTION(func) +#endif +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_CyOrPyCFunction_GET_FLAGS(func) (((PyCFunctionObject*)(func))->m_ml->ml_flags) +static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) { + return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self; +} +#endif +static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) { +#if CYTHON_COMPILING_IN_LIMITED_API + return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc; +#else + return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc; +#endif +} +#define __Pyx_IsSameCFunction(func, cfunc) __Pyx__IsSameCFunction(func, cfunc) +#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000) + #define __Pyx_PyType_FromModuleAndSpec(m, s, b) ((void)m, PyType_FromSpecWithBases(s, b)) + typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *); +#else + #define __Pyx_PyType_FromModuleAndSpec(m, s, b) PyType_FromModuleAndSpec(m, s, b) + #define __Pyx_PyCMethod PyCMethod +#endif +#ifndef METH_METHOD + #define METH_METHOD 0x200 +#endif +#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) + #define PyObject_Malloc(s) PyMem_Malloc(s) + #define PyObject_Free(p) PyMem_Free(p) + #define PyObject_Realloc(p) PyMem_Realloc(p) +#endif +#if CYTHON_COMPILING_IN_LIMITED_API + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) +#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000 + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno)) +#elif CYTHON_COMPILING_IN_GRAAL + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno)) +#else + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) +#endif +#if CYTHON_COMPILING_IN_LIMITED_API + #define __Pyx_PyThreadState_Current PyThreadState_Get() +#elif !CYTHON_FAST_THREAD_STATE + #define __Pyx_PyThreadState_Current PyThreadState_GET() +#elif PY_VERSION_HEX >= 0x030d00A1 + #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked() +#else + #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() +#endif +#if CYTHON_USE_MODULE_STATE +static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op) +{ + void *result; + result = PyModule_GetState(op); + if (!result) + Py_FatalError("Couldn't find the module state"); + return result; +} +#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o) +#else +#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global) +#endif +#define __Pyx_PyObject_GetSlot(obj, name, func_ctype) __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype) +#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype) +#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype) +#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype) +#if CYTHON_USE_TYPE_SLOTS + #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((type)->name) + #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype) + #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL) + #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) +#else + #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((func_ctype) PyType_GetSlot((type), Py_##name)) + #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\ + ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\ + (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\ + __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL) + #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype) + #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype) +#endif +#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) +#define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) +#else +#define __Pyx_PyDict_NewPresized(n) PyDict_New() +#endif +#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) +#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) +#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS +#define __Pyx_PyDict_GetItemStrWithError(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) +static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) { + PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name); + if (res == NULL) PyErr_Clear(); + return res; +} +#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000 +#define __Pyx_PyDict_GetItemStrWithError PyDict_GetItemWithError +#define __Pyx_PyDict_GetItemStr PyDict_GetItem +#else +static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) { +#if CYTHON_COMPILING_IN_PYPY + return PyDict_GetItem(dict, name); +#else + PyDictEntry *ep; + PyDictObject *mp = (PyDictObject*) dict; + long hash = ((PyStringObject *) name)->ob_shash; + assert(hash != -1); + ep = (mp->ma_lookup)(mp, name, hash); + if (ep == NULL) { + return NULL; + } + return ep->me_value; +#endif +} +#define __Pyx_PyDict_GetItemStr PyDict_GetItem +#endif +#if CYTHON_USE_TYPE_SLOTS + #define __Pyx_PyType_GetFlags(tp) (((PyTypeObject *)tp)->tp_flags) + #define __Pyx_PyType_HasFeature(type, feature) ((__Pyx_PyType_GetFlags(type) & (feature)) != 0) +#else + #define __Pyx_PyType_GetFlags(tp) (PyType_GetFlags((PyTypeObject *)tp)) + #define __Pyx_PyType_HasFeature(type, feature) PyType_HasFeature(type, feature) +#endif +#define __Pyx_PyObject_GetIterNextFunc(iterator) __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc) +#if CYTHON_USE_TYPE_SPECS +#define __Pyx_PyHeapTypeObject_GC_Del(obj) {\ + PyTypeObject *type = Py_TYPE((PyObject*)obj);\ + assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\ + PyObject_GC_Del(obj);\ + Py_DECREF(type);\ +} +#else +#define __Pyx_PyHeapTypeObject_GC_Del(obj) PyObject_GC_Del(obj) +#endif +#if CYTHON_COMPILING_IN_LIMITED_API + #define __Pyx_PyUnicode_READY(op) (0) + #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i) + #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((void)u, 1114111U) + #define __Pyx_PyUnicode_KIND(u) ((void)u, (0)) + #define __Pyx_PyUnicode_DATA(u) ((void*)u) + #define __Pyx_PyUnicode_READ(k, d, i) ((void)k, PyUnicode_ReadChar((PyObject*)(d), i)) + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GetLength(u)) +#else + #if PY_VERSION_HEX >= 0x030C0000 + #define __Pyx_PyUnicode_READY(op) (0) + #else + #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ + 0 : _PyUnicode_Ready((PyObject *)(op))) + #endif + #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) + #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) + #define __Pyx_PyUnicode_KIND(u) ((int)PyUnicode_KIND(u)) + #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) + #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) + #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, (Py_UCS4) ch) + #if PY_VERSION_HEX >= 0x030C0000 + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u)) + #else + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000 + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length)) + #else + #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) + #endif + #endif +#endif +#if CYTHON_COMPILING_IN_PYPY + #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) + #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) +#else + #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) + #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ + PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) +#endif +#if CYTHON_COMPILING_IN_PYPY + #if !defined(PyUnicode_DecodeUnicodeEscape) + #define PyUnicode_DecodeUnicodeEscape(s, size, errors) PyUnicode_Decode(s, size, "unicode_escape", errors) + #endif + #if !defined(PyUnicode_Contains) + #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) + #endif + #if !defined(PyByteArray_Check) + #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) + #endif + #if !defined(PyObject_Format) + #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) + #endif +#endif +#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + #define __Pyx_PySequence_ListKeepNew(obj)\ + (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj)) +#elif CYTHON_COMPILING_IN_CPYTHON + #define __Pyx_PySequence_ListKeepNew(obj)\ + (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj)) +#else + #define __Pyx_PySequence_ListKeepNew(obj) PySequence_List(obj) +#endif +#ifndef PySet_CheckExact + #define PySet_CheckExact(obj) __Pyx_IS_TYPE(obj, &PySet_Type) +#endif +#if PY_VERSION_HEX >= 0x030900A4 + #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt) + #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size) +#else + #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt) + #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size) +#endif +enum __Pyx_ReferenceSharing { + __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check + __Pyx_ReferenceSharing_OwnStrongReference, + __Pyx_ReferenceSharing_FunctionArgument, + __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar +}; +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000 +#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\ + (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\ + (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\ + (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0))) +#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API +#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1) +#else +#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0) +#endif +#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS + #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i) + #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) + #else + #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i) + #endif +#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS + #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i) + #else + #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i)) + #endif +#else + #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i)) +#endif +#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\ + __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i)) +#else + #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i) +#endif +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 +#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result) +#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS +static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) { + *result = PyObject_GetItem(dict, key); + if (*result == NULL) { + if (PyErr_ExceptionMatches(PyExc_KeyError)) { + PyErr_Clear(); + return 0; + } + return -1; + } + return 1; +} +#else +static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) { + *result = PyDict_GetItemWithError(dict, key); + if (*result == NULL) { + return PyErr_Occurred() ? -1 : 0; + } + Py_INCREF(*result); + return 1; +} +#endif +#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST + #define __Pyx_VISIT_CONST(obj) Py_VISIT(obj) +#else + #define __Pyx_VISIT_CONST(obj) +#endif +#if CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i) + #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) + #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0)) + #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i) + #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0)) + #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i) +#else + #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i) + #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) + #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v) + #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i) + #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v) + #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i) +#endif +#if CYTHON_ASSUME_SAFE_SIZE + #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o) + #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o) + #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o) + #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o) + #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o) + #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o) +#else + #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o) + #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o) + #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o) + #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o) + #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o) + #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o) +#endif +#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString) + #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) +#endif +#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t +#define __Pyx_PyLong_AsHash_t __Pyx_PyIndex_AsSsize_t +#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000 + #define __Pyx_PySendResult PySendResult +#else + typedef enum { + PYGEN_RETURN = 0, + PYGEN_ERROR = -1, + PYGEN_NEXT = 1, + } __Pyx_PySendResult; +#endif +#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3 + typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result); +#else + #define __Pyx_pyiter_sendfunc sendfunc +#endif +#if !CYTHON_USE_AM_SEND +#define __PYX_HAS_PY_AM_SEND 0 +#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000 +#define __PYX_HAS_PY_AM_SEND 1 +#else +#define __PYX_HAS_PY_AM_SEND 2 // our own backported implementation +#endif +#if __PYX_HAS_PY_AM_SEND < 2 + #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods +#else + typedef struct { + unaryfunc am_await; + unaryfunc am_aiter; + unaryfunc am_anext; + __Pyx_pyiter_sendfunc am_send; + } __Pyx_PyAsyncMethodsStruct; + #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s)) +#endif +#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0 + #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21) +#else + #define __Pyx_TPFLAGS_HAVE_AM_SEND (0) +#endif +#if PY_VERSION_HEX >= 0x03090000 +#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get() +#else +#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp +#endif +#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000 +#ifdef __cplusplus +extern "C" +#endif +PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize); +#endif +#if CYTHON_COMPILING_IN_LIMITED_API +static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) { + int value; + PyObject *py_value = PyObject_GetAttrString(inspect, name); + if (!py_value) return 0; + value = (int) PyLong_AsLong(py_value); + Py_DECREF(py_value); + *write_to = value; + return value != -1 || !PyErr_Occurred(); +} +static int __Pyx_init_co_variables(void) { + PyObject *inspect; + int result; + inspect = PyImport_ImportModule("inspect"); + result = +#if !defined(CO_OPTIMIZED) + __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) && +#endif +#if !defined(CO_NEWLOCALS) + __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) && +#endif +#if !defined(CO_VARARGS) + __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) && +#endif +#if !defined(CO_VARKEYWORDS) + __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) && +#endif +#if !defined(CO_ASYNC_GENERATOR) + __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) && +#endif +#if !defined(CO_GENERATOR) + __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) && +#endif +#if !defined(CO_COROUTINE) + __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) && +#endif + 1; + Py_DECREF(inspect); + return result ? 0 : -1; +} +#else +static int __Pyx_init_co_variables(void) { + return 0; // It's a limited API-only feature +} +#endif + +/* MathInitCode */ +#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) + #ifndef _USE_MATH_DEFINES + #define _USE_MATH_DEFINES + #endif +#endif +#include +#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) +#define __Pyx_truncl trunc +#else +#define __Pyx_truncl truncl +#endif + +#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME +#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0 +#endif +#ifndef CYTHON_CLINE_IN_TRACEBACK +#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME +#endif +#if CYTHON_CLINE_IN_TRACEBACK +#define __PYX_MARK_ERR_POS(f_index, lineno) { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; } +#else +#define __PYX_MARK_ERR_POS(f_index, lineno) { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; } +#endif +#define __PYX_ERR(f_index, lineno, Ln_error) \ + { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; } + +#ifdef CYTHON_EXTERN_C + #undef __PYX_EXTERN_C + #define __PYX_EXTERN_C CYTHON_EXTERN_C +#elif defined(__PYX_EXTERN_C) + #ifdef _MSC_VER + #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.") + #else + #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead. + #endif +#else + #ifdef __cplusplus + #define __PYX_EXTERN_C extern "C" + #else + #define __PYX_EXTERN_C extern + #endif +#endif + +#define __PYX_HAVE__planarity__full__graphLib +#define __PYX_HAVE_API__planarity__full__graphLib +/* Early includes */ +#include "../c/graphLib/lowLevelUtils/apiutils.h" +#include "../c/graphLib/graphLib.h" +#include "../c/graphLib/lowLevelUtils/appconst.h" +#include "../c/graphLib/graph.h" +#include "../c/graphLib/homeomorphSearch/graphK23Search.h" +#include "../c/graphLib/homeomorphSearch/graphK33Search.h" +#include "../c/graphLib/homeomorphSearch/graphK4Search.h" +#include "../c/graphLib/io/graphIO.h" +#include "../c/graphLib/planarityRelated/graphDrawPlanar.h" +#include "../c/graphLib/planarityRelated/graphOuterplanarity.h" +#include "../c/graphLib/planarityRelated/graphPlanarity.h" +#include "../c/graphLib/io/g6-read-iterator.h" +#include "../c/graphLib/io/g6-write-iterator.h" +#ifdef _OPENMP +#include +#endif /* _OPENMP */ + +#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) +#define CYTHON_WITHOUT_ASSERTIONS +#endif + +#ifdef CYTHON_FREETHREADING_COMPATIBLE +#if CYTHON_FREETHREADING_COMPATIBLE +#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED +#else +#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED +#endif +#else +#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED +#endif +#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 +#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0 +#define __PYX_DEFAULT_STRING_ENCODING "" +#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString +#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize +#define __Pyx_uchar_cast(c) ((unsigned char)c) +#define __Pyx_long_cast(x) ((long)x) +#define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ + (sizeof(type) < sizeof(Py_ssize_t)) ||\ + (sizeof(type) > sizeof(Py_ssize_t) &&\ + likely(v < (type)PY_SSIZE_T_MAX ||\ + v == (type)PY_SSIZE_T_MAX) &&\ + (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ + v == (type)PY_SSIZE_T_MIN))) ||\ + (sizeof(type) == sizeof(Py_ssize_t) &&\ + (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ + v == (type)PY_SSIZE_T_MAX))) ) +static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) { + return (size_t) i < (size_t) limit; +} +#if defined (__cplusplus) && __cplusplus >= 201103L + #include + #define __Pyx_sst_abs(value) std::abs(value) +#elif SIZEOF_INT >= SIZEOF_SIZE_T + #define __Pyx_sst_abs(value) abs(value) +#elif SIZEOF_LONG >= SIZEOF_SIZE_T + #define __Pyx_sst_abs(value) labs(value) +#elif defined (_MSC_VER) + #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) +#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + #define __Pyx_sst_abs(value) llabs(value) +#elif defined (__GNUC__) + #define __Pyx_sst_abs(value) __builtin_llabs(value) +#else + #define __Pyx_sst_abs(value) ((value<0) ? -value : value) +#endif +static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s); +static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); +static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); +static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*); +#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) +#define __Pyx_PyBytes_FromString PyBytes_FromString +#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize +static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); +#if CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) + #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) + #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) + #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) + #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) + #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) + #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s) +#else + #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AsString(s)) + #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AsString(s)) + #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AsString(s)) + #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AsString(s)) + #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AsString(s)) + #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AsString(s)) + #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s) +#endif +#define __Pyx_PyObject_AsWritableString(s) ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsWritableSString(s) ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) +#define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) +#define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) +#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) +#define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o) +#define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode +static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) { +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef) + return Py_NewRef(obj); +#else + Py_INCREF(obj); + return obj; +#endif +} +static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) { +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef) + return Py_XNewRef(obj); +#else + Py_XINCREF(obj); + return obj; +#endif +} +static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b); +static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); +static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); +static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*); +static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x); +#define __Pyx_PySequence_Tuple(obj)\ + (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) +static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); +static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t); +static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); +#if CYTHON_ASSUME_SAFE_MACROS +#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) +#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x) +#else +#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) +#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x) +#endif +#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x)) +#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) +#if CYTHON_USE_PYLONG_INTERNALS + #if PY_VERSION_HEX >= 0x030C00A7 + #ifndef _PyLong_SIGN_MASK + #define _PyLong_SIGN_MASK 3 + #endif + #ifndef _PyLong_NON_SIZE_BITS + #define _PyLong_NON_SIZE_BITS 3 + #endif + #define __Pyx_PyLong_Sign(x) (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK) + #define __Pyx_PyLong_IsNeg(x) ((__Pyx_PyLong_Sign(x) & 2) != 0) + #define __Pyx_PyLong_IsNonNeg(x) (!__Pyx_PyLong_IsNeg(x)) + #define __Pyx_PyLong_IsZero(x) (__Pyx_PyLong_Sign(x) & 1) + #define __Pyx_PyLong_IsPos(x) (__Pyx_PyLong_Sign(x) == 0) + #define __Pyx_PyLong_CompactValueUnsigned(x) (__Pyx_PyLong_Digits(x)[0]) + #define __Pyx_PyLong_DigitCount(x) ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS)) + #define __Pyx_PyLong_SignedDigitCount(x)\ + ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x)) + #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue) + #define __Pyx_PyLong_IsCompact(x) PyUnstable_Long_IsCompact((PyLongObject*) x) + #define __Pyx_PyLong_CompactValue(x) PyUnstable_Long_CompactValue((PyLongObject*) x) + #else + #define __Pyx_PyLong_IsCompact(x) (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS)) + #define __Pyx_PyLong_CompactValue(x) ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0]) + #endif + typedef Py_ssize_t __Pyx_compact_pylong; + typedef size_t __Pyx_compact_upylong; + #else + #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0) + #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0) + #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0) + #define __Pyx_PyLong_IsPos(x) (Py_SIZE(x) > 0) + #define __Pyx_PyLong_CompactValueUnsigned(x) ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0]) + #define __Pyx_PyLong_DigitCount(x) __Pyx_sst_abs(Py_SIZE(x)) + #define __Pyx_PyLong_SignedDigitCount(x) Py_SIZE(x) + #define __Pyx_PyLong_IsCompact(x) (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1) + #define __Pyx_PyLong_CompactValue(x)\ + ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0])) + typedef sdigit __Pyx_compact_pylong; + typedef digit __Pyx_compact_upylong; + #endif + #if PY_VERSION_HEX >= 0x030C00A5 + #define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->long_value.ob_digit) + #else + #define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->ob_digit) + #endif +#endif +#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 + #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) +#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII + #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL) +#else + #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) +#endif + + +/* Test for GCC > 2.95 */ +#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) + #define likely(x) __builtin_expect(!!(x), 1) + #define unlikely(x) __builtin_expect(!!(x), 0) +#else /* !__GNUC__ or GCC < 2.95 */ + #define likely(x) (x) + #define unlikely(x) (x) +#endif /* __GNUC__ */ +/* PretendToInitialize */ +#ifdef __cplusplus +#if __cplusplus > 201103L +#include +#endif +template +static void __Pyx_pretend_to_initialize(T* ptr) { +#if __cplusplus > 201103L + if ((std::is_trivially_default_constructible::value)) +#endif + *ptr = T(); + (void)ptr; +} +#else +static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } +#endif + + +#if !CYTHON_USE_MODULE_STATE +static PyObject *__pyx_m = NULL; +#endif +static int __pyx_lineno; +static int __pyx_clineno = 0; +static const char * const __pyx_cfilenm = __FILE__; +static const char *__pyx_filename; + +/* #### Code section: filename_table ### */ + +static const char* const __pyx_f[] = { + "planarity/full/graphLib.pyx", +}; +/* #### Code section: utility_code_proto_before_types ### */ +/* Atomics.proto (used by UnpackUnboundCMethod) */ +#include +#ifndef CYTHON_ATOMICS + #define CYTHON_ATOMICS 1 +#endif +#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS +#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING +#define __pyx_atomic_int_type int +#define __pyx_nonatomic_int_type int +#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\ + (__STDC_VERSION__ >= 201112L) &&\ + !defined(__STDC_NO_ATOMICS__)) + #include +#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\ + (__cplusplus >= 201103L) ||\ + (defined(_MSC_VER) && _MSC_VER >= 1700))) + #include +#endif +#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\ + (__STDC_VERSION__ >= 201112L) &&\ + !defined(__STDC_NO_ATOMICS__) &&\ + ATOMIC_INT_LOCK_FREE == 2) + #undef __pyx_atomic_int_type + #define __pyx_atomic_int_type atomic_int + #define __pyx_atomic_ptr_type atomic_uintptr_t + #define __pyx_nonatomic_ptr_type uintptr_t + #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed) + #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel) + #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel) + #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg) + #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired) + #define __pyx_atomic_load(value) atomic_load(value) + #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value) + #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed) + #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire) + #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value) + #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired) + #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER) + #pragma message ("Using standard C atomics") + #elif defined(__PYX_DEBUG_ATOMICS) + #warning "Using standard C atomics" + #endif +#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\ + (__cplusplus >= 201103L) ||\ +\ + (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\ + ATOMIC_INT_LOCK_FREE == 2) + #undef __pyx_atomic_int_type + #define __pyx_atomic_int_type std::atomic_int + #define __pyx_atomic_ptr_type std::atomic_uintptr_t + #define __pyx_nonatomic_ptr_type uintptr_t + #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed) + #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel) + #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel) + #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg) + #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired) + #define __pyx_atomic_load(value) std::atomic_load(value) + #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value) + #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed) + #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire) + #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value) + #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired) + #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER) + #pragma message ("Using standard C++ atomics") + #elif defined(__PYX_DEBUG_ATOMICS) + #warning "Using standard C++ atomics" + #endif +#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\ + (__GNUC_MINOR__ > 1 ||\ + (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2)))) + #define __pyx_atomic_ptr_type void* + #define __pyx_nonatomic_ptr_type void* + #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1) + #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1) + #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1) + #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg) + static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) { + __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired); + int result = old == *expected; + *expected = old; + return result; + } + #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0) + #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value) + #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0) + #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0) + #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value) + static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) { + __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired); + int result = old == *expected; + *expected = old; + return result; + } + #ifdef __PYX_DEBUG_ATOMICS + #warning "Using GNU atomics" + #endif +#elif CYTHON_ATOMICS && defined(_MSC_VER) + #include + #undef __pyx_atomic_int_type + #define __pyx_atomic_int_type long + #define __pyx_atomic_ptr_type void* + #undef __pyx_nonatomic_int_type + #define __pyx_nonatomic_int_type long + #define __pyx_nonatomic_ptr_type void* + #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer) + #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1) + #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1) + #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1) + #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg) + static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) { + __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected); + int result = old == *expected; + *expected = old; + return result; + } + #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0) + #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value) + #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value + #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0) + #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value) + static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) { + __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected); + int result = old == *expected; + *expected = old; + return result; + } + #ifdef __PYX_DEBUG_ATOMICS + #pragma message ("Using MSVC atomics") + #endif +#else + #undef CYTHON_ATOMICS + #define CYTHON_ATOMICS 0 + #ifdef __PYX_DEBUG_ATOMICS + #warning "Not using atomics" + #endif +#endif + +/* CriticalSectionsDefinition.proto (used by CriticalSections) */ +#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING +#define __Pyx_PyCriticalSection void* +#define __Pyx_PyCriticalSection2 void* +#define __Pyx_PyCriticalSection_End(cs) +#define __Pyx_PyCriticalSection2_End(cs) +#else +#define __Pyx_PyCriticalSection PyCriticalSection +#define __Pyx_PyCriticalSection2 PyCriticalSection2 +#define __Pyx_PyCriticalSection_End PyCriticalSection_End +#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End +#endif + +/* CriticalSections.proto (used by ParseKeywordsImpl) */ +#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING +#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs) +#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs) +#else +#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin +#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin +#endif +#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API +#define __Pyx_BEGIN_CRITICAL_SECTION(o) { +#define __Pyx_END_CRITICAL_SECTION() } +#else +#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION +#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION +#endif + +/* IncludeStructmemberH.proto (used by FixUpExtensionType) */ +#include + +/* #### Code section: numeric_typedefs ### */ +/* #### Code section: complex_type_declarations ### */ +/* #### Code section: type_declarations ### */ + +/*--- Type declarations ---*/ +/* #### Code section: utility_code_proto ### */ + +/* --- Runtime support code (head) --- */ +/* Refnanny.proto */ +#ifndef CYTHON_REFNANNY + #define CYTHON_REFNANNY 0 +#endif +#if CYTHON_REFNANNY + typedef struct { + void (*INCREF)(void*, PyObject*, Py_ssize_t); + void (*DECREF)(void*, PyObject*, Py_ssize_t); + void (*GOTREF)(void*, PyObject*, Py_ssize_t); + void (*GIVEREF)(void*, PyObject*, Py_ssize_t); + void* (*SetupContext)(const char*, Py_ssize_t, const char*); + void (*FinishContext)(void**); + } __Pyx_RefNannyAPIStruct; + static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; + static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); + #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; + #define __Pyx_RefNannySetupContext(name, acquire_gil)\ + if (acquire_gil) {\ + PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ + __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\ + PyGILState_Release(__pyx_gilstate_save);\ + } else {\ + __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\ + } + #define __Pyx_RefNannyFinishContextNogil() {\ + PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ + __Pyx_RefNannyFinishContext();\ + PyGILState_Release(__pyx_gilstate_save);\ + } + #define __Pyx_RefNannyFinishContextNogil() {\ + PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ + __Pyx_RefNannyFinishContext();\ + PyGILState_Release(__pyx_gilstate_save);\ + } + #define __Pyx_RefNannyFinishContext()\ + __Pyx_RefNanny->FinishContext(&__pyx_refnanny) + #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) + #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) + #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) + #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) + #define __Pyx_XINCREF(r) do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0) + #define __Pyx_XDECREF(r) do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0) + #define __Pyx_XGOTREF(r) do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0) + #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0) +#else + #define __Pyx_RefNannyDeclarations + #define __Pyx_RefNannySetupContext(name, acquire_gil) + #define __Pyx_RefNannyFinishContextNogil() + #define __Pyx_RefNannyFinishContext() + #define __Pyx_INCREF(r) Py_INCREF(r) + #define __Pyx_DECREF(r) Py_DECREF(r) + #define __Pyx_GOTREF(r) + #define __Pyx_GIVEREF(r) + #define __Pyx_XINCREF(r) Py_XINCREF(r) + #define __Pyx_XDECREF(r) Py_XDECREF(r) + #define __Pyx_XGOTREF(r) + #define __Pyx_XGIVEREF(r) +#endif +#define __Pyx_Py_XDECREF_SET(r, v) do {\ + PyObject *tmp = (PyObject *) r;\ + r = v; Py_XDECREF(tmp);\ + } while (0) +#define __Pyx_XDECREF_SET(r, v) do {\ + PyObject *tmp = (PyObject *) r;\ + r = v; __Pyx_XDECREF(tmp);\ + } while (0) +#define __Pyx_DECREF_SET(r, v) do {\ + PyObject *tmp = (PyObject *) r;\ + r = v; __Pyx_DECREF(tmp);\ + } while (0) +#define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) +#define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) + +/* TupleAndListFromArray.proto (used by fastcall) */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n); +#endif +#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL +static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n); +#endif + +/* IncludeStringH.proto (used by BytesEquals) */ +#include + +/* BytesEquals.proto (used by UnicodeEquals) */ +static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); + +/* UnicodeEquals.proto (used by fastcall) */ +static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); + +/* fastcall.proto */ +#if CYTHON_AVOID_BORROWED_REFS + #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i) +#elif CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i)) +#else + #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i)) +#endif +#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds) +#define __Pyx_KwValues_VARARGS(args, nargs) NULL +#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s) +#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw) +#if CYTHON_METH_FASTCALL + #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i]) + #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds) + #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs)) + static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API + CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues); + #else + #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw) + #endif +#else + #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS + #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS + #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS + #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS + #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS +#endif +#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop) +#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) +#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start) +#else +#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop) +#endif + +/* pyint_simplify.proto */ +static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none); + +/* py_dict_items.proto (used by OwnedDictNext) */ +static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d); + +/* CallCFunction.proto (used by CallUnboundCMethod0) */ +#define __Pyx_CallCFunction(cfunc, self, args)\ + ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args) +#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\ + ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs) +#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\ + ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs) +#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\ + ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames) + +/* PyObjectCall.proto (used by PyObjectFastCall) */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); +#else +#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) +#endif + +/* PyObjectCallMethO.proto (used by PyObjectFastCall) */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); +#endif + +/* PyObjectFastCall.proto (used by PyObjectCallOneArg) */ +#define __Pyx_PyObject_FastCall(func, args, nargs) __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL) +static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs); + +/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); + +/* PyObjectGetAttrStr.proto (used by UnpackUnboundCMethod) */ +#if CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); +#else +#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) +#endif + +/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */ +typedef struct { + PyObject *type; + PyObject **method_name; +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS + __pyx_atomic_int_type initialized; +#endif + PyCFunction func; + PyObject *method; + int flag; +} __Pyx_CachedCFunction; +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING +static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) { +#if !CYTHON_ATOMICS + return 1; +#else + __pyx_nonatomic_int_type expected = 0; + if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) { + return 0; + } + return expected; +#endif +} +static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) { +#if CYTHON_ATOMICS + __pyx_atomic_store(&cfunc->initialized, 2); +#endif +} +#else +#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2 +#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc) +#endif + +/* CallUnboundCMethod0.proto */ +CYTHON_UNUSED +static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self); +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self); +#else +#define __Pyx_CallUnboundCMethod0(cfunc, self) __Pyx__CallUnboundCMethod0(cfunc, self) +#endif + +/* py_dict_values.proto (used by OwnedDictNext) */ +static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d); + +/* OwnedDictNext.proto (used by ParseKeywordsImpl) */ +#if CYTHON_AVOID_BORROWED_REFS +static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue); +#else +CYTHON_INLINE +static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue); +#endif + +/* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */ +static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); + +/* ParseKeywordsImpl.export */ +static int __Pyx_ParseKeywordsTuple( + PyObject *kwds, + PyObject * const *kwvalues, + PyObject ** const argnames[], + PyObject *kwds2, + PyObject *values[], + Py_ssize_t num_pos_args, + Py_ssize_t num_kwargs, + const char* function_name, + int ignore_unknown_kwargs +); +static int __Pyx_ParseKeywordDictToDict( + PyObject *kwds, + PyObject ** const argnames[], + PyObject *kwds2, + PyObject *values[], + Py_ssize_t num_pos_args, + const char* function_name +); +static int __Pyx_ParseKeywordDict( + PyObject *kwds, + PyObject ** const argnames[], + PyObject *values[], + Py_ssize_t num_pos_args, + Py_ssize_t num_kwargs, + const char* function_name, + int ignore_unknown_kwargs +); + +/* CallUnboundCMethod2.proto */ +CYTHON_UNUSED +static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2); +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2); +#else +#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2) __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2) +#endif + +/* ParseKeywords.proto */ +static CYTHON_INLINE int __Pyx_ParseKeywords( + PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[], + PyObject *kwds2, PyObject *values[], + Py_ssize_t num_pos_args, Py_ssize_t num_kwargs, + const char* function_name, + int ignore_unknown_kwargs +); + +/* RaiseArgTupleInvalid.proto */ +static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, + Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); + +/* decode_c_string_utf16.proto (used by decode_c_bytes) */ +static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) { + int byteorder = 0; + return PyUnicode_DecodeUTF16(s, size, errors, &byteorder); +} +static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) { + int byteorder = -1; + return PyUnicode_DecodeUTF16(s, size, errors, &byteorder); +} +static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) { + int byteorder = 1; + return PyUnicode_DecodeUTF16(s, size, errors, &byteorder); +} + +/* decode_c_bytes.proto (used by decode_bytes) */ +static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes( + const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop, + const char* encoding, const char* errors, + PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)); + +/* decode_bytes.proto */ +static CYTHON_INLINE PyObject* __Pyx_decode_bytes( + PyObject* string, Py_ssize_t start, Py_ssize_t stop, + const char* encoding, const char* errors, + PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) { + char* as_c_string; + Py_ssize_t size; +#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE + as_c_string = PyBytes_AS_STRING(string); + size = PyBytes_GET_SIZE(string); +#else + if (PyBytes_AsStringAndSize(string, &as_c_string, &size) < 0) { + return NULL; + } +#endif + return __Pyx_decode_c_bytes( + as_c_string, size, + start, stop, encoding, errors, decode_func); +} + +/* RaiseUnexpectedTypeError.proto */ +static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj); + +/* FunctionExport.proto */ +static int __Pyx_ExportFunction(PyObject *api_dict, const char *name, void (*f)(void), const char *sig); + +/* GetApiDict.proto */ +static PyObject *__Pyx_ApiExport_GetApiDict(void); + +/* dict_setdefault.proto (used by FetchCommonType) */ +static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value); + +/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */ +#if CYTHON_COMPILING_IN_LIMITED_API +static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp); +#endif + +/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */ +static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v); +#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v) + +/* FixUpExtensionType.proto (used by FetchCommonType) */ +static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type); + +/* AddModuleRef.proto (used by FetchSharedCythonModule) */ +#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\ + __PYX_LIMITED_VERSION_HEX < 0x030d0000) + static PyObject *__Pyx_PyImport_AddModuleRef(const char *name); +#else + #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) +#endif + +/* FetchSharedCythonModule.proto (used by FetchCommonType) */ +static PyObject *__Pyx_FetchSharedCythonABIModule(void); + +/* FetchCommonType.proto (used by CommonTypesMetaclass) */ +static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases); + +/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */ +static int __pyx_CommonTypesMetaclass_init(PyObject *module); +#define __Pyx_CommonTypesMetaclass_USED + +/* CallTypeTraverse.proto (used by CythonFunctionShared) */ +#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000) +#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0 +#else +static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg); +#endif + +/* PyMethodNew.proto (used by CythonFunctionShared) */ +static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ); + +/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */ +#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL +static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw); +#endif + +/* CythonFunctionShared.proto (used by CythonFunction) */ +#define __Pyx_CyFunction_USED +#define __Pyx_CYFUNCTION_STATICMETHOD 0x01 +#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 +#define __Pyx_CYFUNCTION_CCLASS 0x04 +#define __Pyx_CYFUNCTION_COROUTINE 0x08 +#define __Pyx_CyFunction_GetClosure(f)\ + (((__pyx_CyFunctionObject *) (f))->func_closure) +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API + #define __Pyx_CyFunction_GetClassObj(f)\ + (((__pyx_CyFunctionObject *) (f))->func_classobj) +#else + #define __Pyx_CyFunction_GetClassObj(f)\ + ((PyObject*) ((PyCMethodObject *) (f))->mm_class) +#endif +#define __Pyx_CyFunction_SetClassObj(f, classobj)\ + __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj)) +#define __Pyx_CyFunction_Defaults(type, f)\ + ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) +#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ + ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) +typedef struct { +#if CYTHON_COMPILING_IN_LIMITED_API + PyObject_HEAD + PyObject *func; +#elif PY_VERSION_HEX < 0x030900B1 + PyCFunctionObject func; +#else + PyCMethodObject func; +#endif +#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL + __pyx_vectorcallfunc func_vectorcall; +#endif +#if CYTHON_COMPILING_IN_LIMITED_API + PyObject *func_weakreflist; +#endif +#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API + PyObject *func_dict; +#endif + PyObject *func_name; + PyObject *func_qualname; + PyObject *func_doc; + PyObject *func_globals; + PyObject *func_code; + PyObject *func_closure; +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API + PyObject *func_classobj; +#endif + PyObject *defaults; + int flags; + PyObject *defaults_tuple; + PyObject *defaults_kwdict; + PyObject *(*defaults_getter)(PyObject *); + PyObject *func_annotations; + PyObject *func_is_coroutine; +} __pyx_CyFunctionObject; +#undef __Pyx_CyOrPyCFunction_Check +#define __Pyx_CyFunction_Check(obj) __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType) +#define __Pyx_CyOrPyCFunction_Check(obj) __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type) +#define __Pyx_CyFunction_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType) +static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)); +#undef __Pyx_IsSameCFunction +#define __Pyx_IsSameCFunction(func, cfunc) __Pyx__IsSameCyOrCFunction(func, cfunc) +static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml, + int flags, PyObject* qualname, + PyObject *closure, + PyObject *module, PyObject *globals, + PyObject* code); +static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj); +static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, + PyTypeObject *defaults_type); +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, + PyObject *tuple); +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, + PyObject *dict); +static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, + PyObject *dict); +static int __pyx_CyFunction_init(PyObject *module); +#if CYTHON_METH_FASTCALL +static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); +static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); +static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); +static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); +#if CYTHON_COMPILING_IN_LIMITED_API +#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall) +#else +#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall) +#endif +#endif + +/* CythonFunction.proto */ +static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, + int flags, PyObject* qualname, + PyObject *closure, + PyObject *module, PyObject *globals, + PyObject* code); + +/* PyDictVersioning.proto (used by CLineInTraceback) */ +#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS +#define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) +#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) +#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ + (version_var) = __PYX_GET_DICT_VERSION(dict);\ + (cache_var) = (value); +#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ + static PY_UINT64_T __pyx_dict_version = 0;\ + static PyObject *__pyx_dict_cached_value = NULL;\ + if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ + (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\ + } else {\ + (VAR) = __pyx_dict_cached_value = (LOOKUP);\ + __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ + }\ +} +static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); +static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); +static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); +#else +#define __PYX_GET_DICT_VERSION(dict) (0) +#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) +#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); +#endif + +/* 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); +#else +#define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) +#endif + +/* PyThreadStateGet.proto (used by PyErrFetchRestore) */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; +#define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; +#if PY_VERSION_HEX >= 0x030C00A6 +#define __Pyx_PyErr_Occurred() (__pyx_tstate->current_exception != NULL) +#define __Pyx_PyErr_CurrentExceptionType() (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL) +#else +#define __Pyx_PyErr_Occurred() (__pyx_tstate->curexc_type != NULL) +#define __Pyx_PyErr_CurrentExceptionType() (__pyx_tstate->curexc_type) +#endif +#else +#define __Pyx_PyThreadState_declare +#define __Pyx_PyThreadState_assign +#define __Pyx_PyErr_Occurred() (PyErr_Occurred() != NULL) +#define __Pyx_PyErr_CurrentExceptionType() PyErr_Occurred() +#endif + +/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) +#define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) +#define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) +#define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) +#define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); +static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6 +#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) +#else +#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) +#endif +#else +#define __Pyx_PyErr_Clear() PyErr_Clear() +#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) +#define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) +#define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) +#define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) +#define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) +#define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) +#define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) +#endif + +/* PyObjectGetAttrStrNoError.proto (used by CLineInTraceback) */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); + +/* CLineInTraceback.proto (used by AddTraceback) */ +#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME +static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); +#else +#define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) +#endif + +/* CodeObjectCache.proto (used by AddTraceback) */ +#if CYTHON_COMPILING_IN_LIMITED_API +typedef PyObject __Pyx_CachedCodeObjectType; +#else +typedef PyCodeObject __Pyx_CachedCodeObjectType; +#endif +typedef struct { + __Pyx_CachedCodeObjectType* code_object; + int code_line; +} __Pyx_CodeObjectCacheEntry; +struct __Pyx_CodeObjectCache { + int count; + int max_count; + __Pyx_CodeObjectCacheEntry* entries; + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + __pyx_atomic_int_type accessor_count; + #endif +}; +static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); +static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line); +static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object); + +/* AddTraceback.proto */ +static void __Pyx_AddTraceback(const char *funcname, int c_line, + int py_line, const char *filename); + +/* GCCDiagnostics.proto */ +#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) +#define __Pyx_HAS_GCC_DIAGNOSTIC +#endif + +/* PyObjectVectorCallKwBuilder.proto (used by CIntToPy) */ +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n); +#if CYTHON_VECTORCALL +#if PY_VERSION_HEX >= 0x03090000 +#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall +#else +#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall +#endif +#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n) +static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n); +static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n); +#else +#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict +#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n) +#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value) +#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value) +#endif + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value); + +/* CIntFromPy.proto */ +static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *); + +/* FormatTypeName.proto */ +#if CYTHON_COMPILING_IN_LIMITED_API +typedef PyObject *__Pyx_TypeName; +#define __Pyx_FMT_TYPENAME "%U" +#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj) +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 +#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName +#else +static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp); +#endif +#else // !LIMITED_API +typedef const char *__Pyx_TypeName; +#define __Pyx_FMT_TYPENAME "%.200s" +#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name) +#define __Pyx_DECREF_TypeName(obj) +#endif + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value); + +/* CIntFromPy.proto */ +static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *); + +/* FastTypeChecks.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) +#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2) +static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); +static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b); +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); +#else +#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) +#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2)) +#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) { + return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2); +} +#endif +#define __Pyx_PyErr_ExceptionMatches2(err1, err2) __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2) +#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) +#ifdef PyExceptionInstance_Check + #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj) +#else + #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException) +#endif + +/* GetRuntimeVersion.proto */ +#if __PYX_LIMITED_VERSION_HEX < 0x030b0000 +static unsigned long __Pyx_cached_runtime_version = 0; +static void __Pyx_init_runtime_version(void); +#else +#define __Pyx_init_runtime_version() +#endif +static unsigned long __Pyx_get_runtime_version(void); + +/* CheckBinaryVersion.proto */ +static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer); + +/* DecompressString.proto */ +static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo); + +/* MultiPhaseInitModuleState.proto */ +#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE +static PyObject *__Pyx_State_FindModule(void*); +static int __Pyx_State_AddModule(PyObject* module, void*); +static int __Pyx_State_RemoveModule(void*); +#elif CYTHON_USE_MODULE_STATE +#define __Pyx_State_FindModule PyState_FindModule +#define __Pyx_State_AddModule PyState_AddModule +#define __Pyx_State_RemoveModule PyState_RemoveModule +#endif + +/* #### Code section: module_declarations ### */ +/* CythonABIVersion.proto */ +#if CYTHON_COMPILING_IN_LIMITED_API + #if CYTHON_METH_FASTCALL + #define __PYX_FASTCALL_ABI_SUFFIX "_fastcall" + #else + #define __PYX_FASTCALL_ABI_SUFFIX + #endif + #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX +#else + #define __PYX_LIMITED_ABI_SUFFIX +#endif +#if __PYX_HAS_PY_AM_SEND == 1 + #define __PYX_AM_SEND_ABI_SUFFIX +#elif __PYX_HAS_PY_AM_SEND == 2 + #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport" +#else + #define __PYX_AM_SEND_ABI_SUFFIX "noamsend" +#endif +#ifndef __PYX_MONITORING_ABI_SUFFIX + #define __PYX_MONITORING_ABI_SUFFIX +#endif +#if CYTHON_USE_TP_FINALIZE + #define __PYX_TP_FINALIZE_ABI_SUFFIX +#else + #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize" +#endif +#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED) + #define __PYX_FREELISTS_ABI_SUFFIX +#else + #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists" +#endif +#define CYTHON_ABI __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX +#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI +#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "." + + +/* Module declarations from "planarity.full" */ + +/* Module declarations from "planarity.full.cgraphLib" */ + +/* Module declarations from "planarity.full.graphLib" */ +/* #### Code section: typeinfo ### */ +/* #### Code section: before_global_var ### */ +#define __Pyx_MODULE_NAME "planarity.full.graphLib" +extern int __pyx_module_is_main_planarity__full__graphLib; +int __pyx_module_is_main_planarity__full__graphLib = 0; + +/* Implementation of "planarity.full.graphLib" */ +/* #### Code section: global_var ### */ +/* #### Code section: string_decls ### */ +static const char __pyx_k_Cython_wrapper_for_the_Edge_Add[] = "\nCython wrapper for the Edge Addition Planarity Suite Graph Library\n\nWraps functions and macros that operate over graphP structs and to exposes the \nG6 read and write iterator machinery.\n\nNOTE: No bounds/error checking is done here, and is rather the responsibility\nof the caller to make sure these functions are being called legitimately.\n"; +/* #### Code section: decls ### */ +static PyObject *__pyx_pf_9planarity_4full_8graphLib_gp_GetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_8graphLib_2gp_SetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_newQuietModeFlag); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_8graphLib_4gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +/* #### Code section: late_includes ### */ +/* #### Code section: module_state ### */ +/* SmallCodeConfig */ +#ifndef CYTHON_SMALL_CODE +#if defined(__clang__) + #define CYTHON_SMALL_CODE +#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) + #define CYTHON_SMALL_CODE __attribute__((cold)) +#else + #define CYTHON_SMALL_CODE +#endif +#endif + +typedef struct { + PyObject *__pyx_d; + PyObject *__pyx_b; + PyObject *__pyx_cython_runtime; + PyObject *__pyx_empty_tuple; + PyObject *__pyx_empty_bytes; + PyObject *__pyx_empty_unicode; + __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items; + __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; + __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; + PyObject *__pyx_codeobj_tab[4]; + PyObject *__pyx_string_tab[47]; +/* #### Code section: module_state_contents ### */ +/* CommonTypesMetaclass.module_state_decls */ +PyTypeObject *__pyx_CommonTypesMetaclassType; + +/* CachedMethodType.module_state_decls */ +#if CYTHON_COMPILING_IN_LIMITED_API +PyObject *__Pyx_CachedMethodType; +#endif + +/* CythonFunctionShared.module_state_decls */ +PyTypeObject *__pyx_CyFunctionType; + +/* CodeObjectCache.module_state_decls */ +struct __Pyx_CodeObjectCache __pyx_code_cache; + +/* #### Code section: module_state_end ### */ +} __pyx_mstatetype; + +#if CYTHON_USE_MODULE_STATE +#ifdef __cplusplus +namespace { +extern struct PyModuleDef __pyx_moduledef; +} /* anonymous namespace */ +#else +static struct PyModuleDef __pyx_moduledef; +#endif + +#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef))) + +#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef)) +#else +static __pyx_mstatetype __pyx_mstate_global_static = +#ifdef __cplusplus + {}; +#else + {0}; +#endif +static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static; +#endif +/* #### Code section: constant_name_defines ### */ +#define __pyx_kp_u_ __pyx_string_tab[0] +#define __pyx_kp_u_planarity_full_graphLib_pyx __pyx_string_tab[1] +#define __pyx_n_u_AT_EDGE_CAPACITY_LIMIT __pyx_string_tab[2] +#define __pyx_n_u_EMBEDFLAGS_DRAWPLANAR __pyx_string_tab[3] +#define __pyx_n_u_EMBEDFLAGS_OUTERPLANAR __pyx_string_tab[4] +#define __pyx_n_u_EMBEDFLAGS_PLANAR __pyx_string_tab[5] +#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK23 __pyx_string_tab[6] +#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK33 __pyx_string_tab[7] +#define __pyx_n_u_EMBEDFLAGS_SEARCHFORK4 __pyx_string_tab[8] +#define __pyx_n_u_NIL __pyx_string_tab[9] +#define __pyx_n_u_NONEMBEDDABLE __pyx_string_tab[10] +#define __pyx_n_u_NOTOK __pyx_string_tab[11] +#define __pyx_n_u_None __pyx_string_tab[12] +#define __pyx_n_u_OK __pyx_string_tab[13] +#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[14] +#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[15] +#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[16] +#define __pyx_n_u_WRITE_G6 __pyx_string_tab[17] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[18] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[19] +#define __pyx_n_u_encoded_version __pyx_string_tab[20] +#define __pyx_n_u_func __pyx_string_tab[21] +#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[22] +#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[23] +#define __pyx_n_u_gp_GetQuietModeFlag __pyx_string_tab[24] +#define __pyx_n_u_gp_SetQuietModeFlag __pyx_string_tab[25] +#define __pyx_n_u_int __pyx_string_tab[26] +#define __pyx_n_u_is_coroutine __pyx_string_tab[27] +#define __pyx_n_u_items __pyx_string_tab[28] +#define __pyx_n_u_main __pyx_string_tab[29] +#define __pyx_n_u_module __pyx_string_tab[30] +#define __pyx_n_u_name __pyx_string_tab[31] +#define __pyx_n_u_newQuietModeFlag __pyx_string_tab[32] +#define __pyx_n_u_planarity_full_graphLib __pyx_string_tab[33] +#define __pyx_n_u_pop __pyx_string_tab[34] +#define __pyx_n_u_pyx_capi __pyx_string_tab[35] +#define __pyx_n_u_qualname __pyx_string_tab[36] +#define __pyx_n_u_return __pyx_string_tab[37] +#define __pyx_n_u_set_name __pyx_string_tab[38] +#define __pyx_n_u_setdefault __pyx_string_tab[39] +#define __pyx_n_u_test __pyx_string_tab[40] +#define __pyx_n_u_values __pyx_string_tab[41] +#define __pyx_kp_b_PyObject_G6ReadIteratorP_graphP __pyx_string_tab[42] +#define __pyx_kp_b_iso88591_1 __pyx_string_tab[43] +#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[44] +#define __pyx_kp_b_iso88591_H __pyx_string_tab[45] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[46] +/* #### Code section: module_state_clear ### */ +#if CYTHON_USE_MODULE_STATE +static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { + __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m); + if (!clear_module_state) return 0; + Py_CLEAR(clear_module_state->__pyx_d); + Py_CLEAR(clear_module_state->__pyx_b); + Py_CLEAR(clear_module_state->__pyx_cython_runtime); + Py_CLEAR(clear_module_state->__pyx_empty_tuple); + Py_CLEAR(clear_module_state->__pyx_empty_bytes); + Py_CLEAR(clear_module_state->__pyx_empty_unicode); + #if CYTHON_PEP489_MULTI_PHASE_INIT + __Pyx_State_RemoveModule(NULL); + #endif + for (int i=0; i<4; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<47; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } +/* #### Code section: module_state_clear_contents ### */ +/* CommonTypesMetaclass.module_state_clear */ +Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType); + +/* CythonFunctionShared.module_state_clear */ +Py_CLEAR(clear_module_state->__pyx_CyFunctionType); + +/* #### Code section: module_state_clear_end ### */ +return 0; +} +#endif +/* #### Code section: module_state_traverse ### */ +#if CYTHON_USE_MODULE_STATE +static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { + __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m); + if (!traverse_module_state) return 0; + Py_VISIT(traverse_module_state->__pyx_d); + Py_VISIT(traverse_module_state->__pyx_b); + Py_VISIT(traverse_module_state->__pyx_cython_runtime); + __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple); + __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes); + __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode); + for (int i=0; i<4; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<47; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } +/* #### Code section: module_state_traverse_contents ### */ +/* CommonTypesMetaclass.module_state_traverse */ +Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType); + +/* CythonFunctionShared.module_state_traverse */ +Py_VISIT(traverse_module_state->__pyx_CyFunctionType); + +/* #### Code section: module_state_traverse_end ### */ +return 0; +} +#endif +/* #### Code section: module_code ### */ + +/* "planarity/full/graphLib.pyx":36 + * + * # Functions to be made available when importing package from Python + * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetQuietModeFlag() + * +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_8graphLib_1gp_GetQuietModeFlag(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_8graphLib_gp_GetQuietModeFlag, "gp_GetQuietModeFlag() -> int"); +static PyMethodDef __pyx_mdef_9planarity_4full_8graphLib_1gp_GetQuietModeFlag = {"gp_GetQuietModeFlag", (PyCFunction)__pyx_pw_9planarity_4full_8graphLib_1gp_GetQuietModeFlag, METH_NOARGS, __pyx_doc_9planarity_4full_8graphLib_gp_GetQuietModeFlag}; +static PyObject *__pyx_pw_9planarity_4full_8graphLib_1gp_GetQuietModeFlag(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_GetQuietModeFlag (wrapper)", 0); + __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); + __pyx_r = __pyx_pf_9planarity_4full_8graphLib_gp_GetQuietModeFlag(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_8graphLib_gp_GetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("gp_GetQuietModeFlag", 0); + + /* "planarity/full/graphLib.pyx":37 + * # Functions to be made available when importing package from Python + * def gp_GetQuietModeFlag() -> int: + * return cgraphLib.gp_GetQuietModeFlag() # <<<<<<<<<<<<<< + * + * +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetQuietModeFlag()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(0, 37, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":36 + * + * # Functions to be made available when importing package from Python + * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetQuietModeFlag() + * +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("planarity.full.graphLib.gp_GetQuietModeFlag", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":40 + * + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< + * cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) + * +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_8graphLib_3gp_SetQuietModeFlag(PyObject *__pyx_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_8graphLib_2gp_SetQuietModeFlag, "gp_SetQuietModeFlag(int newQuietModeFlag) -> None"); +static PyMethodDef __pyx_mdef_9planarity_4full_8graphLib_3gp_SetQuietModeFlag = {"gp_SetQuietModeFlag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_8graphLib_3gp_SetQuietModeFlag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_8graphLib_2gp_SetQuietModeFlag}; +static PyObject *__pyx_pw_9planarity_4full_8graphLib_3gp_SetQuietModeFlag(PyObject *__pyx_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +) { + int __pyx_v_newQuietModeFlag; + #if !CYTHON_METH_FASTCALL + CYTHON_UNUSED Py_ssize_t __pyx_nargs; + #endif + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject* values[1] = {0}; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_SetQuietModeFlag (wrapper)", 0); + #if !CYTHON_METH_FASTCALL + #if CYTHON_ASSUME_SAFE_SIZE + __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); + #else + __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; + #endif + #endif + __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); + { + PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_newQuietModeFlag,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, 40, __pyx_L3_error) + if (__pyx_kwds_len > 0) { + switch (__pyx_nargs) { + case 1: + values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 40, __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_SetQuietModeFlag", 0) < (0)) __PYX_ERR(0, 40, __pyx_L3_error) + for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, i); __PYX_ERR(0, 40, __pyx_L3_error) } + } + } else if (unlikely(__pyx_nargs != 1)) { + 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, 40, __pyx_L3_error) + } + __pyx_v_newQuietModeFlag = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_newQuietModeFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L3_error) + } + goto __pyx_L6_skip; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 40, __pyx_L3_error) + __pyx_L6_skip:; + goto __pyx_L4_argument_unpacking_done; + __pyx_L3_error:; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __Pyx_AddTraceback("planarity.full.graphLib.gp_SetQuietModeFlag", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_9planarity_4full_8graphLib_2gp_SetQuietModeFlag(__pyx_self, __pyx_v_newQuietModeFlag); + + /* function exit code */ + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_8graphLib_2gp_SetQuietModeFlag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_newQuietModeFlag) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_SetQuietModeFlag", 0); + + /* "planarity/full/graphLib.pyx":41 + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: + * cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) # <<<<<<<<<<<<<< + * + * +*/ + gp_SetQuietModeFlag(__pyx_v_newQuietModeFlag); + + /* "planarity/full/graphLib.pyx":40 + * + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< + * cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) + * +*/ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":44 + * + * + * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< + * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() + * return encoded_version.decode('utf-8') +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_8graphLib_5gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_8graphLib_4gp_GetProjectVersionFull, "gp_GetProjectVersionFull()"); +static PyMethodDef __pyx_mdef_9planarity_4full_8graphLib_5gp_GetProjectVersionFull = {"gp_GetProjectVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_8graphLib_5gp_GetProjectVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_8graphLib_4gp_GetProjectVersionFull}; +static PyObject *__pyx_pw_9planarity_4full_8graphLib_5gp_GetProjectVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_GetProjectVersionFull (wrapper)", 0); + __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); + __pyx_r = __pyx_pf_9planarity_4full_8graphLib_4gp_GetProjectVersionFull(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_8graphLib_4gp_GetProjectVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { + PyObject *__pyx_v_encoded_version = 0; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("gp_GetProjectVersionFull", 0); + + /* "planarity/full/graphLib.pyx":45 + * + * def gp_GetProjectVersionFull(): + * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() # <<<<<<<<<<<<<< + * return encoded_version.decode('utf-8') + * +*/ + __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetProjectVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "planarity/full/graphLib.pyx":46 + * def gp_GetProjectVersionFull(): + * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() + * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< + * + * +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":44 + * + * + * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< + * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() + * return encoded_version.decode('utf-8') +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("planarity.full.graphLib.gp_GetProjectVersionFull", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_encoded_version); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":49 + * + * + * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< + * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() + * return encoded_version.decode('utf-8') +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionFull, "gp_GetLibPlanarityVersionFull()"); +static PyMethodDef __pyx_mdef_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull = {"gp_GetLibPlanarityVersionFull", (PyCFunction)__pyx_pw_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull, METH_NOARGS, __pyx_doc_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionFull}; +static PyObject *__pyx_pw_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull (wrapper)", 0); + __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); + __pyx_r = __pyx_pf_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionFull(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionFull(CYTHON_UNUSED PyObject *__pyx_self) { + PyObject *__pyx_v_encoded_version = 0; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull", 0); + + /* "planarity/full/graphLib.pyx":50 + * + * def gp_GetLibPlanarityVersionFull(): + * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() # <<<<<<<<<<<<<< + * return encoded_version.decode('utf-8') + * +*/ + __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetLibPlanarityVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "planarity/full/graphLib.pyx":51 + * def gp_GetLibPlanarityVersionFull(): + * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() + * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< + * + * # Cython cdef functions that are meant to be exposed to the planarity.full +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":49 + * + * + * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< + * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() + * return encoded_version.decode('utf-8') +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("planarity.full.graphLib.gp_GetLibPlanarityVersionFull", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_encoded_version); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":56 + * # subpackage's Cython modules + * # Wraps functions declared in "../c/graphLib/graph.h": + * cdef graphP gp_New(): # <<<<<<<<<<<<<< + * return cgraphLib.gp_New() + * +*/ + +static graphP __pyx_f_9planarity_4full_8graphLib_gp_New(void) { + graphP __pyx_r; + + /* "planarity/full/graphLib.pyx":57 + * # Wraps functions declared in "../c/graphLib/graph.h": + * cdef graphP gp_New(): + * return cgraphLib.gp_New() # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_New(); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":56 + * # subpackage's Cython modules + * # Wraps functions declared in "../c/graphLib/graph.h": + * cdef graphP gp_New(): # <<<<<<<<<<<<<< + * return cgraphLib.gp_New() + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":60 + * + * + * cdef int gp_InitGraph(graphP theGraph, int n): # <<<<<<<<<<<<<< + * return cgraphLib.gp_InitGraph(theGraph, n) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(graphP __pyx_v_theGraph, int __pyx_v_n) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":61 + * + * cdef int gp_InitGraph(graphP theGraph, int n): + * return cgraphLib.gp_InitGraph(theGraph, n) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_InitGraph(__pyx_v_theGraph, __pyx_v_n); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":60 + * + * + * cdef int gp_InitGraph(graphP theGraph, int n): # <<<<<<<<<<<<<< + * return cgraphLib.gp_InitGraph(theGraph, n) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":64 + * + * + * cdef void gp_ReinitGraph(graphP theGraph): # <<<<<<<<<<<<<< + * cgraphLib.gp_ReinitGraph(theGraph) + * +*/ + +static void __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(graphP __pyx_v_theGraph) { + + /* "planarity/full/graphLib.pyx":65 + * + * cdef void gp_ReinitGraph(graphP theGraph): + * cgraphLib.gp_ReinitGraph(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + gp_ReinitGraph(__pyx_v_theGraph); + + /* "planarity/full/graphLib.pyx":64 + * + * + * cdef void gp_ReinitGraph(graphP theGraph): # <<<<<<<<<<<<<< + * cgraphLib.gp_ReinitGraph(theGraph) + * +*/ + + /* function exit code */ +} + +/* "planarity/full/graphLib.pyx":68 + * + * + * cdef void gp_Free(graphP *pGraph): # <<<<<<<<<<<<<< + * cgraphLib.gp_Free(pGraph) + * +*/ + +static void __pyx_f_9planarity_4full_8graphLib_gp_Free(graphP *__pyx_v_pGraph) { + + /* "planarity/full/graphLib.pyx":69 + * + * cdef void gp_Free(graphP *pGraph): + * cgraphLib.gp_Free(pGraph) # <<<<<<<<<<<<<< + * + * +*/ + gp_Free(__pyx_v_pGraph); + + /* "planarity/full/graphLib.pyx":68 + * + * + * cdef void gp_Free(graphP *pGraph): # <<<<<<<<<<<<<< + * cgraphLib.gp_Free(pGraph) + * +*/ + + /* function exit code */ +} + +/* "planarity/full/graphLib.pyx":72 + * + * + * cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): # <<<<<<<<<<<<<< + * return cgraphLib.gp_EnsureEdgeCapacity(theGraph, requiredEdgeCapacity) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(graphP __pyx_v_theGraph, int __pyx_v_requiredEdgeCapacity) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":73 + * + * cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): + * return cgraphLib.gp_EnsureEdgeCapacity(theGraph, requiredEdgeCapacity) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_EnsureEdgeCapacity(__pyx_v_theGraph, __pyx_v_requiredEdgeCapacity); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":72 + * + * + * cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): # <<<<<<<<<<<<<< + * return cgraphLib.gp_EnsureEdgeCapacity(theGraph, requiredEdgeCapacity) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":76 + * + * + * cdef int gp_GetEdgeCapacity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetEdgeCapacity(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":77 + * + * cdef int gp_GetEdgeCapacity(graphP theGraph): + * return cgraphLib.gp_GetEdgeCapacity(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_GetEdgeCapacity(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":76 + * + * + * cdef int gp_GetEdgeCapacity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetEdgeCapacity(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":80 + * + * + * cdef int gp_GetN(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetN(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_GetN(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":81 + * + * cdef int gp_GetN(graphP theGraph): + * return cgraphLib.gp_GetN(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_GetN(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":80 + * + * + * cdef int gp_GetN(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetN(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":84 + * + * + * cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_CopyGraph(dstGraph, srcGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(graphP __pyx_v_dstGraph, graphP __pyx_v_srcGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":85 + * + * cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): + * return cgraphLib.gp_CopyGraph(dstGraph, srcGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_CopyGraph(__pyx_v_dstGraph, __pyx_v_srcGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":84 + * + * + * cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_CopyGraph(dstGraph, srcGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":88 + * + * + * cdef graphP gp_DupGraph(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DupGraph(theGraph) + * +*/ + +static graphP __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(graphP __pyx_v_theGraph) { + graphP __pyx_r; + + /* "planarity/full/graphLib.pyx":89 + * + * cdef graphP gp_DupGraph(graphP theGraph): + * return cgraphLib.gp_DupGraph(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_DupGraph(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":88 + * + * + * cdef graphP gp_DupGraph(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DupGraph(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":92 + * + * + * cdef int gp_FindEdge(graphP theGraph, int u, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_FindEdge(theGraph, u, v) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(graphP __pyx_v_theGraph, int __pyx_v_u, int __pyx_v_v) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":93 + * + * cdef int gp_FindEdge(graphP theGraph, int u, int v): + * return cgraphLib.gp_FindEdge(theGraph, u, v) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_FindEdge(__pyx_v_theGraph, __pyx_v_u, __pyx_v_v); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":92 + * + * + * cdef int gp_FindEdge(graphP theGraph, int u, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_FindEdge(theGraph, u, v) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":96 + * + * + * cdef int gp_GetVertexDegree(graphP theGraph, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetVertexDegree(theGraph, v) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(graphP __pyx_v_theGraph, int __pyx_v_v) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":97 + * + * cdef int gp_GetVertexDegree(graphP theGraph, int v): + * return cgraphLib.gp_GetVertexDegree(theGraph, v) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_GetVertexDegree(__pyx_v_theGraph, __pyx_v_v); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":96 + * + * + * cdef int gp_GetVertexDegree(graphP theGraph, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetVertexDegree(theGraph, v) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":100 + * + * + * cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< + * return cgraphLib.gp_AddEdge(theGraph, u, ulink, v, vlink) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(graphP __pyx_v_theGraph, int __pyx_v_u, int __pyx_v_ulink, int __pyx_v_v, int __pyx_v_vlink) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":101 + * + * cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): + * return cgraphLib.gp_AddEdge(theGraph, u, ulink, v, vlink) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_AddEdge(__pyx_v_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":100 + * + * + * cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< + * return cgraphLib.gp_AddEdge(theGraph, u, ulink, v, vlink) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":104 + * + * + * cdef int gp_DeleteEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DeleteEdge(theGraph, e) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(graphP __pyx_v_theGraph, int __pyx_v_e) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":105 + * + * cdef int gp_DeleteEdge(graphP theGraph, int e): + * return cgraphLib.gp_DeleteEdge(theGraph, e) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_DeleteEdge(__pyx_v_theGraph, __pyx_v_e); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":104 + * + * + * cdef int gp_DeleteEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DeleteEdge(theGraph, e) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":108 + * + * + * cdef int gp_LowerBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_LowerBoundEdgeStorage(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":109 + * + * cdef int gp_LowerBoundEdgeStorage(graphP theGraph): + * return cgraphLib.gp_LowerBoundEdgeStorage(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_LowerBoundEdgeStorage(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":108 + * + * + * cdef int gp_LowerBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_LowerBoundEdgeStorage(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":112 + * + * + * cdef int gp_UpperBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":113 + * + * cdef int gp_UpperBoundEdgeStorage(graphP theGraph): + * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) # <<<<<<<<<<<<<< + * + * cdef int gp_IsEdge(graphP theGraph, int e): +*/ + __pyx_r = gp_UpperBoundEdgeStorage(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":112 + * + * + * cdef int gp_UpperBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":115 + * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) + * + * cdef int gp_IsEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_IsEdge(theGraph, e) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(graphP __pyx_v_theGraph, int __pyx_v_e) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":116 + * + * cdef int gp_IsEdge(graphP theGraph, int e): + * return cgraphLib.gp_IsEdge(theGraph, e) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_IsEdge(__pyx_v_theGraph, __pyx_v_e); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":115 + * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) + * + * cdef int gp_IsEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_IsEdge(theGraph, e) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":119 + * + * + * cdef int gp_EdgeInUse(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_EdgeInUse(theGraph, e) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(graphP __pyx_v_theGraph, int __pyx_v_e) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":120 + * + * cdef int gp_EdgeInUse(graphP theGraph, int e): + * return cgraphLib.gp_EdgeInUse(theGraph, e) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_EdgeInUse(__pyx_v_theGraph, __pyx_v_e); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":119 + * + * + * cdef int gp_EdgeInUse(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_EdgeInUse(theGraph, e) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":123 + * + * + * cdef int gp_UpperBoundEdges(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_UpperBoundEdges(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":124 + * + * cdef int gp_UpperBoundEdges(graphP theGraph): + * return cgraphLib.gp_UpperBoundEdges(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_UpperBoundEdges(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":123 + * + * + * cdef int gp_UpperBoundEdges(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_UpperBoundEdges(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":127 + * + * + * cdef int gp_GetNextEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetNextEdge(theGraph, e) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(graphP __pyx_v_theGraph, int __pyx_v_e) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":128 + * + * cdef int gp_GetNextEdge(graphP theGraph, int e): + * return cgraphLib.gp_GetNextEdge(theGraph, e) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_GetNextEdge(__pyx_v_theGraph, __pyx_v_e); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":127 + * + * + * cdef int gp_GetNextEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetNextEdge(theGraph, e) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":131 + * + * + * cdef int gp_GetNeighbor(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetNeighbor(theGraph, e) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(graphP __pyx_v_theGraph, int __pyx_v_e) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":132 + * + * cdef int gp_GetNeighbor(graphP theGraph, int e): + * return cgraphLib.gp_GetNeighbor(theGraph, e) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_GetNeighbor(__pyx_v_theGraph, __pyx_v_e); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":131 + * + * + * cdef int gp_GetNeighbor(graphP theGraph, int e): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetNeighbor(theGraph, e) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":135 + * + * + * cdef int gp_GetFirstEdge(graphP theGraph, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetFirstEdge(theGraph, v) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(graphP __pyx_v_theGraph, int __pyx_v_v) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":136 + * + * cdef int gp_GetFirstEdge(graphP theGraph, int v): + * return cgraphLib.gp_GetFirstEdge(theGraph, v) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_GetFirstEdge(__pyx_v_theGraph, __pyx_v_v); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":135 + * + * + * cdef int gp_GetFirstEdge(graphP theGraph, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetFirstEdge(theGraph, v) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":139 + * + * + * cdef int gp_LowerBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_LowerBoundVertices(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":140 + * + * cdef int gp_LowerBoundVertices(graphP theGraph): + * return cgraphLib.gp_LowerBoundVertices(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_LowerBoundVertices(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":139 + * + * + * cdef int gp_LowerBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_LowerBoundVertices(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":143 + * + * + * cdef int gp_UpperBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_UpperBoundVertices(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":144 + * + * cdef int gp_UpperBoundVertices(graphP theGraph): + * return cgraphLib.gp_UpperBoundVertices(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_UpperBoundVertices(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":143 + * + * + * cdef int gp_UpperBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_UpperBoundVertices(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":147 + * + * + * cdef int gp_IsVertex(graphP theGraph, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_IsVertex(theGraph, v) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(graphP __pyx_v_theGraph, int __pyx_v_v) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":148 + * + * cdef int gp_IsVertex(graphP theGraph, int v): + * return cgraphLib.gp_IsVertex(theGraph, v) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_IsVertex(__pyx_v_theGraph, __pyx_v_v); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":147 + * + * + * cdef int gp_IsVertex(graphP theGraph, int v): # <<<<<<<<<<<<<< + * return cgraphLib.gp_IsVertex(theGraph, v) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":152 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": + * cdef int gp_ExtendWith_K23Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K23Search(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":153 + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": + * cdef int gp_ExtendWith_K23Search(graphP theGraph): + * return cgraphLib.gp_ExtendWith_K23Search(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_ExtendWith_K23Search(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":152 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": + * cdef int gp_ExtendWith_K23Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K23Search(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":157 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": + * cdef int gp_ExtendWith_K33Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K33Search(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":158 + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": + * cdef int gp_ExtendWith_K33Search(graphP theGraph): + * return cgraphLib.gp_ExtendWith_K33Search(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_ExtendWith_K33Search(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":157 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": + * cdef int gp_ExtendWith_K33Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K33Search(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":162 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": + * cdef int gp_ExtendWith_K4Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K4Search(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":163 + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": + * cdef int gp_ExtendWith_K4Search(graphP theGraph): + * return cgraphLib.gp_ExtendWith_K4Search(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_ExtendWith_K4Search(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":162 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": + * cdef int gp_ExtendWith_K4Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K4Search(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":167 + * + * # Wraps functions declared in "../c/graphLib/io/graphIO.h": + * cdef int gp_Read(graphP theGraph, char *FileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Read(theGraph, FileName) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_Read(graphP __pyx_v_theGraph, char *__pyx_v_FileName) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":168 + * # Wraps functions declared in "../c/graphLib/io/graphIO.h": + * cdef int gp_Read(graphP theGraph, char *FileName): + * return cgraphLib.gp_Read(theGraph, FileName) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_Read(__pyx_v_theGraph, __pyx_v_FileName); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":167 + * + * # Wraps functions declared in "../c/graphLib/io/graphIO.h": + * cdef int gp_Read(graphP theGraph, char *FileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Read(theGraph, FileName) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":171 + * + * + * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Write(theGraph, FileName, Mode) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_Write(graphP __pyx_v_theGraph, char *__pyx_v_FileName, int __pyx_v_Mode) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":172 + * + * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): + * return cgraphLib.gp_Write(theGraph, FileName, Mode) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_Write(__pyx_v_theGraph, __pyx_v_FileName, __pyx_v_Mode); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":171 + * + * + * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Write(theGraph, FileName, Mode) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":176 + * + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": + * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":177 + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": + * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): + * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_ExtendWith_DrawPlanar(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":176 + * + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": + * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":180 + * + * + * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(graphP __pyx_v_theEmbedding, char *__pyx_v_theFileName) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":181 + * + * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): + * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_DrawPlanar_RenderToFile(__pyx_v_theEmbedding, __pyx_v_theFileName); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":180 + * + * + * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":184 + * + * + * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(graphP __pyx_v_theEmbedding, char **__pyx_v_pRenditionString) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":185 + * + * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): + * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_DrawPlanar_RenderToString(__pyx_v_theEmbedding, __pyx_v_pRenditionString); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":184 + * + * + * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":189 + * + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": + * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":190 + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": + * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): + * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_ExtendWith_Outerplanarity(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":189 + * + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": + * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":194 + * + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": + * cdef int gp_ExtendWith_Planarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Planarity(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":195 + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": + * cdef int gp_ExtendWith_Planarity(graphP theGraph): + * return cgraphLib.gp_ExtendWith_Planarity(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_ExtendWith_Planarity(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":194 + * + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": + * cdef int gp_ExtendWith_Planarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Planarity(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":198 + * + * + * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Embed(theGraph, embedFlags) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_Embed(graphP __pyx_v_theGraph, unsigned int __pyx_v_embedFlags) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":199 + * + * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): + * return cgraphLib.gp_Embed(theGraph, embedFlags) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_Embed(__pyx_v_theGraph, __pyx_v_embedFlags); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":198 + * + * + * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Embed(theGraph, embedFlags) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":202 + * + * + * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): # <<<<<<<<<<<<<< + * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(graphP __pyx_v_theGraph, graphP __pyx_v_origGraph, int __pyx_v_embedResult) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":203 + * + * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): + * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_TestEmbedResultIntegrity(__pyx_v_theGraph, __pyx_v_origGraph, __pyx_v_embedResult); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":202 + * + * + * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): # <<<<<<<<<<<<<< + * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":207 + * + * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": + * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_NewReader(G6ReadIteratorP *__pyx_v_pG6ReadIterator, graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":208 + * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": + * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): + * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = g6_NewReader(__pyx_v_pG6ReadIterator, __pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":207 + * + * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": + * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":211 + * + * + * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_EndReached(theG6ReadIterator) + * +*/ + +static PyObject *__pyx_f_9planarity_4full_8graphLib_g6_EndReached(G6ReadIteratorP __pyx_v_theG6ReadIterator) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("g6_EndReached", 0); + + /* "planarity/full/graphLib.pyx":212 + * + * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): + * return cgraphLib.g6_EndReached(theG6ReadIterator) # <<<<<<<<<<<<<< + * + * +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyBool_FromLong(g6_EndReached(__pyx_v_theG6ReadIterator)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (!(likely(PyBool_Check(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("bool", __pyx_t_1))) __PYX_ERR(0, 212, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":211 + * + * + * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_EndReached(theG6ReadIterator) + * +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("planarity.full.graphLib.g6_EndReached", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = 0; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":215 + * + * + * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName(G6ReadIteratorP __pyx_v_theG6ReadIterator, char *__pyx_v_infileName) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":216 + * + * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): + * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = g6_InitReaderWithFileName(__pyx_v_theG6ReadIterator, __pyx_v_infileName); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":215 + * + * + * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":219 + * + * + * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_ReadGraph(theG6ReadIterator) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_ReadGraph(G6ReadIteratorP __pyx_v_theG6ReadIterator) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":220 + * + * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): + * return cgraphLib.g6_ReadGraph(theG6ReadIterator) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = g6_ReadGraph(__pyx_v_theG6ReadIterator); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":219 + * + * + * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_ReadGraph(theG6ReadIterator) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":223 + * + * + * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeReader(pG6ReadIterator) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_FreeReader(G6ReadIteratorP *__pyx_v_pG6ReadIterator) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":224 + * + * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): + * cgraphLib.g6_FreeReader(pG6ReadIterator) # <<<<<<<<<<<<<< + * + * +*/ + g6_FreeReader(__pyx_v_pG6ReadIterator); + + /* "planarity/full/graphLib.pyx":223 + * + * + * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeReader(pG6ReadIterator) + * +*/ + + /* function exit code */ + __pyx_r = 0; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":228 + * + * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" + * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_NewWriter(G6WriteIteratorP *__pyx_v_pG6WriteIterator, graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":229 + * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" + * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): + * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = g6_NewWriter(__pyx_v_pG6WriteIterator, __pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":228 + * + * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" + * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":232 + * + * + * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName(G6WriteIteratorP __pyx_v_theG6WriteIterator, char *__pyx_v_outputFileName) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":233 + * + * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): + * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = g6_InitWriterWithFileName(__pyx_v_theG6WriteIterator, __pyx_v_outputFileName); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":232 + * + * + * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":236 + * + * + * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_WriteGraph(theG6WriteIterator) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_g6_WriteGraph(G6WriteIteratorP __pyx_v_theG6WriteIterator) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":237 + * + * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): + * return cgraphLib.g6_WriteGraph(theG6WriteIterator) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = g6_WriteGraph(__pyx_v_theG6WriteIterator); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":236 + * + * + * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_WriteGraph(theG6WriteIterator) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":240 + * + * + * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeWriter(pG6WriteIterator) +*/ + +static void __pyx_f_9planarity_4full_8graphLib_g6_FreeWriter(G6WriteIteratorP *__pyx_v_pG6WriteIterator) { + + /* "planarity/full/graphLib.pyx":241 + * + * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): + * cgraphLib.g6_FreeWriter(pG6WriteIterator) # <<<<<<<<<<<<<< +*/ + g6_FreeWriter(__pyx_v_pG6WriteIterator); + + /* "planarity/full/graphLib.pyx":240 + * + * + * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeWriter(pG6WriteIterator) +*/ + + /* function exit code */ +} +/* #### Code section: module_exttypes ### */ + +static PyMethodDef __pyx_methods[] = { + {0, 0, 0, 0} +}; +/* #### Code section: initfunc_declarations ### */ +static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/ +static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/ +/* #### Code section: init_module ### */ + +static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); + /*--- Global init code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); + /*--- Variable export code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); + /*--- Function export code ---*/ + { + __pyx_t_1 = __Pyx_ApiExport_GetApiDict(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + const char * __pyx_export_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_PyObject_G6ReadIteratorP_graphP); + #if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(!__pyx_export_signature)) __PYX_ERR(0, 1, __pyx_L1_error) + #endif + const char * __pyx_export_name = __pyx_export_signature + 561; + void (*const __pyx_export_pointers[])(void) = {(void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_EndReached, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DupGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_New, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeReader, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewReader, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_ReadGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewWriter, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_WriteGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetN, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Read, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Write, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_InitGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsVertex, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_FindEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_AddEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Embed, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeWriter, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Free, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph, (void (*)(void)) NULL}; + void (*const *__pyx_export_pointer)(void) = __pyx_export_pointers; + const char *__pyx_export_current_signature = __pyx_export_signature; + while (*__pyx_export_pointer) { + if (__Pyx_ExportFunction(__pyx_t_1, __pyx_export_name, *__pyx_export_pointer, __pyx_export_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + ++__pyx_export_pointer; + __pyx_export_name = strchr(__pyx_export_name, '\0') + 1; + __pyx_export_signature = strchr(__pyx_export_signature, '\0') + 1; + if (*__pyx_export_signature != '\0') __pyx_export_current_signature = __pyx_export_signature; + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } + __Pyx_RefNannyFinishContext(); + return 0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_RefNannyFinishContext(); + return -1; +} + +static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); + /*--- Type init code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); + /*--- Type import code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); + /*--- Variable import code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); + /*--- Function import code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +#if CYTHON_PEP489_MULTI_PHASE_INIT +static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ +static int __pyx_pymod_exec_graphLib(PyObject* module); /*proto*/ +static PyModuleDef_Slot __pyx_moduledef_slots[] = { + {Py_mod_create, (void*)__pyx_pymod_create}, + {Py_mod_exec, (void*)__pyx_pymod_exec_graphLib}, + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE}, + #endif + #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE + {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED}, + #endif + {0, NULL} +}; +#endif + +#ifdef __cplusplus +namespace { + struct PyModuleDef __pyx_moduledef = + #else + static struct PyModuleDef __pyx_moduledef = + #endif + { + PyModuleDef_HEAD_INIT, + "graphLib", + __pyx_k_Cython_wrapper_for_the_Edge_Add, /* m_doc */ + #if CYTHON_USE_MODULE_STATE + sizeof(__pyx_mstatetype), /* m_size */ + #else + (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */ + #endif + __pyx_methods /* m_methods */, + #if CYTHON_PEP489_MULTI_PHASE_INIT + __pyx_moduledef_slots, /* m_slots */ + #else + NULL, /* m_reload */ + #endif + #if CYTHON_USE_MODULE_STATE + __pyx_m_traverse, /* m_traverse */ + __pyx_m_clear, /* m_clear */ + NULL /* m_free */ + #else + NULL, /* m_traverse */ + NULL, /* m_clear */ + NULL /* m_free */ + #endif + }; + #ifdef __cplusplus +} /* anonymous namespace */ +#endif + +/* PyModInitFuncType */ +#ifndef CYTHON_NO_PYINIT_EXPORT + #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC +#else + #ifdef __cplusplus + #define __Pyx_PyMODINIT_FUNC extern "C" PyObject * + #else + #define __Pyx_PyMODINIT_FUNC PyObject * + #endif +#endif + +__Pyx_PyMODINIT_FUNC PyInit_graphLib(void) CYTHON_SMALL_CODE; /*proto*/ +__Pyx_PyMODINIT_FUNC PyInit_graphLib(void) +#if CYTHON_PEP489_MULTI_PHASE_INIT +{ + return PyModuleDef_Init(&__pyx_moduledef); +} +/* ModuleCreationPEP489 */ +#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\ + || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000)) +static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) { + { + PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think + if (!module) { + PyErr_Clear(); // just try the 3.8-3.12 version + module = PyImport_ImportModule("_xxsubinterpreters"); + if (!module) goto bad; + } + PyObject *current = PyObject_CallMethod(module, "get_current", NULL); + Py_DECREF(module); + if (!current) goto bad; + if (PyTuple_Check(current)) { + PyObject *new_current = PySequence_GetItem(current, 0); + Py_DECREF(current); + current = new_current; + if (!new_current) goto bad; + } + long long as_c_int = PyLong_AsLongLong(current); + Py_DECREF(current); + return as_c_int; + } + bad: + PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n"); + return -1; +} +#endif +#if !CYTHON_USE_MODULE_STATE +static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { + static PY_INT64_T main_interpreter_id = -1; +#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000 + PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get()); +#elif CYTHON_COMPILING_IN_GRAAL + PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get()); +#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\ + || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000)) + PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId(); +#elif CYTHON_COMPILING_IN_LIMITED_API + PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get()); +#else + PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); +#endif + if (unlikely(current_id == -1)) { + return -1; + } + if (main_interpreter_id == -1) { + main_interpreter_id = current_id; + return 0; + } else if (unlikely(main_interpreter_id != current_id)) { + PyErr_SetString( + PyExc_ImportError, + "Interpreter change detected - this module can only be loaded into one interpreter per process."); + return -1; + } + return 0; +} +#endif +static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) +{ + PyObject *value = PyObject_GetAttrString(spec, from_name); + int result = 0; + if (likely(value)) { + if (allow_none || value != Py_None) { + result = PyDict_SetItemString(moddict, to_name, value); + } + Py_DECREF(value); + } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { + PyErr_Clear(); + } else { + result = -1; + } + return result; +} +static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) { + PyObject *module = NULL, *moddict, *modname; + CYTHON_UNUSED_VAR(def); + #if !CYTHON_USE_MODULE_STATE + if (__Pyx_check_single_interpreter()) + return NULL; + #endif + if (__pyx_m) + return __Pyx_NewRef(__pyx_m); + modname = PyObject_GetAttrString(spec, "name"); + if (unlikely(!modname)) goto bad; + module = PyModule_NewObject(modname); + Py_DECREF(modname); + if (unlikely(!module)) goto bad; + moddict = PyModule_GetDict(module); + if (unlikely(!moddict)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad; + return module; +bad: + Py_XDECREF(module); + return NULL; +} + + +static CYTHON_SMALL_CODE int __pyx_pymod_exec_graphLib(PyObject *__pyx_pyinit_module) +#endif +{ + int stringtab_initialized = 0; + #if CYTHON_USE_MODULE_STATE + int pystate_addmodule_run = 0; + #endif + __pyx_mstatetype *__pyx_mstate = NULL; + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannyDeclarations + #if CYTHON_PEP489_MULTI_PHASE_INIT + if (__pyx_m) { + if (__pyx_m == __pyx_pyinit_module) return 0; + PyErr_SetString(PyExc_RuntimeError, "Module 'graphLib' has already been imported. Re-initialisation is not supported."); + return -1; + } + #else + if (__pyx_m) return __Pyx_NewRef(__pyx_m); + #endif + /*--- Module creation code ---*/ + #if CYTHON_PEP489_MULTI_PHASE_INIT + __pyx_t_1 = __pyx_pyinit_module; + Py_INCREF(__pyx_t_1); + #else + __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) + #endif + #if CYTHON_USE_MODULE_STATE + { + int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef); + __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "graphLib" pseudovariable */ + if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error) + pystate_addmodule_run = 1; + } + #else + __pyx_m = __pyx_t_1; + #endif + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED); + #endif + __pyx_mstate = __pyx_mstate_global; + CYTHON_UNUSED_VAR(__pyx_t_1); + __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) + Py_INCREF(__pyx_mstate->__pyx_d); + __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) + if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error) + /* ImportRefnannyAPI */ + #if CYTHON_REFNANNY + __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); + if (!__Pyx_RefNanny) { + PyErr_Clear(); + __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); + if (!__Pyx_RefNanny) + Py_FatalError("failed to import 'refnanny' module"); + } + #endif + +__Pyx_RefNannySetupContext("PyInit_graphLib", 0); + __Pyx_init_runtime_version(); + if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) + /*--- Library function declarations ---*/ + /*--- Initialize various global constants etc. ---*/ + if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + stringtab_initialized = 1; + if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + if (__pyx_module_is_main_planarity__full__graphLib) { + if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + } + { + PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) + if (!PyDict_GetItemString(modules, "planarity.full.graphLib")) { + if (unlikely((PyDict_SetItemString(modules, "planarity.full.graphLib", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) + } + } + /*--- Builtin init code ---*/ + if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + /*--- Constants init code ---*/ + if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + /*--- Global type/function init code ---*/ + (void)__Pyx_modinit_global_init_code(__pyx_mstate); + (void)__Pyx_modinit_variable_export_code(__pyx_mstate); + if (unlikely((__Pyx_modinit_function_export_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) + (void)__Pyx_modinit_type_init_code(__pyx_mstate); + (void)__Pyx_modinit_type_import_code(__pyx_mstate); + (void)__Pyx_modinit_variable_import_code(__pyx_mstate); + (void)__Pyx_modinit_function_import_code(__pyx_mstate); + /*--- Execution code ---*/ + + /* "planarity/full/graphLib.pyx":16 + * + * + * WRITE_ADJLIST = cgraphLib.WRITE_ADJLIST # <<<<<<<<<<<<<< + * WRITE_ADJMATRIX = cgraphLib.WRITE_ADJMATRIX + * WRITE_G6 = cgraphLib.WRITE_G6 +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(WRITE_ADJLIST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_WRITE_ADJLIST, __pyx_t_2) < (0)) __PYX_ERR(0, 16, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":17 + * + * WRITE_ADJLIST = cgraphLib.WRITE_ADJLIST + * WRITE_ADJMATRIX = cgraphLib.WRITE_ADJMATRIX # <<<<<<<<<<<<<< + * WRITE_G6 = cgraphLib.WRITE_G6 + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(WRITE_ADJMATRIX); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_WRITE_ADJMATRIX, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":18 + * WRITE_ADJLIST = cgraphLib.WRITE_ADJLIST + * WRITE_ADJMATRIX = cgraphLib.WRITE_ADJMATRIX + * WRITE_G6 = cgraphLib.WRITE_G6 # <<<<<<<<<<<<<< + * + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(WRITE_G6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_WRITE_G6, __pyx_t_2) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":21 + * + * + * OK = cgraphLib.OK # <<<<<<<<<<<<<< + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OK, __pyx_t_2) < (0)) __PYX_ERR(0, 21, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":22 + * + * OK = cgraphLib.OK + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * NOTOK = cgraphLib.NOTOK +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":23 + * OK = cgraphLib.OK + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< + * NOTOK = cgraphLib.NOTOK + * NIL = cgraphLib.NIL +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":24 + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * NOTOK = cgraphLib.NOTOK # <<<<<<<<<<<<<< + * NIL = cgraphLib.NIL + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 24, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":25 + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * NOTOK = cgraphLib.NOTOK + * NIL = cgraphLib.NIL # <<<<<<<<<<<<<< + * + * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(NIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_2) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":27 + * NIL = cgraphLib.NIL + * + * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR # <<<<<<<<<<<<<< + * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR + * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":28 + * + * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR + * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR # <<<<<<<<<<<<<< + * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":29 + * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR + * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR + * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":30 + * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR + * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 + * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":31 + * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR + * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 # <<<<<<<<<<<<<< + * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 31, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":32 + * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 + * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 + * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 # <<<<<<<<<<<<<< + * + * +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 32, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":36 + * + * # Functions to be made available when importing package from Python + * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< + * return cgraphLib.gp_GetQuietModeFlag() + * +*/ + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 36, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_1gp_GetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 36, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); + #endif + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, __pyx_t_3) < (0)) __PYX_ERR(0, 36, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "planarity/full/graphLib.pyx":40 + * + * + * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< + * cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) + * +*/ + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 40, __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_None) < (0)) __PYX_ERR(0, 40, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_3gp_SetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __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 (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, __pyx_t_2) < (0)) __PYX_ERR(0, 40, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":44 + * + * + * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< + * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() + * return encoded_version.decode('utf-8') +*/ + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_5gp_GetProjectVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + #endif + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":49 + * + * + * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< + * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() + * return encoded_version.decode('utf-8') +*/ + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + #endif + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":1 + * #!/usr/bin/env python # <<<<<<<<<<<<<< + * # cython: embedsignature=True + * """ +*/ + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /*--- Wrapped vars code ---*/ + + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + if (__pyx_m) { + if (__pyx_mstate->__pyx_d && stringtab_initialized) { + __Pyx_AddTraceback("init planarity.full.graphLib", __pyx_clineno, __pyx_lineno, __pyx_filename); + } + #if !CYTHON_USE_MODULE_STATE + Py_CLEAR(__pyx_m); + #else + Py_DECREF(__pyx_m); + if (pystate_addmodule_run) { + PyObject *tp, *value, *tb; + PyErr_Fetch(&tp, &value, &tb); + PyState_RemoveModule(&__pyx_moduledef); + PyErr_Restore(tp, value, tb); + } + #endif + } else if (!PyErr_Occurred()) { + PyErr_SetString(PyExc_ImportError, "init planarity.full.graphLib"); + } + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + #if CYTHON_PEP489_MULTI_PHASE_INIT + return (__pyx_m != NULL) ? 0 : -1; + #else + return __pyx_m; + #endif +} +/* #### Code section: pystring_table ### */ +/* #### Code section: cached_builtins ### */ + +static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) { + CYTHON_UNUSED_VAR(__pyx_mstate); + + /* Cached unbound methods */ + __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type; + __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items; + __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type; + __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop; + __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type; + __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values; + return 0; +} +/* #### Code section: cached_constants ### */ + +static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) { + __Pyx_RefNannyDeclarations + CYTHON_UNUSED_VAR(__pyx_mstate); + __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); + __Pyx_RefNannyFinishContext(); + return 0; +} +/* #### Code section: init_constants ### */ + +static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) { + CYTHON_UNUSED_VAR(__pyx_mstate); + { + const struct { const unsigned int length: 11; } index[] = {{1},{27},{22},{21},{22},{17},{23},{23},{22},{3},{13},{5},{4},{2},{20},{13},{15},{8},{18},{18},{15},{8},{29},{24},{19},{19},{3},{13},{5},{8},{10},{8},{16},{23},{3},{12},{12},{6},{12},{10},{8},{6},{1333},{12},{21},{21},{13}}; + #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (808 bytes) */ +const char* const cstring = "(\265/\375`\256\006\365\030\000\006f{3P\215s\3209\217H\363H\306\334\264\210R\377\231L\022\264E\272A\371\335\222\310\362\0149\222NL$\243ELD\314RU\354\270\253\t+\3625\204@\2106t\000a\000k\0008B\\\030X\347M\032o\203e\024\324\324\225\207u\034\217w/r\255_RJ4\342\2723\233W\253e6o\323\252Lb\242\264M\3130\355\341rq\310t\2335\201\351\246j\323U\236\305\326M\332\224q\234\251\243zsM\231EU\022\232\312\3034X\326\031\036\206\231\270\t\323\325EU\355M\242Qh\351\320\354\023\306\3731\200`\3660\214\236\336X#\030F\004\330\277\373\301\034=>\373\035w\327\233\337/\0303\007\r\243\354\356\320\206\026K\310\035\024\253\203y\332\356J#\250\033\203\374ic\332_\351\346\213\240\245y\247\271\342\245k\330\313Y\027\334\373\325\341\327-k\366tWK\361\365\216\236>\255\254\276!c\307e\274\337\2256(\261W\372\331^+-\226\312:\n1\214\030\377f\365~q\327?o\017\227\217\274\3217\027\207L(^\252g\365\027U\035:(j\016R\353\363\224\363\264b\327\335\257\025r\355\n3\325\3417\231\376\221\321\273Y\253\206\230^?\212k\366\247\227s\343GR\026(\013\025\n\345+\235(Lj;\022(\334D\201\273\366\343\365\307f\364\016\342J\250P:\333\210\303\236\301\330\021\000\"\t\005\244\202\200R\005\210\301\204\004P2\201\000\022\361!\020Pj \301TH\225\200\022\200\307A\010A\310\301@\211`\244aB\242s\232\225Z\030\363\3739%r\321\265\235\317G\375\361\245\226\337\214+\266\250\230\277\203N}\376\025{0c\357\246w@\325c\367F\241\305|\225\336\337X\257\206\241\005vI\377\372\205\177\361\332\337\314\232\255\304\365\220\3154\031\200\225\250\341\035\"TC\"\nSf\222a\0140\204(\312h\036\2010C\tS\206D\204\244\202\264\351\\\014s\336\303\226\264x\325\254L\032\302\0228:\314_\330\343E6n\266V\323\363Y\021\t\315f\354\341a\252\"\361\302\267j\377\203:H\027\240\0375V-@\352\361E\316\031\325\003\276\032\277\342\351|\016I\324\323-\312fH*\300\337\2700\004\344\305\354\r\206\366\302\334\034\312l\264\222@\005\330\\\260\232\017~e30\205,\017'\255\315+\004\314\247j`\216\261~\277\270\010l\271m\014*\342\n04\253\206|~\346\263D\320\030Kv\033\307\253!\362\025N:\271Vi\204\034F\322\322\312\312\263O""\271E\024o\014\316\0250?\307\235\373H\335\010[#\253\227\370\331\030\324\273t\223\3648c\020\302{5\274\315)\334\261\024X\214\1775N\366\272E\035R\350\030`\t\336\227\340\320\270).!\347\314\351Dn\016a>`T\0037\014+\253\000\343Q\263\010gK\005(\232N\025\305\324\326\203\025\372\326\274\304\225\226\346\010\306\204?\007:\257\n"; + PyObject *data = __Pyx_DecompressString(cstring, 808, 3); + if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) + const char* const bytes = __Pyx_PyBytes_AsString(data); + #if !CYTHON_ASSUME_SAFE_MACROS + if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } + #endif + #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (946 bytes) */ +const char* const cstring = "BZh91AY&SY\355\365\014K\000\000\213\177\376e*$\002`\365\275\000\277\377\377\340\277\377\377\340@@\000@@@@\000@@@@P\003\230OZ\332\215\200\326\303\0252MO&\223\311\036Si\250\304\311\2104\320\000\006\203OP\000\323\020\343#L\230\232\014\2310\232d\014\206\200\320\032d\320\300\t\2400\221)\350\246@\246\215\251\351=F\215=&\200h\320\001\232\200\032hzOP\332C\214\2152bh2d\302i\2202\032\003@i\223C\000&\200\302E\024\364\r)=\251\350\320\231M\031=M2\000\031\014\200\000\032\006\217S\030\301\263Y\037\237f\203\217\211\214\323\311B\300\232*i\262\024\303%\3608c\275\017\343|F\026-\t\257\356\275G:*l\221\314\265\344\232\177\003#M\276\030@\336\3141\215\217xJZ.6\336\2639\333`\214\367\357\313WD\r\214\262\030AD6,F\"\210\221\246\35063W[\227\222#\243\317\240<|\r\301\355Ad\200\257g\035\0326\306\"\007OQ\332=\333\236/0\236\275\202\030\322\314\001\232\265 \000:\032\372\231\001\214\366\222\345O(MaU\206Ur5ho1\310\032S\210\001T\036\363o\2005\327\214\027\360\346A\n\260\024\020YE=\030CR\334\303!\2532\223\256j\246N-\261\267\264\035jIP1\203d\316\332(\324\20546\321.\272\004\246\014zT\242\024\237)^\260\331c.\233O\240n\215\214lm\261\215\006?\306Jp\247\277\2163\270'\313\232\341\\\266%:s\300(\"Jp\206\227Q\232\3507\204\355\320\027iz\243R=\2268\364\301\327\r\371\342\254\243*\374\341\367\231!X`\030_f:\350Y\216\026\357{\255I\2264\014\224\004@d\2550\254.\275F\3747V\257\031U\002\262V\353]\334\3214\224\204HH\360yO\303\024\022{>\034\253=\265\367w\373\035\007\250oJ\020TF\302\336ke/\262\333\273\371\272\362\357#\346\357\265pS\355zN{\177\035~\320.\2524\361\315\350A\333\233PQ\252y\213\"\300\377\212V\003\326\300\265\262E\211\362\257D\254\242\233\320j\221\002=h#Xc*\235V\301\246\360\014i\356\007\2355\031\265G- \345\t\0138\3709\245\206\330\244i\301\274\014\273\346\343!\350\020\203\3738'o\002~\013\017\273\236\306}\305)\333\202\007\025\320\023\000j\222 \224\207\340\312Q\326Kx\207\230\234\311\234\272er\322c!XxX_r\262\306\262\234\314\252$\345\\5)&\306L\002\367\025JtA\037\362\357\270F\340\0355\002*\274I\035?Y\203\2376\302\303\024\337\277\374.k\244]\306\361z0\374\000\2724\246\336\n\262\324:\210\036@\234G)\367U\304\010\365\247\001T\t\274j$\363 Q\350M\0347\207W\211Zl\271\302J\025\234\003G\331\335H\351\247(5\2065!#)\030\017\024\231\311\256\214n\024\317\227Cw\361:1\246c\300C\221\340\375br\tA\261{\035B\220\240\332\3124\302\325\3447I\356\360$\025\320\240M\217\211D\026)J+`\301d\034\211\245;+\263j\1770\323\361""\225\220A\352x,[3\223\"\322L\362@e\367X\256\224\2625\177if{(\216oq\372\342\314\313\025bE\351\347\326\361\357\255\305\333\235\247\255\247\235\037\033\213\315\375\347\375\356\237\343\305\346\233\237g\217\357K\340\305\337\215\022\370\334z\367x\275\330\334~\336\336\375\265\361\017\355\223\254\345"; + PyObject *data = __Pyx_DecompressString(cstring, 804, 1); + if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) + const char* const bytes = __Pyx_PyBytes_AsString(data); + #if !CYTHON_ASSUME_SAFE_MACROS + if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } + #endif + #else /* compression: none (1966 bytes) */ +const char* const bytes = "?planarity/full/graphLib.pyxAT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4NILNONEMBEDDABLENOTOKNoneOK__Pyx_PyDict_NextRefWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6asyncio.coroutinescline_in_tracebackencoded_version__func__gp_GetLibPlanarityVersionFullgp_GetProjectVersionFullgp_GetQuietModeFlaggp_SetQuietModeFlagint_is_coroutineitems__main____module____name__newQuietModeFlagplanarity.full.graphLibpop__pyx_capi____qualname__return__set_name__setdefault__test__valuesPyObject *(G6ReadIteratorP)\000graphP (graphP)\000graphP (void)\000int (G6ReadIteratorP *)\000int (G6ReadIteratorP *, graphP)\000int (G6ReadIteratorP)\000int (G6ReadIteratorP, char *)\000int (G6WriteIteratorP *, graphP)\000int (G6WriteIteratorP)\000int (G6WriteIteratorP, char *)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graphP, graphP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (G6WriteIteratorP *)\000void (graphP *)\000void (graphP)\000g6_EndReached\000gp_DupGraph\000gp_New\000g6_FreeReader\000g6_NewReader\000g6_ReadGraph\000g6_InitReaderWithFileName\000g6_NewWriter\000g6_WriteGraph\000g6_InitWriterWithFileName\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000g""p_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000g6_FreeWriter\000gp_Free\000gp_ReinitGraph\320\0001\260\021\330\r!\240\021\240!\200\001\330\004*\320*C\3001\330\004\013\210?\230'\240\021\240!\200\001\330\004*\320*H\310\001\330\004\013\210?\230'\240\021\240!\320\000\035\230Q\330\004\024\320\024(\250\001"; + PyObject *data = NULL; + CYTHON_UNUSED_VAR(__Pyx_DecompressString); + #endif + PyObject **stringtab = __pyx_mstate->__pyx_string_tab; + Py_ssize_t pos = 0; + for (int i = 0; i < 42; i++) { + Py_ssize_t bytes_length = index[i].length; + PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); + if (likely(string) && i >= 2) PyUnicode_InternInPlace(&string); + if (unlikely(!string)) { + Py_XDECREF(data); + __PYX_ERR(0, 1, __pyx_L1_error) + } + stringtab[i] = string; + pos += bytes_length; + } + for (int i = 42; i < 47; i++) { + Py_ssize_t bytes_length = index[i].length; + PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); + stringtab[i] = string; + pos += bytes_length; + if (unlikely(!string)) { + Py_XDECREF(data); + __PYX_ERR(0, 1, __pyx_L1_error) + } + } + Py_XDECREF(data); + for (Py_ssize_t i = 0; i < 47; i++) { + if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { + __PYX_ERR(0, 1, __pyx_L1_error) + } + } + #if CYTHON_IMMORTAL_CONSTANTS + { + PyObject **table = stringtab + 42; + for (Py_ssize_t i=0; i<5; ++i) { + #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + #if PY_VERSION_HEX < 0x030E0000 + if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1) + #else + if (PyUnstable_Object_IsUniquelyReferenced(table[i])) + #endif + { + Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL); + } + #else + Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT); + #endif + } + } + #endif + } + return 0; + __pyx_L1_error:; + return -1; +} +/* #### Code section: init_codeobjects ### */ +typedef struct { + unsigned int argcount : 1; + unsigned int num_posonly_args : 1; + unsigned int num_kwonly_args : 1; + unsigned int nlocals : 1; + unsigned int flags : 10; + unsigned int first_line : 6; +} __Pyx_PyCode_New_function_description; +/* NewCodeObj.proto */ +static PyObject* __Pyx_PyCode_New( + const __Pyx_PyCode_New_function_description descr, + PyObject * const *varnames, + PyObject *filename, + PyObject *funcname, + PyObject *line_table, + PyObject *tuple_dedup_map +); + + +static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { + PyObject* tuple_dedup_map = PyDict_New(); + if (unlikely(!tuple_dedup_map)) return -1; + { + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 36}; + PyObject* const varnames[] = {0}; + __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_GetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 40}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_newQuietModeFlag}; + __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_SetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 44}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; + __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_GetProjectVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 49}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; + __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad; + } + Py_DECREF(tuple_dedup_map); + return 0; + bad: + Py_DECREF(tuple_dedup_map); + return -1; +} +/* #### Code section: init_globals ### */ + +static int __Pyx_InitGlobals(void) { + /* PythonCompatibility.init */ + if (likely(__Pyx_init_co_variables() == 0)); else + + if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) + + /* CommonTypesMetaclass.init */ + if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else + + if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) + + /* CachedMethodType.init */ + #if CYTHON_COMPILING_IN_LIMITED_API + { + PyObject *typesModule=NULL; + typesModule = PyImport_ImportModule("types"); + if (typesModule) { + __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType"); + Py_DECREF(typesModule); + } + } // error handling follows + #endif + + if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) + + /* CythonFunctionShared.init */ + if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else + + if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) + + return 0; + __pyx_L1_error:; + return -1; +} +/* #### Code section: cleanup_globals ### */ +/* #### Code section: cleanup_module ### */ +/* #### Code section: main_method ### */ +/* #### Code section: utility_code_pragmas ### */ +#ifdef _MSC_VER +#pragma warning( push ) +/* Warning 4127: conditional expression is constant + * Cython uses constant conditional expressions to allow in inline functions to be optimized at + * compile-time, so this warning is not useful + */ +#pragma warning( disable : 4127 ) +#endif + + + +/* #### Code section: utility_code_def ### */ + +/* --- Runtime support code --- */ +/* Refnanny */ +#if CYTHON_REFNANNY +static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { + PyObject *m = NULL, *p = NULL; + void *r = NULL; + m = PyImport_ImportModule(modname); + if (!m) goto end; + p = PyObject_GetAttrString(m, "RefNannyAPI"); + if (!p) goto end; + r = PyLong_AsVoidPtr(p); +end: + Py_XDECREF(p); + Py_XDECREF(m); + return (__Pyx_RefNannyAPIStruct *)r; +} +#endif + +/* TupleAndListFromArray (used by fastcall) */ +#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL +static CYTHON_INLINE PyObject * +__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) +{ + PyObject *res; + Py_ssize_t i; + if (n <= 0) { + return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple); + } + res = PyTuple_New(n); + if (unlikely(res == NULL)) return NULL; + for (i = 0; i < n; i++) { + Py_INCREF(src[i]); + if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) { + Py_DECREF(res); + return NULL; + } + } + return res; +} +#elif CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) { + PyObject *v; + Py_ssize_t i; + for (i = 0; i < length; i++) { + v = dest[i] = src[i]; + Py_INCREF(v); + } +} +static CYTHON_INLINE PyObject * +__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) +{ + PyObject *res; + if (n <= 0) { + return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple); + } + res = PyTuple_New(n); + if (unlikely(res == NULL)) return NULL; + __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n); + return res; +} +static CYTHON_INLINE PyObject * +__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n) +{ + PyObject *res; + if (n <= 0) { + return PyList_New(0); + } + res = PyList_New(n); + if (unlikely(res == NULL)) return NULL; + __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n); + return res; +} +#endif + +/* BytesEquals (used by UnicodeEquals) */ +static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { +#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\ + !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) + return PyObject_RichCompareBool(s1, s2, equals); +#else + if (s1 == s2) { + return (equals == Py_EQ); + } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { + const char *ps1, *ps2; + Py_ssize_t length = PyBytes_GET_SIZE(s1); + if (length != PyBytes_GET_SIZE(s2)) + return (equals == Py_NE); + ps1 = PyBytes_AS_STRING(s1); + ps2 = PyBytes_AS_STRING(s2); + if (ps1[0] != ps2[0]) { + return (equals == Py_NE); + } else if (length == 1) { + return (equals == Py_EQ); + } else { + int result; +#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000) + Py_hash_t hash1, hash2; + hash1 = ((PyBytesObject*)s1)->ob_shash; + hash2 = ((PyBytesObject*)s2)->ob_shash; + if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { + return (equals == Py_NE); + } +#endif + result = memcmp(ps1, ps2, (size_t)length); + return (equals == Py_EQ) ? (result == 0) : (result != 0); + } + } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { + return (equals == Py_NE); + } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { + return (equals == Py_NE); + } else { + int result; + PyObject* py_result = PyObject_RichCompare(s1, s2, equals); + if (!py_result) + return -1; + result = __Pyx_PyObject_IsTrue(py_result); + Py_DECREF(py_result); + return result; + } +#endif +} + +/* UnicodeEquals (used by fastcall) */ +static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { +#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL + return PyObject_RichCompareBool(s1, s2, equals); +#else + int s1_is_unicode, s2_is_unicode; + if (s1 == s2) { + goto return_eq; + } + s1_is_unicode = PyUnicode_CheckExact(s1); + s2_is_unicode = PyUnicode_CheckExact(s2); + if (s1_is_unicode & s2_is_unicode) { + Py_ssize_t length, length2; + int kind; + void *data1, *data2; + #if !CYTHON_COMPILING_IN_LIMITED_API + if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) + return -1; + #endif + length = __Pyx_PyUnicode_GET_LENGTH(s1); + #if !CYTHON_ASSUME_SAFE_SIZE + if (unlikely(length < 0)) return -1; + #endif + length2 = __Pyx_PyUnicode_GET_LENGTH(s2); + #if !CYTHON_ASSUME_SAFE_SIZE + if (unlikely(length2 < 0)) return -1; + #endif + if (length != length2) { + goto return_ne; + } +#if CYTHON_USE_UNICODE_INTERNALS + { + Py_hash_t hash1, hash2; + hash1 = ((PyASCIIObject*)s1)->hash; + hash2 = ((PyASCIIObject*)s2)->hash; + if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { + goto return_ne; + } + } +#endif + kind = __Pyx_PyUnicode_KIND(s1); + if (kind != __Pyx_PyUnicode_KIND(s2)) { + goto return_ne; + } + data1 = __Pyx_PyUnicode_DATA(s1); + data2 = __Pyx_PyUnicode_DATA(s2); + if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { + goto return_ne; + } else if (length == 1) { + goto return_eq; + } else { + int result = memcmp(data1, data2, (size_t)(length * kind)); + return (equals == Py_EQ) ? (result == 0) : (result != 0); + } + } else if ((s1 == Py_None) & s2_is_unicode) { + goto return_ne; + } else if ((s2 == Py_None) & s1_is_unicode) { + goto return_ne; + } else { + int result; + PyObject* py_result = PyObject_RichCompare(s1, s2, equals); + if (!py_result) + return -1; + result = __Pyx_PyObject_IsTrue(py_result); + Py_DECREF(py_result); + return result; + } +return_eq: + return (equals == Py_EQ); +return_ne: + return (equals == Py_NE); +#endif +} + +/* fastcall */ +#if CYTHON_METH_FASTCALL +static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s) +{ + Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames); + #if !CYTHON_ASSUME_SAFE_SIZE + if (unlikely(n == -1)) return NULL; + #endif + for (i = 0; i < n; i++) + { + PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i); + #if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(!namei)) return NULL; + #endif + if (s == namei) return kwvalues[i]; + } + for (i = 0; i < n; i++) + { + PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i); + #if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(!namei)) return NULL; + #endif + int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ); + if (unlikely(eq != 0)) { + if (unlikely(eq < 0)) return NULL; + return kwvalues[i]; + } + } + return NULL; +} +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API +CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) { + Py_ssize_t i, nkwargs; + PyObject *dict; +#if !CYTHON_ASSUME_SAFE_SIZE + nkwargs = PyTuple_Size(kwnames); + if (unlikely(nkwargs < 0)) return NULL; +#else + nkwargs = PyTuple_GET_SIZE(kwnames); +#endif + dict = PyDict_New(); + if (unlikely(!dict)) + return NULL; + for (i=0; itp_call; + if (unlikely(!call)) + return PyObject_Call(func, arg, kw); + if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) + return NULL; + result = (*call)(func, arg, kw); + Py_LeaveRecursiveCall(); + if (unlikely(!result) && unlikely(!PyErr_Occurred())) { + PyErr_SetString( + PyExc_SystemError, + "NULL result without error in PyObject_Call"); + } + return result; +} +#endif + +/* PyObjectCallMethO (used by PyObjectFastCall) */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { + PyObject *self, *result; + PyCFunction cfunc; + cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func); + self = __Pyx_CyOrPyCFunction_GET_SELF(func); + if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) + return NULL; + result = cfunc(self, arg); + Py_LeaveRecursiveCall(); + if (unlikely(!result) && unlikely(!PyErr_Occurred())) { + PyErr_SetString( + PyExc_SystemError, + "NULL result without error in PyObject_Call"); + } + return result; +} +#endif + +/* PyObjectFastCall (used by PyObjectCallOneArg) */ +#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API +static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) { + PyObject *argstuple; + PyObject *result = 0; + size_t i; + argstuple = PyTuple_New((Py_ssize_t)nargs); + if (unlikely(!argstuple)) return NULL; + for (i = 0; i < nargs; i++) { + Py_INCREF(args[i]); + if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad; + } + result = __Pyx_PyObject_Call(func, argstuple, kwargs); + bad: + Py_DECREF(argstuple); + return result; +} +#endif +#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API + #if PY_VERSION_HEX < 0x03090000 + #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable) + #elif CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) { + PyTypeObject *tp = Py_TYPE(callable); + #if defined(__Pyx_CyFunction_USED) + if (__Pyx_CyFunction_CheckExact(callable)) { + return __Pyx_CyFunction_func_vectorcall(callable); + } + #endif + if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) { + return NULL; + } + assert(PyCallable_Check(callable)); + Py_ssize_t offset = tp->tp_vectorcall_offset; + assert(offset > 0); + vectorcallfunc ptr; + memcpy(&ptr, (char *) callable + offset, sizeof(ptr)); + return ptr; +} + #else + #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable) + #endif +#endif +static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) { + Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs); +#if CYTHON_COMPILING_IN_CPYTHON + if (nargs == 0 && kwargs == NULL) { + if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS)) + return __Pyx_PyObject_CallMethO(func, NULL); + } + else if (nargs == 1 && kwargs == NULL) { + if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O)) + return __Pyx_PyObject_CallMethO(func, args[0]); + } +#endif + if (kwargs == NULL) { + #if CYTHON_VECTORCALL + #if CYTHON_COMPILING_IN_LIMITED_API + return PyObject_Vectorcall(func, args, _nargs, NULL); + #else + vectorcallfunc f = __Pyx_PyVectorcall_Function(func); + if (f) { + return f(func, args, _nargs, NULL); + } + #endif + #endif + } + if (nargs == 0) { + return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs); + } + #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API + return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs); + #else + return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs); + #endif +} + +/* PyObjectCallOneArg (used by CallUnboundCMethod0) */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { + PyObject *args[2] = {NULL, arg}; + return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET); +} + +/* PyObjectGetAttrStr (used by UnpackUnboundCMethod) */ +#if CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { + PyTypeObject* tp = Py_TYPE(obj); + if (likely(tp->tp_getattro)) + return tp->tp_getattro(obj, attr_name); + return PyObject_GetAttr(obj, attr_name); +} +#endif + +/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */ +#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000 +static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) { + PyObject *result; + PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args)); + if (unlikely(!selfless_args)) return NULL; + result = PyObject_Call(method, selfless_args, kwargs); + Py_DECREF(selfless_args); + return result; +} +#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000 +static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) { + return _PyObject_Vectorcall + (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames); +} +#else +static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) { + return +#if PY_VERSION_HEX < 0x03090000 + _PyObject_Vectorcall +#else + PyObject_Vectorcall +#endif + (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames); +} +#endif +static PyMethodDef __Pyx_UnboundCMethod_Def = { + "CythonUnboundCMethod", + __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall), +#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000 + METH_VARARGS | METH_KEYWORDS, +#else + METH_FASTCALL | METH_KEYWORDS, +#endif + NULL +}; +static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { + PyObject *method, *result=NULL; + method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name); + if (unlikely(!method)) + return -1; + result = method; +#if CYTHON_COMPILING_IN_CPYTHON + if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type))) + { + PyMethodDescrObject *descr = (PyMethodDescrObject*) method; + target->func = descr->d_method->ml_meth; + target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS); + } else +#endif +#if CYTHON_COMPILING_IN_PYPY +#else + if (PyCFunction_Check(method)) +#endif + { + PyObject *self; + int self_found; +#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY + self = PyObject_GetAttrString(method, "__self__"); + if (!self) { + PyErr_Clear(); + } +#else + self = PyCFunction_GET_SELF(method); +#endif + self_found = (self && self != Py_None); +#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY + Py_XDECREF(self); +#endif + if (self_found) { + PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method); + if (unlikely(!unbound_method)) return -1; + Py_DECREF(method); + result = unbound_method; + } + } +#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + if (unlikely(target->method)) { + Py_DECREF(result); + } else +#endif + target->method = result; + return 0; +} + +/* CallUnboundCMethod0 */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) { + int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc); + if (likely(was_initialized == 2 && cfunc->func)) { + if (likely(cfunc->flag == METH_NOARGS)) + return __Pyx_CallCFunction(cfunc, self, NULL); + if (likely(cfunc->flag == METH_FASTCALL)) + return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0); + if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS)) + return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL); + if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS))) + return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL); + if (cfunc->flag == METH_VARARGS) + return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple); + return __Pyx__CallUnboundCMethod0(cfunc, self); + } +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + else if (unlikely(was_initialized == 1)) { + __Pyx_CachedCFunction tmp_cfunc = { +#ifndef __cplusplus + 0 +#endif + }; + tmp_cfunc.type = cfunc->type; + tmp_cfunc.method_name = cfunc->method_name; + return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self); + } +#endif + PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self); + __Pyx_CachedCFunction_SetFinishedInitializing(cfunc); + return result; +} +#endif +static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) { + PyObject *result; + if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; + result = __Pyx_PyObject_CallOneArg(cfunc->method, self); + return result; +} + +/* py_dict_items (used by OwnedDictNext) */ +static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) { + return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d); +} + +/* py_dict_values (used by OwnedDictNext) */ +static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) { + return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d); +} + +/* OwnedDictNext (used by ParseKeywordsImpl) */ +#if CYTHON_AVOID_BORROWED_REFS +static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) { + PyObject *next = NULL; + if (!*ppos) { + if (pvalue) { + PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p); + if (unlikely(!dictview)) goto bad; + *ppos = PyObject_GetIter(dictview); + Py_DECREF(dictview); + } else { + *ppos = PyObject_GetIter(p); + } + if (unlikely(!*ppos)) goto bad; + } + next = PyIter_Next(*ppos); + if (!next) { + if (PyErr_Occurred()) goto bad; + return 0; + } + if (pkey && pvalue) { + *pkey = __Pyx_PySequence_ITEM(next, 0); + if (unlikely(*pkey)) goto bad; + *pvalue = __Pyx_PySequence_ITEM(next, 1); + if (unlikely(*pvalue)) goto bad; + Py_DECREF(next); + } else if (pkey) { + *pkey = next; + } else { + assert(pvalue); + *pvalue = next; + } + return 1; + bad: + Py_XDECREF(next); +#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000 + PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef"); +#else + PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef); +#endif + if (pkey) *pkey = NULL; + if (pvalue) *pvalue = NULL; + return 0; +} +#else // !CYTHON_AVOID_BORROWED_REFS +static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) { + int result = PyDict_Next(p, ppos, pkey, pvalue); + if (likely(result == 1)) { + if (pkey) Py_INCREF(*pkey); + if (pvalue) Py_INCREF(*pvalue); + } + return result; +} +#endif + +/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */ +static void __Pyx_RaiseDoubleKeywordsError( + const char* func_name, + PyObject* kw_name) +{ + PyErr_Format(PyExc_TypeError, + "%s() got multiple values for keyword argument '%U'", func_name, kw_name); +} + +/* CallUnboundCMethod2 */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) { + int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc); + if (likely(was_initialized == 2 && cfunc->func)) { + PyObject *args[2] = {arg1, arg2}; + if (cfunc->flag == METH_FASTCALL) { + return __Pyx_CallCFunctionFast(cfunc, self, args, 2); + } + if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS)) + return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL); + } +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + else if (unlikely(was_initialized == 1)) { + __Pyx_CachedCFunction tmp_cfunc = { +#ifndef __cplusplus + 0 +#endif + }; + tmp_cfunc.type = cfunc->type; + tmp_cfunc.method_name = cfunc->method_name; + return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2); + } +#endif + PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2); + __Pyx_CachedCFunction_SetFinishedInitializing(cfunc); + return result; +} +#endif +static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){ + if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; +#if CYTHON_COMPILING_IN_CPYTHON + if (cfunc->func && (cfunc->flag & METH_VARARGS)) { + PyObject *result = NULL; + PyObject *args = PyTuple_New(2); + if (unlikely(!args)) return NULL; + Py_INCREF(arg1); + PyTuple_SET_ITEM(args, 0, arg1); + Py_INCREF(arg2); + PyTuple_SET_ITEM(args, 1, arg2); + if (cfunc->flag & METH_KEYWORDS) + result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL); + else + result = __Pyx_CallCFunction(cfunc, self, args); + Py_DECREF(args); + return result; + } +#endif + { + PyObject *args[4] = {NULL, self, arg1, arg2}; + return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET); + } +} + +/* ParseKeywordsImpl (used by ParseKeywords) */ +static int __Pyx_ValidateDuplicatePosArgs( + PyObject *kwds, + PyObject ** const argnames[], + PyObject ** const *first_kw_arg, + const char* function_name) +{ + PyObject ** const *name = argnames; + while (name != first_kw_arg) { + PyObject *key = **name; + int found = PyDict_Contains(kwds, key); + if (unlikely(found)) { + if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key); + goto bad; + } + name++; + } + return 0; +bad: + return -1; +} +#if CYTHON_USE_UNICODE_INTERNALS +static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) { + int kind; + Py_ssize_t len = PyUnicode_GET_LENGTH(s1); + if (len != PyUnicode_GET_LENGTH(s2)) return 0; + kind = PyUnicode_KIND(s1); + if (kind != PyUnicode_KIND(s2)) return 0; + const void *data1 = PyUnicode_DATA(s1); + const void *data2 = PyUnicode_DATA(s2); + return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0); +} +#endif +static int __Pyx_MatchKeywordArg_str( + PyObject *key, + PyObject ** const argnames[], + PyObject ** const *first_kw_arg, + size_t *index_found, + const char *function_name) +{ + PyObject ** const *name; + #if CYTHON_USE_UNICODE_INTERNALS + Py_hash_t key_hash = ((PyASCIIObject*)key)->hash; + if (unlikely(key_hash == -1)) { + key_hash = PyObject_Hash(key); + if (unlikely(key_hash == -1)) + goto bad; + } + #endif + name = first_kw_arg; + while (*name) { + PyObject *name_str = **name; + #if CYTHON_USE_UNICODE_INTERNALS + if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) { + *index_found = (size_t) (name - argnames); + return 1; + } + #else + #if CYTHON_ASSUME_SAFE_SIZE + if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key)) + #endif + { + int cmp = PyUnicode_Compare(name_str, key); + if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; + if (cmp == 0) { + *index_found = (size_t) (name - argnames); + return 1; + } + } + #endif + name++; + } + name = argnames; + while (name != first_kw_arg) { + PyObject *name_str = **name; + #if CYTHON_USE_UNICODE_INTERNALS + if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) { + if (__Pyx_UnicodeKeywordsEqual(name_str, key)) + goto arg_passed_twice; + } + #else + #if CYTHON_ASSUME_SAFE_SIZE + if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key)) + #endif + { + if (unlikely(name_str == key)) goto arg_passed_twice; + int cmp = PyUnicode_Compare(name_str, key); + if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; + if (cmp == 0) goto arg_passed_twice; + } + #endif + name++; + } + return 0; +arg_passed_twice: + __Pyx_RaiseDoubleKeywordsError(function_name, key); + goto bad; +bad: + return -1; +} +static int __Pyx_MatchKeywordArg_nostr( + PyObject *key, + PyObject ** const argnames[], + PyObject ** const *first_kw_arg, + size_t *index_found, + const char *function_name) +{ + PyObject ** const *name; + if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; + name = first_kw_arg; + while (*name) { + int cmp = PyObject_RichCompareBool(**name, key, Py_EQ); + if (cmp == 1) { + *index_found = (size_t) (name - argnames); + return 1; + } + if (unlikely(cmp == -1)) goto bad; + name++; + } + name = argnames; + while (name != first_kw_arg) { + int cmp = PyObject_RichCompareBool(**name, key, Py_EQ); + if (unlikely(cmp != 0)) { + if (cmp == 1) goto arg_passed_twice; + else goto bad; + } + name++; + } + return 0; +arg_passed_twice: + __Pyx_RaiseDoubleKeywordsError(function_name, key); + goto bad; +invalid_keyword_type: + PyErr_Format(PyExc_TypeError, + "%.200s() keywords must be strings", function_name); + goto bad; +bad: + return -1; +} +static CYTHON_INLINE int __Pyx_MatchKeywordArg( + PyObject *key, + PyObject ** const argnames[], + PyObject ** const *first_kw_arg, + size_t *index_found, + const char *function_name) +{ + return likely(PyUnicode_CheckExact(key)) ? + __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) : + __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name); +} +static void __Pyx_RejectUnknownKeyword( + PyObject *kwds, + PyObject ** const argnames[], + PyObject ** const *first_kw_arg, + const char *function_name) +{ + #if CYTHON_AVOID_BORROWED_REFS + PyObject *pos = NULL; + #else + Py_ssize_t pos = 0; + #endif + PyObject *key = NULL; + __Pyx_BEGIN_CRITICAL_SECTION(kwds); + while ( + #if CYTHON_AVOID_BORROWED_REFS + __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL) + #else + PyDict_Next(kwds, &pos, &key, NULL) + #endif + ) { + PyObject** const *name = first_kw_arg; + while (*name && (**name != key)) name++; + if (!*name) { + size_t index_found = 0; + int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name); + if (cmp != 1) { + if (cmp == 0) { + PyErr_Format(PyExc_TypeError, + "%s() got an unexpected keyword argument '%U'", + function_name, key); + } + #if CYTHON_AVOID_BORROWED_REFS + Py_DECREF(key); + #endif + break; + } + } + #if CYTHON_AVOID_BORROWED_REFS + Py_DECREF(key); + #endif + } + __Pyx_END_CRITICAL_SECTION(); + #if CYTHON_AVOID_BORROWED_REFS + Py_XDECREF(pos); + #endif + assert(PyErr_Occurred()); +} +static int __Pyx_ParseKeywordDict( + PyObject *kwds, + PyObject ** const argnames[], + PyObject *values[], + Py_ssize_t num_pos_args, + Py_ssize_t num_kwargs, + const char* function_name, + int ignore_unknown_kwargs) +{ + PyObject** const *name; + PyObject** const *first_kw_arg = argnames + num_pos_args; + Py_ssize_t extracted = 0; +#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments) + if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1; +#endif + name = first_kw_arg; + while (*name && num_kwargs > extracted) { + PyObject * key = **name; + PyObject *value; + int found = 0; + #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + found = PyDict_GetItemRef(kwds, key, &value); + #else + value = PyDict_GetItemWithError(kwds, key); + if (value) { + Py_INCREF(value); + found = 1; + } else { + if (unlikely(PyErr_Occurred())) goto bad; + } + #endif + if (found) { + if (unlikely(found < 0)) goto bad; + values[name-argnames] = value; + extracted++; + } + name++; + } + if (num_kwargs > extracted) { + if (ignore_unknown_kwargs) { + if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1)) + goto bad; + } else { + __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name); + goto bad; + } + } + return 0; +bad: + return -1; +} +static int __Pyx_ParseKeywordDictToDict( + PyObject *kwds, + PyObject ** const argnames[], + PyObject *kwds2, + PyObject *values[], + Py_ssize_t num_pos_args, + const char* function_name) +{ + PyObject** const *name; + PyObject** const *first_kw_arg = argnames + num_pos_args; + Py_ssize_t len; +#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments) + if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1; +#endif + if (PyDict_Update(kwds2, kwds) < 0) goto bad; + name = first_kw_arg; + while (*name) { + PyObject *key = **name; + PyObject *value; +#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop)) + int found = PyDict_Pop(kwds2, key, &value); + if (found) { + if (unlikely(found < 0)) goto bad; + values[name-argnames] = value; + } +#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + int found = PyDict_GetItemRef(kwds2, key, &value); + if (found) { + if (unlikely(found < 0)) goto bad; + values[name-argnames] = value; + if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad; + } +#else + #if CYTHON_COMPILING_IN_CPYTHON + value = _PyDict_Pop(kwds2, key, kwds2); + #else + value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2); + #endif + if (value == kwds2) { + Py_DECREF(value); + } else { + if (unlikely(!value)) goto bad; + values[name-argnames] = value; + } +#endif + name++; + } + len = PyDict_Size(kwds2); + if (len > 0) { + return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name); + } else if (unlikely(len == -1)) { + goto bad; + } + return 0; +bad: + return -1; +} +static int __Pyx_ParseKeywordsTuple( + PyObject *kwds, + PyObject * const *kwvalues, + PyObject ** const argnames[], + PyObject *kwds2, + PyObject *values[], + Py_ssize_t num_pos_args, + Py_ssize_t num_kwargs, + const char* function_name, + int ignore_unknown_kwargs) +{ + PyObject *key = NULL; + PyObject** const * name; + PyObject** const *first_kw_arg = argnames + num_pos_args; + for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) { +#if CYTHON_AVOID_BORROWED_REFS + key = __Pyx_PySequence_ITEM(kwds, pos); +#else + key = __Pyx_PyTuple_GET_ITEM(kwds, pos); +#endif +#if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(!key)) goto bad; +#endif + name = first_kw_arg; + while (*name && (**name != key)) name++; + if (*name) { + PyObject *value = kwvalues[pos]; + values[name-argnames] = __Pyx_NewRef(value); + } else { + size_t index_found = 0; + int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name); + if (cmp == 1) { + PyObject *value = kwvalues[pos]; + values[index_found] = __Pyx_NewRef(value); + } else { + if (unlikely(cmp == -1)) goto bad; + if (kwds2) { + PyObject *value = kwvalues[pos]; + if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; + } else if (!ignore_unknown_kwargs) { + goto invalid_keyword; + } + } + } + #if CYTHON_AVOID_BORROWED_REFS + Py_DECREF(key); + key = NULL; + #endif + } + return 0; +invalid_keyword: + PyErr_Format(PyExc_TypeError, + "%s() got an unexpected keyword argument '%U'", + function_name, key); + goto bad; +bad: + #if CYTHON_AVOID_BORROWED_REFS + Py_XDECREF(key); + #endif + return -1; +} + +/* ParseKeywords */ +static int __Pyx_ParseKeywords( + PyObject *kwds, + PyObject * const *kwvalues, + PyObject ** const argnames[], + PyObject *kwds2, + PyObject *values[], + Py_ssize_t num_pos_args, + Py_ssize_t num_kwargs, + const char* function_name, + int ignore_unknown_kwargs) +{ + if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) + return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs); + else if (kwds2) + return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name); + else + return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs); +} + +/* RaiseArgTupleInvalid */ +static void __Pyx_RaiseArgtupleInvalid( + const char* func_name, + int exact, + Py_ssize_t num_min, + Py_ssize_t num_max, + Py_ssize_t num_found) +{ + Py_ssize_t num_expected; + const char *more_or_less; + if (num_found < num_min) { + num_expected = num_min; + more_or_less = "at least"; + } else { + num_expected = num_max; + more_or_less = "at most"; + } + if (exact) { + more_or_less = "exactly"; + } + PyErr_Format(PyExc_TypeError, + "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", + func_name, more_or_less, num_expected, + (num_expected == 1) ? "" : "s", num_found); +} + +/* decode_c_bytes (used by decode_bytes) */ +static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes( + const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop, + const char* encoding, const char* errors, + PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) { + if (unlikely((start < 0) | (stop < 0))) { + if (start < 0) { + start += length; + if (start < 0) + start = 0; + } + if (stop < 0) + stop += length; + } + if (stop > length) + stop = length; + if (unlikely(stop <= start)) + return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_unicode); + length = stop - start; + cstring += start; + if (decode_func) { + return decode_func(cstring, length, errors); + } else { + return PyUnicode_Decode(cstring, length, encoding, errors); + } +} + +/* RaiseUnexpectedTypeError */ +static int +__Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj) +{ + __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj)); + PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME, + expected, obj_type_name); + __Pyx_DECREF_TypeName(obj_type_name); + return 0; +} + +/* FunctionExport */ +static int __Pyx_ExportFunction(PyObject *api_dict, const char *name, void (*f)(void), const char *sig) { + PyObject *cobj; + union { + void (*fp)(void); + void *p; + } tmp; + tmp.fp = f; + cobj = PyCapsule_New(tmp.p, sig, 0); + if (!cobj) + goto bad; + if (PyDict_SetItemString(api_dict, name, cobj) < 0) + goto bad; + Py_DECREF(cobj); + return 0; +bad: + Py_XDECREF(cobj); + return -1; +} + +/* GetApiDict */ +static PyObject *__Pyx_ApiExport_GetApiDict(void) { + PyObject *d; + if (__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_capi, &d) == -1) + return NULL; + if (!d) { + d = PyDict_New(); + if (!d) + goto bad; + if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_pyx_capi, d) < 0) + goto bad; + } + return d; +bad: + Py_XDECREF(d); + return NULL; +} + +/* dict_setdefault (used by FetchCommonType) */ +static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) { + PyObject* value; +#if __PYX_LIMITED_VERSION_HEX >= 0x030F0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4) + PyDict_SetDefaultRef(d, key, default_value, &value); +#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000 + PyObject *args[] = {d, key, default_value}; + value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL); +#elif CYTHON_COMPILING_IN_LIMITED_API + value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL); +#else + value = PyDict_SetDefault(d, key, default_value); + if (unlikely(!value)) return NULL; + Py_INCREF(value); +#endif + return value; +} + +/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */ +#if CYTHON_COMPILING_IN_LIMITED_API +static Py_ssize_t __Pyx_GetTypeDictOffset(void) { + PyObject *tp_dictoffset_o; + Py_ssize_t tp_dictoffset; + tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__"); + if (unlikely(!tp_dictoffset_o)) return -1; + tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o); + Py_DECREF(tp_dictoffset_o); + if (unlikely(tp_dictoffset == 0)) { + PyErr_SetString( + PyExc_TypeError, + "'type' doesn't have a dictoffset"); + return -1; + } else if (unlikely(tp_dictoffset < 0)) { + PyErr_SetString( + PyExc_TypeError, + "'type' has an unexpected negative dictoffset. " + "Please report this as Cython bug"); + return -1; + } + return tp_dictoffset; +} +static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) { + static Py_ssize_t tp_dictoffset = 0; + if (unlikely(tp_dictoffset == 0)) { + tp_dictoffset = __Pyx_GetTypeDictOffset(); + if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) { + tp_dictoffset = 0; // try again next time? + return NULL; + } + } + return *(PyObject**)((char*)tp + tp_dictoffset); +} +#endif + +/* SetItemOnTypeDict (used by FixUpExtensionType) */ +static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) { + int result; + PyObject *tp_dict; +#if CYTHON_COMPILING_IN_LIMITED_API + tp_dict = __Pyx_GetTypeDict(tp); + if (unlikely(!tp_dict)) return -1; +#else + tp_dict = tp->tp_dict; +#endif + result = PyDict_SetItem(tp_dict, k, v); + if (likely(!result)) { + PyType_Modified(tp); + if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) { + PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name, (PyObject *) tp, k, NULL); + if (!setNameResult) return -1; + Py_DECREF(setNameResult); + } + } + return result; +} + +/* FixUpExtensionType (used by FetchCommonType) */ +static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) { +#if __PYX_LIMITED_VERSION_HEX > 0x030900B1 + CYTHON_UNUSED_VAR(spec); + CYTHON_UNUSED_VAR(type); + CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict); +#else + const PyType_Slot *slot = spec->slots; + int changed = 0; +#if !CYTHON_COMPILING_IN_LIMITED_API + while (slot && slot->slot && slot->slot != Py_tp_members) + slot++; + if (slot && slot->slot == Py_tp_members) { +#if !CYTHON_COMPILING_IN_CPYTHON + const +#endif // !CYTHON_COMPILING_IN_CPYTHON) + PyMemberDef *memb = (PyMemberDef*) slot->pfunc; + while (memb && memb->name) { + if (memb->name[0] == '_' && memb->name[1] == '_') { + if (strcmp(memb->name, "__weaklistoffset__") == 0) { + assert(memb->type == T_PYSSIZET); + assert(memb->flags == READONLY); + type->tp_weaklistoffset = memb->offset; + changed = 1; + } + else if (strcmp(memb->name, "__dictoffset__") == 0) { + assert(memb->type == T_PYSSIZET); + assert(memb->flags == READONLY); + type->tp_dictoffset = memb->offset; + changed = 1; + } +#if CYTHON_METH_FASTCALL + else if (strcmp(memb->name, "__vectorcalloffset__") == 0) { + assert(memb->type == T_PYSSIZET); + assert(memb->flags == READONLY); + type->tp_vectorcall_offset = memb->offset; + changed = 1; + } +#endif // CYTHON_METH_FASTCALL +#if !CYTHON_COMPILING_IN_PYPY + else if (strcmp(memb->name, "__module__") == 0) { + PyObject *descr; + assert(memb->type == T_OBJECT); + assert(memb->flags == 0 || memb->flags == READONLY); + descr = PyDescr_NewMember(type, memb); + if (unlikely(!descr)) + return -1; + int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr); + Py_DECREF(descr); + if (unlikely(set_item_result < 0)) { + return -1; + } + changed = 1; + } +#endif // !CYTHON_COMPILING_IN_PYPY + } + memb++; + } + } +#endif // !CYTHON_COMPILING_IN_LIMITED_API +#if !CYTHON_COMPILING_IN_PYPY + slot = spec->slots; + while (slot && slot->slot && slot->slot != Py_tp_getset) + slot++; + if (slot && slot->slot == Py_tp_getset) { + PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc; + while (getset && getset->name) { + if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) { + PyObject *descr = PyDescr_NewGetSet(type, getset); + if (unlikely(!descr)) + return -1; + #if CYTHON_COMPILING_IN_LIMITED_API + PyObject *pyname = PyUnicode_FromString(getset->name); + if (unlikely(!pyname)) { + Py_DECREF(descr); + return -1; + } + int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr); + Py_DECREF(pyname); + #else + CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict); + int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr); + #endif + Py_DECREF(descr); + if (unlikely(set_item_result < 0)) { + return -1; + } + changed = 1; + } + ++getset; + } + } +#else + CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict); +#endif // !CYTHON_COMPILING_IN_PYPY + if (changed) + PyType_Modified(type); +#endif // PY_VERSION_HEX > 0x030900B1 + return 0; +} + +/* AddModuleRef (used by FetchSharedCythonModule) */ +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) { + PyObject *module_dict = PyImport_GetModuleDict(); + PyObject *m; + if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) { + return NULL; + } + if (m != NULL && PyModule_Check(m)) { + return m; + } + Py_XDECREF(m); + m = PyModule_NewObject(name); + if (m == NULL) + return NULL; + if (PyDict_CheckExact(module_dict)) { + PyObject *new_m; + (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m); + Py_DECREF(m); + return new_m; + } else { + if (PyObject_SetItem(module_dict, name, m) != 0) { + Py_DECREF(m); + return NULL; + } + return m; + } + } + static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { + PyObject *py_name = PyUnicode_FromString(name); + if (!py_name) return NULL; + PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name); + Py_DECREF(py_name); + return module; + } +#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) +#else + static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { + PyObject *module = PyImport_AddModule(name); + Py_XINCREF(module); + return module; + } +#endif + +/* FetchSharedCythonModule (used by FetchCommonType) */ +static PyObject *__Pyx_FetchSharedCythonABIModule(void) { + return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME); +} + +/* FetchCommonType (used by CommonTypesMetaclass) */ +#if __PYX_LIMITED_VERSION_HEX < 0x030C0000 +static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) { + PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases); + if (result && metaclass) { + PyObject *old_tp = (PyObject*)Py_TYPE(result); + Py_INCREF((PyObject*)metaclass); +#if __PYX_LIMITED_VERSION_HEX >= 0x03090000 + Py_SET_TYPE(result, metaclass); +#else + result->ob_type = metaclass; +#endif + Py_DECREF(old_tp); + } + return result; +} +#else +#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b) +#endif +static int __Pyx_VerifyCachedType(PyObject *cached_type, + const char *name, + Py_ssize_t expected_basicsize) { + Py_ssize_t basicsize; + if (!PyType_Check(cached_type)) { + PyErr_Format(PyExc_TypeError, + "Shared Cython type %.200s is not a type object", name); + return -1; + } + if (expected_basicsize == 0) { + return 0; // size is inherited, nothing useful to check + } +#if CYTHON_COMPILING_IN_LIMITED_API + PyObject *py_basicsize; + py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__"); + if (unlikely(!py_basicsize)) return -1; + basicsize = PyLong_AsSsize_t(py_basicsize); + Py_DECREF(py_basicsize); + py_basicsize = NULL; + if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1; +#else + basicsize = ((PyTypeObject*) cached_type)->tp_basicsize; +#endif + if (basicsize != expected_basicsize) { + PyErr_Format(PyExc_TypeError, + "Shared Cython type %.200s has the wrong size, try recompiling", + name); + return -1; + } + return 0; +} +static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) { + PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name; + int get_item_ref_result; + const char* object_name = strrchr(spec->name, '.'); + object_name = object_name ? object_name+1 : spec->name; + py_object_name = PyUnicode_FromString(object_name); + if (!py_object_name) return NULL; + abi_module = __Pyx_FetchSharedCythonABIModule(); + if (!abi_module) goto done; + abi_module_dict = PyModule_GetDict(abi_module); + if (!abi_module_dict) goto done; + get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type); + if (get_item_ref_result == 1) { + if (__Pyx_VerifyCachedType( + cached_type, + object_name, + spec->basicsize) < 0) { + goto bad; + } + goto done; + } else if (unlikely(get_item_ref_result == -1)) { + goto bad; + } + cached_type = __Pyx_PyType_FromMetaclass( + metaclass, + CYTHON_USE_MODULE_STATE ? module : abi_module, + spec, bases); + if (unlikely(!cached_type)) goto bad; + if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad; + new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type); + if (unlikely(new_cached_type != cached_type)) { + if (unlikely(!new_cached_type)) goto bad; + Py_DECREF(cached_type); + cached_type = new_cached_type; + if (__Pyx_VerifyCachedType( + cached_type, + object_name, + spec->basicsize) < 0) { + goto bad; + } + goto done; + } else { + Py_DECREF(new_cached_type); + } +done: + Py_XDECREF(abi_module); + Py_DECREF(py_object_name); + assert(cached_type == NULL || PyType_Check(cached_type)); + return (PyTypeObject *) cached_type; +bad: + Py_XDECREF(cached_type); + cached_type = NULL; + goto done; +} + +/* CommonTypesMetaclass (used by CythonFunctionShared) */ +static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) { + return PyUnicode_FromString(__PYX_ABI_MODULE_NAME); +} +#if __PYX_LIMITED_VERSION_HEX < 0x030A0000 +static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) { + PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types"); + return NULL; +} +static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) { + PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable"); + return -1; +} +#endif +static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = { + {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL}, + {0, 0, 0, 0, 0} +}; +static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = { + {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset}, + #if __PYX_LIMITED_VERSION_HEX < 0x030A0000 + {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call}, + {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call}, + {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr}, + #endif + {0, 0} +}; +static PyType_Spec __pyx_CommonTypesMetaclass_spec = { + __PYX_TYPE_MODULE_PREFIX "_common_types_metatype", + 0, + 0, + Py_TPFLAGS_IMMUTABLETYPE | + Py_TPFLAGS_DISALLOW_INSTANTIATION | + Py_TPFLAGS_DEFAULT, + __pyx_CommonTypesMetaclass_slots +}; +static int __pyx_CommonTypesMetaclass_init(PyObject *module) { + __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module); + PyObject *bases = PyTuple_Pack(1, &PyType_Type); + if (unlikely(!bases)) { + return -1; + } + mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases); + Py_DECREF(bases); + if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) { + return -1; + } + return 0; +} + +/* CallTypeTraverse (used by CythonFunctionShared) */ +#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000) +#else +static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) { + #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000 + if (__Pyx_get_runtime_version() < 0x03090000) return 0; + #endif + if (!always_call) { + PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*); + unsigned long flags = PyType_GetFlags(base); + if (flags & Py_TPFLAGS_HEAPTYPE) { + return 0; + } + } + Py_VISIT((PyObject*)Py_TYPE(o)); + return 0; +} +#endif + +/* PyMethodNew (used by CythonFunctionShared) */ +#if CYTHON_COMPILING_IN_LIMITED_API +static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { + PyObject *result; + CYTHON_UNUSED_VAR(typ); + if (!self) + return __Pyx_NewRef(func); + #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000 + { + PyObject *args[] = {func, self}; + result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL); + } + #else + result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL); + #endif + return result; +} +#else +static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { + CYTHON_UNUSED_VAR(typ); + if (!self) + return __Pyx_NewRef(func); + return PyMethod_New(func, self); +} +#endif + +/* PyVectorcallFastCallDict (used by CythonFunctionShared) */ +#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL +static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw) +{ + PyObject *res = NULL; + PyObject *kwnames; + PyObject **newargs; + PyObject **kwvalues; + Py_ssize_t i; + #if CYTHON_AVOID_BORROWED_REFS + PyObject *pos; + #else + Py_ssize_t pos; + #endif + size_t j; + PyObject *key, *value; + unsigned long keys_are_strings; + #if !CYTHON_ASSUME_SAFE_SIZE + Py_ssize_t nkw = PyDict_Size(kw); + if (unlikely(nkw == -1)) return NULL; + #else + Py_ssize_t nkw = PyDict_GET_SIZE(kw); + #endif + newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0])); + if (unlikely(newargs == NULL)) { + PyErr_NoMemory(); + return NULL; + } + for (j = 0; j < nargs; j++) newargs[j] = args[j]; + kwnames = PyTuple_New(nkw); + if (unlikely(kwnames == NULL)) { + PyMem_Free(newargs); + return NULL; + } + kwvalues = newargs + nargs; + pos = 0; + i = 0; + keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS; + while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) { + keys_are_strings &= + #if CYTHON_COMPILING_IN_LIMITED_API + PyType_GetFlags(Py_TYPE(key)); + #else + Py_TYPE(key)->tp_flags; + #endif + #if !CYTHON_ASSUME_SAFE_MACROS + if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup; + #else + PyTuple_SET_ITEM(kwnames, i, key); + #endif + kwvalues[i] = value; + i++; + } + if (unlikely(!keys_are_strings)) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + goto cleanup; + } + res = vc(func, newargs, nargs, kwnames); +cleanup: + #if CYTHON_AVOID_BORROWED_REFS + Py_DECREF(pos); + #endif + Py_DECREF(kwnames); + for (i = 0; i < nkw; i++) + Py_DECREF(kwvalues[i]); + PyMem_Free(newargs); + return res; +} +static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw) +{ + Py_ssize_t kw_size = + likely(kw == NULL) ? + 0 : +#if !CYTHON_ASSUME_SAFE_SIZE + PyDict_Size(kw); +#else + PyDict_GET_SIZE(kw); +#endif + if (kw_size == 0) { + return vc(func, args, nargs, NULL); + } +#if !CYTHON_ASSUME_SAFE_SIZE + else if (unlikely(kw_size == -1)) { + return NULL; + } +#endif + return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw); +} +#endif + +/* CythonFunctionShared (used by CythonFunction) */ +#if CYTHON_COMPILING_IN_LIMITED_API +static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) { + if (__Pyx_CyFunction_Check(func)) { + return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc; + } else if (PyCFunction_Check(func)) { + return PyCFunction_GetFunction(func) == (PyCFunction) cfunc; + } + return 0; +} +static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) { + if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) { + int result; + PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func); + if (unlikely(!newFunc)) { + PyErr_Clear(); // It's only an optimization, so don't throw an error + return 0; + } + result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc); + Py_DECREF(newFunc); + return result; + } + return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc); +} +#else +static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) { + if (PyMethod_Check(func)) { + func = PyMethod_GET_FUNCTION(func); + } + return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc; +} +#endif +static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) { +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API + __Pyx_Py_XDECREF_SET( + __Pyx_CyFunction_GetClassObj(f), + ((classobj) ? __Pyx_NewRef(classobj) : NULL)); +#else + __Pyx_Py_XDECREF_SET( + ((PyCMethodObject *) (f))->mm_class, + (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL)); +#endif +} +static PyObject * +__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op) +{ + if (unlikely(op->func_doc == NULL)) { +#if CYTHON_COMPILING_IN_LIMITED_API + op->func_doc = PyObject_GetAttrString(op->func, "__doc__"); + if (unlikely(!op->func_doc)) return NULL; +#else + if (((PyCFunctionObject*)op)->m_ml->ml_doc) { + op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); + if (unlikely(op->func_doc == NULL)) + return NULL; + } else { + Py_INCREF(Py_None); + return Py_None; + } +#endif + } + Py_INCREF(op->func_doc); + return op->func_doc; +} +static PyObject * +__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) { + PyObject *result; + CYTHON_UNUSED_VAR(closure); + __Pyx_BEGIN_CRITICAL_SECTION(op); + result = __Pyx_CyFunction_get_doc_locked(op); + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static int +__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context) +{ + CYTHON_UNUSED_VAR(context); + if (value == NULL) { + value = Py_None; + } + Py_INCREF(value); + __Pyx_BEGIN_CRITICAL_SECTION(op); + __Pyx_Py_XDECREF_SET(op->func_doc, value); + __Pyx_END_CRITICAL_SECTION(); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op) +{ + if (unlikely(op->func_name == NULL)) { +#if CYTHON_COMPILING_IN_LIMITED_API + op->func_name = PyObject_GetAttrString(op->func, "__name__"); +#else + op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name); +#endif + if (unlikely(op->func_name == NULL)) + return NULL; + } + Py_INCREF(op->func_name); + return op->func_name; +} +static PyObject * +__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context) +{ + PyObject *result = NULL; + CYTHON_UNUSED_VAR(context); + __Pyx_BEGIN_CRITICAL_SECTION(op); + result = __Pyx_CyFunction_get_name_locked(op); + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static int +__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context) +{ + CYTHON_UNUSED_VAR(context); + if (unlikely(value == NULL || !PyUnicode_Check(value))) { + PyErr_SetString(PyExc_TypeError, + "__name__ must be set to a string object"); + return -1; + } + Py_INCREF(value); + __Pyx_BEGIN_CRITICAL_SECTION(op); + __Pyx_Py_XDECREF_SET(op->func_name, value); + __Pyx_END_CRITICAL_SECTION(); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context) +{ + CYTHON_UNUSED_VAR(context); + PyObject *result; + __Pyx_BEGIN_CRITICAL_SECTION(op); + Py_INCREF(op->func_qualname); + result = op->func_qualname; + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static int +__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context) +{ + CYTHON_UNUSED_VAR(context); + if (unlikely(value == NULL || !PyUnicode_Check(value))) { + PyErr_SetString(PyExc_TypeError, + "__qualname__ must be set to a string object"); + return -1; + } + Py_INCREF(value); + __Pyx_BEGIN_CRITICAL_SECTION(op); + __Pyx_Py_XDECREF_SET(op->func_qualname, value); + __Pyx_END_CRITICAL_SECTION(); + return 0; +} +#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000 +static PyObject * +__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context) +{ + CYTHON_UNUSED_VAR(context); + if (unlikely(op->func_dict == NULL)) { + op->func_dict = PyDict_New(); + if (unlikely(op->func_dict == NULL)) + return NULL; + } + Py_INCREF(op->func_dict); + return op->func_dict; +} +#endif +static PyObject * +__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context) +{ + CYTHON_UNUSED_VAR(context); + Py_INCREF(op->func_globals); + return op->func_globals; +} +static PyObject * +__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context) +{ + CYTHON_UNUSED_VAR(op); + CYTHON_UNUSED_VAR(context); + Py_INCREF(Py_None); + return Py_None; +} +static PyObject * +__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context) +{ + PyObject* result = (op->func_code) ? op->func_code : Py_None; + CYTHON_UNUSED_VAR(context); + Py_INCREF(result); + return result; +} +static int +__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { + int result = 0; + PyObject *res = op->defaults_getter((PyObject *) op); + if (unlikely(!res)) + return -1; + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS + op->defaults_tuple = PyTuple_GET_ITEM(res, 0); + Py_INCREF(op->defaults_tuple); + op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); + Py_INCREF(op->defaults_kwdict); + #else + op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0); + if (unlikely(!op->defaults_tuple)) result = -1; + else { + op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1); + if (unlikely(!op->defaults_kwdict)) result = -1; + } + #endif + Py_DECREF(res); + return result; +} +static int +__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) { + CYTHON_UNUSED_VAR(context); + if (!value) { + value = Py_None; + } else if (unlikely(value != Py_None && !PyTuple_Check(value))) { + PyErr_SetString(PyExc_TypeError, + "__defaults__ must be set to a tuple object"); + return -1; + } + PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not " + "currently affect the values used in function calls", 1); + Py_INCREF(value); + __Pyx_BEGIN_CRITICAL_SECTION(op); + __Pyx_Py_XDECREF_SET(op->defaults_tuple, value); + __Pyx_END_CRITICAL_SECTION(); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) { + PyObject* result = op->defaults_tuple; + if (unlikely(!result)) { + if (op->defaults_getter) { + if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL; + result = op->defaults_tuple; + } else { + result = Py_None; + } + } + Py_INCREF(result); + return result; +} +static PyObject * +__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) { + PyObject* result = NULL; + CYTHON_UNUSED_VAR(context); + __Pyx_BEGIN_CRITICAL_SECTION(op); + result = __Pyx_CyFunction_get_defaults_locked(op); + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static int +__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) { + CYTHON_UNUSED_VAR(context); + if (!value) { + value = Py_None; + } else if (unlikely(value != Py_None && !PyDict_Check(value))) { + PyErr_SetString(PyExc_TypeError, + "__kwdefaults__ must be set to a dict object"); + return -1; + } + PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not " + "currently affect the values used in function calls", 1); + Py_INCREF(value); + __Pyx_BEGIN_CRITICAL_SECTION(op); + __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value); + __Pyx_END_CRITICAL_SECTION(); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) { + PyObject* result = op->defaults_kwdict; + if (unlikely(!result)) { + if (op->defaults_getter) { + if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL; + result = op->defaults_kwdict; + } else { + result = Py_None; + } + } + Py_INCREF(result); + return result; +} +static PyObject * +__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) { + PyObject* result; + CYTHON_UNUSED_VAR(context); + __Pyx_BEGIN_CRITICAL_SECTION(op); + result = __Pyx_CyFunction_get_kwdefaults_locked(op); + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static int +__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) { + CYTHON_UNUSED_VAR(context); + if (!value || value == Py_None) { + value = NULL; + } else if (unlikely(!PyDict_Check(value))) { + PyErr_SetString(PyExc_TypeError, + "__annotations__ must be set to a dict object"); + return -1; + } + Py_XINCREF(value); + __Pyx_BEGIN_CRITICAL_SECTION(op); + __Pyx_Py_XDECREF_SET(op->func_annotations, value); + __Pyx_END_CRITICAL_SECTION(); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) { + PyObject* result = op->func_annotations; + if (unlikely(!result)) { + result = PyDict_New(); + if (unlikely(!result)) return NULL; + op->func_annotations = result; + } + Py_INCREF(result); + return result; +} +static PyObject * +__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) { + PyObject *result; + CYTHON_UNUSED_VAR(context); + __Pyx_BEGIN_CRITICAL_SECTION(op); + result = __Pyx_CyFunction_get_annotations_locked(op); + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static PyObject * +__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) { + int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE; + if (is_coroutine) { + PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine; + fromlist = PyList_New(1); + if (unlikely(!fromlist)) return NULL; + Py_INCREF(marker); +#if CYTHON_ASSUME_SAFE_MACROS + PyList_SET_ITEM(fromlist, 0, marker); +#else + if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) { + Py_DECREF(fromlist); + return NULL; + } +#endif + module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0); + Py_DECREF(fromlist); + if (unlikely(!module)) goto ignore; + is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker); + Py_DECREF(module); + if (likely(is_coroutine_value)) { + return is_coroutine_value; + } +ignore: + PyErr_Clear(); + } + return __Pyx_PyBool_FromLong(is_coroutine); +} +static PyObject * +__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) { + PyObject *result; + CYTHON_UNUSED_VAR(context); + if (op->func_is_coroutine) { + return __Pyx_NewRef(op->func_is_coroutine); + } + result = __Pyx_CyFunction_get_is_coroutine_value(op); + if (unlikely(!result)) + return NULL; + __Pyx_BEGIN_CRITICAL_SECTION(op); + if (op->func_is_coroutine) { + Py_DECREF(result); + result = __Pyx_NewRef(op->func_is_coroutine); + } else { + op->func_is_coroutine = __Pyx_NewRef(result); + } + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) { +#if CYTHON_COMPILING_IN_LIMITED_API + PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL); + if (!py_name) return; + PyErr_Format(PyExc_TypeError, + "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)", + py_name, message, size); + Py_DECREF(py_name); +#else + const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name; + PyErr_Format(PyExc_TypeError, + "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)", + name, message, size); +#endif +} +static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) { +#if CYTHON_COMPILING_IN_LIMITED_API + PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL); + if (!py_name) return; + PyErr_Format(PyExc_TypeError, + "%.200S() %s", + py_name, message); + Py_DECREF(py_name); +#else + const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name; + PyErr_Format(PyExc_TypeError, + "%.200s() %s", + name, message); +#endif +} +#if CYTHON_COMPILING_IN_LIMITED_API +static PyObject * +__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) { + CYTHON_UNUSED_VAR(context); + return PyObject_GetAttrString(op->func, "__module__"); +} +static int +__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) { + CYTHON_UNUSED_VAR(context); + return PyObject_SetAttrString(op->func, "__module__", value); +} +#endif +static PyGetSetDef __pyx_CyFunction_getsets[] = { + {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, + {"__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, + {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, + {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, + {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, +#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000 + {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0}, + {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0}, +#else + {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0}, + {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0}, +#endif + {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, + {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, + {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, + {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, + {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, + {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, + {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, + {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, + {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, + {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, + {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0}, +#if CYTHON_COMPILING_IN_LIMITED_API + {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0}, +#endif + {0, 0, 0, 0, 0} +}; +static PyMemberDef __pyx_CyFunction_members[] = { +#if !CYTHON_COMPILING_IN_LIMITED_API + {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0}, +#endif +#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API + {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0}, +#endif +#if CYTHON_METH_FASTCALL +#if CYTHON_COMPILING_IN_LIMITED_API + {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0}, +#else + {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0}, +#endif +#if CYTHON_COMPILING_IN_LIMITED_API + {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0}, +#else + {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0}, +#endif +#endif + {0, 0, 0, 0, 0} +}; +static PyObject * +__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args) +{ + PyObject *result = NULL; + CYTHON_UNUSED_VAR(args); + __Pyx_BEGIN_CRITICAL_SECTION(m); + Py_INCREF(m->func_qualname); + result = m->func_qualname; + __Pyx_END_CRITICAL_SECTION(); + return result; +} +static PyMethodDef __pyx_CyFunction_methods[] = { + {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, + {0, 0, 0, 0} +}; +#if CYTHON_COMPILING_IN_LIMITED_API +#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) +#else +#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist) +#endif +static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname, + PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { +#if !CYTHON_COMPILING_IN_LIMITED_API + PyCFunctionObject *cf = (PyCFunctionObject*) op; +#endif + if (unlikely(op == NULL)) + return NULL; +#if CYTHON_COMPILING_IN_LIMITED_API + op->func = PyCFunction_NewEx(ml, (PyObject*)op, module); + if (unlikely(!op->func)) return NULL; +#endif + op->flags = flags; + __Pyx_CyFunction_weakreflist(op) = NULL; +#if !CYTHON_COMPILING_IN_LIMITED_API + cf->m_ml = ml; + cf->m_self = (PyObject *) op; +#endif + Py_XINCREF(closure); + op->func_closure = closure; +#if !CYTHON_COMPILING_IN_LIMITED_API + Py_XINCREF(module); + cf->m_module = module; +#endif +#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API + op->func_dict = NULL; +#endif + op->func_name = NULL; + Py_INCREF(qualname); + op->func_qualname = qualname; + op->func_doc = NULL; +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API + op->func_classobj = NULL; +#else + ((PyCMethodObject*)op)->mm_class = NULL; +#endif + op->func_globals = globals; + Py_INCREF(op->func_globals); + Py_XINCREF(code); + op->func_code = code; + op->defaults = NULL; + op->defaults_tuple = NULL; + op->defaults_kwdict = NULL; + op->defaults_getter = NULL; + op->func_annotations = NULL; + op->func_is_coroutine = NULL; +#if CYTHON_METH_FASTCALL + switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) { + case METH_NOARGS: + __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS; + break; + case METH_O: + __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O; + break; + case METH_METHOD | METH_FASTCALL | METH_KEYWORDS: + __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD; + break; + case METH_FASTCALL | METH_KEYWORDS: + __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS; + break; + case METH_VARARGS | METH_KEYWORDS: + __Pyx_CyFunction_func_vectorcall(op) = NULL; + break; + default: + PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); + Py_DECREF(op); + return NULL; + } +#endif + return (PyObject *) op; +} +static int +__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) +{ + Py_CLEAR(m->func_closure); +#if CYTHON_COMPILING_IN_LIMITED_API + Py_CLEAR(m->func); +#else + Py_CLEAR(((PyCFunctionObject*)m)->m_module); +#endif +#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API + Py_CLEAR(m->func_dict); +#elif PY_VERSION_HEX < 0x030d0000 + _PyObject_ClearManagedDict((PyObject*)m); +#else + PyObject_ClearManagedDict((PyObject*)m); +#endif + Py_CLEAR(m->func_name); + Py_CLEAR(m->func_qualname); + Py_CLEAR(m->func_doc); + Py_CLEAR(m->func_globals); + Py_CLEAR(m->func_code); +#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API + Py_CLEAR(__Pyx_CyFunction_GetClassObj(m)); +#else + { + PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class; + ((PyCMethodObject *) (m))->mm_class = NULL; + Py_XDECREF(cls); + } +#endif + Py_CLEAR(m->defaults_tuple); + Py_CLEAR(m->defaults_kwdict); + Py_CLEAR(m->func_annotations); + Py_CLEAR(m->func_is_coroutine); + Py_CLEAR(m->defaults); + return 0; +} +static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m) +{ + if (__Pyx_CyFunction_weakreflist(m) != NULL) + PyObject_ClearWeakRefs((PyObject *) m); + __Pyx_CyFunction_clear(m); + __Pyx_PyHeapTypeObject_GC_Del(m); +} +static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) +{ + PyObject_GC_UnTrack(m); + __Pyx__CyFunction_dealloc(m); +} +static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) +{ + { + int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg); + if (e) return e; + } + Py_VISIT(m->func_closure); +#if CYTHON_COMPILING_IN_LIMITED_API + Py_VISIT(m->func); +#else + Py_VISIT(((PyCFunctionObject*)m)->m_module); +#endif +#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API + Py_VISIT(m->func_dict); +#else + { + int e = +#if PY_VERSION_HEX < 0x030d0000 + _PyObject_VisitManagedDict +#else + PyObject_VisitManagedDict +#endif + ((PyObject*)m, visit, arg); + if (e != 0) return e; + } +#endif + __Pyx_VISIT_CONST(m->func_name); + __Pyx_VISIT_CONST(m->func_qualname); + Py_VISIT(m->func_doc); + Py_VISIT(m->func_globals); + __Pyx_VISIT_CONST(m->func_code); + Py_VISIT(__Pyx_CyFunction_GetClassObj(m)); + Py_VISIT(m->defaults_tuple); + Py_VISIT(m->defaults_kwdict); + Py_VISIT(m->func_annotations); + Py_VISIT(m->func_is_coroutine); + Py_VISIT(m->defaults); + return 0; +} +static PyObject* +__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) +{ + PyObject *repr; + __Pyx_BEGIN_CRITICAL_SECTION(op); + repr = PyUnicode_FromFormat("", + op->func_qualname, (void *)op); + __Pyx_END_CRITICAL_SECTION(); + return repr; +} +static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { +#if CYTHON_COMPILING_IN_LIMITED_API + PyObject *f = ((__pyx_CyFunctionObject*)func)->func; + PyCFunction meth; + int flags; + meth = PyCFunction_GetFunction(f); + if (unlikely(!meth)) return NULL; + flags = PyCFunction_GetFlags(f); + if (unlikely(flags < 0)) return NULL; +#else + PyCFunctionObject* f = (PyCFunctionObject*)func; + PyCFunction meth = f->m_ml->ml_meth; + int flags = f->m_ml->ml_flags; +#endif + Py_ssize_t size; + switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { + case METH_VARARGS: + if (likely(kw == NULL || PyDict_Size(kw) == 0)) + return (*meth)(self, arg); + break; + case METH_VARARGS | METH_KEYWORDS: + return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw); + case METH_NOARGS: + if (likely(kw == NULL || PyDict_Size(kw) == 0)) { +#if CYTHON_ASSUME_SAFE_SIZE + size = PyTuple_GET_SIZE(arg); +#else + size = PyTuple_Size(arg); + if (unlikely(size < 0)) return NULL; +#endif + if (likely(size == 0)) + return (*meth)(self, NULL); + __Pyx_CyFunction_raise_argument_count_error( + (__pyx_CyFunctionObject*)func, + "takes no arguments", size); + return NULL; + } + break; + case METH_O: + if (likely(kw == NULL || PyDict_Size(kw) == 0)) { +#if CYTHON_ASSUME_SAFE_SIZE + size = PyTuple_GET_SIZE(arg); +#else + size = PyTuple_Size(arg); + if (unlikely(size < 0)) return NULL; +#endif + if (likely(size == 1)) { + PyObject *result, *arg0; + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS + arg0 = PyTuple_GET_ITEM(arg, 0); + #else + arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; + #endif + result = (*meth)(self, arg0); + #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) + Py_DECREF(arg0); + #endif + return result; + } + __Pyx_CyFunction_raise_argument_count_error( + (__pyx_CyFunctionObject*)func, + "takes exactly one argument", size); + return NULL; + } + break; + default: + PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); + return NULL; + } + __Pyx_CyFunction_raise_type_error( + (__pyx_CyFunctionObject*)func, "takes no keyword arguments"); + return NULL; +} +static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { + PyObject *self, *result; +#if CYTHON_COMPILING_IN_LIMITED_API + self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func); + if (unlikely(!self) && PyErr_Occurred()) return NULL; +#else + self = ((PyCFunctionObject*)func)->m_self; +#endif + result = __Pyx_CyFunction_CallMethod(func, self, arg, kw); + return result; +} +static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { + PyObject *result; + __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; +#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL + __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc); + if (vc) { +#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE + return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw); +#else + (void) &__Pyx_PyVectorcall_FastCallDict; + return PyVectorcall_Call(func, args, kw); +#endif + } +#endif + if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { + Py_ssize_t argc; + PyObject *new_args; + PyObject *self; +#if CYTHON_ASSUME_SAFE_SIZE + argc = PyTuple_GET_SIZE(args); +#else + argc = PyTuple_Size(args); + if (unlikely(argc < 0)) return NULL; +#endif + new_args = PyTuple_GetSlice(args, 1, argc); + if (unlikely(!new_args)) + return NULL; + self = PyTuple_GetItem(args, 0); + if (unlikely(!self)) { + Py_DECREF(new_args); + PyErr_Format(PyExc_TypeError, + "unbound method %.200S() needs an argument", + cyfunc->func_qualname); + return NULL; + } + result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); + Py_DECREF(new_args); + } else { + result = __Pyx_CyFunction_Call(func, args, kw); + } + return result; +} +#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL +static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames) +{ + int ret = 0; + if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { + if (unlikely(nargs < 1)) { + __Pyx_CyFunction_raise_type_error( + cyfunc, "needs an argument"); + return -1; + } + ret = 1; + } + if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) { + __Pyx_CyFunction_raise_type_error( + cyfunc, "takes no keyword arguments"); + return -1; + } + return ret; +} +static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) +{ + __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; + Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); + PyObject *self; +#if CYTHON_COMPILING_IN_LIMITED_API + PyCFunction meth = PyCFunction_GetFunction(cyfunc->func); + if (unlikely(!meth)) return NULL; +#else + PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth; +#endif + switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { + case 1: + self = args[0]; + args += 1; + nargs -= 1; + break; + case 0: +#if CYTHON_COMPILING_IN_LIMITED_API + self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func); + if (unlikely(!self) && PyErr_Occurred()) return NULL; +#else + self = ((PyCFunctionObject*)cyfunc)->m_self; +#endif + break; + default: + return NULL; + } + if (unlikely(nargs != 0)) { + __Pyx_CyFunction_raise_argument_count_error( + cyfunc, "takes no arguments", nargs); + return NULL; + } + return meth(self, NULL); +} +static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) +{ + __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; + Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); + PyObject *self; +#if CYTHON_COMPILING_IN_LIMITED_API + PyCFunction meth = PyCFunction_GetFunction(cyfunc->func); + if (unlikely(!meth)) return NULL; +#else + PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth; +#endif + switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { + case 1: + self = args[0]; + args += 1; + nargs -= 1; + break; + case 0: +#if CYTHON_COMPILING_IN_LIMITED_API + self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func); + if (unlikely(!self) && PyErr_Occurred()) return NULL; +#else + self = ((PyCFunctionObject*)cyfunc)->m_self; +#endif + break; + default: + return NULL; + } + if (unlikely(nargs != 1)) { + __Pyx_CyFunction_raise_argument_count_error( + cyfunc, "takes exactly one argument", nargs); + return NULL; + } + return meth(self, args[0]); +} +static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) +{ + __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; + Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); + PyObject *self; +#if CYTHON_COMPILING_IN_LIMITED_API + PyCFunction meth = PyCFunction_GetFunction(cyfunc->func); + if (unlikely(!meth)) return NULL; +#else + PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth; +#endif + switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) { + case 1: + self = args[0]; + args += 1; + nargs -= 1; + break; + case 0: +#if CYTHON_COMPILING_IN_LIMITED_API + self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func); + if (unlikely(!self) && PyErr_Occurred()) return NULL; +#else + self = ((PyCFunctionObject*)cyfunc)->m_self; +#endif + break; + default: + return NULL; + } + return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames); +} +static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) +{ + __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; + PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc); + Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); + PyObject *self; +#if CYTHON_COMPILING_IN_LIMITED_API + PyCFunction meth = PyCFunction_GetFunction(cyfunc->func); + if (unlikely(!meth)) return NULL; +#else + PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth; +#endif + switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) { + case 1: + self = args[0]; + args += 1; + nargs -= 1; + break; + case 0: +#if CYTHON_COMPILING_IN_LIMITED_API + self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func); + if (unlikely(!self) && PyErr_Occurred()) return NULL; +#else + self = ((PyCFunctionObject*)cyfunc)->m_self; +#endif + break; + default: + return NULL; + } + #if PY_VERSION_HEX < 0x030e00A6 + size_t nargs_value = (size_t) nargs; + #else + Py_ssize_t nargs_value = nargs; + #endif + return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames); +} +#endif +static PyType_Slot __pyx_CyFunctionType_slots[] = { + {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc}, + {Py_tp_repr, (void *)__Pyx_CyFunction_repr}, + {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod}, + {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse}, + {Py_tp_clear, (void *)__Pyx_CyFunction_clear}, + {Py_tp_methods, (void *)__pyx_CyFunction_methods}, + {Py_tp_members, (void *)__pyx_CyFunction_members}, + {Py_tp_getset, (void *)__pyx_CyFunction_getsets}, + {Py_tp_descr_get, (void *)__Pyx_PyMethod_New}, + {0, 0}, +}; +static PyType_Spec __pyx_CyFunctionType_spec = { + __PYX_TYPE_MODULE_PREFIX "cython_function_or_method", + sizeof(__pyx_CyFunctionObject), + 0, +#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR + Py_TPFLAGS_METHOD_DESCRIPTOR | +#endif +#if CYTHON_METH_FASTCALL +#if defined(Py_TPFLAGS_HAVE_VECTORCALL) + Py_TPFLAGS_HAVE_VECTORCALL | +#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL) + _Py_TPFLAGS_HAVE_VECTORCALL | +#endif +#endif // CYTHON_METH_FASTCALL +#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API + Py_TPFLAGS_MANAGED_DICT | +#endif + Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION | + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, + __pyx_CyFunctionType_slots +}; +static int __pyx_CyFunction_init(PyObject *module) { + __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module); + mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec( + mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL); + if (unlikely(mstate->__pyx_CyFunctionType == NULL)) { + return -1; + } + return 0; +} +static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type); + if (unlikely(!m->defaults)) + return NULL; + return m->defaults; +} +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->defaults_tuple = tuple; + Py_INCREF(tuple); +} +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->defaults_kwdict = dict; + Py_INCREF(dict); +} +static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->func_annotations = dict; + Py_INCREF(dict); +} + +/* CythonFunction */ +static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, + PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { + PyObject *op = __Pyx_CyFunction_Init( + PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType), + ml, flags, qualname, closure, module, globals, code + ); + if (likely(op)) { + PyObject_GC_Track(op); + } + return op; +} + +/* PyDictVersioning (used by CLineInTraceback) */ +#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { + PyObject *dict = Py_TYPE(obj)->tp_dict; + return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; +} +static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { + PyObject **dictptr = NULL; + Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; + if (offset) { +#if CYTHON_COMPILING_IN_CPYTHON + dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); +#else + dictptr = _PyObject_GetDictPtr(obj); +#endif + } + return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; +} +static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { + PyObject *dict = Py_TYPE(obj)->tp_dict; + if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) + return 0; + return obj_dict_version == __Pyx_get_object_dict_version(obj); +} +#endif + +/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */ +#if CYTHON_FAST_THREAD_STATE +static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(tuple); + for (i=0; i= 0x030C00A6 + PyObject *current_exception = tstate->current_exception; + if (unlikely(!current_exception)) return 0; + exc_type = (PyObject*) Py_TYPE(current_exception); + if (exc_type == err) return 1; +#else + exc_type = tstate->curexc_type; + if (exc_type == err) return 1; + if (unlikely(!exc_type)) return 0; +#endif + #if CYTHON_AVOID_BORROWED_REFS + Py_INCREF(exc_type); + #endif + if (unlikely(PyTuple_Check(err))) { + result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); + } else { + result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err); + } + #if CYTHON_AVOID_BORROWED_REFS + Py_DECREF(exc_type); + #endif + return result; +} +#endif + +/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */ +#if CYTHON_FAST_THREAD_STATE +static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { +#if PY_VERSION_HEX >= 0x030C00A6 + PyObject *tmp_value; + assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value))); + if (value) { + #if CYTHON_COMPILING_IN_CPYTHON + if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb)) + #endif + PyException_SetTraceback(value, tb); + } + tmp_value = tstate->current_exception; + tstate->current_exception = value; + Py_XDECREF(tmp_value); + Py_XDECREF(type); + Py_XDECREF(tb); +#else + PyObject *tmp_type, *tmp_value, *tmp_tb; + tmp_type = tstate->curexc_type; + tmp_value = tstate->curexc_value; + tmp_tb = tstate->curexc_traceback; + tstate->curexc_type = type; + tstate->curexc_value = value; + tstate->curexc_traceback = tb; + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); +#endif +} +static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { +#if PY_VERSION_HEX >= 0x030C00A6 + PyObject* exc_value; + exc_value = tstate->current_exception; + tstate->current_exception = 0; + *value = exc_value; + *type = NULL; + *tb = NULL; + if (exc_value) { + *type = (PyObject*) Py_TYPE(exc_value); + Py_INCREF(*type); + #if CYTHON_COMPILING_IN_CPYTHON + *tb = ((PyBaseExceptionObject*) exc_value)->traceback; + Py_XINCREF(*tb); + #else + *tb = PyException_GetTraceback(exc_value); + #endif + } +#else + *type = tstate->curexc_type; + *value = tstate->curexc_value; + *tb = tstate->curexc_traceback; + tstate->curexc_type = 0; + tstate->curexc_value = 0; + tstate->curexc_traceback = 0; +#endif +} +#endif + +/* PyObjectGetAttrStrNoError (used by CLineInTraceback) */ +#if __PYX_LIMITED_VERSION_HEX < 0x030d0000 +static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) + __Pyx_PyErr_Clear(); +} +#endif +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) { + PyObject *result; +#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000 + (void) PyObject_GetOptionalAttr(obj, attr_name, &result); + return result; +#else +#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS + PyTypeObject* tp = Py_TYPE(obj); + if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) { + return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1); + } +#endif + result = __Pyx_PyObject_GetAttrStr(obj, attr_name); + if (unlikely(!result)) { + __Pyx_PyObject_GetAttrStr_ClearAttributeError(); + } + return result; +#endif +} + +/* CLineInTraceback (used by AddTraceback) */ +#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME +#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000 +#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o)) +#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING +#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL); +#else +PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) { + PyObject **dict_ptr = _PyObject_GetDictPtr(o); + return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL; +} +#endif +static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) { + PyObject *use_cline = NULL; + PyObject *ptype, *pvalue, *ptraceback; + PyObject *cython_runtime_dict; + CYTHON_MAYBE_UNUSED_VAR(tstate); + if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) { + return c_line; + } + __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); + cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime); + if (likely(cython_runtime_dict)) { + __PYX_PY_DICT_LOOKUP_IF_MODIFIED( + use_cline, cython_runtime_dict, + __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False)) + } + if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { + c_line = 0; + } + Py_XDECREF(use_cline); + Py_XDECREF(cython_runtime_dict); + __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); + return c_line; +} +#endif + +/* CodeObjectCache (used by AddTraceback) */ +static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { + int start = 0, mid = 0, end = count - 1; + if (end >= 0 && code_line > entries[end].code_line) { + return count; + } + while (start < end) { + mid = start + (end - start) / 2; + if (code_line < entries[mid].code_line) { + end = mid; + } else if (code_line > entries[mid].code_line) { + start = mid + 1; + } else { + return mid; + } + } + if (code_line <= entries[mid].code_line) { + return mid; + } else { + return mid + 1; + } +} +static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) { + __Pyx_CachedCodeObjectType* code_object; + int pos; + if (unlikely(!code_line) || unlikely(!code_cache->entries)) { + return NULL; + } + pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line); + if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) { + return NULL; + } + code_object = code_cache->entries[pos].code_object; + Py_INCREF(code_object); + return code_object; +} +static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) { +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS + (void)__pyx__find_code_object; + return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss. +#else + struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache; +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count); + if (old_count < 0) { + __pyx_atomic_decr_acq_rel(&code_cache->accessor_count); + return NULL; + } +#endif + __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line); +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + __pyx_atomic_decr_acq_rel(&code_cache->accessor_count); +#endif + return result; +#endif +} +static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object) +{ + int pos, i; + __Pyx_CodeObjectCacheEntry* entries = code_cache->entries; + if (unlikely(!code_line)) { + return; + } + if (unlikely(!entries)) { + entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); + if (likely(entries)) { + code_cache->entries = entries; + code_cache->max_count = 64; + code_cache->count = 1; + entries[0].code_line = code_line; + entries[0].code_object = code_object; + Py_INCREF(code_object); + } + return; + } + pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line); + if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) { + __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object; + entries[pos].code_object = code_object; + Py_INCREF(code_object); + Py_DECREF(tmp); + return; + } + if (code_cache->count == code_cache->max_count) { + int new_max = code_cache->max_count + 64; + entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( + code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry)); + if (unlikely(!entries)) { + return; + } + code_cache->entries = entries; + code_cache->max_count = new_max; + } + for (i=code_cache->count; i>pos; i--) { + entries[i] = entries[i-1]; + } + entries[pos].code_line = code_line; + entries[pos].code_object = code_object; + code_cache->count++; + Py_INCREF(code_object); +} +static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) { +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS + (void)__pyx__insert_code_object; + return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail. +#else + struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache; +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + __pyx_nonatomic_int_type expected = 0; + if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) { + return; + } +#endif + __pyx__insert_code_object(code_cache, code_line, code_object); +#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING + __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN); +#endif +#endif +} + +/* AddTraceback */ +#include "compile.h" +#include "frameobject.h" +#include "traceback.h" +#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION) + #ifndef Py_BUILD_CORE + #define Py_BUILD_CORE 1 + #endif + #include "internal/pycore_frame.h" +#endif +#if CYTHON_COMPILING_IN_LIMITED_API +static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict, + PyObject *firstlineno, PyObject *name) { + PyObject *replace = NULL; + if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL; + if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL; + replace = PyObject_GetAttrString(code, "replace"); + if (likely(replace)) { + PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict); + Py_DECREF(replace); + return result; + } + PyErr_Clear(); + return NULL; +} +static void __Pyx_AddTraceback(const char *funcname, int c_line, + int py_line, const char *filename) { + PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL; + PyObject *replace = NULL, *getframe = NULL, *frame = NULL; + PyObject *exc_type, *exc_value, *exc_traceback; + int success = 0; + if (c_line) { + c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line); + } + PyErr_Fetch(&exc_type, &exc_value, &exc_traceback); + code_object = __pyx_find_code_object(c_line ? -c_line : py_line); + if (!code_object) { + code_object = Py_CompileString("_getframe()", filename, Py_eval_input); + if (unlikely(!code_object)) goto bad; + py_py_line = PyLong_FromLong(py_line); + if (unlikely(!py_py_line)) goto bad; + if (c_line) { + py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); + } else { + py_funcname = PyUnicode_FromString(funcname); + } + if (unlikely(!py_funcname)) goto bad; + dict = PyDict_New(); + if (unlikely(!dict)) goto bad; + { + PyObject *old_code_object = code_object; + code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname); + Py_DECREF(old_code_object); + } + if (unlikely(!code_object)) goto bad; + __pyx_insert_code_object(c_line ? -c_line : py_line, code_object); + } else { + dict = PyDict_New(); + } + getframe = PySys_GetObject("_getframe"); + if (unlikely(!getframe)) goto bad; + if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad; + frame = PyEval_EvalCode(code_object, dict, dict); + if (unlikely(!frame) || frame == Py_None) goto bad; + success = 1; + bad: + PyErr_Restore(exc_type, exc_value, exc_traceback); + Py_XDECREF(code_object); + Py_XDECREF(py_py_line); + Py_XDECREF(py_funcname); + Py_XDECREF(dict); + Py_XDECREF(replace); + if (success) { + PyTraceBack_Here( + (struct _frame*)frame); + } + Py_XDECREF(frame); +} +#else +static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( + const char *funcname, int c_line, + int py_line, const char *filename) { + PyCodeObject *py_code = NULL; + PyObject *py_funcname = NULL; + if (c_line) { + py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); + if (!py_funcname) goto bad; + funcname = PyUnicode_AsUTF8(py_funcname); + if (!funcname) goto bad; + } + py_code = PyCode_NewEmpty(filename, funcname, py_line); + Py_XDECREF(py_funcname); + return py_code; +bad: + Py_XDECREF(py_funcname); + return NULL; +} +static void __Pyx_AddTraceback(const char *funcname, int c_line, + int py_line, const char *filename) { + PyCodeObject *py_code = 0; + PyFrameObject *py_frame = 0; + PyThreadState *tstate = __Pyx_PyThreadState_Current; + PyObject *ptype, *pvalue, *ptraceback; + if (c_line) { + c_line = __Pyx_CLineForTraceback(tstate, c_line); + } + py_code = __pyx_find_code_object(c_line ? -c_line : py_line); + if (!py_code) { + __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); + py_code = __Pyx_CreateCodeObjectForTraceback( + funcname, c_line, py_line, filename); + if (!py_code) { + /* If the code object creation fails, then we should clear the + fetched exception references and propagate the new exception */ + Py_XDECREF(ptype); + Py_XDECREF(pvalue); + Py_XDECREF(ptraceback); + goto bad; + } + __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); + __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); + } + py_frame = PyFrame_New( + tstate, /*PyThreadState *tstate,*/ + py_code, /*PyCodeObject *code,*/ + __pyx_mstate_global->__pyx_d, /*PyObject *globals,*/ + 0 /*PyObject *locals*/ + ); + if (!py_frame) goto bad; + __Pyx_PyFrame_SetLineNumber(py_frame, py_line); + PyTraceBack_Here(py_frame); +bad: + Py_XDECREF(py_code); + Py_XDECREF(py_frame); +} +#endif + +/* CIntFromPyVerify */ +#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ + __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) +#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ + __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) +#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ + {\ + func_type value = func_value;\ + if (sizeof(target_type) < sizeof(func_type)) {\ + if (unlikely(value != (func_type) (target_type) value)) {\ + func_type zero = 0;\ + if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ + return (target_type) -1;\ + if (is_unsigned && unlikely(value < zero))\ + goto raise_neg_overflow;\ + else\ + goto raise_overflow;\ + }\ + }\ + return (target_type) value;\ + } + +/* PyObjectVectorCallKwBuilder (used by CIntToPy) */ +#if CYTHON_VECTORCALL +static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + (void)__Pyx_PyObject_FastCallDict; + Py_INCREF(key); + if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1; + args[n] = value; + return 0; +} +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + (void)__Pyx_VectorcallBuilder_AddArgStr; + if (unlikely(!PyUnicode_Check(key))) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + return -1; + } + return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n); +} +static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) { + PyObject *pyKey = PyUnicode_FromString(key); + if (!pyKey) return -1; + return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n); +} +#else // CYTHON_VECTORCALL +CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) { + if (unlikely(!PyUnicode_Check(key))) { + PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + return -1; + } + return PyDict_SetItem(builder, key, value); +} +#endif + +/* CIntToPy */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) { +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif + const int neg_one = (int) -1, const_zero = (int) 0; +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic pop +#endif + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(int) < sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(int) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); +#if !CYTHON_COMPILING_IN_PYPY + } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif + } + } else { + if (sizeof(int) <= sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { + return PyLong_FromLongLong((PY_LONG_LONG) value); + } + } + { + unsigned char *bytes = (unsigned char *)&value; +#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 + if (is_unsigned) { + return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); + } else { + return PyLong_FromNativeBytes(bytes, sizeof(value), -1); + } +#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 + int one = 1; int little = (int)*(unsigned char *)&one; + return _PyLong_FromByteArray(bytes, sizeof(int), + little, !is_unsigned); +#else + int one = 1; int little = (int)*(unsigned char *)&one; + PyObject *from_bytes, *result = NULL, *kwds = NULL; + PyObject *py_bytes = NULL, *order_str = NULL; + from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); + if (!from_bytes) return NULL; + py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int)); + if (!py_bytes) goto limited_bad; + order_str = PyUnicode_FromString(little ? "little" : "big"); + if (!order_str) goto limited_bad; + { + PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str }; + if (!is_unsigned) { + kwds = __Pyx_MakeVectorcallBuilderKwds(1); + if (!kwds) goto limited_bad; + if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad; + } + result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds); + } + limited_bad: + Py_XDECREF(kwds); + Py_XDECREF(order_str); + Py_XDECREF(py_bytes); + Py_XDECREF(from_bytes); + return result; +#endif + } +} + +/* CIntFromPy */ +static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) { +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif + const int neg_one = (int) -1, const_zero = (int) 0; +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic pop +#endif + const int is_unsigned = neg_one > const_zero; + if (unlikely(!PyLong_Check(x))) { + int val; + PyObject *tmp = __Pyx_PyNumber_Long(x); + if (!tmp) return (int) -1; + val = __Pyx_PyLong_As_int(tmp); + Py_DECREF(tmp); + return val; + } + if (is_unsigned) { +#if CYTHON_USE_PYLONG_INTERNALS + if (unlikely(__Pyx_PyLong_IsNeg(x))) { + goto raise_neg_overflow; + } else if (__Pyx_PyLong_IsCompact(x)) { + __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)) + } else { + const digit* digits = __Pyx_PyLong_Digits(x); + assert(__Pyx_PyLong_DigitCount(x) > 1); + switch (__Pyx_PyLong_DigitCount(x)) { + case 2: + if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) { + return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); + } + } + break; + case 3: + if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) { + return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); + } + } + break; + case 4: + if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) { + return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); + } + } + break; + } + } +#endif +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 + if (unlikely(Py_SIZE(x) < 0)) { + goto raise_neg_overflow; + } +#else + { + int result = PyObject_RichCompareBool(x, Py_False, Py_LT); + if (unlikely(result < 0)) + return (int) -1; + if (unlikely(result == 1)) + goto raise_neg_overflow; + } +#endif + if ((sizeof(int) <= sizeof(unsigned long))) { + __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) + } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) { + __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) + } + } else { +#if CYTHON_USE_PYLONG_INTERNALS + if (__Pyx_PyLong_IsCompact(x)) { + __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)) + } else { + const digit* digits = __Pyx_PyLong_Digits(x); + assert(__Pyx_PyLong_DigitCount(x) > 1); + switch (__Pyx_PyLong_SignedDigitCount(x)) { + case -2: + if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) { + return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); + } + } + break; + case 2: + if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) { + return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); + } + } + break; + case -3: + if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) { + return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); + } + } + break; + case 3: + if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) { + return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); + } + } + break; + case -4: + if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) { + return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); + } + } + break; + case 4: + if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) { + return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); + } + } + break; + } + } +#endif + if ((sizeof(int) <= sizeof(long))) { + __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) + } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) { + __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) + } + } + { + int val; + int ret = -1; +#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API + Py_ssize_t bytes_copied = PyLong_AsNativeBytes( + x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0)); + if (unlikely(bytes_copied == -1)) { + } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) { + goto raise_overflow; + } else { + ret = 0; + } +#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray) + int one = 1; int is_little = (int)*(unsigned char *)&one; + unsigned char *bytes = (unsigned char *)&val; + ret = _PyLong_AsByteArray((PyLongObject *)x, + bytes, sizeof(val), + is_little, !is_unsigned); +#else + PyObject *v; + PyObject *stepval = NULL, *mask = NULL, *shift = NULL; + int bits, remaining_bits, is_negative = 0; + int chunk_size = (sizeof(long) < 8) ? 30 : 62; + if (likely(PyLong_CheckExact(x))) { + v = __Pyx_NewRef(x); + } else { + v = PyNumber_Long(x); + if (unlikely(!v)) return (int) -1; + assert(PyLong_CheckExact(v)); + } + { + int result = PyObject_RichCompareBool(v, Py_False, Py_LT); + if (unlikely(result < 0)) { + Py_DECREF(v); + return (int) -1; + } + is_negative = result == 1; + } + if (is_unsigned && unlikely(is_negative)) { + Py_DECREF(v); + goto raise_neg_overflow; + } else if (is_negative) { + stepval = PyNumber_Invert(v); + Py_DECREF(v); + if (unlikely(!stepval)) + return (int) -1; + } else { + stepval = v; + } + v = NULL; + val = (int) 0; + mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done; + shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done; + for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) { + PyObject *tmp, *digit; + long idigit; + digit = PyNumber_And(stepval, mask); + if (unlikely(!digit)) goto done; + idigit = PyLong_AsLong(digit); + Py_DECREF(digit); + if (unlikely(idigit < 0)) goto done; + val |= ((int) idigit) << bits; + tmp = PyNumber_Rshift(stepval, shift); + if (unlikely(!tmp)) goto done; + Py_DECREF(stepval); stepval = tmp; + } + Py_DECREF(shift); shift = NULL; + Py_DECREF(mask); mask = NULL; + { + long idigit = PyLong_AsLong(stepval); + if (unlikely(idigit < 0)) goto done; + remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1); + if (unlikely(idigit >= (1L << remaining_bits))) + goto raise_overflow; + val |= ((int) idigit) << bits; + } + if (!is_unsigned) { + if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1)))) + goto raise_overflow; + if (is_negative) + val = ~val; + } + ret = 0; + done: + Py_XDECREF(shift); + Py_XDECREF(mask); + Py_XDECREF(stepval); +#endif + if (unlikely(ret)) + return (int) -1; + return val; + } +raise_overflow: + PyErr_SetString(PyExc_OverflowError, + "value too large to convert to int"); + return (int) -1; +raise_neg_overflow: + PyErr_SetString(PyExc_OverflowError, + "can't convert negative value to int"); + return (int) -1; +} + +/* FormatTypeName */ +#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000 +static __Pyx_TypeName +__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp) +{ + PyObject *module = NULL, *name = NULL, *result = NULL; + #if __PYX_LIMITED_VERSION_HEX < 0x030b0000 + name = __Pyx_PyObject_GetAttrStr((PyObject *)tp, + __pyx_mstate_global->__pyx_n_u_qualname); + #else + name = PyType_GetQualName(tp); + #endif + if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad; + module = __Pyx_PyObject_GetAttrStr((PyObject *)tp, + __pyx_mstate_global->__pyx_n_u_module); + if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad; + if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) { + result = name; + name = NULL; + goto done; + } + result = PyUnicode_FromFormat("%U.%U", module, name); + if (unlikely(result == NULL)) goto bad; + done: + Py_XDECREF(name); + Py_XDECREF(module); + return result; + bad: + PyErr_Clear(); + if (name) { + result = name; + name = NULL; + } else { + result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u_); + } + goto done; +} +#endif + +/* CIntToPy */ +static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) { +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif + const long neg_one = (long) -1, const_zero = (long) 0; +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic pop +#endif + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(long) < sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(long) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); +#if !CYTHON_COMPILING_IN_PYPY + } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif + } + } else { + if (sizeof(long) <= sizeof(long)) { + return PyLong_FromLong((long) value); + } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { + return PyLong_FromLongLong((PY_LONG_LONG) value); + } + } + { + unsigned char *bytes = (unsigned char *)&value; +#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 + if (is_unsigned) { + return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); + } else { + return PyLong_FromNativeBytes(bytes, sizeof(value), -1); + } +#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 + int one = 1; int little = (int)*(unsigned char *)&one; + return _PyLong_FromByteArray(bytes, sizeof(long), + little, !is_unsigned); +#else + int one = 1; int little = (int)*(unsigned char *)&one; + PyObject *from_bytes, *result = NULL, *kwds = NULL; + PyObject *py_bytes = NULL, *order_str = NULL; + from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); + if (!from_bytes) return NULL; + py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long)); + if (!py_bytes) goto limited_bad; + order_str = PyUnicode_FromString(little ? "little" : "big"); + if (!order_str) goto limited_bad; + { + PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str }; + if (!is_unsigned) { + kwds = __Pyx_MakeVectorcallBuilderKwds(1); + if (!kwds) goto limited_bad; + if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad; + } + result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds); + } + limited_bad: + Py_XDECREF(kwds); + Py_XDECREF(order_str); + Py_XDECREF(py_bytes); + Py_XDECREF(from_bytes); + return result; +#endif + } +} + +/* CIntFromPy */ +static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) { +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif + const long neg_one = (long) -1, const_zero = (long) 0; +#ifdef __Pyx_HAS_GCC_DIAGNOSTIC +#pragma GCC diagnostic pop +#endif + const int is_unsigned = neg_one > const_zero; + if (unlikely(!PyLong_Check(x))) { + long val; + PyObject *tmp = __Pyx_PyNumber_Long(x); + if (!tmp) return (long) -1; + val = __Pyx_PyLong_As_long(tmp); + Py_DECREF(tmp); + return val; + } + if (is_unsigned) { +#if CYTHON_USE_PYLONG_INTERNALS + if (unlikely(__Pyx_PyLong_IsNeg(x))) { + goto raise_neg_overflow; + } else if (__Pyx_PyLong_IsCompact(x)) { + __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)) + } else { + const digit* digits = __Pyx_PyLong_Digits(x); + assert(__Pyx_PyLong_DigitCount(x) > 1); + switch (__Pyx_PyLong_DigitCount(x)) { + case 2: + if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) { + return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); + } + } + break; + case 3: + if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) { + return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); + } + } + break; + case 4: + if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) { + return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); + } + } + break; + } + } +#endif +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 + if (unlikely(Py_SIZE(x) < 0)) { + goto raise_neg_overflow; + } +#else + { + int result = PyObject_RichCompareBool(x, Py_False, Py_LT); + if (unlikely(result < 0)) + return (long) -1; + if (unlikely(result == 1)) + goto raise_neg_overflow; + } +#endif + if ((sizeof(long) <= sizeof(unsigned long))) { + __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) + } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) { + __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) + } + } else { +#if CYTHON_USE_PYLONG_INTERNALS + if (__Pyx_PyLong_IsCompact(x)) { + __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)) + } else { + const digit* digits = __Pyx_PyLong_Digits(x); + assert(__Pyx_PyLong_DigitCount(x) > 1); + switch (__Pyx_PyLong_SignedDigitCount(x)) { + case -2: + if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) { + return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); + } + } + break; + case 2: + if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) { + return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); + } + } + break; + case -3: + if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) { + return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); + } + } + break; + case 3: + if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) { + return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); + } + } + break; + case -4: + if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) { + return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); + } + } + break; + case 4: + if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) { + if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { + __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) { + return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); + } + } + break; + } + } +#endif + if ((sizeof(long) <= sizeof(long))) { + __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) + } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) { + __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) + } + } + { + long val; + int ret = -1; +#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API + Py_ssize_t bytes_copied = PyLong_AsNativeBytes( + x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0)); + if (unlikely(bytes_copied == -1)) { + } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) { + goto raise_overflow; + } else { + ret = 0; + } +#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray) + int one = 1; int is_little = (int)*(unsigned char *)&one; + unsigned char *bytes = (unsigned char *)&val; + ret = _PyLong_AsByteArray((PyLongObject *)x, + bytes, sizeof(val), + is_little, !is_unsigned); +#else + PyObject *v; + PyObject *stepval = NULL, *mask = NULL, *shift = NULL; + int bits, remaining_bits, is_negative = 0; + int chunk_size = (sizeof(long) < 8) ? 30 : 62; + if (likely(PyLong_CheckExact(x))) { + v = __Pyx_NewRef(x); + } else { + v = PyNumber_Long(x); + if (unlikely(!v)) return (long) -1; + assert(PyLong_CheckExact(v)); + } + { + int result = PyObject_RichCompareBool(v, Py_False, Py_LT); + if (unlikely(result < 0)) { + Py_DECREF(v); + return (long) -1; + } + is_negative = result == 1; + } + if (is_unsigned && unlikely(is_negative)) { + Py_DECREF(v); + goto raise_neg_overflow; + } else if (is_negative) { + stepval = PyNumber_Invert(v); + Py_DECREF(v); + if (unlikely(!stepval)) + return (long) -1; + } else { + stepval = v; + } + v = NULL; + val = (long) 0; + mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done; + shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done; + for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) { + PyObject *tmp, *digit; + long idigit; + digit = PyNumber_And(stepval, mask); + if (unlikely(!digit)) goto done; + idigit = PyLong_AsLong(digit); + Py_DECREF(digit); + if (unlikely(idigit < 0)) goto done; + val |= ((long) idigit) << bits; + tmp = PyNumber_Rshift(stepval, shift); + if (unlikely(!tmp)) goto done; + Py_DECREF(stepval); stepval = tmp; + } + Py_DECREF(shift); shift = NULL; + Py_DECREF(mask); mask = NULL; + { + long idigit = PyLong_AsLong(stepval); + if (unlikely(idigit < 0)) goto done; + remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1); + if (unlikely(idigit >= (1L << remaining_bits))) + goto raise_overflow; + val |= ((long) idigit) << bits; + } + if (!is_unsigned) { + if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1)))) + goto raise_overflow; + if (is_negative) + val = ~val; + } + ret = 0; + done: + Py_XDECREF(shift); + Py_XDECREF(mask); + Py_XDECREF(stepval); +#endif + if (unlikely(ret)) + return (long) -1; + return val; + } +raise_overflow: + PyErr_SetString(PyExc_OverflowError, + "value too large to convert to long"); + return (long) -1; +raise_neg_overflow: + PyErr_SetString(PyExc_OverflowError, + "can't convert negative value to long"); + return (long) -1; +} + +/* FastTypeChecks */ +#if CYTHON_COMPILING_IN_CPYTHON +static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { + while (a) { + a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*); + if (a == b) + return 1; + } + return b == &PyBaseObject_Type; +} +static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { + PyObject *mro; + if (a == b) return 1; + mro = a->tp_mro; + if (likely(mro)) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(mro); + for (i = 0; i < n; i++) { + if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) + return 1; + } + return 0; + } + return __Pyx_InBases(a, b); +} +static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) { + PyObject *mro; + if (cls == a || cls == b) return 1; + mro = cls->tp_mro; + if (likely(mro)) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(mro); + for (i = 0; i < n; i++) { + PyObject *base = PyTuple_GET_ITEM(mro, i); + if (base == (PyObject *)a || base == (PyObject *)b) + return 1; + } + return 0; + } + return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b); +} +static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { + if (exc_type1) { + return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2); + } else { + return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); + } +} +static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { + Py_ssize_t i, n; + assert(PyExceptionClass_Check(exc_type)); + n = PyTuple_GET_SIZE(tuple); + for (i=0; i>= 8; + ++i; + } + __Pyx_cached_runtime_version = version; + } +} +#endif +static unsigned long __Pyx_get_runtime_version(void) { +#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000 + return Py_Version & ~0xFFUL; +#else + return __Pyx_cached_runtime_version; +#endif +} + +/* CheckBinaryVersion */ +static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) { + const unsigned long MAJOR_MINOR = 0xFFFF0000UL; + if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR)) + return 0; + if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR))) + return 1; + { + char message[200]; + PyOS_snprintf(message, sizeof(message), + "compile time Python version %d.%d " + "of module '%.100s' " + "%s " + "runtime version %d.%d", + (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF), + __Pyx_MODULE_NAME, + (allow_newer) ? "was newer than" : "does not match", + (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF) + ); + return PyErr_WarnEx(NULL, message, 1); + } +} + +/* NewCodeObj */ +#if CYTHON_COMPILING_IN_LIMITED_API + static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f, + PyObject *code, PyObject *c, PyObject* n, PyObject *v, + PyObject *fv, PyObject *cell, PyObject* fn, + PyObject *name, int fline, PyObject *lnos) { + PyObject *exception_table = NULL; + PyObject *types_module=NULL, *code_type=NULL, *result=NULL; + #if __PYX_LIMITED_VERSION_HEX < 0x030b0000 + PyObject *version_info; + PyObject *py_minor_version = NULL; + #endif + long minor_version = 0; + PyObject *type, *value, *traceback; + PyErr_Fetch(&type, &value, &traceback); + #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000 + minor_version = 11; + #else + if (!(version_info = PySys_GetObject("version_info"))) goto end; + if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end; + minor_version = PyLong_AsLong(py_minor_version); + Py_DECREF(py_minor_version); + if (minor_version == -1 && PyErr_Occurred()) goto end; + #endif + if (!(types_module = PyImport_ImportModule("types"))) goto end; + if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end; + if (minor_version <= 7) { + (void)p; + result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code, + c, n, v, fn, name, fline, lnos, fv, cell); + } else if (minor_version <= 10) { + result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code, + c, n, v, fn, name, fline, lnos, fv, cell); + } else { + if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end; + result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code, + c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell); + } + end: + Py_XDECREF(code_type); + Py_XDECREF(exception_table); + Py_XDECREF(types_module); + if (type) { + PyErr_Restore(type, value, traceback); + } + return result; + } +#elif PY_VERSION_HEX >= 0x030B0000 + static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f, + PyObject *code, PyObject *c, PyObject* n, PyObject *v, + PyObject *fv, PyObject *cell, PyObject* fn, + PyObject *name, int fline, PyObject *lnos) { + PyCodeObject *result; + result = + #if PY_VERSION_HEX >= 0x030C0000 + PyUnstable_Code_NewWithPosOnlyArgs + #else + PyCode_NewWithPosOnlyArgs + #endif + (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1 + if (likely(result)) + result->_co_firsttraceable = 0; + #endif + return result; + } +#elif !CYTHON_COMPILING_IN_PYPY + #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ + PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) +#else + #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ + PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) +#endif +static PyObject* __Pyx_PyCode_New( + const __Pyx_PyCode_New_function_description descr, + PyObject * const *varnames, + PyObject *filename, + PyObject *funcname, + PyObject *line_table, + PyObject *tuple_dedup_map +) { + PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL; + Py_ssize_t var_count = (Py_ssize_t) descr.nlocals; + PyObject *varnames_tuple = PyTuple_New(var_count); + if (unlikely(!varnames_tuple)) return NULL; + for (Py_ssize_t i=0; i < var_count; i++) { + Py_INCREF(varnames[i]); + if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done; + } + #if CYTHON_COMPILING_IN_LIMITED_API + varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple); + if (!varnames_tuple_dedup) { + if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done; + varnames_tuple_dedup = varnames_tuple; + } + #else + varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple); + if (unlikely(!varnames_tuple_dedup)) goto done; + #endif + #if CYTHON_AVOID_BORROWED_REFS + Py_INCREF(varnames_tuple_dedup); + #endif + if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) { + Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table); + #if !CYTHON_ASSUME_SAFE_SIZE + if (unlikely(line_table_length == -1)) goto done; + #endif + Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL; + code_bytes = PyBytes_FromStringAndSize(NULL, code_len); + if (unlikely(!code_bytes)) goto done; + char* c_code_bytes = PyBytes_AsString(code_bytes); + if (unlikely(!c_code_bytes)) goto done; + memset(c_code_bytes, 0, (size_t) code_len); + } + code_obj = (PyObject*) __Pyx__PyCode_New( + (int) descr.argcount, + (int) descr.num_posonly_args, + (int) descr.num_kwonly_args, + (int) descr.nlocals, + 0, + (int) descr.flags, + code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes, + __pyx_mstate_global->__pyx_empty_tuple, + __pyx_mstate_global->__pyx_empty_tuple, + varnames_tuple_dedup, + __pyx_mstate_global->__pyx_empty_tuple, + __pyx_mstate_global->__pyx_empty_tuple, + filename, + funcname, + (int) descr.first_line, + (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes + ); +done: + Py_XDECREF(code_bytes); + #if CYTHON_AVOID_BORROWED_REFS + Py_XDECREF(varnames_tuple_dedup); + #endif + Py_DECREF(varnames_tuple); + return code_obj; +} + +/* DecompressString */ +static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) { + PyObject *module = NULL, *decompress, *compressed_bytes, *decompressed; + const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib"; + PyObject *methodname = PyUnicode_FromString("decompress"); + if (unlikely(!methodname)) return NULL; + #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000 + if (algo == 3) { + PyObject *fromlist = Py_BuildValue("[O]", methodname); + if (unlikely(!fromlist)) goto bad; + module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0); + Py_DECREF(fromlist); + } else + #endif + module = PyImport_ImportModule(module_name); + if (unlikely(!module)) goto import_failed; + decompress = PyObject_GetAttr(module, methodname); + if (unlikely(!decompress)) goto import_failed; + { + #ifdef __cplusplus + char *memview_bytes = const_cast(s); + #else + #if defined(__clang__) + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wcast-qual" + #elif !defined(__INTEL_COMPILER) && defined(__GNUC__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wcast-qual" + #endif + char *memview_bytes = (char*) s; + #if defined(__clang__) + #pragma clang diagnostic pop + #elif !defined(__INTEL_COMPILER) && defined(__GNUC__) + #pragma GCC diagnostic pop + #endif + #endif + #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ) + int memview_flags = 0x100; + #else + int memview_flags = PyBUF_READ; + #endif + compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags); + } + if (unlikely(!compressed_bytes)) { + Py_DECREF(decompress); + goto bad; + } + decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL); + Py_DECREF(compressed_bytes); + Py_DECREF(decompress); + Py_DECREF(module); + Py_DECREF(methodname); + return decompressed; +import_failed: + PyErr_Format(PyExc_ImportError, + "Failed to import '%.20s.decompress' - cannot initialise module strings. " + "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.", + module_name, algo); +bad: + Py_XDECREF(module); + Py_DECREF(methodname); + return NULL; +} + +#include +static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) { + size_t len = strlen(s); + if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) { + PyErr_SetString(PyExc_OverflowError, "byte string is too long"); + return -1; + } + return (Py_ssize_t) len; +} +static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { + Py_ssize_t len = __Pyx_ssize_strlen(c_str); + if (unlikely(len < 0)) return NULL; + return __Pyx_PyUnicode_FromStringAndSize(c_str, len); +} +static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) { + Py_ssize_t len = __Pyx_ssize_strlen(c_str); + if (unlikely(len < 0)) return NULL; + return PyByteArray_FromStringAndSize(c_str, len); +} +static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { + Py_ssize_t ignore; + return __Pyx_PyObject_AsStringAndSize(o, &ignore); +} +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 +static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { + if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; +#if CYTHON_COMPILING_IN_LIMITED_API + { + const char* result; + Py_ssize_t unicode_length; + CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII + #if __PYX_LIMITED_VERSION_HEX < 0x030A0000 + if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL; + #else + result = PyUnicode_AsUTF8AndSize(o, length); + #endif + #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII + unicode_length = PyUnicode_GetLength(o); + if (unlikely(unicode_length < 0)) return NULL; + if (unlikely(unicode_length != *length)) { + PyUnicode_AsASCIIString(o); + return NULL; + } + #endif + return result; + } +#else +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII + if (likely(PyUnicode_IS_ASCII(o))) { + *length = PyUnicode_GET_LENGTH(o); + return PyUnicode_AsUTF8(o); + } else { + PyUnicode_AsASCIIString(o); + return NULL; + } +#else + return PyUnicode_AsUTF8AndSize(o, length); +#endif +#endif +} +#endif +static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 + if (PyUnicode_Check(o)) { + return __Pyx_PyUnicode_AsStringAndSize(o, length); + } else +#endif + if (PyByteArray_Check(o)) { +#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))) + *length = PyByteArray_GET_SIZE(o); + return PyByteArray_AS_STRING(o); +#else + *length = PyByteArray_Size(o); + if (*length == -1) return NULL; + return PyByteArray_AsString(o); +#endif + } else + { + char* result; + int r = PyBytes_AsStringAndSize(o, &result, length); + if (unlikely(r < 0)) { + return NULL; + } else { + return result; + } + } +} +static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { + int is_true = x == Py_True; + if (is_true | (x == Py_False) | (x == Py_None)) return is_true; + else return PyObject_IsTrue(x); +} +static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) { + int retval; + if (unlikely(!x)) return -1; + retval = __Pyx_PyObject_IsTrue(x); + Py_DECREF(x); + return retval; +} +static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) { + __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result)); + if (PyLong_Check(result)) { + if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, + "__int__ returned non-int (type " __Pyx_FMT_TYPENAME "). " + "The ability to return an instance of a strict subclass of int is deprecated, " + "and may be removed in a future version of Python.", + result_type_name)) { + __Pyx_DECREF_TypeName(result_type_name); + Py_DECREF(result); + return NULL; + } + __Pyx_DECREF_TypeName(result_type_name); + return result; + } + PyErr_Format(PyExc_TypeError, + "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")", + result_type_name); + __Pyx_DECREF_TypeName(result_type_name); + Py_DECREF(result); + return NULL; +} +static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) { +#if CYTHON_USE_TYPE_SLOTS + PyNumberMethods *m; +#endif + PyObject *res = NULL; + if (likely(PyLong_Check(x))) + return __Pyx_NewRef(x); +#if CYTHON_USE_TYPE_SLOTS + m = Py_TYPE(x)->tp_as_number; + if (likely(m && m->nb_int)) { + res = m->nb_int(x); + } +#else + if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { + res = PyNumber_Long(x); + } +#endif + if (likely(res)) { + if (unlikely(!PyLong_CheckExact(res))) { + return __Pyx_PyNumber_LongWrongResultType(res); + } + } + else if (!PyErr_Occurred()) { + PyErr_SetString(PyExc_TypeError, + "an integer is required"); + } + return res; +} +static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { + Py_ssize_t ival; + PyObject *x; + if (likely(PyLong_CheckExact(b))) { + #if CYTHON_USE_PYLONG_INTERNALS + if (likely(__Pyx_PyLong_IsCompact(b))) { + return __Pyx_PyLong_CompactValue(b); + } else { + const digit* digits = __Pyx_PyLong_Digits(b); + const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b); + switch (size) { + case 2: + if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { + return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); + } + break; + case -2: + if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { + return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); + } + break; + case 3: + if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { + return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); + } + break; + case -3: + if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { + return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); + } + break; + case 4: + if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { + return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); + } + break; + case -4: + if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { + return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); + } + break; + } + } + #endif + return PyLong_AsSsize_t(b); + } + x = PyNumber_Index(b); + if (!x) return -1; + ival = PyLong_AsSsize_t(x); + Py_DECREF(x); + return ival; +} +static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) { + if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) { + return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o); + } else { + Py_ssize_t ival; + PyObject *x; + x = PyNumber_Index(o); + if (!x) return -1; + ival = PyLong_AsLong(x); + Py_DECREF(x); + return ival; + } +} +static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) { + CYTHON_UNUSED_VAR(b); + return __Pyx_NewRef(Py_None); +} +static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { + return __Pyx_NewRef(b ? Py_True: Py_False); +} +static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) { + return PyLong_FromSize_t(ival); +} + + +/* MultiPhaseInitModuleState */ +#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE +#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE +#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000) + #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1 +#else + #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0 +#endif +#endif +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS +#error "Module state with PEP489 requires atomics. Currently that's one of\ + C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics" +#endif +#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE +#define __Pyx_ModuleStateLookup_Lock() +#define __Pyx_ModuleStateLookup_Unlock() +#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000 +static PyMutex __Pyx_ModuleStateLookup_mutex = {0}; +#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex) +#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex) +#elif defined(__cplusplus) && __cplusplus >= 201103L +#include +static std::mutex __Pyx_ModuleStateLookup_mutex; +#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock() +#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock() +#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__) +#include +static mtx_t __Pyx_ModuleStateLookup_mutex; +static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT; +static void __Pyx_ModuleStateLookup_initialize_mutex(void) { + mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain); +} +#define __Pyx_ModuleStateLookup_Lock()\ + call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\ + mtx_lock(&__Pyx_ModuleStateLookup_mutex) +#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex) +#elif defined(HAVE_PTHREAD_H) +#include +static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER; +#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex) +#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex) +#elif defined(_WIN32) +#include // synchapi.h on its own doesn't work +static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT; +#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex) +#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex) +#else +#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\ + Requires C standard >= C11, or C++ standard >= C++11,\ + or pthreads, or the Windows 32 API, or Python >= 3.13." +#endif +typedef struct { + int64_t id; + PyObject *module; +} __Pyx_InterpreterIdAndModule; +typedef struct { + char interpreter_id_as_index; + Py_ssize_t count; + Py_ssize_t allocated; + __Pyx_InterpreterIdAndModule table[1]; +} __Pyx_ModuleStateLookupData; +#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32 +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE +static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0; +#endif +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE +static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0; +#else +static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL; +#endif +static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound( + __Pyx_InterpreterIdAndModule* table, + Py_ssize_t count, + int64_t interpreterId) { + __Pyx_InterpreterIdAndModule* begin = table; + __Pyx_InterpreterIdAndModule* end = begin + count; + if (begin->id == interpreterId) { + return begin; + } + while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) { + __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2; + if (halfway->id == interpreterId) { + return halfway; + } + if (halfway->id < interpreterId) { + begin = halfway; + } else { + end = halfway; + } + } + for (; begin < end; ++begin) { + if (begin->id >= interpreterId) return begin; + } + return begin; +} +static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) { + int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get()); + if (interpreter_id == -1) return NULL; +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE + __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data); + { + __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter); + if (likely(data)) { + __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data); + if (likely(data == new_data)) { + goto read_finished; + } + } + __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter); + __Pyx_ModuleStateLookup_Lock(); + __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter); + data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data); + __Pyx_ModuleStateLookup_Unlock(); + } + read_finished:; +#else + __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data; +#endif + __Pyx_InterpreterIdAndModule* found = NULL; + if (unlikely(!data)) goto end; + if (data->interpreter_id_as_index) { + if (interpreter_id < data->count) { + found = data->table+interpreter_id; + } + } else { + found = __Pyx_State_FindModuleStateLookupTableLowerBound( + data->table, data->count, interpreter_id); + } + end: + { + PyObject *result=NULL; + if (found && found->id == interpreter_id) { + result = found->module; + } +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE + __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter); +#endif + return result; + } +} +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE +static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) { + while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0); +} +#else +#define __Pyx_ModuleStateLookup_wait_until_no_readers() +#endif +static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) { + Py_ssize_t to_allocate = (*old_data)->allocated; + while (to_allocate <= interpreter_id) { + if (to_allocate == 0) to_allocate = 1; + else to_allocate *= 2; + } + __Pyx_ModuleStateLookupData *new_data = *old_data; + if (to_allocate != (*old_data)->allocated) { + new_data = (__Pyx_ModuleStateLookupData *)realloc( + *old_data, + sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule)); + if (!new_data) { + PyErr_NoMemory(); + return -1; + } + for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) { + new_data->table[i].id = i; + new_data->table[i].module = NULL; + } + new_data->allocated = to_allocate; + } + new_data->table[interpreter_id].module = module; + if (new_data->count < interpreter_id+1) { + new_data->count = interpreter_id+1; + } + *old_data = new_data; + return 0; +} +static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) { + __Pyx_InterpreterIdAndModule *read = data->table; + __Pyx_InterpreterIdAndModule *write = data->table; + __Pyx_InterpreterIdAndModule *end = read + data->count; + for (; readmodule) { + write->id = read->id; + write->module = read->module; + ++write; + } + } + data->count = write - data->table; + for (; writeid = 0; + write->module = NULL; + } + data->interpreter_id_as_index = 0; +} +static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) { + int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get()); + if (interpreter_id == -1) return -1; + int result = 0; + __Pyx_ModuleStateLookup_Lock(); +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE + __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *) + __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0); +#else + __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data; +#endif + __Pyx_ModuleStateLookupData *new_data = old_data; + if (!new_data) { + new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData)); + if (!new_data) { + result = -1; + PyErr_NoMemory(); + goto end; + } + new_data->allocated = 1; + new_data->interpreter_id_as_index = 1; + } + __Pyx_ModuleStateLookup_wait_until_no_readers(); + if (new_data->interpreter_id_as_index) { + if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) { + result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id); + goto end; + } + __Pyx_State_ConvertFromInterpIdAsIndex(new_data); + } + { + Py_ssize_t insert_at = 0; + { + __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound( + new_data->table, new_data->count, interpreter_id); + assert(lower_bound); + insert_at = lower_bound - new_data->table; + if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) { + lower_bound->module = module; + goto end; // already in table, nothing more to do + } + } + if (new_data->count+1 >= new_data->allocated) { + Py_ssize_t to_allocate = (new_data->count+1)*2; + new_data = + (__Pyx_ModuleStateLookupData*)realloc( + new_data, + sizeof(__Pyx_ModuleStateLookupData) + + (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule)); + if (!new_data) { + result = -1; + new_data = old_data; + PyErr_NoMemory(); + goto end; + } + new_data->allocated = to_allocate; + } + ++new_data->count; + int64_t last_id = interpreter_id; + PyObject *last_module = module; + for (Py_ssize_t i=insert_at; icount; ++i) { + int64_t current_id = new_data->table[i].id; + new_data->table[i].id = last_id; + last_id = current_id; + PyObject *current_module = new_data->table[i].module; + new_data->table[i].module = last_module; + last_module = current_module; + } + } + end: +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE + __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data); +#else + __Pyx_ModuleStateLookup_data = new_data; +#endif + __Pyx_ModuleStateLookup_Unlock(); + return result; +} +static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) { + int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get()); + if (interpreter_id == -1) return -1; + __Pyx_ModuleStateLookup_Lock(); +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE + __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *) + __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0); +#else + __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data; +#endif + if (data->interpreter_id_as_index) { + if (interpreter_id < data->count) { + data->table[interpreter_id].module = NULL; + } + goto done; + } + { + __Pyx_ModuleStateLookup_wait_until_no_readers(); + __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound( + data->table, data->count, interpreter_id); + if (!lower_bound) goto done; + if (lower_bound->id != interpreter_id) goto done; + __Pyx_InterpreterIdAndModule *end = data->table+data->count; + for (;lower_boundid = (lower_bound+1)->id; + lower_bound->module = (lower_bound+1)->module; + } + } + --data->count; + if (data->count == 0) { + free(data); + data = NULL; + } + done: +#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE + __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data); +#else + __Pyx_ModuleStateLookup_data = data; +#endif + __Pyx_ModuleStateLookup_Unlock(); + return 0; +} +#endif + +/* #### Code section: utility_code_pragmas_end ### */ +#ifdef _MSC_VER +#pragma warning( pop ) +#endif + + + +/* #### Code section: end ### */ +#endif /* Py_PYTHON_H */ diff --git a/planarity/full/graphLib.pxd b/planarity/full/graphLib.pxd new file mode 100644 index 0000000..c2ad716 --- /dev/null +++ b/planarity/full/graphLib.pxd @@ -0,0 +1,108 @@ +"""Definition file for functions that wrap calls to the C-layer EAPS graphLib + +This definition file corresponds to the graphLib.pyx implementation file, and +allows other Cython modules access to bare wrappers of the C graphLib API. +//cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html#sharing-extension-types +""" +from planarity.full cimport cgraphLib +from planarity.full.cgraphLib cimport graphP, G6ReadIteratorP, G6WriteIteratorP + + +cdef graphP gp_New() + +cdef int gp_InitGraph(graphP theGraph, int n) + +cdef void gp_ReinitGraph(graphP theGraph) + +cdef void gp_Free(graphP *pGraph) + +cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity) + +cdef int gp_GetEdgeCapacity(graphP theGraph) + +cdef int gp_GetN(graphP theGraph) + +cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph) + +cdef graphP gp_DupGraph(graphP theGraph) + +cdef int gp_FindEdge(graphP theGraph, int u, int v) + +cdef int gp_GetVertexDegree(graphP theGraph, int v) + +cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink) + +cdef int gp_DeleteEdge(graphP theGraph, int e) + +cdef int gp_LowerBoundEdgeStorage(graphP theGraph) + +cdef int gp_UpperBoundEdgeStorage(graphP theGraph) + +cdef int gp_IsEdge(graphP theGraph, int v) + +cdef int gp_EdgeInUse(graphP theGraph, int e) + +cdef int gp_UpperBoundEdges(graphP theGraph) + +cdef int gp_GetNextEdge(graphP theGraph, int e) + +cdef int gp_GetNeighbor(graphP theGraph, int e) + +cdef int gp_GetFirstEdge(graphP theGraph, int v) + +cdef int gp_LowerBoundVertices(graphP theGraph) + +cdef int gp_UpperBoundVertices(graphP theGraph) + +cdef int gp_IsVertex(graphP theGraph, int v) + + +cdef int gp_ExtendWith_K23Search(graphP theGraph) + + +cdef int gp_ExtendWith_K33Search(graphP theGraph) + + +cdef int gp_ExtendWith_K4Search(graphP theGraph) + + +cdef int gp_Read(graphP theGraph, char *FileName) + +cdef int gp_Write(graphP theGraph, char *FileName, int Mode) + + +cdef int gp_ExtendWith_DrawPlanar(graphP theGraph) + +cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName) + +cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString) + + +cdef int gp_ExtendWith_Outerplanarity(graphP theGraph) + + +cdef int gp_ExtendWith_Planarity(graphP theGraph) + +cdef int gp_Embed(graphP theGraph, unsigned int embedFlags) + +cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult) + + +cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph) + +cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator) + +cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName) + +cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator) + +cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator) + + +cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph) + +cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName) + +cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) + +cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) diff --git a/planarity/full/graphLib.pyx b/planarity/full/graphLib.pyx new file mode 100644 index 0000000..cc10761 --- /dev/null +++ b/planarity/full/graphLib.pyx @@ -0,0 +1,241 @@ +#!/usr/bin/env python +# cython: embedsignature=True +""" +Cython wrapper for the Edge Addition Planarity Suite Graph Library + +Wraps functions and macros that operate over graphP structs and to exposes the +G6 read and write iterator machinery. + +NOTE: No bounds/error checking is done here, and is rather the responsibility +of the caller to make sure these functions are being called legitimately. +""" +from planarity.full cimport cgraphLib +from planarity.full.cgraphLib cimport graphP, G6ReadIteratorP, G6WriteIteratorP + + +WRITE_ADJLIST = cgraphLib.WRITE_ADJLIST +WRITE_ADJMATRIX = cgraphLib.WRITE_ADJMATRIX +WRITE_G6 = cgraphLib.WRITE_G6 + + +OK = cgraphLib.OK +AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT +NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE +NOTOK = cgraphLib.NOTOK +NIL = cgraphLib.NIL + +EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR +EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR +EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR +EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 +EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 +EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 + + +# Functions to be made available when importing package from Python +def gp_GetQuietModeFlag() -> int: + return cgraphLib.gp_GetQuietModeFlag() + + +def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: + cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) + + +def gp_GetProjectVersionFull(): + cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() + return encoded_version.decode('utf-8') + + +def gp_GetLibPlanarityVersionFull(): + cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() + return encoded_version.decode('utf-8') + +# Cython cdef functions that are meant to be exposed to the planarity.full +# subpackage's Cython modules +# Wraps functions declared in "../c/graphLib/graph.h": +cdef graphP gp_New(): + return cgraphLib.gp_New() + + +cdef int gp_InitGraph(graphP theGraph, int n): + return cgraphLib.gp_InitGraph(theGraph, n) + + +cdef void gp_ReinitGraph(graphP theGraph): + cgraphLib.gp_ReinitGraph(theGraph) + + +cdef void gp_Free(graphP *pGraph): + cgraphLib.gp_Free(pGraph) + + +cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): + return cgraphLib.gp_EnsureEdgeCapacity(theGraph, requiredEdgeCapacity) + + +cdef int gp_GetEdgeCapacity(graphP theGraph): + return cgraphLib.gp_GetEdgeCapacity(theGraph) + + +cdef int gp_GetN(graphP theGraph): + return cgraphLib.gp_GetN(theGraph) + + +cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): + return cgraphLib.gp_CopyGraph(dstGraph, srcGraph) + + +cdef graphP gp_DupGraph(graphP theGraph): + return cgraphLib.gp_DupGraph(theGraph) + + +cdef int gp_FindEdge(graphP theGraph, int u, int v): + return cgraphLib.gp_FindEdge(theGraph, u, v) + + +cdef int gp_GetVertexDegree(graphP theGraph, int v): + return cgraphLib.gp_GetVertexDegree(theGraph, v) + + +cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): + return cgraphLib.gp_AddEdge(theGraph, u, ulink, v, vlink) + + +cdef int gp_DeleteEdge(graphP theGraph, int e): + return cgraphLib.gp_DeleteEdge(theGraph, e) + + +cdef int gp_LowerBoundEdgeStorage(graphP theGraph): + return cgraphLib.gp_LowerBoundEdgeStorage(theGraph) + + +cdef int gp_UpperBoundEdgeStorage(graphP theGraph): + return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) + +cdef int gp_IsEdge(graphP theGraph, int e): + return cgraphLib.gp_IsEdge(theGraph, e) + + +cdef int gp_EdgeInUse(graphP theGraph, int e): + return cgraphLib.gp_EdgeInUse(theGraph, e) + + +cdef int gp_UpperBoundEdges(graphP theGraph): + return cgraphLib.gp_UpperBoundEdges(theGraph) + + +cdef int gp_GetNextEdge(graphP theGraph, int e): + return cgraphLib.gp_GetNextEdge(theGraph, e) + + +cdef int gp_GetNeighbor(graphP theGraph, int e): + return cgraphLib.gp_GetNeighbor(theGraph, e) + + +cdef int gp_GetFirstEdge(graphP theGraph, int v): + return cgraphLib.gp_GetFirstEdge(theGraph, v) + + +cdef int gp_LowerBoundVertices(graphP theGraph): + return cgraphLib.gp_LowerBoundVertices(theGraph) + + +cdef int gp_UpperBoundVertices(graphP theGraph): + return cgraphLib.gp_UpperBoundVertices(theGraph) + + +cdef int gp_IsVertex(graphP theGraph, int v): + return cgraphLib.gp_IsVertex(theGraph, v) + + +# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": +cdef int gp_ExtendWith_K23Search(graphP theGraph): + return cgraphLib.gp_ExtendWith_K23Search(theGraph) + + +# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": +cdef int gp_ExtendWith_K33Search(graphP theGraph): + return cgraphLib.gp_ExtendWith_K33Search(theGraph) + + +# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": +cdef int gp_ExtendWith_K4Search(graphP theGraph): + return cgraphLib.gp_ExtendWith_K4Search(theGraph) + + +# Wraps functions declared in "../c/graphLib/io/graphIO.h": +cdef int gp_Read(graphP theGraph, char *FileName): + return cgraphLib.gp_Read(theGraph, FileName) + + +cdef int gp_Write(graphP theGraph, char *FileName, int Mode): + return cgraphLib.gp_Write(theGraph, FileName, Mode) + + +# Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": +cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): + return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) + + +cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): + return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) + + +cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): + return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) + + +# Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": +cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): + return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) + + +# Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": +cdef int gp_ExtendWith_Planarity(graphP theGraph): + return cgraphLib.gp_ExtendWith_Planarity(theGraph) + + +cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): + return cgraphLib.gp_Embed(theGraph, embedFlags) + + +cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): + return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) + + +# Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": +cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): + return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) + + +cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): + return cgraphLib.g6_EndReached(theG6ReadIterator) + + +cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): + return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) + + +cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): + return cgraphLib.g6_ReadGraph(theG6ReadIterator) + + +cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): + cgraphLib.g6_FreeReader(pG6ReadIterator) + + +# Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" +cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): + return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) + + +cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): + return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) + + +cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): + return cgraphLib.g6_WriteGraph(theG6WriteIterator) + + +cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): + cgraphLib.g6_FreeWriter(pG6WriteIterator) diff --git a/setup.py b/setup.py index fdab48d..ca099d0 100644 --- a/setup.py +++ b/setup.py @@ -16,35 +16,31 @@ ] classic_sourcefiles.extend(glob("planarity/c/graphLib/**/*.c", recursive=True)) -g6IterationUtils_sourcefiles = [ - "planarity/full/g6IterationUtils" + ext, +graphLib_sourcefiles = [ + "planarity/full/graphLib" + ext, ] -g6IterationUtils_sourcefiles.extend( - glob("planarity/c/graphLib/**/*.c", recursive=True) -) - -graph_sourcefiles = [ - "planarity/full/graph" + ext, -] -graph_sourcefiles.extend( +graphLib_sourcefiles.extend( glob("planarity/c/graphLib/**/*.c", recursive=True) ) extensions = [ Extension( - "planarity.classic.planarity", - classic_sourcefiles, + name="planarity.classic.planarity", + sources=classic_sourcefiles, include_dirs=['planarity/c/graphLib'], ), Extension( - "planarity.full.g6IterationUtils", - g6IterationUtils_sourcefiles, + name="planarity.full.graphLib", + sources=graphLib_sourcefiles, include_dirs=["planarity/c/graphLib"], ), Extension( - "planarity.full.graph", - graph_sourcefiles, - include_dirs=["planarity/c/graphLib"], + name="planarity.full.g6IterationUtils", + sources=[f"planarity/full/g6IterationUtils{ext}"], + ), + Extension( + name="planarity.full.graph", + sources=[f"planarity/full/graph{ext}"], ), ] From 6df19c947d0ac372c6345d5eb2688d41d6c85c9a Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Tue, 26 May 2026 12:12:05 -0700 Subject: [PATCH 4/8] Forgot to update `Manifest.in` file to reflect changes to architecture. Also seems to have resolved #40!! --- MANIFEST.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index a3a0c19..441a926 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -13,11 +13,13 @@ include planarity/classic/cplanarity.pxd include planarity/classic/planarity.c include planarity/classic/planarity.pyx -include planarity/full/cappconst.pxd -include planarity/full/cg6IterationDefs.pxd include planarity/full/cgraphLib.pxd +include planarity/full/graphLib.pxd +include planarity/full/graph.pxd +include planarity/full/graphLib.c include planarity/full/graph.c include planarity/full/g6IterationUtils.c +include planarity/full/graphLib.pyx include planarity/full/graph.pyx include planarity/full/g6IterationUtils.pyx From df33cea3c8ba301ba591fc0f7b7269f2fdb30f31 Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Tue, 26 May 2026 15:08:27 -0700 Subject: [PATCH 5/8] Added newline at end of file for `cgraphLib.pxd` and `test_quiet_mode.py` --- examples/full/test_quiet_mode.py | 2 +- planarity/full/cgraphLib.pxd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/full/test_quiet_mode.py b/examples/full/test_quiet_mode.py index 449e97e..8840fde 100644 --- a/examples/full/test_quiet_mode.py +++ b/examples/full/test_quiet_mode.py @@ -38,4 +38,4 @@ try: reader.g6_InitReaderWithFileName(filename) except RuntimeError as e: - traceback.print_exception(e) \ No newline at end of file + traceback.print_exception(e) diff --git a/planarity/full/cgraphLib.pxd b/planarity/full/cgraphLib.pxd index 3b5c88c..ebef29a 100644 --- a/planarity/full/cgraphLib.pxd +++ b/planarity/full/cgraphLib.pxd @@ -139,4 +139,4 @@ cdef extern from "../c/graphLib/io/g6-write-iterator.h": int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) - void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) \ No newline at end of file + void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) From 32dd802ce9f26b547edea2dd9780b679348bbbf9 Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Wed, 27 May 2026 15:19:16 -0700 Subject: [PATCH 6/8] Addressing PR comments --- examples/full/test_quiet_mode.py | 37 +- planarity/__init__.py | 7 +- planarity/full/cgraphLib.pxd | 71 +- planarity/full/graph.c | 2456 +++++++++++++++--------------- planarity/full/graph.pyx | 7 +- planarity/full/graphLib.c | 1081 ++++++------- planarity/full/graphLib.pxd | 53 +- planarity/full/graphLib.pyx | 108 +- 8 files changed, 1950 insertions(+), 1870 deletions(-) diff --git a/examples/full/test_quiet_mode.py b/examples/full/test_quiet_mode.py index 8840fde..eb580a3 100644 --- a/examples/full/test_quiet_mode.py +++ b/examples/full/test_quiet_mode.py @@ -13,6 +13,8 @@ import sys, traceback from planarity import ( + TRUE, + FALSE, gp_GetQuietModeFlag, gp_SetQuietModeFlag, G6ReadIterator, @@ -20,22 +22,51 @@ ) +def _get_quiet_mode_str() -> str: + return ( + 'FALSE' + if gp_GetQuietModeFlag() == FALSE + else ( + 'TRUE' + if gp_GetQuietModeFlag() == TRUE + else 'UNKNOWN' + ) + ) + + if __name__ == "__main__": filename = 'DOES_NOT_EXIST.g6' if (len(sys.argv) < 2) else sys.argv[1] + if (gp_GetQuietModeFlag() != TRUE): + raise RuntimeError( + "graphLib default quietModeFlag expected to be TRUE.") + graph = Graph() reader = G6ReadIterator(graph) try: + print( + f"Trying to init reader with nonexistent file '{filename}'.\n" + "\tgp_ErroMessage() MUST NOT appear before stacktrace, as " + f"quietModeFlag is {_get_quiet_mode_str()}:" + ) + print('-'*25) reader.g6_InitReaderWithFileName(filename) except RuntimeError as e: - print('='*50) - print() + print('-'*25) traceback.print_exception(e) print() print('='*50) print() - gp_SetQuietModeFlag(0) + gp_SetQuietModeFlag(FALSE) + try: + print( + f"Trying to init reader with nonexistent file '{filename}'.\n" + "\tgp_ErroMessage() MUST appear before stacktrace, as quietModeFlag " + f"is {_get_quiet_mode_str()}:" + ) + print('-'*25) reader.g6_InitReaderWithFileName(filename) except RuntimeError as e: + print('-'*25) traceback.print_exception(e) diff --git a/planarity/__init__.py b/planarity/__init__.py index ab49dc4..3fc3f1c 100644 --- a/planarity/__init__.py +++ b/planarity/__init__.py @@ -4,10 +4,11 @@ from .full.graphLib import ( OK, - AT_EDGE_CAPACITY_LIMIT, NONEMBEDDABLE, NOTOK, - NIL, + TRUE, + FALSE, + AT_EDGE_CAPACITY_LIMIT, EMBEDFLAGS_PLANAR, EMBEDFLAGS_DRAWPLANAR, EMBEDFLAGS_OUTERPLANAR, @@ -24,4 +25,4 @@ # NOTE: In the future, we could automatically generate the version number by # configuring setuptools-scm, but presently this seems simpler. -__version__ = "0.7.15" +__version__ = "0.7.16" diff --git a/planarity/full/cgraphLib.pxd b/planarity/full/cgraphLib.pxd index ebef29a..bd5002e 100644 --- a/planarity/full/cgraphLib.pxd +++ b/planarity/full/cgraphLib.pxd @@ -16,7 +16,7 @@ cdef extern from "../c/graphLib/graphLib.h": cdef extern from "../c/graphLib/lowLevelUtils/appconst.h": - cdef int OK, NOTOK, NULL, NIL, NIL_CHAR + cdef int OK, NOTOK, TRUE, FALSE cdef extern from "../c/graphLib/graph.h": @@ -57,6 +57,7 @@ cdef extern from "../c/graphLib/graph.h": int gp_EdgeInUse(graphP theGraph, int e) + int gp_LowerBoundEdges(graphP theGraph) int gp_UpperBoundEdges(graphP theGraph) int gp_GetNextEdge(graphP theGraph, int e) @@ -71,35 +72,33 @@ cdef extern from "../c/graphLib/graph.h": int gp_IsVertex(graphP theGraph, int v) -cdef extern from "../c/graphLib/homeomorphSearch/graphK23Search.h": - int gp_ExtendWith_K23Search(graphP theGraph) - - -cdef extern from "../c/graphLib/homeomorphSearch/graphK33Search.h": - int gp_ExtendWith_K33Search(graphP theGraph) - - -cdef extern from "../c/graphLib/homeomorphSearch/graphK4Search.h": - int gp_ExtendWith_K4Search(graphP theGraph) - - cdef extern from "../c/graphLib/io/graphIO.h": int gp_Read(graphP theGraph, char *FileName) - int gp_Write(graphP theGraph, char *FileName, int Mode) - int WRITE_ADJLIST, WRITE_ADJMATRIX, WRITE_G6 -cdef extern from "../c/graphLib/planarityRelated/graphDrawPlanar.h": - int gp_ExtendWith_DrawPlanar(graphP theGraph) +cdef extern from "../c/graphLib/io/g6-read-iterator.h": + ctypedef struct G6ReadIterator: + pass + ctypedef G6ReadIterator * G6ReadIteratorP - int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName) - int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString) + int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph) + int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName) + int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator) + bint g6_EndReached(G6ReadIteratorP theG6ReadIterator) + void g6_FreeReader(G6ReadIteratorP *pG6ReadIterator) -cdef extern from "../c/graphLib/planarityRelated/graphOuterplanarity.h": - int gp_ExtendWith_Outerplanarity(graphP theGraph) +cdef extern from "../c/graphLib/io/g6-write-iterator.h": + ctypedef struct G6WriteIterator: + pass + ctypedef G6WriteIterator * G6WriteIteratorP + + int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph) + int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName) + int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) + void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) cdef extern from "../c/graphLib/planarityRelated/graphPlanarity.h": @@ -113,30 +112,24 @@ cdef extern from "../c/graphLib/planarityRelated/graphPlanarity.h": int EMBEDFLAGS_SEARCHFORK23, EMBEDFLAGS_SEARCHFORK33, EMBEDFLAGS_SEARCHFORK4 -cdef extern from "../c/graphLib/io/g6-read-iterator.h": - ctypedef struct G6ReadIterator: - pass - ctypedef G6ReadIterator * G6ReadIteratorP - - int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph) - bint g6_EndReached(G6ReadIteratorP theG6ReadIterator) +cdef extern from "../c/graphLib/planarityRelated/graphOuterplanarity.h": + int gp_ExtendWith_Outerplanarity(graphP theGraph) - int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName) - int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator) +cdef extern from "../c/graphLib/planarityRelated/graphDrawPlanar.h": + int gp_ExtendWith_DrawPlanar(graphP theGraph) - void g6_FreeReader(G6ReadIteratorP *pG6ReadIterator) + int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName) + int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString) -cdef extern from "../c/graphLib/io/g6-write-iterator.h": - ctypedef struct G6WriteIterator: - pass - ctypedef G6WriteIterator * G6WriteIteratorP +cdef extern from "../c/graphLib/homeomorphSearch/graphK23Search.h": + int gp_ExtendWith_K23Search(graphP theGraph) - int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph) - int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName) +cdef extern from "../c/graphLib/homeomorphSearch/graphK33Search.h": + int gp_ExtendWith_K33Search(graphP theGraph) - int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) - void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) +cdef extern from "../c/graphLib/homeomorphSearch/graphK4Search.h": + int gp_ExtendWith_K4Search(graphP theGraph) diff --git a/planarity/full/graph.c b/planarity/full/graph.c index fda25f9..e944a71 100644 --- a/planarity/full/graph.c +++ b/planarity/full/graph.c @@ -1134,15 +1134,15 @@ static int __Pyx_init_co_variables(void) { #include "../c/graphLib/graphLib.h" #include "../c/graphLib/lowLevelUtils/appconst.h" #include "../c/graphLib/graph.h" -#include "../c/graphLib/homeomorphSearch/graphK23Search.h" -#include "../c/graphLib/homeomorphSearch/graphK33Search.h" -#include "../c/graphLib/homeomorphSearch/graphK4Search.h" #include "../c/graphLib/io/graphIO.h" -#include "../c/graphLib/planarityRelated/graphDrawPlanar.h" -#include "../c/graphLib/planarityRelated/graphOuterplanarity.h" -#include "../c/graphLib/planarityRelated/graphPlanarity.h" #include "../c/graphLib/io/g6-read-iterator.h" #include "../c/graphLib/io/g6-write-iterator.h" +#include "../c/graphLib/planarityRelated/graphPlanarity.h" +#include "../c/graphLib/planarityRelated/graphOuterplanarity.h" +#include "../c/graphLib/planarityRelated/graphDrawPlanar.h" +#include "../c/graphLib/homeomorphSearch/graphK23Search.h" +#include "../c/graphLib/homeomorphSearch/graphK33Search.h" +#include "../c/graphLib/homeomorphSearch/graphK4Search.h" #include #include #ifdef _OPENMP @@ -2449,18 +2449,18 @@ static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge)(graphP, int); / static int (*__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_IsVertex)(graphP, int); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search)(graphP); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search)(graphP); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_Read)(graphP, char *); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_Write)(graphP, char *, int); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar)(graphP); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile)(graphP, char *); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString)(graphP, char **); /*proto*/ -static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_Embed)(graphP, unsigned int); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity)(graphP, graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile)(graphP, char *); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString)(graphP, char **); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search)(graphP); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search)(graphP); /*proto*/ /* Module declarations from "libc.string" */ @@ -2543,7 +2543,7 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; PyObject *__pyx_codeobj_tab[36]; - PyObject *__pyx_string_tab[222]; + PyObject *__pyx_string_tab[223]; PyObject *__pyx_number_tab[1]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ @@ -2644,169 +2644,170 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #define __pyx_n_u_EMBEDFLAGS_SEARCHFORK23 __pyx_string_tab[56] #define __pyx_n_u_EMBEDFLAGS_SEARCHFORK33 __pyx_string_tab[57] #define __pyx_n_u_EMBEDFLAGS_SEARCHFORK4 __pyx_string_tab[58] -#define __pyx_n_u_FileName __pyx_string_tab[59] -#define __pyx_n_u_Graph __pyx_string_tab[60] -#define __pyx_n_u_Graph___reduce_cython __pyx_string_tab[61] -#define __pyx_n_u_Graph___setstate_cython __pyx_string_tab[62] -#define __pyx_n_u_Graph_gp_AddEdge __pyx_string_tab[63] -#define __pyx_n_u_Graph_gp_CopyGraph __pyx_string_tab[64] -#define __pyx_n_u_Graph_gp_DeleteEdge __pyx_string_tab[65] -#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToFile __pyx_string_tab[66] -#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToStri __pyx_string_tab[67] -#define __pyx_n_u_Graph_gp_DupGraph __pyx_string_tab[68] -#define __pyx_n_u_Graph_gp_EdgeInUse __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_GetN __pyx_string_tab[81] -#define __pyx_n_u_Graph_gp_GetNeighbor __pyx_string_tab[82] -#define __pyx_n_u_Graph_gp_GetNextEdge __pyx_string_tab[83] -#define __pyx_n_u_Graph_gp_GetVertexDegree __pyx_string_tab[84] -#define __pyx_n_u_Graph_gp_InitGraph __pyx_string_tab[85] -#define __pyx_n_u_Graph_gp_IsEdge __pyx_string_tab[86] -#define __pyx_n_u_Graph_gp_IsVertex __pyx_string_tab[87] -#define __pyx_n_u_Graph_gp_LowerBoundEdgeStorage __pyx_string_tab[88] -#define __pyx_n_u_Graph_gp_LowerBoundVertices __pyx_string_tab[89] -#define __pyx_n_u_Graph_gp_Read __pyx_string_tab[90] -#define __pyx_n_u_Graph_gp_ReinitGraph __pyx_string_tab[91] -#define __pyx_n_u_Graph_gp_TestEmbedResultIntegrit __pyx_string_tab[92] -#define __pyx_n_u_Graph_gp_UpperBoundEdgeStorage __pyx_string_tab[93] -#define __pyx_n_u_Graph_gp_UpperBoundEdges __pyx_string_tab[94] -#define __pyx_n_u_Graph_gp_UpperBoundVertices __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_FALSE __pyx_string_tab[59] +#define __pyx_n_u_FileName __pyx_string_tab[60] +#define __pyx_n_u_Graph __pyx_string_tab[61] +#define __pyx_n_u_Graph___reduce_cython __pyx_string_tab[62] +#define __pyx_n_u_Graph___setstate_cython __pyx_string_tab[63] +#define __pyx_n_u_Graph_gp_AddEdge __pyx_string_tab[64] +#define __pyx_n_u_Graph_gp_CopyGraph __pyx_string_tab[65] +#define __pyx_n_u_Graph_gp_DeleteEdge __pyx_string_tab[66] +#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToFile __pyx_string_tab[67] +#define __pyx_n_u_Graph_gp_DrawPlanar_RenderToStri __pyx_string_tab[68] +#define __pyx_n_u_Graph_gp_DupGraph __pyx_string_tab[69] +#define __pyx_n_u_Graph_gp_EdgeInUse __pyx_string_tab[70] +#define __pyx_n_u_Graph_gp_Embed __pyx_string_tab[71] +#define __pyx_n_u_Graph_gp_EnsureEdgeCapacity __pyx_string_tab[72] +#define __pyx_n_u_Graph_gp_ExtendWith_DrawPlanar __pyx_string_tab[73] +#define __pyx_n_u_Graph_gp_ExtendWith_K23Search __pyx_string_tab[74] +#define __pyx_n_u_Graph_gp_ExtendWith_K33Search __pyx_string_tab[75] +#define __pyx_n_u_Graph_gp_ExtendWith_K4Search __pyx_string_tab[76] +#define __pyx_n_u_Graph_gp_ExtendWith_Outerplanari __pyx_string_tab[77] +#define __pyx_n_u_Graph_gp_ExtendWith_Planarity __pyx_string_tab[78] +#define __pyx_n_u_Graph_gp_FindEdge __pyx_string_tab[79] +#define __pyx_n_u_Graph_gp_GetEdgeCapacity __pyx_string_tab[80] +#define __pyx_n_u_Graph_gp_GetFirstEdge __pyx_string_tab[81] +#define __pyx_n_u_Graph_gp_GetN __pyx_string_tab[82] +#define __pyx_n_u_Graph_gp_GetNeighbor __pyx_string_tab[83] +#define __pyx_n_u_Graph_gp_GetNextEdge __pyx_string_tab[84] +#define __pyx_n_u_Graph_gp_GetVertexDegree __pyx_string_tab[85] +#define __pyx_n_u_Graph_gp_InitGraph __pyx_string_tab[86] +#define __pyx_n_u_Graph_gp_IsEdge __pyx_string_tab[87] +#define __pyx_n_u_Graph_gp_IsVertex __pyx_string_tab[88] +#define __pyx_n_u_Graph_gp_LowerBoundEdgeStorage __pyx_string_tab[89] +#define __pyx_n_u_Graph_gp_LowerBoundVertices __pyx_string_tab[90] +#define __pyx_n_u_Graph_gp_Read __pyx_string_tab[91] +#define __pyx_n_u_Graph_gp_ReinitGraph __pyx_string_tab[92] +#define __pyx_n_u_Graph_gp_TestEmbedResultIntegrit __pyx_string_tab[93] +#define __pyx_n_u_Graph_gp_UpperBoundEdgeStorage __pyx_string_tab[94] +#define __pyx_n_u_Graph_gp_UpperBoundEdges __pyx_string_tab[95] +#define __pyx_n_u_Graph_gp_UpperBoundVertices __pyx_string_tab[96] +#define __pyx_n_u_Graph_gp_Write __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_WRITE_ADJLIST __pyx_string_tab[102] -#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[103] -#define __pyx_n_u_WRITE_G6 __pyx_string_tab[104] -#define __pyx_n_u_a __pyx_string_tab[105] -#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[106] -#define __pyx_n_u_check_result __pyx_string_tab[107] -#define __pyx_n_u_cline_in_traceback __pyx_string_tab[108] -#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[109] -#define __pyx_n_u_e __pyx_string_tab[110] -#define __pyx_n_u_embedFlags __pyx_string_tab[111] -#define __pyx_n_u_embed_result __pyx_string_tab[112] -#define __pyx_n_u_encoded __pyx_string_tab[113] -#define __pyx_n_u_func __pyx_string_tab[114] -#define __pyx_n_u_g __pyx_string_tab[115] -#define __pyx_n_u_getstate __pyx_string_tab[116] -#define __pyx_n_u_gp_AddEdge __pyx_string_tab[117] -#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[118] -#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[119] -#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[120] -#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[121] -#define __pyx_n_u_gp_DupGraph __pyx_string_tab[122] -#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[123] -#define __pyx_n_u_gp_Embed __pyx_string_tab[124] -#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[125] -#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[126] -#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[127] -#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[128] -#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[129] -#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[130] -#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[131] -#define __pyx_n_u_gp_FindEdge __pyx_string_tab[132] -#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[133] -#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[134] -#define __pyx_n_u_gp_GetN __pyx_string_tab[135] -#define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[136] -#define __pyx_n_u_gp_GetNextEdge __pyx_string_tab[137] -#define __pyx_n_u_gp_GetVertexDegree __pyx_string_tab[138] -#define __pyx_n_u_gp_InitGraph __pyx_string_tab[139] -#define __pyx_n_u_gp_IsEdge __pyx_string_tab[140] -#define __pyx_n_u_gp_IsVertex __pyx_string_tab[141] -#define __pyx_n_u_gp_LowerBoundEdgeStorage __pyx_string_tab[142] -#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[143] -#define __pyx_n_u_gp_Read __pyx_string_tab[144] -#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[145] -#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[146] -#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[147] -#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[148] -#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[149] -#define __pyx_n_u_gp_Write __pyx_string_tab[150] -#define __pyx_n_u_graphLib __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 __pyx_string_tab[166] -#define __pyx_n_u_planarity_full_graph __pyx_string_tab[167] -#define __pyx_n_u_pop __pyx_string_tab[168] -#define __pyx_n_u_pyx_state __pyx_string_tab[169] -#define __pyx_n_u_qualname __pyx_string_tab[170] -#define __pyx_n_u_reduce __pyx_string_tab[171] -#define __pyx_n_u_reduce_cython __pyx_string_tab[172] -#define __pyx_n_u_reduce_ex __pyx_string_tab[173] -#define __pyx_n_u_renditionString __pyx_string_tab[174] -#define __pyx_n_u_return __pyx_string_tab[175] -#define __pyx_n_u_self __pyx_string_tab[176] -#define __pyx_n_u_set_name __pyx_string_tab[177] -#define __pyx_n_u_setdefault __pyx_string_tab[178] -#define __pyx_n_u_setstate __pyx_string_tab[179] -#define __pyx_n_u_setstate_cython __pyx_string_tab[180] -#define __pyx_n_u_src_graph __pyx_string_tab[181] -#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[182] -#define __pyx_n_u_string_conversion_error __pyx_string_tab[183] -#define __pyx_n_u_test __pyx_string_tab[184] -#define __pyx_n_u_theFileName __pyx_string_tab[185] -#define __pyx_n_u_theGraph_dup __pyx_string_tab[186] -#define __pyx_n_u_u __pyx_string_tab[187] -#define __pyx_n_u_ulink __pyx_string_tab[188] -#define __pyx_n_u_v __pyx_string_tab[189] -#define __pyx_n_u_values __pyx_string_tab[190] -#define __pyx_n_u_vlink __pyx_string_tab[191] -#define __pyx_kp_b_graphP_graphP_graphP_void_int_gr __pyx_string_tab[192] -#define __pyx_kp_b_iso88591_4_Q_aq_xq_A __pyx_string_tab[193] -#define __pyx_kp_b_iso88591_A_0_A_aq __pyx_string_tab[194] -#define __pyx_kp_b_iso88591_A_0_Q __pyx_string_tab[195] -#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[196] -#define __pyx_kp_b_iso88591_A_4_3a_aq __pyx_string_tab[197] -#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a __pyx_string_tab[198] -#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[199] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a __pyx_string_tab[200] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q __pyx_string_tab[201] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q __pyx_string_tab[202] -#define __pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L __pyx_string_tab[203] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4_1 __pyx_string_tab[204] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq __pyx_string_tab[205] -#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a __pyx_string_tab[206] -#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[207] -#define __pyx_kp_b_iso88591_A_Cq_aq __pyx_string_tab[208] -#define __pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a __pyx_string_tab[209] -#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[210] -#define __pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a __pyx_string_tab[211] -#define __pyx_kp_b_iso88591_A_l_MSPQ_a_1 __pyx_string_tab[212] -#define __pyx_kp_b_iso88591_A_q_A __pyx_string_tab[213] -#define __pyx_kp_b_iso88591_A_q_A_81D_Jc_aq __pyx_string_tab[214] -#define __pyx_kp_b_iso88591_A_q_at_Cq_a_EQa __pyx_string_tab[215] -#define __pyx_kp_b_iso88591_A_s_D_r_4q __pyx_string_tab[216] -#define __pyx_kp_b_iso88591_A_s_t1_r_d_at_q __pyx_string_tab[217] -#define __pyx_kp_b_iso88591_Q __pyx_string_tab[218] -#define __pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q __pyx_string_tab[219] -#define __pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q __pyx_string_tab[220] -#define __pyx_kp_b_iso88591_y_3d_s_aq_q __pyx_string_tab[221] +#define __pyx_n_u_TRUE __pyx_string_tab[102] +#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[103] +#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[104] +#define __pyx_n_u_WRITE_G6 __pyx_string_tab[105] +#define __pyx_n_u_a __pyx_string_tab[106] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[107] +#define __pyx_n_u_check_result __pyx_string_tab[108] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[109] +#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[110] +#define __pyx_n_u_e __pyx_string_tab[111] +#define __pyx_n_u_embedFlags __pyx_string_tab[112] +#define __pyx_n_u_embed_result __pyx_string_tab[113] +#define __pyx_n_u_encoded __pyx_string_tab[114] +#define __pyx_n_u_func __pyx_string_tab[115] +#define __pyx_n_u_g __pyx_string_tab[116] +#define __pyx_n_u_getstate __pyx_string_tab[117] +#define __pyx_n_u_gp_AddEdge __pyx_string_tab[118] +#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[119] +#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[120] +#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[121] +#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[122] +#define __pyx_n_u_gp_DupGraph __pyx_string_tab[123] +#define __pyx_n_u_gp_EdgeInUse __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_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_GetVertexDegree __pyx_string_tab[139] +#define __pyx_n_u_gp_InitGraph __pyx_string_tab[140] +#define __pyx_n_u_gp_IsEdge __pyx_string_tab[141] +#define __pyx_n_u_gp_IsVertex __pyx_string_tab[142] +#define __pyx_n_u_gp_LowerBoundEdgeStorage __pyx_string_tab[143] +#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[144] +#define __pyx_n_u_gp_Read __pyx_string_tab[145] +#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[146] +#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[147] +#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[148] +#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[149] +#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[150] +#define __pyx_n_u_gp_Write __pyx_string_tab[151] +#define __pyx_n_u_graphLib __pyx_string_tab[152] +#define __pyx_n_u_infile_name __pyx_string_tab[153] +#define __pyx_n_u_int __pyx_string_tab[154] +#define __pyx_n_u_is_coroutine __pyx_string_tab[155] +#define __pyx_n_u_items __pyx_string_tab[156] +#define __pyx_n_u_m __pyx_string_tab[157] +#define __pyx_n_u_main __pyx_string_tab[158] +#define __pyx_n_u_mode __pyx_string_tab[159] +#define __pyx_n_u_mode_code __pyx_string_tab[160] +#define __pyx_n_u_module __pyx_string_tab[161] +#define __pyx_n_u_n __pyx_string_tab[162] +#define __pyx_n_u_name __pyx_string_tab[163] +#define __pyx_n_u_new_edge_capacity __pyx_string_tab[164] +#define __pyx_n_u_new_graph __pyx_string_tab[165] +#define __pyx_n_u_outfile_name __pyx_string_tab[166] +#define __pyx_n_u_planarity_full __pyx_string_tab[167] +#define __pyx_n_u_planarity_full_graph __pyx_string_tab[168] +#define __pyx_n_u_pop __pyx_string_tab[169] +#define __pyx_n_u_pyx_state __pyx_string_tab[170] +#define __pyx_n_u_qualname __pyx_string_tab[171] +#define __pyx_n_u_reduce __pyx_string_tab[172] +#define __pyx_n_u_reduce_cython __pyx_string_tab[173] +#define __pyx_n_u_reduce_ex __pyx_string_tab[174] +#define __pyx_n_u_renditionString __pyx_string_tab[175] +#define __pyx_n_u_return __pyx_string_tab[176] +#define __pyx_n_u_self __pyx_string_tab[177] +#define __pyx_n_u_set_name __pyx_string_tab[178] +#define __pyx_n_u_setdefault __pyx_string_tab[179] +#define __pyx_n_u_setstate __pyx_string_tab[180] +#define __pyx_n_u_setstate_cython __pyx_string_tab[181] +#define __pyx_n_u_src_graph __pyx_string_tab[182] +#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[183] +#define __pyx_n_u_string_conversion_error __pyx_string_tab[184] +#define __pyx_n_u_test __pyx_string_tab[185] +#define __pyx_n_u_theFileName __pyx_string_tab[186] +#define __pyx_n_u_theGraph_dup __pyx_string_tab[187] +#define __pyx_n_u_u __pyx_string_tab[188] +#define __pyx_n_u_ulink __pyx_string_tab[189] +#define __pyx_n_u_v __pyx_string_tab[190] +#define __pyx_n_u_values __pyx_string_tab[191] +#define __pyx_n_u_vlink __pyx_string_tab[192] +#define __pyx_kp_b_graphP_graphP_graphP_void_int_gr __pyx_string_tab[193] +#define __pyx_kp_b_iso88591_4_Q_aq_xq_A __pyx_string_tab[194] +#define __pyx_kp_b_iso88591_A_0_A_aq __pyx_string_tab[195] +#define __pyx_kp_b_iso88591_A_0_Q __pyx_string_tab[196] +#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[197] +#define __pyx_kp_b_iso88591_A_4_3a_aq __pyx_string_tab[198] +#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a __pyx_string_tab[199] +#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[200] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a __pyx_string_tab[201] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q __pyx_string_tab[202] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q __pyx_string_tab[203] +#define __pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L __pyx_string_tab[204] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4_1 __pyx_string_tab[205] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq __pyx_string_tab[206] +#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a __pyx_string_tab[207] +#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[208] +#define __pyx_kp_b_iso88591_A_Cq_aq __pyx_string_tab[209] +#define __pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a __pyx_string_tab[210] +#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[211] +#define __pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a __pyx_string_tab[212] +#define __pyx_kp_b_iso88591_A_l_MSPQ_a_1 __pyx_string_tab[213] +#define __pyx_kp_b_iso88591_A_q_A __pyx_string_tab[214] +#define __pyx_kp_b_iso88591_A_q_A_81D_Jc_aq __pyx_string_tab[215] +#define __pyx_kp_b_iso88591_A_q_at_Cq_a_EQa __pyx_string_tab[216] +#define __pyx_kp_b_iso88591_A_s_D_r_4q __pyx_string_tab[217] +#define __pyx_kp_b_iso88591_A_s_t1_r_d_at_q __pyx_string_tab[218] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[219] +#define __pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q __pyx_string_tab[220] +#define __pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q __pyx_string_tab[221] +#define __pyx_kp_b_iso88591_y_3d_s_aq_q __pyx_string_tab[222] #define __pyx_int_0 __pyx_number_tab[0] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE @@ -2825,7 +2826,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<36; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<222; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } + for (int i=0; i<223; ++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 */ @@ -2852,7 +2853,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<36; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<222; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } + for (int i=0; i<223; ++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 */ @@ -2867,7 +2868,7 @@ return 0; #endif /* #### Code section: module_code ### */ -/* "planarity/full/graph.pyx":31 +/* "planarity/full/graph.pyx":34 * * cdef class Graph: * def __cinit__(self): # <<<<<<<<<<<<<< @@ -2913,17 +2914,17 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "planarity/full/graph.pyx":33 + /* "planarity/full/graph.pyx":36 * def __cinit__(self): * global global_id_count * self._theGraph = graphLib.gp_New() # <<<<<<<<<<<<<< * if self._theGraph == NULL: * raise MemoryError("gp_New() failed.") */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_New(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 33, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_New(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 36, __pyx_L1_error) __pyx_v_self->_theGraph = __pyx_t_1; - /* "planarity/full/graph.pyx":34 + /* "planarity/full/graph.pyx":37 * global global_id_count * self._theGraph = graphLib.gp_New() * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -2933,7 +2934,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p __pyx_t_2 = (__pyx_v_self->_theGraph == NULL); if (unlikely(__pyx_t_2)) { - /* "planarity/full/graph.pyx":35 + /* "planarity/full/graph.pyx":38 * self._theGraph = graphLib.gp_New() * if self._theGraph == NULL: * raise MemoryError("gp_New() failed.") # <<<<<<<<<<<<<< @@ -2946,14 +2947,14 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_New_failed}; __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_3)) __PYX_ERR(0, 35, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 35, __pyx_L1_error) + __PYX_ERR(0, 38, __pyx_L1_error) - /* "planarity/full/graph.pyx":34 + /* "planarity/full/graph.pyx":37 * global global_id_count * self._theGraph = graphLib.gp_New() * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -2962,7 +2963,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p */ } - /* "planarity/full/graph.pyx":31 + /* "planarity/full/graph.pyx":34 * * cdef class Graph: * def __cinit__(self): # <<<<<<<<<<<<<< @@ -2983,7 +2984,7 @@ static int __pyx_pf_9planarity_4full_5graph_5Graph___cinit__(struct __pyx_obj_9p return __pyx_r; } -/* "planarity/full/graph.pyx":37 +/* "planarity/full/graph.pyx":40 * raise MemoryError("gp_New() failed.") * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -3010,7 +3011,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob const char *__pyx_filename = NULL; int __pyx_clineno = 0; - /* "planarity/full/graph.pyx":38 + /* "planarity/full/graph.pyx":41 * * def __dealloc__(self): * if self._theGraph != NULL: # <<<<<<<<<<<<<< @@ -3020,16 +3021,16 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob __pyx_t_1 = (__pyx_v_self->_theGraph != NULL); if (__pyx_t_1) { - /* "planarity/full/graph.pyx":39 + /* "planarity/full/graph.pyx":42 * def __dealloc__(self): * if self._theGraph != NULL: * graphLib.gp_Free(&self._theGraph) # <<<<<<<<<<<<<< * * def gp_InitGraph(self, int n): */ - __pyx_f_9planarity_4full_8graphLib_gp_Free((&__pyx_v_self->_theGraph)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 39, __pyx_L1_error) + __pyx_f_9planarity_4full_8graphLib_gp_Free((&__pyx_v_self->_theGraph)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 42, __pyx_L1_error) - /* "planarity/full/graph.pyx":38 + /* "planarity/full/graph.pyx":41 * * def __dealloc__(self): * if self._theGraph != NULL: # <<<<<<<<<<<<<< @@ -3038,7 +3039,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob */ } - /* "planarity/full/graph.pyx":37 + /* "planarity/full/graph.pyx":40 * raise MemoryError("gp_New() failed.") * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -3053,7 +3054,7 @@ static void __pyx_pf_9planarity_4full_5graph_5Graph_2__dealloc__(struct __pyx_ob __pyx_L0:; } -/* "planarity/full/graph.pyx":41 +/* "planarity/full/graph.pyx":44 * graphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< @@ -3101,32 +3102,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,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, 41, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 44, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 41, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 44, __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_InitGraph", 0) < (0)) __PYX_ERR(0, 41, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_InitGraph", 0) < (0)) __PYX_ERR(0, 44, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, i); __PYX_ERR(0, 41, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, i); __PYX_ERR(0, 44, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 41, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 44, __pyx_L3_error) } - __pyx_v_n = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 41, __pyx_L3_error) + __pyx_v_n = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 44, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 41, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_InitGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 44, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3161,26 +3162,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_InitGraph", 0); - /* "planarity/full/graph.pyx":42 + /* "planarity/full/graph.pyx":45 * * def gp_InitGraph(self, int n): * if graphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_InitGraph() failed.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 42, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(__pyx_v_self->_theGraph, __pyx_v_n); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __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, 42, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __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, 42, __pyx_L1_error) + __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, 45, __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, 42, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":43 + /* "planarity/full/graph.pyx":46 * def gp_InitGraph(self, int n): * if graphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") # <<<<<<<<<<<<<< @@ -3193,14 +3194,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_InitGraph_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, 43, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 43, __pyx_L1_error) + __PYX_ERR(0, 46, __pyx_L1_error) - /* "planarity/full/graph.pyx":42 + /* "planarity/full/graph.pyx":45 * * def gp_InitGraph(self, int n): * if graphLib.gp_InitGraph(self._theGraph, n) != OK: # <<<<<<<<<<<<<< @@ -3209,7 +3210,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ */ } - /* "planarity/full/graph.pyx":41 + /* "planarity/full/graph.pyx":44 * graphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< @@ -3232,7 +3233,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_4gp_InitGraph(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":45 +/* "planarity/full/graph.pyx":48 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< @@ -3291,16 +3292,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_6gp_ReinitGraph(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ReinitGraph", 0); - /* "planarity/full/graph.pyx":46 + /* "planarity/full/graph.pyx":49 * * def gp_ReinitGraph(self): * graphLib.gp_ReinitGraph(self._theGraph) # <<<<<<<<<<<<<< * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): */ - __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 46, __pyx_L1_error) + __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L1_error) - /* "planarity/full/graph.pyx":45 + /* "planarity/full/graph.pyx":48 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< @@ -3320,7 +3321,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_6gp_ReinitGraph(struct return __pyx_r; } -/* "planarity/full/graph.pyx":48 +/* "planarity/full/graph.pyx":51 * graphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< @@ -3368,32 +3369,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_new_edge_capacity,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, 48, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 51, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 48, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 51, __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_EnsureEdgeCapacity", 0) < (0)) __PYX_ERR(0, 48, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_EnsureEdgeCapacity", 0) < (0)) __PYX_ERR(0, 51, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, i); __PYX_ERR(0, 48, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, i); __PYX_ERR(0, 51, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 48, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 51, __pyx_L3_error) } - __pyx_v_new_edge_capacity = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_new_edge_capacity == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 48, __pyx_L3_error) + __pyx_v_new_edge_capacity = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_new_edge_capacity == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 51, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 48, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_EnsureEdgeCapacity", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 51, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3430,26 +3431,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_EnsureEdgeCapacity", 0); - /* "planarity/full/graph.pyx":49 + /* "planarity/full/graph.pyx":52 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(__pyx_v_self->_theGraph, __pyx_v_new_edge_capacity); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(__pyx_v_self->_theGraph, __pyx_v_new_edge_capacity); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 52, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __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, 49, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 52, __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, 49, __pyx_L1_error) + __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, 52, __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, 49, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":50 + /* "planarity/full/graph.pyx":53 * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -3458,20 +3459,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":52 + /* "planarity/full/graph.pyx":55 * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " * f"{new_edge_capacity}.") # <<<<<<<<<<<<<< * * def gp_GetEdgeCapacity(self): */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_new_edge_capacity, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_gp_EnsureEdgeCapacity_failed_to; __pyx_t_6[1] = __pyx_t_2; __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u_; - /* "planarity/full/graph.pyx":51 + /* "planarity/full/graph.pyx":54 * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( * "gp_EnsureEdgeCapacity() failed to set edge capacity to " # <<<<<<<<<<<<<< @@ -3479,7 +3480,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( * */ __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, 55 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 1, 127); - if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 51, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_8 = 1; @@ -3488,14 +3489,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( __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_4)) __PYX_ERR(0, 50, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 50, __pyx_L1_error) + __PYX_ERR(0, 53, __pyx_L1_error) - /* "planarity/full/graph.pyx":49 + /* "planarity/full/graph.pyx":52 * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: # <<<<<<<<<<<<<< @@ -3504,7 +3505,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( */ } - /* "planarity/full/graph.pyx":48 + /* "planarity/full/graph.pyx":51 * graphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< @@ -3528,7 +3529,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_8gp_EnsureEdgeCapacity( return __pyx_r; } -/* "planarity/full/graph.pyx":54 +/* "planarity/full/graph.pyx":57 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< @@ -3589,7 +3590,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetEdgeCapacity", 0); - /* "planarity/full/graph.pyx":55 + /* "planarity/full/graph.pyx":58 * * def gp_GetEdgeCapacity(self): * return graphLib.gp_GetEdgeCapacity(self._theGraph) # <<<<<<<<<<<<<< @@ -3597,14 +3598,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st * def gp_GetN(self)-> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 55, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 58, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":54 + /* "planarity/full/graph.pyx":57 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< @@ -3623,7 +3624,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_10gp_GetEdgeCapacity(st return __pyx_r; } -/* "planarity/full/graph.pyx":57 +/* "planarity/full/graph.pyx":60 * return graphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< @@ -3687,7 +3688,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetN", 0); - /* "planarity/full/graph.pyx":61 + /* "planarity/full/graph.pyx":64 * Returns the number of vertices in the graph. * """ * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3697,7 +3698,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ __pyx_t_1 = (__pyx_v_self->_theGraph == NULL); if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":62 + /* "planarity/full/graph.pyx":65 * """ * if self._theGraph == NULL: * raise RuntimeError("Graph is not initialized.") # <<<<<<<<<<<<<< @@ -3710,14 +3711,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Graph_is_not_initialized}; __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, 62, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __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, 62, __pyx_L1_error) + __PYX_ERR(0, 65, __pyx_L1_error) - /* "planarity/full/graph.pyx":61 + /* "planarity/full/graph.pyx":64 * Returns the number of vertices in the graph. * """ * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3726,7 +3727,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ */ } - /* "planarity/full/graph.pyx":64 + /* "planarity/full/graph.pyx":67 * raise RuntimeError("Graph is not initialized.") * * return graphLib.gp_GetN(self._theGraph) # <<<<<<<<<<<<<< @@ -3734,15 +3735,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ * def gp_CopyGraph(self, Graph src_graph): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __pyx_f_9planarity_4full_8graphLib_gp_GetN(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 64, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) + __pyx_t_5 = __pyx_f_9planarity_4full_8graphLib_gp_GetN(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 67, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 64, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(0, 67, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":57 + /* "planarity/full/graph.pyx":60 * return graphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< @@ -3762,7 +3763,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_12gp_GetN(struct __pyx_ return __pyx_r; } -/* "planarity/full/graph.pyx":66 +/* "planarity/full/graph.pyx":69 * return graphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< @@ -3810,32 +3811,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_src_graph,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, 66, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 69, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 66, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 69, __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_CopyGraph", 0) < (0)) __PYX_ERR(0, 66, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_CopyGraph", 0) < (0)) __PYX_ERR(0, 69, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, i); __PYX_ERR(0, 66, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, i); __PYX_ERR(0, 69, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 66, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 69, __pyx_L3_error) } __pyx_v_src_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 66, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_CopyGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 69, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -3846,7 +3847,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_src_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "src_graph", 0))) __PYX_ERR(0, 66, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_src_graph), __pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, 1, "src_graph", 0))) __PYX_ERR(0, 69, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_src_graph); /* function exit code */ @@ -3894,7 +3895,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_CopyGraph", 0); - /* "planarity/full/graph.pyx":69 + /* "planarity/full/graph.pyx":72 * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3904,7 +3905,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_t_1 = (__pyx_v_self->_theGraph == NULL); if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":70 + /* "planarity/full/graph.pyx":73 * # the Graph wrapper that is passed in as the srcGraph * if self._theGraph == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -3917,14 +3918,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Invalid_destination_graph_wrappe}; __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, 70, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __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, 70, __pyx_L1_error) + __PYX_ERR(0, 73, __pyx_L1_error) - /* "planarity/full/graph.pyx":69 + /* "planarity/full/graph.pyx":72 * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph * if self._theGraph == NULL: # <<<<<<<<<<<<<< @@ -3933,7 +3934,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":74 + /* "planarity/full/graph.pyx":77 * ) * * try: # <<<<<<<<<<<<<< @@ -3949,7 +3950,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "planarity/full/graph.pyx":75 + /* "planarity/full/graph.pyx":78 * * try: * if src_graph.gp_GetN() == 0: # <<<<<<<<<<<<<< @@ -3963,14 +3964,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L4_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); } - __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 75, __pyx_L4_error) + __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 78, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":76 + /* "planarity/full/graph.pyx":79 * try: * if src_graph.gp_GetN() == 0: * raise ValueError("Source graph has not been initialized.") # <<<<<<<<<<<<<< @@ -3983,14 +3984,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Source_graph_has_not_been_initia}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __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, 76, __pyx_L4_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L4_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, 76, __pyx_L4_error) + __PYX_ERR(0, 79, __pyx_L4_error) - /* "planarity/full/graph.pyx":75 + /* "planarity/full/graph.pyx":78 * * try: * if src_graph.gp_GetN() == 0: # <<<<<<<<<<<<<< @@ -3999,7 +4000,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":74 + /* "planarity/full/graph.pyx":77 * ) * * try: # <<<<<<<<<<<<<< @@ -4015,7 +4016,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":77 + /* "planarity/full/graph.pyx":80 * if src_graph.gp_GetN() == 0: * raise ValueError("Source graph has not been initialized.") * except RuntimeError as src_graph_uninit_error: # <<<<<<<<<<<<<< @@ -4025,7 +4026,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_RuntimeError)))); if (__pyx_t_8) { __Pyx_AddTraceback("planarity.full.graph.Graph.gp_CopyGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_9) < 0) __PYX_ERR(0, 77, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_9) < 0) __PYX_ERR(0, 80, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_9); @@ -4033,7 +4034,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_v_src_graph_uninit_error = __pyx_t_3; /*try:*/ { - /* "planarity/full/graph.pyx":78 + /* "planarity/full/graph.pyx":81 * raise ValueError("Source graph has not been initialized.") * except RuntimeError as src_graph_uninit_error: * raise ValueError( # <<<<<<<<<<<<<< @@ -4046,11 +4047,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_mstate_global->__pyx_kp_u_Invalid_source_graph_wrapped_gra}; __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 78, __pyx_L16_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 81, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_10); } - /* "planarity/full/graph.pyx":80 + /* "planarity/full/graph.pyx":83 * raise ValueError( * "Invalid source graph: wrapped graphP is NULL." * ) from src_graph_uninit_error # <<<<<<<<<<<<<< @@ -4059,10 +4060,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ __Pyx_Raise(__pyx_t_10, 0, 0, __pyx_v_src_graph_uninit_error); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __PYX_ERR(0, 78, __pyx_L16_error) + __PYX_ERR(0, 81, __pyx_L16_error) } - /* "planarity/full/graph.pyx":77 + /* "planarity/full/graph.pyx":80 * if src_graph.gp_GetN() == 0: * raise ValueError("Source graph has not been initialized.") * except RuntimeError as src_graph_uninit_error: # <<<<<<<<<<<<<< @@ -4105,7 +4106,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ } goto __pyx_L6_except_error; - /* "planarity/full/graph.pyx":74 + /* "planarity/full/graph.pyx":77 * ) * * try: # <<<<<<<<<<<<<< @@ -4121,7 +4122,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ __pyx_L9_try_end:; } - /* "planarity/full/graph.pyx":82 + /* "planarity/full/graph.pyx":85 * ) from src_graph_uninit_error * * if self.gp_GetN() != src_graph.gp_GetN(): # <<<<<<<<<<<<<< @@ -4135,7 +4136,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 82, __pyx_L1_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); } __pyx_t_2 = ((PyObject *)__pyx_v_src_graph); @@ -4145,17 +4146,17 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_9, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_9, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 82, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":83 + /* "planarity/full/graph.pyx":86 * * if self.gp_GetN() != src_graph.gp_GetN(): * raise ValueError( # <<<<<<<<<<<<<< @@ -4168,14 +4169,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Source_and_destination_graphs_mu}; __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __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, 83, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __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, 83, __pyx_L1_error) + __PYX_ERR(0, 86, __pyx_L1_error) - /* "planarity/full/graph.pyx":82 + /* "planarity/full/graph.pyx":85 * ) from src_graph_uninit_error * * if self.gp_GetN() != src_graph.gp_GetN(): # <<<<<<<<<<<<<< @@ -4184,26 +4185,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":87 + /* "planarity/full/graph.pyx":90 * "to copy graphP struct.") * * if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_CopyGraph() failed.") * */ - __pyx_t_12 = __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(__pyx_v_self->_theGraph, __pyx_v_src_graph->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 87, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error) + __pyx_t_12 = __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(__pyx_v_self->_theGraph, __pyx_v_src_graph->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 90, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __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, 87, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __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, 87, __pyx_L1_error) + __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, 90, __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, 87, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":88 + /* "planarity/full/graph.pyx":91 * * if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: * raise RuntimeError(f"gp_CopyGraph() failed.") # <<<<<<<<<<<<<< @@ -4216,14 +4217,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_gp_CopyGraph_failed}; __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_9)) __PYX_ERR(0, 88, __pyx_L1_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); } __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(0, 88, __pyx_L1_error) + __PYX_ERR(0, 91, __pyx_L1_error) - /* "planarity/full/graph.pyx":87 + /* "planarity/full/graph.pyx":90 * "to copy graphP struct.") * * if graphLib.gp_CopyGraph(self._theGraph, src_graph._theGraph) != OK: # <<<<<<<<<<<<<< @@ -4232,7 +4233,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ */ } - /* "planarity/full/graph.pyx":66 + /* "planarity/full/graph.pyx":69 * return graphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< @@ -4258,7 +4259,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_14gp_CopyGraph(struct _ return __pyx_r; } -/* "planarity/full/graph.pyx":90 +/* "planarity/full/graph.pyx":93 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< @@ -4324,17 +4325,17 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DupGraph", 0); - /* "planarity/full/graph.pyx":91 + /* "planarity/full/graph.pyx":94 * * def gp_DupGraph(self) -> Graph: * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) # <<<<<<<<<<<<<< * if theGraph_dup == NULL: * raise MemoryError("gp_DupGraph() failed.") */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error) __pyx_v_theGraph_dup = __pyx_t_1; - /* "planarity/full/graph.pyx":92 + /* "planarity/full/graph.pyx":95 * def gp_DupGraph(self) -> Graph: * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: # <<<<<<<<<<<<<< @@ -4344,7 +4345,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full __pyx_t_2 = (__pyx_v_theGraph_dup == NULL); if (unlikely(__pyx_t_2)) { - /* "planarity/full/graph.pyx":93 + /* "planarity/full/graph.pyx":96 * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: * raise MemoryError("gp_DupGraph() failed.") # <<<<<<<<<<<<<< @@ -4357,14 +4358,14 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_DupGraph_failed}; __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_3)) __PYX_ERR(0, 93, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 93, __pyx_L1_error) + __PYX_ERR(0, 96, __pyx_L1_error) - /* "planarity/full/graph.pyx":92 + /* "planarity/full/graph.pyx":95 * def gp_DupGraph(self) -> Graph: * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: # <<<<<<<<<<<<<< @@ -4373,7 +4374,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full */ } - /* "planarity/full/graph.pyx":95 + /* "planarity/full/graph.pyx":98 * raise MemoryError("gp_DupGraph() failed.") * * cdef Graph new_graph = Graph() # <<<<<<<<<<<<<< @@ -4386,22 +4387,22 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF((PyObject *)__pyx_t_3); } __pyx_v_new_graph = ((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graph.pyx":96 + /* "planarity/full/graph.pyx":99 * * cdef Graph new_graph = Graph() * graphLib.gp_Free(&new_graph._theGraph) # <<<<<<<<<<<<<< * new_graph._theGraph = theGraph_dup * */ - __pyx_f_9planarity_4full_8graphLib_gp_Free((&__pyx_v_new_graph->_theGraph)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L1_error) + __pyx_f_9planarity_4full_8graphLib_gp_Free((&__pyx_v_new_graph->_theGraph)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 99, __pyx_L1_error) - /* "planarity/full/graph.pyx":97 + /* "planarity/full/graph.pyx":100 * cdef Graph new_graph = Graph() * graphLib.gp_Free(&new_graph._theGraph) * new_graph._theGraph = theGraph_dup # <<<<<<<<<<<<<< @@ -4410,7 +4411,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full */ __pyx_v_new_graph->_theGraph = __pyx_v_theGraph_dup; - /* "planarity/full/graph.pyx":99 + /* "planarity/full/graph.pyx":102 * new_graph._theGraph = theGraph_dup * * return new_graph # <<<<<<<<<<<<<< @@ -4422,7 +4423,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full __pyx_r = __pyx_v_new_graph; goto __pyx_L0; - /* "planarity/full/graph.pyx":90 + /* "planarity/full/graph.pyx":93 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< @@ -4443,7 +4444,7 @@ static struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_pf_9planarity_4full return __pyx_r; } -/* "planarity/full/graph.pyx":101 +/* "planarity/full/graph.pyx":104 * return new_graph * * def gp_FindEdge(self, int u, int v): # <<<<<<<<<<<<<< @@ -4492,39 +4493,39 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_v,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, 101, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 104, __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, 101, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 104, __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, 101, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 104, __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_FindEdge", 0) < (0)) __PYX_ERR(0, 101, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_FindEdge", 0) < (0)) __PYX_ERR(0, 104, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, i); __PYX_ERR(0, 101, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, i); __PYX_ERR(0, 104, __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, 101, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 104, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 101, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 104, __pyx_L3_error) } - __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L3_error) - __pyx_v_v = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L3_error) + __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 104, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 104, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 101, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_FindEdge", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 104, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -4562,7 +4563,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_FindEdge", 0); - /* "planarity/full/graph.pyx":102 + /* "planarity/full/graph.pyx":105 * * def gp_FindEdge(self, int u, int v): * if not self.gp_IsVertex(u): # <<<<<<<<<<<<<< @@ -4571,7 +4572,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_u); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_u); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -4579,15 +4580,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 102, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":103 + /* "planarity/full/graph.pyx":106 * def gp_FindEdge(self, int u, int v): * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") # <<<<<<<<<<<<<< @@ -4595,13 +4596,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * raise RuntimeError(f"'{v}' is not a valid vertex label.") */ __pyx_t_3 = NULL; - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_is_not_a_valid_vertex_label; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 30, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 103, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -4610,14 +4611,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 103, __pyx_L1_error) + __PYX_ERR(0, 106, __pyx_L1_error) - /* "planarity/full/graph.pyx":102 + /* "planarity/full/graph.pyx":105 * * def gp_FindEdge(self, int u, int v): * if not self.gp_IsVertex(u): # <<<<<<<<<<<<<< @@ -4626,7 +4627,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ } - /* "planarity/full/graph.pyx":104 + /* "planarity/full/graph.pyx":107 * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4635,7 +4636,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ __pyx_t_8 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_8); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -4643,15 +4644,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 104, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = (!__pyx_t_6); if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":105 + /* "planarity/full/graph.pyx":108 * raise RuntimeError(f"'{u}' is not a valid vertex label.") * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") # <<<<<<<<<<<<<< @@ -4659,13 +4660,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * return graphLib.gp_FindEdge(self._theGraph, u, v) */ __pyx_t_3 = NULL; - __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 105, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2; __pyx_t_7[1] = __pyx_t_8; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_is_not_a_valid_vertex_label; __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 30, 127); - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_4 = 1; @@ -4674,14 +4675,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 105, __pyx_L1_error) + __PYX_ERR(0, 108, __pyx_L1_error) - /* "planarity/full/graph.pyx":104 + /* "planarity/full/graph.pyx":107 * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4690,7 +4691,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ */ } - /* "planarity/full/graph.pyx":107 + /* "planarity/full/graph.pyx":110 * raise RuntimeError(f"'{v}' is not a valid vertex label.") * * return graphLib.gp_FindEdge(self._theGraph, u, v) # <<<<<<<<<<<<<< @@ -4698,14 +4699,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ * def gp_GetVertexDegree(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 107, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 110, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":101 + /* "planarity/full/graph.pyx":104 * return new_graph * * def gp_FindEdge(self, int u, int v): # <<<<<<<<<<<<<< @@ -4727,7 +4728,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_18gp_FindEdge(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":109 +/* "planarity/full/graph.pyx":112 * return graphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< @@ -4775,32 +4776,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 109, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 112, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 109, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 112, __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_GetVertexDegree", 0) < (0)) __PYX_ERR(0, 109, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetVertexDegree", 0) < (0)) __PYX_ERR(0, 112, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, i); __PYX_ERR(0, 109, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, i); __PYX_ERR(0, 112, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 109, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 112, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 109, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 112, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 109, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetVertexDegree", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 112, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -4838,7 +4839,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetVertexDegree", 0); - /* "planarity/full/graph.pyx":110 + /* "planarity/full/graph.pyx":113 * * def gp_GetVertexDegree(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4847,7 +4848,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -4855,15 +4856,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 110, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":111 + /* "planarity/full/graph.pyx":114 * def gp_GetVertexDegree(self, int v): * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") # <<<<<<<<<<<<<< @@ -4871,13 +4872,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st * return graphLib.gp_GetVertexDegree(self._theGraph, v) */ __pyx_t_3 = NULL; - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_is_not_a_valid_vertex_label; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 30, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 111, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -4886,14 +4887,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 111, __pyx_L1_error) + __PYX_ERR(0, 114, __pyx_L1_error) - /* "planarity/full/graph.pyx":110 + /* "planarity/full/graph.pyx":113 * * def gp_GetVertexDegree(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -4902,7 +4903,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st */ } - /* "planarity/full/graph.pyx":113 + /* "planarity/full/graph.pyx":116 * raise RuntimeError(f"'{v}' is not a valid vertex label.") * * return graphLib.gp_GetVertexDegree(self._theGraph, v) # <<<<<<<<<<<<<< @@ -4910,14 +4911,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st * def gp_AddEdge(self, int u, int ulink, int v, int vlink): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 116, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":109 + /* "planarity/full/graph.pyx":112 * return graphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< @@ -4939,7 +4940,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_20gp_GetVertexDegree(st return __pyx_r; } -/* "planarity/full/graph.pyx":115 +/* "planarity/full/graph.pyx":118 * return graphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< @@ -4990,53 +4991,53 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_ulink,&__pyx_mstate_global->__pyx_n_u_v,&__pyx_mstate_global->__pyx_n_u_vlink,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, 115, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 118, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 4: values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 118, __pyx_L3_error) CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 118, __pyx_L3_error) CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 118, __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, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 118, __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_AddEdge", 0) < (0)) __PYX_ERR(0, 115, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_AddEdge", 0) < (0)) __PYX_ERR(0, 118, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 4; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, i); __PYX_ERR(0, 115, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, i); __PYX_ERR(0, 118, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 4)) { 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, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 118, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 118, __pyx_L3_error) values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 118, __pyx_L3_error) values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 115, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 118, __pyx_L3_error) } - __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) - __pyx_v_ulink = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_ulink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) - __pyx_v_v = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) - __pyx_v_vlink = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_vlink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L3_error) + __pyx_v_u = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_u == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 118, __pyx_L3_error) + __pyx_v_ulink = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_ulink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 118, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 118, __pyx_L3_error) + __pyx_v_vlink = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_vlink == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 118, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 115, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_AddEdge", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 118, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -5077,7 +5078,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_AddEdge", 0); - /* "planarity/full/graph.pyx":116 + /* "planarity/full/graph.pyx":119 * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): * if ulink != 0 and ulink != 1: # <<<<<<<<<<<<<< @@ -5095,7 +5096,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p } if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":117 + /* "planarity/full/graph.pyx":120 * def gp_AddEdge(self, int u, int ulink, int v, int vlink): * if ulink != 0 and ulink != 1: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5104,20 +5105,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":118 + /* "planarity/full/graph.pyx":121 * if ulink != 0 and ulink != 1: * raise RuntimeError( * f"Invalid link index for ulink: '{ulink}'." # <<<<<<<<<<<<<< * ) * if vlink != 0 and vlink != 1: */ - __pyx_t_4 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 118, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_link_index_for_ulink; __pyx_t_5[1] = __pyx_t_4; __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, 31 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 2, 127); - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = 1; @@ -5126,14 +5127,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __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, 117, __pyx_L1_error) + __PYX_ERR(0, 120, __pyx_L1_error) - /* "planarity/full/graph.pyx":116 + /* "planarity/full/graph.pyx":119 * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): * if ulink != 0 and ulink != 1: # <<<<<<<<<<<<<< @@ -5142,7 +5143,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ } - /* "planarity/full/graph.pyx":120 + /* "planarity/full/graph.pyx":123 * f"Invalid link index for ulink: '{ulink}'." * ) * if vlink != 0 and vlink != 1: # <<<<<<<<<<<<<< @@ -5160,7 +5161,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p } if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":121 + /* "planarity/full/graph.pyx":124 * ) * if vlink != 0 and vlink != 1: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5169,20 +5170,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ __pyx_t_6 = NULL; - /* "planarity/full/graph.pyx":122 + /* "planarity/full/graph.pyx":125 * if vlink != 0 and vlink != 1: * raise RuntimeError( * f"Invalid link index for vlink: '{vlink}'." # <<<<<<<<<<<<<< * ) * if graphLib.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, 122, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_link_index_for_vlink; __pyx_t_5[1] = __pyx_t_3; __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, 31 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 2, 127); - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = 1; @@ -5191,14 +5192,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __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, 121, __pyx_L1_error) + __PYX_ERR(0, 124, __pyx_L1_error) - /* "planarity/full/graph.pyx":120 + /* "planarity/full/graph.pyx":123 * f"Invalid link index for ulink: '{ulink}'." * ) * if vlink != 0 and vlink != 1: # <<<<<<<<<<<<<< @@ -5207,26 +5208,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ } - /* "planarity/full/graph.pyx":124 + /* "planarity/full/graph.pyx":127 * f"Invalid link index for vlink: '{vlink}'." * ) * if graphLib.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_8 = __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 124, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error) + __pyx_t_8 = __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(__pyx_v_self->_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 127, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 127, __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, 124, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __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, 124, __pyx_L1_error) + __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, 127, __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, 124, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_t_1)) { - /* "planarity/full/graph.pyx":125 + /* "planarity/full/graph.pyx":128 * ) * if graphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5235,28 +5236,28 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ __pyx_t_4 = NULL; - /* "planarity/full/graph.pyx":126 + /* "planarity/full/graph.pyx":129 * if graphLib.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_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_u, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __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, 126, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 126, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyUnicode_From_int(__pyx_v_ulink, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "planarity/full/graph.pyx":127 + /* "planarity/full/graph.pyx":130 * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " * f"and vlink = {vlink}." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_10 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 127, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyUnicode_From_int(__pyx_v_vlink, 0, ' ', 'd'); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11[0] = __pyx_mstate_global->__pyx_kp_u_Unable_to_add_edge_u_v; __pyx_t_11[1] = __pyx_t_2; @@ -5268,7 +5269,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __pyx_t_11[7] = __pyx_t_10; __pyx_t_11[8] = __pyx_mstate_global->__pyx_kp_u_; - /* "planarity/full/graph.pyx":126 + /* "planarity/full/graph.pyx":129 * if graphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: * raise RuntimeError( * f"Unable to add edge (u, v) = ({u}, {v}) with ulink = {ulink} " # <<<<<<<<<<<<<< @@ -5276,7 +5277,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p * ) */ __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_11, 9, 29 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 15 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 13 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10) + 1, 127); - if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 126, __pyx_L1_error) + if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -5288,14 +5289,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p __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_12); __pyx_t_12 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 125, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); } __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(0, 125, __pyx_L1_error) + __PYX_ERR(0, 128, __pyx_L1_error) - /* "planarity/full/graph.pyx":124 + /* "planarity/full/graph.pyx":127 * f"Invalid link index for vlink: '{vlink}'." * ) * if graphLib.gp_AddEdge(self._theGraph, u, ulink, v, vlink) != OK: # <<<<<<<<<<<<<< @@ -5304,7 +5305,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p */ } - /* "planarity/full/graph.pyx":115 + /* "planarity/full/graph.pyx":118 * return graphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< @@ -5331,7 +5332,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_22gp_AddEdge(struct __p return __pyx_r; } -/* "planarity/full/graph.pyx":130 +/* "planarity/full/graph.pyx":133 * ) * * def gp_DeleteEdge(self, int e): # <<<<<<<<<<<<<< @@ -5379,32 +5380,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 130, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 133, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 130, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 133, __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_DeleteEdge", 0) < (0)) __PYX_ERR(0, 130, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_DeleteEdge", 0) < (0)) __PYX_ERR(0, 133, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, i); __PYX_ERR(0, 130, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, i); __PYX_ERR(0, 133, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 130, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 133, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 130, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 133, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 130, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_DeleteEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 133, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -5442,7 +5443,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DeleteEdge", 0); - /* "planarity/full/graph.pyx":131 + /* "planarity/full/graph.pyx":134 * * def gp_DeleteEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -5451,7 +5452,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 131, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -5459,15 +5460,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 131, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 131, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":132 + /* "planarity/full/graph.pyx":135 * def gp_DeleteEdge(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -5476,20 +5477,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":133 + /* "planarity/full/graph.pyx":136 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_DeleteEdge() failed: invalid edge '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_DeleteEdge_failed_invalid_edg; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 38 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 133, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -5498,14 +5499,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 132, __pyx_L1_error) + __PYX_ERR(0, 135, __pyx_L1_error) - /* "planarity/full/graph.pyx":131 + /* "planarity/full/graph.pyx":134 * * def gp_DeleteEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -5514,7 +5515,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct */ } - /* "planarity/full/graph.pyx":136 + /* "planarity/full/graph.pyx":139 * ) * * return graphLib.gp_DeleteEdge(self._theGraph, e) # <<<<<<<<<<<<<< @@ -5522,14 +5523,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct * def gp_LowerBoundEdgeStorage(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 136, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 139, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":130 + /* "planarity/full/graph.pyx":133 * ) * * def gp_DeleteEdge(self, int e): # <<<<<<<<<<<<<< @@ -5551,7 +5552,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_24gp_DeleteEdge(struct return __pyx_r; } -/* "planarity/full/graph.pyx":138 +/* "planarity/full/graph.pyx":141 * return graphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5612,7 +5613,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_LowerBoundEdgeStorage", 0); - /* "planarity/full/graph.pyx":139 + /* "planarity/full/graph.pyx":142 * * def gp_LowerBoundEdgeStorage(self): * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< @@ -5620,14 +5621,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor * def gp_UpperBoundEdgeStorage(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 139, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 142, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":138 + /* "planarity/full/graph.pyx":141 * return graphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5646,7 +5647,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor return __pyx_r; } -/* "planarity/full/graph.pyx":141 +/* "planarity/full/graph.pyx":144 * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5707,7 +5708,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundEdgeStorage", 0); - /* "planarity/full/graph.pyx":142 + /* "planarity/full/graph.pyx":145 * * def gp_UpperBoundEdgeStorage(self): * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) # <<<<<<<<<<<<<< @@ -5715,14 +5716,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor * def gp_IsEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 142, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 145, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":141 + /* "planarity/full/graph.pyx":144 * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< @@ -5741,7 +5742,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStor return __pyx_r; } -/* "planarity/full/graph.pyx":144 +/* "planarity/full/graph.pyx":147 * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< @@ -5789,32 +5790,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 144, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 147, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 144, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 147, __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_IsEdge", 0) < (0)) __PYX_ERR(0, 144, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_IsEdge", 0) < (0)) __PYX_ERR(0, 147, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, i); __PYX_ERR(0, 144, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, i); __PYX_ERR(0, 147, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 144, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 147, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 144, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 147, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 144, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_IsEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 147, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -5850,7 +5851,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_IsEdge", 0); - /* "planarity/full/graph.pyx":145 + /* "planarity/full/graph.pyx":148 * * def gp_IsEdge(self, int e): * return ( # <<<<<<<<<<<<<< @@ -5859,14 +5860,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py */ __Pyx_XDECREF(__pyx_r); - /* "planarity/full/graph.pyx":146 + /* "planarity/full/graph.pyx":149 * def gp_IsEdge(self, int e): * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and # <<<<<<<<<<<<<< * (e < self.gp_UpperBoundEdgeStorage()) and * graphLib.gp_IsEdge(self._theGraph, e) */ - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_4); @@ -5875,13 +5876,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 146, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 149, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { @@ -5891,14 +5892,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":147 + /* "planarity/full/graph.pyx":150 * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and * (e < self.gp_UpperBoundEdgeStorage()) and # <<<<<<<<<<<<<< * graphLib.gp_IsEdge(self._theGraph, e) * ) */ - __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 147, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); @@ -5907,13 +5908,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 147, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 150, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { @@ -5923,15 +5924,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":148 + /* "planarity/full/graph.pyx":151 * (e >= self.gp_LowerBoundEdgeStorage()) and * (e < self.gp_UpperBoundEdgeStorage()) and * graphLib.gp_IsEdge(self._theGraph, e) # <<<<<<<<<<<<<< * ) * */ - __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error) + __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; @@ -5940,7 +5941,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":144 + /* "planarity/full/graph.pyx":147 * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< @@ -5962,7 +5963,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __py return __pyx_r; } -/* "planarity/full/graph.pyx":151 +/* "planarity/full/graph.pyx":154 * ) * * def gp_EdgeInUse(self, int e): # <<<<<<<<<<<<<< @@ -6010,32 +6011,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 151, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 154, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 151, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 154, __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_EdgeInUse", 0) < (0)) __PYX_ERR(0, 151, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_EdgeInUse", 0) < (0)) __PYX_ERR(0, 154, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, i); __PYX_ERR(0, 151, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, i); __PYX_ERR(0, 154, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 151, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 154, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 154, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 151, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_EdgeInUse", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 154, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6073,7 +6074,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_EdgeInUse", 0); - /* "planarity/full/graph.pyx":152 + /* "planarity/full/graph.pyx":155 * * def gp_EdgeInUse(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6082,7 +6083,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6090,15 +6091,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 152, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":153 + /* "planarity/full/graph.pyx":156 * def gp_EdgeInUse(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6107,20 +6108,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":154 + /* "planarity/full/graph.pyx":157 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_EdgeInUse() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_EdgeInUse_failed_invalid_edge; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 43 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 154, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6129,14 +6130,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 153, __pyx_L1_error) + __PYX_ERR(0, 156, __pyx_L1_error) - /* "planarity/full/graph.pyx":152 + /* "planarity/full/graph.pyx":155 * * def gp_EdgeInUse(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6145,7 +6146,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ */ } - /* "planarity/full/graph.pyx":157 + /* "planarity/full/graph.pyx":160 * ) * * return graphLib.gp_EdgeInUse(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6153,14 +6154,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ * def gp_UpperBoundEdges(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 160, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":151 + /* "planarity/full/graph.pyx":154 * ) * * def gp_EdgeInUse(self, int e): # <<<<<<<<<<<<<< @@ -6182,7 +6183,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ return __pyx_r; } -/* "planarity/full/graph.pyx":159 +/* "planarity/full/graph.pyx":162 * return graphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< @@ -6243,7 +6244,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundEdges", 0); - /* "planarity/full/graph.pyx":160 + /* "planarity/full/graph.pyx":163 * * def gp_UpperBoundEdges(self): * return graphLib.gp_UpperBoundEdges(self._theGraph) # <<<<<<<<<<<<<< @@ -6251,14 +6252,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st * def gp_GetNextEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 160, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 160, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 163, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":159 + /* "planarity/full/graph.pyx":162 * return graphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< @@ -6277,7 +6278,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st return __pyx_r; } -/* "planarity/full/graph.pyx":162 +/* "planarity/full/graph.pyx":165 * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< @@ -6325,32 +6326,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 162, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 165, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 162, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 165, __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_GetNextEdge", 0) < (0)) __PYX_ERR(0, 162, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetNextEdge", 0) < (0)) __PYX_ERR(0, 165, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, i); __PYX_ERR(0, 162, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, i); __PYX_ERR(0, 165, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 162, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 165, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 162, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 165, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 162, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 165, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6388,7 +6389,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetNextEdge", 0); - /* "planarity/full/graph.pyx":163 + /* "planarity/full/graph.pyx":166 * * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6397,7 +6398,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 163, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6405,15 +6406,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 163, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":164 + /* "planarity/full/graph.pyx":167 * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6422,20 +6423,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":165 + /* "planarity/full/graph.pyx":168 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_GetNextEdge() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetNextEdge_failed_invalid_ed; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 45 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 165, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6444,14 +6445,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 164, __pyx_L1_error) + __PYX_ERR(0, 167, __pyx_L1_error) - /* "planarity/full/graph.pyx":163 + /* "planarity/full/graph.pyx":166 * * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6460,7 +6461,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ } - /* "planarity/full/graph.pyx":168 + /* "planarity/full/graph.pyx":171 * ) * * return graphLib.gp_GetNextEdge(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6468,14 +6469,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct * def gp_GetNeighbor(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 168, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 168, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 171, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":162 + /* "planarity/full/graph.pyx":165 * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< @@ -6497,7 +6498,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct return __pyx_r; } -/* "planarity/full/graph.pyx":170 +/* "planarity/full/graph.pyx":173 * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< @@ -6545,32 +6546,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 170, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 173, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 170, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 173, __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_GetNeighbor", 0) < (0)) __PYX_ERR(0, 170, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetNeighbor", 0) < (0)) __PYX_ERR(0, 173, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, i); __PYX_ERR(0, 170, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, i); __PYX_ERR(0, 173, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 170, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 173, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 170, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 173, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 170, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 173, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6608,7 +6609,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetNeighbor", 0); - /* "planarity/full/graph.pyx":171 + /* "planarity/full/graph.pyx":174 * * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6617,7 +6618,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 171, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6625,15 +6626,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 171, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":172 + /* "planarity/full/graph.pyx":175 * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6642,20 +6643,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":173 + /* "planarity/full/graph.pyx":176 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_GetNeighbor() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetNeighbor_failed_invalid_ed; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 45 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 173, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6664,14 +6665,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 172, __pyx_L1_error) + __PYX_ERR(0, 175, __pyx_L1_error) - /* "planarity/full/graph.pyx":171 + /* "planarity/full/graph.pyx":174 * * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6680,7 +6681,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ } - /* "planarity/full/graph.pyx":176 + /* "planarity/full/graph.pyx":179 * ) * * return graphLib.gp_GetNeighbor(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6688,14 +6689,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct * def gp_GetFirstEdge(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":170 + /* "planarity/full/graph.pyx":173 * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< @@ -6717,7 +6718,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct return __pyx_r; } -/* "planarity/full/graph.pyx":178 +/* "planarity/full/graph.pyx":181 * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< @@ -6765,32 +6766,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 178, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 181, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 178, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 181, __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_GetFirstEdge", 0) < (0)) __PYX_ERR(0, 178, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetFirstEdge", 0) < (0)) __PYX_ERR(0, 181, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, i); __PYX_ERR(0, 178, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, i); __PYX_ERR(0, 181, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 178, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 181, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 178, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 181, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 178, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 181, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6828,7 +6829,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetFirstEdge", 0); - /* "planarity/full/graph.pyx":179 + /* "planarity/full/graph.pyx":182 * * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -6837,7 +6838,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6845,15 +6846,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 179, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":180 + /* "planarity/full/graph.pyx":183 * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6862,20 +6863,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":181 + /* "planarity/full/graph.pyx":184 * if not self.gp_IsVertex(v): * raise RuntimeError( * f"gp_GetFirstEdge() failed: invalid vertex intex '{v}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetFirstEdge_failed_invalid_v; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 48 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 181, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6884,14 +6885,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 180, __pyx_L1_error) + __PYX_ERR(0, 183, __pyx_L1_error) - /* "planarity/full/graph.pyx":179 + /* "planarity/full/graph.pyx":182 * * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -6900,7 +6901,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ } - /* "planarity/full/graph.pyx":184 + /* "planarity/full/graph.pyx":187 * ) * * return graphLib.gp_GetFirstEdge(self._theGraph, v) # <<<<<<<<<<<<<< @@ -6908,14 +6909,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc * def gp_LowerBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 184, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 187, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":178 + /* "planarity/full/graph.pyx":181 * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< @@ -6937,7 +6938,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc return __pyx_r; } -/* "planarity/full/graph.pyx":186 +/* "planarity/full/graph.pyx":189 * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< @@ -6998,7 +6999,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_LowerBoundVertices", 0); - /* "planarity/full/graph.pyx":187 + /* "planarity/full/graph.pyx":190 * * def gp_LowerBoundVertices(self): * return graphLib.gp_LowerBoundVertices(self._theGraph) # <<<<<<<<<<<<<< @@ -7006,14 +7007,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices * def gp_UpperBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 187, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":186 + /* "planarity/full/graph.pyx":189 * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< @@ -7032,7 +7033,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices return __pyx_r; } -/* "planarity/full/graph.pyx":189 +/* "planarity/full/graph.pyx":192 * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< @@ -7093,7 +7094,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundVertices", 0); - /* "planarity/full/graph.pyx":190 + /* "planarity/full/graph.pyx":193 * * def gp_UpperBoundVertices(self): * return graphLib.gp_UpperBoundVertices(self._theGraph) # <<<<<<<<<<<<<< @@ -7101,14 +7102,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices * def gp_IsVertex(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 190, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":189 + /* "planarity/full/graph.pyx":192 * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< @@ -7127,7 +7128,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices return __pyx_r; } -/* "planarity/full/graph.pyx":192 +/* "planarity/full/graph.pyx":195 * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< @@ -7175,32 +7176,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 192, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 195, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 192, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 195, __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_IsVertex", 0) < (0)) __PYX_ERR(0, 192, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_IsVertex", 0) < (0)) __PYX_ERR(0, 195, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, i); __PYX_ERR(0, 192, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, i); __PYX_ERR(0, 195, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 192, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 195, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 192, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 195, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 192, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 195, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7236,7 +7237,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_IsVertex", 0); - /* "planarity/full/graph.pyx":193 + /* "planarity/full/graph.pyx":196 * * def gp_IsVertex(self, int v): * return ( # <<<<<<<<<<<<<< @@ -7245,14 +7246,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ */ __Pyx_XDECREF(__pyx_r); - /* "planarity/full/graph.pyx":194 + /* "planarity/full/graph.pyx":197 * def gp_IsVertex(self, int v): * return ( * (v >= self.gp_LowerBoundVertices()) and # <<<<<<<<<<<<<< * (v < self.gp_UpperBoundVertices()) and * graphLib.gp_IsVertex(self._theGraph, v) */ - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_4); @@ -7261,13 +7262,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 197, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { @@ -7277,14 +7278,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":195 + /* "planarity/full/graph.pyx":198 * return ( * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and # <<<<<<<<<<<<<< * graphLib.gp_IsVertex(self._theGraph, v) * ) */ - __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 195, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); @@ -7293,13 +7294,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 195, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 198, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { @@ -7309,15 +7310,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":196 + /* "planarity/full/graph.pyx":199 * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and * graphLib.gp_IsVertex(self._theGraph, v) # <<<<<<<<<<<<<< * ) * */ - __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 196, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) + __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 199, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; @@ -7326,7 +7327,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":192 + /* "planarity/full/graph.pyx":195 * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< @@ -7348,7 +7349,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":199 +/* "planarity/full/graph.pyx":202 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< @@ -7413,26 +7414,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_K23Search", 0); - /* "planarity/full/graph.pyx":200 + /* "planarity/full/graph.pyx":203 * * def gp_ExtendWith_K23Search(self): * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 200, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 203, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __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, 200, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __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, 200, __pyx_L1_error) + __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, 203, __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, 200, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":201 + /* "planarity/full/graph.pyx":204 * def gp_ExtendWith_K23Search(self): * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") # <<<<<<<<<<<<<< @@ -7445,14 +7446,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K23S}; __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, 201, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 201, __pyx_L1_error) + __PYX_ERR(0, 204, __pyx_L1_error) - /* "planarity/full/graph.pyx":200 + /* "planarity/full/graph.pyx":203 * * def gp_ExtendWith_K23Search(self): * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -7461,7 +7462,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear */ } - /* "planarity/full/graph.pyx":199 + /* "planarity/full/graph.pyx":202 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< @@ -7484,7 +7485,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Sear return __pyx_r; } -/* "planarity/full/graph.pyx":203 +/* "planarity/full/graph.pyx":206 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< @@ -7549,26 +7550,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_K33Search", 0); - /* "planarity/full/graph.pyx":204 + /* "planarity/full/graph.pyx":207 * * def gp_ExtendWith_K33Search(self): * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 204, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 207, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __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, 204, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 207, __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, 204, __pyx_L1_error) + __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, 207, __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, 204, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":205 + /* "planarity/full/graph.pyx":208 * def gp_ExtendWith_K33Search(self): * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") # <<<<<<<<<<<<<< @@ -7581,14 +7582,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K33S}; __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, 205, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 205, __pyx_L1_error) + __PYX_ERR(0, 208, __pyx_L1_error) - /* "planarity/full/graph.pyx":204 + /* "planarity/full/graph.pyx":207 * * def gp_ExtendWith_K33Search(self): * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -7597,7 +7598,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear */ } - /* "planarity/full/graph.pyx":203 + /* "planarity/full/graph.pyx":206 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< @@ -7620,7 +7621,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Sear return __pyx_r; } -/* "planarity/full/graph.pyx":207 +/* "planarity/full/graph.pyx":210 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< @@ -7685,26 +7686,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_K4Search", 0); - /* "planarity/full/graph.pyx":208 + /* "planarity/full/graph.pyx":211 * * def gp_ExtendWith_K4Search(self): * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with K4Search structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 211, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __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, 208, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 211, __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, 208, __pyx_L1_error) + __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, 211, __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, 208, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":209 + /* "planarity/full/graph.pyx":212 * def gp_ExtendWith_K4Search(self): * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") # <<<<<<<<<<<<<< @@ -7717,14 +7718,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K4Se}; __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, 209, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 209, __pyx_L1_error) + __PYX_ERR(0, 212, __pyx_L1_error) - /* "planarity/full/graph.pyx":208 + /* "planarity/full/graph.pyx":211 * * def gp_ExtendWith_K4Search(self): * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -7733,7 +7734,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc */ } - /* "planarity/full/graph.pyx":207 + /* "planarity/full/graph.pyx":210 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< @@ -7756,7 +7757,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc return __pyx_r; } -/* "planarity/full/graph.pyx":211 +/* "planarity/full/graph.pyx":214 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< @@ -7804,32 +7805,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_infile_name,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, 211, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 214, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 211, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 214, __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_Read", 0) < (0)) __PYX_ERR(0, 211, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Read", 0) < (0)) __PYX_ERR(0, 214, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, i); __PYX_ERR(0, 211, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, i); __PYX_ERR(0, 214, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 211, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 214, __pyx_L3_error) } __pyx_v_infile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 211, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 214, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7840,7 +7841,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 211, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 214, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_infile_name); /* function exit code */ @@ -7877,7 +7878,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_Read", 0); - /* "planarity/full/graph.pyx":213 + /* "planarity/full/graph.pyx":216 * def gp_Read(self, str infile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -7886,43 +7887,43 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ */ if (unlikely(__pyx_v_infile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 213, __pyx_L1_error) + __PYX_ERR(0, 216, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":214 + /* "planarity/full/graph.pyx":217 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') * cdef const char *FileName = encoded # <<<<<<<<<<<<<< * * if graphLib.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, 214, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 217, __pyx_L1_error) __pyx_v_FileName = __pyx_t_2; - /* "planarity/full/graph.pyx":216 + /* "planarity/full/graph.pyx":219 * cdef const char *FileName = encoded * * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"gp_Read() failed.") * */ - __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 216, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 219, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 216, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 216, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 216, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":217 + /* "planarity/full/graph.pyx":220 * * if graphLib.gp_Read(self._theGraph, FileName) != OK: * raise RuntimeError(f"gp_Read() failed.") # <<<<<<<<<<<<<< @@ -7935,14 +7936,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_Read_failed}; __pyx_t_5 = __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; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 217, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); } __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(0, 217, __pyx_L1_error) + __PYX_ERR(0, 220, __pyx_L1_error) - /* "planarity/full/graph.pyx":216 + /* "planarity/full/graph.pyx":219 * cdef const char *FileName = encoded * * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< @@ -7951,7 +7952,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ */ } - /* "planarity/full/graph.pyx":211 + /* "planarity/full/graph.pyx":214 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< @@ -7975,7 +7976,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ return __pyx_r; } -/* "planarity/full/graph.pyx":219 +/* "planarity/full/graph.pyx":222 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< @@ -8024,39 +8025,39 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,&__pyx_mstate_global->__pyx_n_u_mode,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, 219, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 222, __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, 219, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 222, __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, 219, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 222, __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_Write", 0) < (0)) __PYX_ERR(0, 219, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Write", 0) < (0)) __PYX_ERR(0, 222, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, i); __PYX_ERR(0, 219, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, i); __PYX_ERR(0, 222, __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, 219, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 222, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 219, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 222, __pyx_L3_error) } __pyx_v_outfile_name = ((PyObject*)values[0]); __pyx_v_mode = ((PyObject*)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 219, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 222, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -8067,8 +8068,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 219, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mode), (&PyUnicode_Type), 1, "mode", 1))) __PYX_ERR(0, 219, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 222, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mode), (&PyUnicode_Type), 1, "mode", 1))) __PYX_ERR(0, 222, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name, __pyx_v_mode); /* function exit code */ @@ -8112,61 +8113,61 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_Write", 0); - /* "planarity/full/graph.pyx":220 + /* "planarity/full/graph.pyx":223 * * def gp_Write(self, str outfile_name, str mode): * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" # <<<<<<<<<<<<<< * else (graphLib.WRITE_ADJMATRIX if mode == "m" * else (graphLib.WRITE_G6 if mode == "g" */ - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 220, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 223, __pyx_L1_error) if (__pyx_t_2) { - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJLIST); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 220, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJLIST); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __pyx_t_4; __pyx_t_4 = 0; } else { - /* "planarity/full/graph.pyx":221 + /* "planarity/full/graph.pyx":224 * def gp_Write(self, str outfile_name, str mode): * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" * else (graphLib.WRITE_ADJMATRIX if mode == "m" # <<<<<<<<<<<<<< * else (graphLib.WRITE_G6 if mode == "g" * else None))) */ - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 224, __pyx_L1_error) if (__pyx_t_5) { - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJMATRIX); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJMATRIX); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; } else { - /* "planarity/full/graph.pyx":222 + /* "planarity/full/graph.pyx":225 * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" * else (graphLib.WRITE_ADJMATRIX if mode == "m" * else (graphLib.WRITE_G6 if mode == "g" # <<<<<<<<<<<<<< * else None))) * if not mode_code: */ - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 225, __pyx_L1_error) if (__pyx_t_7) { - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 222, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_G6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_G6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __pyx_t_8; __pyx_t_8 = 0; } else { - /* "planarity/full/graph.pyx":223 + /* "planarity/full/graph.pyx":226 * else (graphLib.WRITE_ADJMATRIX if mode == "m" * else (graphLib.WRITE_G6 if mode == "g" * else None))) # <<<<<<<<<<<<<< @@ -8185,18 +8186,18 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __pyx_v_mode_code = __pyx_t_1; __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":224 + /* "planarity/full/graph.pyx":227 * else (graphLib.WRITE_G6 if mode == "g" * else None))) * if not mode_code: # <<<<<<<<<<<<<< * raise ValueError( * f"Invalid graph format specifier \"{mode}\" is not one of " */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 227, __pyx_L1_error) __pyx_t_5 = (!__pyx_t_2); if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":225 + /* "planarity/full/graph.pyx":228 * else None))) * if not mode_code: * raise ValueError( # <<<<<<<<<<<<<< @@ -8205,20 +8206,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ __pyx_t_4 = NULL; - /* "planarity/full/graph.pyx":226 + /* "planarity/full/graph.pyx":229 * if not mode_code: * raise ValueError( * f"Invalid graph format specifier \"{mode}\" is not one of " # <<<<<<<<<<<<<< * "'gam'." * ) */ - __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_graph_format_specifier; __pyx_t_9[1] = __pyx_t_6; __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_is_not_one_of_gam; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 32 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 22, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6)); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 226, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_10 = 1; @@ -8227,14 +8228,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 225, __pyx_L1_error) + __PYX_ERR(0, 228, __pyx_L1_error) - /* "planarity/full/graph.pyx":224 + /* "planarity/full/graph.pyx":227 * else (graphLib.WRITE_G6 if mode == "g" * else None))) * if not mode_code: # <<<<<<<<<<<<<< @@ -8243,7 +8244,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ } - /* "planarity/full/graph.pyx":231 + /* "planarity/full/graph.pyx":234 * * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -8252,44 +8253,44 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ if (unlikely(__pyx_v_outfile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 231, __pyx_L1_error) + __PYX_ERR(0, 234, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":232 + /* "planarity/full/graph.pyx":235 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: */ - __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 235, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_11; - /* "planarity/full/graph.pyx":234 + /* "planarity/full/graph.pyx":237 * cdef const char *theFileName = encoded * * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." */ - __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error) - __pyx_t_13 = __pyx_f_9planarity_4full_8graphLib_gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_12); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 237, __pyx_L1_error) + __pyx_t_13 = __pyx_f_9planarity_4full_8graphLib_gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_12); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 237, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 234, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 234, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 234, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":235 + /* "planarity/full/graph.pyx":238 * * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -8298,20 +8299,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ __pyx_t_8 = NULL; - /* "planarity/full/graph.pyx":236 + /* "planarity/full/graph.pyx":239 * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: * raise RuntimeError( * f"gp_Write() of graph to '{outfile_name}' failed." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_gp_Write_of_graph_to; __pyx_t_9[1] = __pyx_t_1; __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_failed; __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 236, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_10 = 1; @@ -8320,14 +8321,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 235, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 235, __pyx_L1_error) + __PYX_ERR(0, 238, __pyx_L1_error) - /* "planarity/full/graph.pyx":234 + /* "planarity/full/graph.pyx":237 * cdef const char *theFileName = encoded * * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< @@ -8336,7 +8337,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ } - /* "planarity/full/graph.pyx":219 + /* "planarity/full/graph.pyx":222 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< @@ -8363,7 +8364,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx return __pyx_r; } -/* "planarity/full/graph.pyx":239 +/* "planarity/full/graph.pyx":242 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< @@ -8428,26 +8429,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_DrawPlanar", 0); - /* "planarity/full/graph.pyx":240 + /* "planarity/full/graph.pyx":243 * * def gp_ExtendWith_DrawPlanar(self): * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 240, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 243, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __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, 240, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 243, __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, 240, __pyx_L1_error) + __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, 243, __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, 240, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":241 + /* "planarity/full/graph.pyx":244 * def gp_ExtendWith_DrawPlanar(self): * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") # <<<<<<<<<<<<<< @@ -8460,14 +8461,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Draw}; __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, 241, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 241, __pyx_L1_error) + __PYX_ERR(0, 244, __pyx_L1_error) - /* "planarity/full/graph.pyx":240 + /* "planarity/full/graph.pyx":243 * * def gp_ExtendWith_DrawPlanar(self): * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -8476,7 +8477,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla */ } - /* "planarity/full/graph.pyx":239 + /* "planarity/full/graph.pyx":242 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< @@ -8499,7 +8500,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla return __pyx_r; } -/* "planarity/full/graph.pyx":243 +/* "planarity/full/graph.pyx":246 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< @@ -8547,32 +8548,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,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, 243, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 246, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 243, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 246, __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_DrawPlanar_RenderToFile", 0) < (0)) __PYX_ERR(0, 243, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_DrawPlanar_RenderToFile", 0) < (0)) __PYX_ERR(0, 246, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, i); __PYX_ERR(0, 243, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, i); __PYX_ERR(0, 246, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 243, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 246, __pyx_L3_error) } __pyx_v_outfile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 243, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 246, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -8583,7 +8584,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 243, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 246, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name); /* function exit code */ @@ -8622,7 +8623,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DrawPlanar_RenderToFile", 0); - /* "planarity/full/graph.pyx":245 + /* "planarity/full/graph.pyx":248 * def gp_DrawPlanar_RenderToFile(self, str outfile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -8631,43 +8632,43 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ if (unlikely(__pyx_v_outfile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 245, __pyx_L1_error) + __PYX_ERR(0, 248, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":246 + /* "planarity/full/graph.pyx":249 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * * if graphLib.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, 246, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 249, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_2; - /* "planarity/full/graph.pyx":248 + /* "planarity/full/graph.pyx":251 * cdef const char *theFileName = encoded * * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ - __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 248, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 251, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":249 + /* "planarity/full/graph.pyx":252 * * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") # <<<<<<<<<<<<<< @@ -8675,13 +8676,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT * def gp_DrawPlanar_RenderToString(self): */ __pyx_t_4 = NULL; - __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 249, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_fi; __pyx_t_7[1] = __pyx_t_1; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 36 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 2, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 249, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = 1; @@ -8690,14 +8691,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT __pyx_t_5 = __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_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 249, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); } __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(0, 249, __pyx_L1_error) + __PYX_ERR(0, 252, __pyx_L1_error) - /* "planarity/full/graph.pyx":248 + /* "planarity/full/graph.pyx":251 * cdef const char *theFileName = encoded * * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< @@ -8706,7 +8707,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ } - /* "planarity/full/graph.pyx":243 + /* "planarity/full/graph.pyx":246 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< @@ -8731,7 +8732,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT return __pyx_r; } -/* "planarity/full/graph.pyx":251 +/* "planarity/full/graph.pyx":254 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< @@ -8813,7 +8814,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DrawPlanar_RenderToString", 0); - /* "planarity/full/graph.pyx":252 + /* "planarity/full/graph.pyx":255 * * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL # <<<<<<<<<<<<<< @@ -8822,26 +8823,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ __pyx_v_renditionString = NULL; - /* "planarity/full/graph.pyx":253 + /* "planarity/full/graph.pyx":256 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to C string.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 253, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 256, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __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, 253, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __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, 253, __pyx_L1_error) + __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, 256, __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, 253, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":254 + /* "planarity/full/graph.pyx":257 * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: * raise RuntimeError(f"Failed to render embedding to C string.") # <<<<<<<<<<<<<< @@ -8854,14 +8855,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_C}; __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, 254, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 254, __pyx_L1_error) + __PYX_ERR(0, 257, __pyx_L1_error) - /* "planarity/full/graph.pyx":253 + /* "planarity/full/graph.pyx":256 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< @@ -8870,7 +8871,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ } - /* "planarity/full/graph.pyx":256 + /* "planarity/full/graph.pyx":259 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8887,7 +8888,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "planarity/full/graph.pyx":257 + /* "planarity/full/graph.pyx":260 * * try: * return renditionString.decode('ascii') # <<<<<<<<<<<<<< @@ -8895,14 +8896,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * raise RuntimeError( */ __Pyx_XDECREF(__pyx_r); - __pyx_t_10 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(0, 257, __pyx_L7_error) - __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_10, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 257, __pyx_L7_error) + __pyx_t_10 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(0, 260, __pyx_L7_error) + __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_10, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 260, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L11_try_return; - /* "planarity/full/graph.pyx":256 + /* "planarity/full/graph.pyx":259 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8915,7 +8916,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":258 + /* "planarity/full/graph.pyx":261 * try: * return renditionString.decode('ascii') * except Exception as string_conversion_error: # <<<<<<<<<<<<<< @@ -8925,7 +8926,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __pyx_t_1 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception)))); if (__pyx_t_1) { __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToString", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 258, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 261, __pyx_L9_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); @@ -8933,7 +8934,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __pyx_v_string_conversion_error = __pyx_t_3; /*try:*/ { - /* "planarity/full/graph.pyx":259 + /* "planarity/full/graph.pyx":262 * return renditionString.decode('ascii') * except Exception as string_conversion_error: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -8946,11 +8947,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_mstate_global->__pyx_kp_u_Failed_to_convert_C_string_to_Py}; __pyx_t_11 = __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_12); __pyx_t_12 = 0; - if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 259, __pyx_L18_error) + if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 262, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_11); } - /* "planarity/full/graph.pyx":261 + /* "planarity/full/graph.pyx":264 * raise RuntimeError( * "Failed to convert C string to Python string." * ) from string_conversion_error # <<<<<<<<<<<<<< @@ -8959,10 +8960,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ __Pyx_Raise(__pyx_t_11, 0, 0, __pyx_v_string_conversion_error); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __PYX_ERR(0, 259, __pyx_L18_error) + __PYX_ERR(0, 262, __pyx_L18_error) } - /* "planarity/full/graph.pyx":258 + /* "planarity/full/graph.pyx":261 * try: * return renditionString.decode('ascii') * except Exception as string_conversion_error: # <<<<<<<<<<<<<< @@ -9005,7 +9006,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } goto __pyx_L9_except_error; - /* "planarity/full/graph.pyx":256 + /* "planarity/full/graph.pyx":259 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -9027,7 +9028,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } } - /* "planarity/full/graph.pyx":263 + /* "planarity/full/graph.pyx":266 * ) from string_conversion_error * finally: * free(renditionString) # <<<<<<<<<<<<<< @@ -9079,7 +9080,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } } - /* "planarity/full/graph.pyx":251 + /* "planarity/full/graph.pyx":254 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< @@ -9103,7 +9104,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT return __pyx_r; } -/* "planarity/full/graph.pyx":265 +/* "planarity/full/graph.pyx":268 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< @@ -9168,26 +9169,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_Outerplanarity", 0); - /* "planarity/full/graph.pyx":266 + /* "planarity/full/graph.pyx":269 * * def gp_ExtendWith_Outerplanarity(self): * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 266, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 269, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __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, 266, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 269, __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, 266, __pyx_L1_error) + __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, 269, __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, 266, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":267 + /* "planarity/full/graph.pyx":270 * def gp_ExtendWith_Outerplanarity(self): * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") # <<<<<<<<<<<<<< @@ -9200,14 +9201,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Oute}; __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, 267, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 267, __pyx_L1_error) + __PYX_ERR(0, 270, __pyx_L1_error) - /* "planarity/full/graph.pyx":266 + /* "planarity/full/graph.pyx":269 * * def gp_ExtendWith_Outerplanarity(self): * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -9216,7 +9217,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl */ } - /* "planarity/full/graph.pyx":265 + /* "planarity/full/graph.pyx":268 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< @@ -9239,7 +9240,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerpl return __pyx_r; } -/* "planarity/full/graph.pyx":269 +/* "planarity/full/graph.pyx":272 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< @@ -9304,26 +9305,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_Planarity", 0); - /* "planarity/full/graph.pyx":270 + /* "planarity/full/graph.pyx":273 * * def gp_ExtendWith_Planarity(self): * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 270, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 273, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __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, 270, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 273, __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, 270, __pyx_L1_error) + __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, 273, __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, 270, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":271 + /* "planarity/full/graph.pyx":274 * def gp_ExtendWith_Planarity(self): * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") # <<<<<<<<<<<<<< @@ -9336,14 +9337,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Plan}; __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, 271, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 271, __pyx_L1_error) + __PYX_ERR(0, 274, __pyx_L1_error) - /* "planarity/full/graph.pyx":270 + /* "planarity/full/graph.pyx":273 * * def gp_ExtendWith_Planarity(self): * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -9352,7 +9353,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari */ } - /* "planarity/full/graph.pyx":269 + /* "planarity/full/graph.pyx":272 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< @@ -9375,7 +9376,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari return __pyx_r; } -/* "planarity/full/graph.pyx":273 +/* "planarity/full/graph.pyx":276 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< @@ -9423,32 +9424,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_embedFlags,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, 273, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 276, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 273, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 276, __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_Embed", 0) < (0)) __PYX_ERR(0, 273, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Embed", 0) < (0)) __PYX_ERR(0, 276, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, i); __PYX_ERR(0, 273, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, i); __PYX_ERR(0, 276, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 273, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 276, __pyx_L3_error) } - __pyx_v_embedFlags = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_embedFlags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 273, __pyx_L3_error) + __pyx_v_embedFlags = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_embedFlags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 276, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 273, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 276, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -9485,51 +9486,51 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_Embed", 0); - /* "planarity/full/graph.pyx":274 + /* "planarity/full/graph.pyx":277 * * def gp_Embed(self, int embedFlags) -> int: * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< * if embed_result != OK and embed_result != NONEMBEDDABLE: * raise RuntimeError("Failed to perform embed operation.") */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 277, __pyx_L1_error) __pyx_v_embed_result = __pyx_t_1; - /* "planarity/full/graph.pyx":275 + /* "planarity/full/graph.pyx":278 * def gp_Embed(self, int embedFlags) -> int: * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to perform embed operation.") * */ - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 275, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_6) { } else { __pyx_t_2 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } - __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error) + __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 275, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_2)) { - /* "planarity/full/graph.pyx":276 + /* "planarity/full/graph.pyx":279 * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: * raise RuntimeError("Failed to perform embed operation.") # <<<<<<<<<<<<<< @@ -9542,14 +9543,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_to_perform_embed_operatio}; __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_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 276, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 276, __pyx_L1_error) + __PYX_ERR(0, 279, __pyx_L1_error) - /* "planarity/full/graph.pyx":275 + /* "planarity/full/graph.pyx":278 * def gp_Embed(self, int embedFlags) -> int: * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< @@ -9558,7 +9559,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx */ } - /* "planarity/full/graph.pyx":278 + /* "planarity/full/graph.pyx":281 * raise RuntimeError("Failed to perform embed operation.") * * return embed_result # <<<<<<<<<<<<<< @@ -9566,14 +9567,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 278, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 281, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":273 + /* "planarity/full/graph.pyx":276 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< @@ -9594,7 +9595,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx return __pyx_r; } -/* "planarity/full/graph.pyx":280 +/* "planarity/full/graph.pyx":283 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< @@ -9643,39 +9644,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, 280, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 283, __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, 280, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 283, __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, 280, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 283, __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, 280, __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, 283, __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, 280, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, i); __PYX_ERR(0, 283, __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, 280, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 283, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 280, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 283, __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, 280, __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, 283, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 280, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 283, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -9686,7 +9687,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, 280, __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, 283, __pyx_L1_error) __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultIntegrity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_copy_of_orig_graph, __pyx_v_embed_result); /* function exit code */ @@ -9722,51 +9723,51 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_TestEmbedResultIntegrity", 0); - /* "planarity/full/graph.pyx":281 + /* "planarity/full/graph.pyx":284 * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: * check_result = graphLib.gp_TestEmbedResultIntegrity( # <<<<<<<<<<<<<< * self._theGraph, copy_of_orig_graph._theGraph, embed_result * ) */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 281, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 284, __pyx_L1_error) __pyx_v_check_result = __pyx_t_1; - /* "planarity/full/graph.pyx":284 + /* "planarity/full/graph.pyx":287 * 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_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_6) { } else { __pyx_t_2 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } - __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_2)) { - /* "planarity/full/graph.pyx":285 + /* "planarity/full/graph.pyx":288 * ) * if check_result != OK and check_result != NONEMBEDDABLE: * raise RuntimeError("Failed embed integrity check.") # <<<<<<<<<<<<<< @@ -9779,14 +9780,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_embed_integrity_check}; __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_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 285, __pyx_L1_error) + __PYX_ERR(0, 288, __pyx_L1_error) - /* "planarity/full/graph.pyx":284 + /* "planarity/full/graph.pyx":287 * self._theGraph, copy_of_orig_graph._theGraph, embed_result * ) * if check_result != OK and check_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< @@ -9795,20 +9796,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt */ } - /* "planarity/full/graph.pyx":287 + /* "planarity/full/graph.pyx":290 * raise RuntimeError("Failed embed integrity check.") * * return check_result # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 287, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":280 + /* "planarity/full/graph.pyx":283 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< @@ -10259,15 +10260,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ #if CYTHON_USE_TYPE_SPECS - __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_5graph_Graph_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph)) __PYX_ERR(0, 30, __pyx_L1_error) - if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_5graph_Graph_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9planarity_4full_5graph_Graph_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph)) __PYX_ERR(0, 33, __pyx_L1_error) + if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9planarity_4full_5graph_Graph_spec, __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 33, __pyx_L1_error) #else __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph = &__pyx_type_9planarity_4full_5graph_Graph; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS - if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 33, __pyx_L1_error) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph); @@ -10277,8 +10278,8 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) { __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph->tp_getattro = PyObject_GenericGetAttr; } #endif - if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Graph, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) - if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Graph, (PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 33, __pyx_L1_error) + if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9planarity_4full_5graph_Graph) < (0)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -10637,8 +10638,8 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * * * OK = graphLib.OK # <<<<<<<<<<<<<< - * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT * NONEMBEDDABLE = graphLib.NONEMBEDDABLE + * NOTOK = graphLib.NOTOK */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -10651,695 +10652,710 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); /* "planarity/full/graph.pyx":17 * * OK = graphLib.OK - * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< - * NONEMBEDDABLE = graphLib.NONEMBEDDABLE + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< * NOTOK = graphLib.NOTOK + * */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":18 * OK = graphLib.OK - * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = graphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< - * NOTOK = graphLib.NOTOK - * NIL = graphLib.NIL + * NONEMBEDDABLE = graphLib.NONEMBEDDABLE + * NOTOK = graphLib.NOTOK # <<<<<<<<<<<<<< + * + * TRUE = graphLib.TRUE */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NOTOK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_4) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_4) < (0)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":19 - * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = graphLib.NONEMBEDDABLE - * NOTOK = graphLib.NOTOK # <<<<<<<<<<<<<< - * NIL = graphLib.NIL + /* "planarity/full/graph.pyx":20 + * NOTOK = graphLib.NOTOK + * + * TRUE = graphLib.TRUE # <<<<<<<<<<<<<< + * FALSE = graphLib.FALSE * */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_TRUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 19, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TRUE, __pyx_t_2) < (0)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":20 - * NONEMBEDDABLE = graphLib.NONEMBEDDABLE - * NOTOK = graphLib.NOTOK - * NIL = graphLib.NIL # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":21 * - * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR + * TRUE = graphLib.TRUE + * FALSE = graphLib.FALSE # <<<<<<<<<<<<<< + * + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NIL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_FALSE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_4) < (0)) __PYX_ERR(0, 20, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_FALSE, __pyx_t_4) < (0)) __PYX_ERR(0, 21, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "planarity/full/graph.pyx":23 + * FALSE = graphLib.FALSE + * + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< + * + * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR +*/ + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":22 - * NIL = graphLib.NIL + /* "planarity/full/graph.pyx":25 + * AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT * * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_4) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":23 + /* "planarity/full/graph.pyx":26 * * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_4) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 26, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":24 + /* "planarity/full/graph.pyx":27 * EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 24, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_4) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":25 + /* "planarity/full/graph.pyx":28 * EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 * EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_4) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 28, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":26 + /* "planarity/full/graph.pyx":29 * EMBEDFLAGS_OUTERPLANAR = graphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 * */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 26, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_4) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":27 + /* "planarity/full/graph.pyx":30 * EMBEDFLAGS_SEARCHFORK23 = graphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = graphLib.EMBEDFLAGS_SEARCHFORK33 * EMBEDFLAGS_SEARCHFORK4 = graphLib.EMBEDFLAGS_SEARCHFORK4 # <<<<<<<<<<<<<< * * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_4) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":41 + /* "planarity/full/graph.pyx":44 * graphLib.gp_Free(&self._theGraph) * * def gp_InitGraph(self, int n): # <<<<<<<<<<<<<< * if graphLib.gp_InitGraph(self._theGraph, n) != OK: * raise RuntimeError(f"gp_InitGraph() failed.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_5gp_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[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_5gp_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[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_InitGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 41, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_InitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":45 + /* "planarity/full/graph.pyx":48 * raise RuntimeError(f"gp_InitGraph() failed.") * * def gp_ReinitGraph(self): # <<<<<<<<<<<<<< * graphLib.gp_ReinitGraph(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_7gp_ReinitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ReinitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_7gp_ReinitGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_ReinitGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ReinitGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 45, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ReinitGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 48, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":48 + /* "planarity/full/graph.pyx":51 * graphLib.gp_ReinitGraph(self._theGraph) * * def gp_EnsureEdgeCapacity(self, int new_edge_capacity): # <<<<<<<<<<<<<< * if graphLib.gp_EnsureEdgeCapacity(self._theGraph, new_edge_capacity) != OK: * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_9gp_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[2])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 48, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_9gp_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[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_t_4) < (0)) __PYX_ERR(0, 48, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":54 + /* "planarity/full/graph.pyx":57 * f"{new_edge_capacity}.") * * def gp_GetEdgeCapacity(self): # <<<<<<<<<<<<<< * return graphLib.gp_GetEdgeCapacity(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_11gp_GetEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_11gp_GetEdgeCapacity, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetEdgeCapacity, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetEdgeCapacity, __pyx_t_4) < (0)) __PYX_ERR(0, 54, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetEdgeCapacity, __pyx_t_2) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":57 + /* "planarity/full/graph.pyx":60 * return graphLib.gp_GetEdgeCapacity(self._theGraph) * * def gp_GetN(self)-> int: # <<<<<<<<<<<<<< * """ * Returns the number of vertices in the graph. */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 57, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_13gp_GetN, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetN, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 60, __pyx_L1_error) + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_13gp_GetN, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetN, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_t_2) < (0)) __PYX_ERR(0, 57, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetN, __pyx_t_4) < (0)) __PYX_ERR(0, 60, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":66 + /* "planarity/full/graph.pyx":69 * return graphLib.gp_GetN(self._theGraph) * * def gp_CopyGraph(self, Graph src_graph): # <<<<<<<<<<<<<< * # NOTE: this is interpreting the self as the dstGraph, i.e. copying * # the Graph wrapper that is passed in as the srcGraph */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_15gp_CopyGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_CopyGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_15gp_CopyGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_CopyGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_CopyGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 66, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_CopyGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 69, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":90 + /* "planarity/full/graph.pyx":93 * raise RuntimeError(f"gp_CopyGraph() failed.") * * def gp_DupGraph(self) -> Graph: # <<<<<<<<<<<<<< * cdef graphLib.graphP theGraph_dup = graphLib.gp_DupGraph(self._theGraph) * if theGraph_dup == NULL: */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Graph) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_17gp_DupGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DupGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Graph) < (0)) __PYX_ERR(0, 93, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_17gp_DupGraph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DupGraph, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DupGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 90, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DupGraph, __pyx_t_2) < (0)) __PYX_ERR(0, 93, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":101 + /* "planarity/full/graph.pyx":104 * return new_graph * * def gp_FindEdge(self, int u, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(u): * raise RuntimeError(f"'{u}' is not a valid vertex label.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_19gp_FindEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_FindEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_19gp_FindEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_FindEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_FindEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 101, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_FindEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 104, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":109 + /* "planarity/full/graph.pyx":112 * return graphLib.gp_FindEdge(self._theGraph, u, v) * * def gp_GetVertexDegree(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError(f"'{v}' is not a valid vertex label.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_21gp_GetVertexDegree, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetVertexDegree, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_21gp_GetVertexDegree, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetVertexDegree, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetVertexDegree, __pyx_t_4) < (0)) __PYX_ERR(0, 109, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetVertexDegree, __pyx_t_2) < (0)) __PYX_ERR(0, 112, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":115 + /* "planarity/full/graph.pyx":118 * return graphLib.gp_GetVertexDegree(self._theGraph, v) * * def gp_AddEdge(self, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< * if ulink != 0 and ulink != 1: * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_23gp_AddEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_AddEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_23gp_AddEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_AddEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_AddEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 115, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_AddEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 118, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":130 + /* "planarity/full/graph.pyx":133 * ) * * def gp_DeleteEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_25gp_DeleteEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DeleteEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_25gp_DeleteEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DeleteEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DeleteEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 130, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DeleteEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 133, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":138 + /* "planarity/full/graph.pyx":141 * return graphLib.gp_DeleteEdge(self._theGraph, e) * * def gp_LowerBoundEdgeStorage(self): # <<<<<<<<<<<<<< * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_27gp_LowerBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 138, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_27gp_LowerBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_t_4) < (0)) __PYX_ERR(0, 138, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 141, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":141 + /* "planarity/full/graph.pyx":144 * return graphLib.gp_LowerBoundEdgeStorage(self._theGraph) * * def gp_UpperBoundEdgeStorage(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdgeStorage, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_t_4) < (0)) __PYX_ERR(0, 141, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 144, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":144 + /* "planarity/full/graph.pyx":147 * return graphLib.gp_UpperBoundEdgeStorage(self._theGraph) * * def gp_IsEdge(self, int e): # <<<<<<<<<<<<<< * return ( * (e >= self.gp_LowerBoundEdgeStorage()) and */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 144, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 147, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":151 + /* "planarity/full/graph.pyx":154 * ) * * def gp_EdgeInUse(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EdgeInUse, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_EdgeInUse, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EdgeInUse, __pyx_t_4) < (0)) __PYX_ERR(0, 151, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_EdgeInUse, __pyx_t_2) < (0)) __PYX_ERR(0, 154, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":159 + /* "planarity/full/graph.pyx":162 * return graphLib.gp_EdgeInUse(self._theGraph, e) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundEdges(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_4)) __PYX_ERR(0, 159, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_2)) __PYX_ERR(0, 162, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_4) < (0)) __PYX_ERR(0, 159, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":162 + /* "planarity/full/graph.pyx":165 * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 162, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 165, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":170 + /* "planarity/full/graph.pyx":173 * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 170, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_4) < (0)) __PYX_ERR(0, 170, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_2) < (0)) __PYX_ERR(0, 173, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":178 + /* "planarity/full/graph.pyx":181 * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError( */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 178, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_4) < (0)) __PYX_ERR(0, 178, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 181, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":186 + /* "planarity/full/graph.pyx":189 * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< * return graphLib.gp_LowerBoundVertices(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_4) < (0)) __PYX_ERR(0, 186, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 189, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":189 + /* "planarity/full/graph.pyx":192 * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundVertices(self._theGraph) * */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 189, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_4) < (0)) __PYX_ERR(0, 189, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":192 + /* "planarity/full/graph.pyx":195 * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< * return ( * (v >= self.gp_LowerBoundVertices()) and */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_4) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_2) < (0)) __PYX_ERR(0, 195, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":199 + /* "planarity/full/graph.pyx":202 * ) * * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K23Search structures.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_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[22])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 199, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_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[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_4) < (0)) __PYX_ERR(0, 199, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_2) < (0)) __PYX_ERR(0, 202, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":203 + /* "planarity/full/graph.pyx":206 * raise RuntimeError("Failed to extend graph with K23Search structures.") * * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K33Search structures.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_51gp_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[23])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 203, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_51gp_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[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 206, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_4) < (0)) __PYX_ERR(0, 203, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_2) < (0)) __PYX_ERR(0, 206, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":207 + /* "planarity/full/graph.pyx":210 * raise RuntimeError("Failed to extend graph with K33Search structures.") * * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with K4Search structures.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_53gp_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[24])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_53gp_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[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_4) < (0)) __PYX_ERR(0, 207, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_2) < (0)) __PYX_ERR(0, 210, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":211 + /* "planarity/full/graph.pyx":214 * raise RuntimeError("Failed to extend graph with K4Search structures.") * * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = infile_name.encode('utf-8') */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_4) < (0)) __PYX_ERR(0, 211, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_2) < (0)) __PYX_ERR(0, 214, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":219 + /* "planarity/full/graph.pyx":222 * raise RuntimeError(f"gp_Read() failed.") * * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_4) < (0)) __PYX_ERR(0, 219, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_2) < (0)) __PYX_ERR(0, 222, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":239 + /* "planarity/full/graph.pyx":242 * ) * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_59gp_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[27])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_59gp_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[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_4) < (0)) __PYX_ERR(0, 239, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_2) < (0)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":243 + /* "planarity/full/graph.pyx":246 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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_4)) __PYX_ERR(0, 243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_4) < (0)) __PYX_ERR(0, 243, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_2) < (0)) __PYX_ERR(0, 246, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":251 + /* "planarity/full/graph.pyx":254 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_4) < (0)) __PYX_ERR(0, 251, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_2) < (0)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":265 + /* "planarity/full/graph.pyx":268 * free(renditionString) * * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_65gp_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[30])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_65gp_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[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_4) < (0)) __PYX_ERR(0, 265, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_2) < (0)) __PYX_ERR(0, 268, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":269 + /* "planarity/full/graph.pyx":272 * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with Planarity structures.") */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_67gp_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[31])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_67gp_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[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_4) < (0)) __PYX_ERR(0, 269, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_2) < (0)) __PYX_ERR(0, 272, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":273 + /* "planarity/full/graph.pyx":276 * raise RuntimeError("Failed to extend graph with Planarity structures.") * * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) * if embed_result != OK and embed_result != NONEMBEDDABLE: */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 273, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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, 273, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 276, __pyx_L1_error) + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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_4)) __PYX_ERR(0, 276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Embed, __pyx_t_2) < (0)) __PYX_ERR(0, 273, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Embed, __pyx_t_4) < (0)) __PYX_ERR(0, 276, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":280 + /* "planarity/full/graph.pyx":283 * return embed_result * * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< * check_result = graphLib.gp_TestEmbedResultIntegrity( * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 280, __pyx_L1_error) - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 283, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 283, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_t_4) < (0)) __PYX_ERR(0, 280, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 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, 283, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___reduce_cython, 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_4)) __PYX_ERR(1, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___reduce_cython, 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(1, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(1, 1, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(1, 1, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":3 * def __reduce_cython__(self): @@ -11347,23 +11363,23 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 3, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(1, 3, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(1, 3, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graph.pyx":1 * #!/usr/bin/env python # <<<<<<<<<<<<<< * # cython: embedsignature=True * """ */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_4) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /*--- Wrapped vars code ---*/ @@ -11426,39 +11442,39 @@ 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: 10; } index[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{27},{13},{20},{33},{30},{24},{27},{14},{3},{13},{5},{2},{20},{13},{15},{8},{1},{18},{12},{18},{18},{1},{10},{12},{7},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{7},{14},{14},{18},{12},{9},{11},{24},{21},{7},{14},{27},{24},{18},{21},{8},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{17},{9},{12},{14},{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},{937},{38},{27},{14},{27},{27},{130},{14},{44},{44},{44},{45},{42},{69},{117},{27},{28},{80},{14},{114},{39},{11},{44},{50},{44},{44},{9},{64},{57},{49}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2345 bytes) */ -const char* const cstring = "(\265/\375`\315\026\375H\000j^\350\023F\000\221\272\001\374?\337{\215:\326\267\216\257Q\307\327\250\343k\324\261~\034\356\215HdJ\266T\252O\336>'O\212\303\n\343}\257\377\317\207\246\335\347@\377\346|a\025\326\367\274\262\230\334=\234w?\013\2117\331\001\022\001'\001,\001\030\304\365|\272\256\302\365p?j\327CV\270:\006\352\013\2029|e\216\302\265~\335\306.^=\313^\327\262\354~O\316\256\347\271\365\321>\314&]\333\377\323}\203\267\303_\344\207\337\213\364\327\377O\263\320=_\321\006Q\210\252\244\272\274\353\377\355P\277v\250\301\321\375Y\366\257\376bJs1\245\277N\212\276\326\335\021\362\3324\310\367m\301w\010\341v\275a\373\323\243\277?\243P()\225\036U\356\010\337\337k\360\2025~\372\200\332\305\016\363\376\233\357\373E~\3756\351.\014\354\272sq\377,\316\272\010\353zT\215]\177\362D\024\222}=\353V\010\303\010\257;\371?\262g\236C\225J\356\244+\373[\345\312\306\334c\027\344\372\3334\027e\377\246\212\361\335\277\277\243\373\273\256q\361\273\342o\361i\331wo\177\367\230\376|\277f\372\202:\334\331\364\t\273\213\030&\342\026_~\351/\367\217\371\306\341\327\261\327|\177R\354\342\367\021\367\307o>g\r&&N,\227G\302\325:\241D\220<\\r\235X)0\315\302\377\333$\333M\205\361\210\223\021'\256\223T\tU\342\221R')\324)\345\307\021\345\3445\353{\355\332^\177[\307r\027\177\213\024K\272V\021Q^\367\230&\225\260\245\3706\251D\241\224\226\350ba\020\364~\376\376k\217\361\367\321\263\234\322\3416\211B\254\023S\210\021\313+\265X%\027\312\t\313Ky(U\212\307\"\341\226\211\2072\221J%$J\256\023\211\023\n\237p\235F\236\312\033\341\222\t\251\204]\036\371\361\201\304v\033?\"aH\302D0\376\302\274k\273\377\020N\202\027c\375\221\240\356\030\337\037\222\031\246\301+r\320\357O7\313\020>\241~\345\360\346\256\203\211\177\367\0240k\226\212N\235l]|\311b[\247\276M\177\337\267\351k\223\357\366\367\227\307<\352\244\347\235G\341\247\221\354\366\035)\351\257CM\372\2500\302c\354\213}`\267\323~\203\001)\t\372\317|\316\270\2544\025\304*m\200""\272N\357\214\221\325\225\352!\247\036\024L\215y\222\246\007\246\005\304\004`zX\255\234\365\262\242R\221\351`\203]\225 +\0046\332\313\003N\373\001\211h.\247\005I\300r\312~\361(`%\224~\345\200\201u\265\226c\345\\@gr\027C\275xHJq\363\263\342\231\247\021\nU\366\\!o\035k\273\232N\232\033\005\243\337g\341O\275\312p\273\216\035\223\306\027\342\213\312\327\375\ny\372\031\005Sz\022\265\355\217i#\340\312I?dCE4&s\034?zX\371K}q\031\220\017\331\204)\036\032_Qi#\320B\206\363\244\330\322\352\231\0209\003\3774)\352\332R\020\243FzU\360\256\202P\252\323f\366\326R]\037\367\242\016\034\341\207\2754\266\1772\275\314\031}\326[\332\342j\360\330\261\334Vxo\223\341\234%\017\362sU\356R\233I\207\203G\317=;A\254,\231 \216\375\253\026d\027\200\037\325\367\262\032\201\207\246\360\340\217(\355\367KT\260,r\r\010\375\307\317F\342\3459]b\357\230\376\305\352\317\002o\005\001\353\251\332'\t\200\304\010\223\340m\025\371\307\261)5\364\213\265\022^o\214\365;\201\352\035\003Ph\204\037\254_sp\320\352\3514\370W\201e\326\004\355GB^\240d\345\217\032x\363\361j\003l\235\327W\304y\032\312\014f\253\364\241\026\204v\324e\271\033k~\210&\002\326\334&\201\330=B\213\361\\\300\034-\006Z\370\013\314\007\2205S\311F\221.\002\016P\256\021K\273\253\206n\306+Q\377\222\371f\310h""\t\204\373q\346\355|\222h\360b=\001\031P\321S\240\240\005\320\013\020\265\026\010\214v\377%?\004\316\2644`{\210\255L\364\261*\364\010\202\336\371\251\000\205O\206\t\371\033\206\013\036\027s\006\242\036-\224\337\344\360DK\235\207B\203\272\202O\322\243\306\346\036/\035\345\2161,\\\037c\234\350\327\223\353}r\330,U\207\311\201\224\326\"Z`\357\241\263\233\020B\242<\367\032$\207oN?\373b\r5\3507\365\270\345?\275\003i\241\251\023\316\"\320\204\245\247-\317\226\301\2467\010\276s\016\010\026r\tD\211\304\220\371\252\264\256\375\332\252\322\244A\037\332\3255)\004\254\254\021\224\272C\355\303H\321\216a \002\355c#O\317\330\335u! \221L+\025k\275\205\354\264\217r\022\344\003\202AmA\234\311w}\262\230\ngI!\262\027\334\236tt\031(\tg\221F\372\334ZF\253\243=\300jI\"\3447jb\235\367\231\000R\217\3572\003"; - PyObject *data = __Pyx_DecompressString(cstring, 2345, 3); + const struct { const unsigned int length: 10; } index[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{5},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{27},{13},{20},{33},{30},{24},{27},{14},{13},{5},{2},{20},{4},{13},{15},{8},{1},{18},{12},{18},{18},{1},{10},{12},{7},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{7},{14},{14},{18},{12},{9},{11},{24},{21},{7},{14},{27},{24},{18},{21},{8},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{17},{9},{12},{14},{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},{937},{38},{27},{14},{27},{27},{130},{14},{44},{44},{44},{45},{42},{69},{117},{27},{28},{80},{14},{114},{39},{11},{44},{50},{44},{44},{9},{64},{57},{49}}; + #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2348 bytes) */ +const char* const cstring = "(\265/\375`\323\026\025I\000\212^\360\023F\000\221\272\001\374?\337{\215:\326\267\216\257Q\307\327\250\343k\324\261~\034\356\215HdJ\266T\252O\336>'O\212\303\n\343}\257\377\317\207\246\335\347@\377\346|a\025\326\367\274\262\230\334=\234w?\013\2117\331\001\022\001(\001+\001~\203\030\304\365|\272\256\302\365p?j\327CV\270:\006\352\013\2029|e\216\302\265~\335\306.^=\313^\327\262\354~O\316\256\347\271\365\321>\314&]\333\377\323}\203\267\303_\344\240v\261\303\274\377\346\373~\221_\277M\272\013\003\273\356\\\334?\213\263.\302\272\036Uc\327\237<\021\205d_\317\272\025\3020\302\353N\376\217\354\231\347P\245\222;\351\312\376V\271\2621\367\330\005\271\3766\315E\331\277\251b|\367\357\357\350\376\256k\\\374\256\370[|Z\366\335\333\337=\246?\337\257\231\276\240\016w6}\002\030&\342\026_~\351/\367\217\371\306\341\327\261\327|\177R\354\342\367\021\367\307o>g\r&&N,\227G\302\325:\241D\220<\\r\235X)%\024\226\013\246Y\370\177\233d\273\2510\036q2\342\304u\222*\241JL\215y\222\246\007\246\005\304\004`zX\255\234\365\262\242R\221\351`\203]\225 +\0046\332\313\003N\373\001\211h.\247\005I\300r\312~\361(`%\224~\345\200\201u\265\226N7\362\256\273|\345\236\247!\031a\350JEjI\204L\315\313/\264XC\304\021x\3716\311\212\335#\264\216\247\305\riq\220\350\037\352|0X\363\225\334\212\364\032\360\003!H\342\277v\325p\315x`\352\2173?\016\031-\301h?\316\274-M\022\025^\3142 \317T\264\036\010Z\300\275\000Qk\211\300z'/\251+\260\244\245Q\333Cn\365\243\017""\002\241G\020T\314O\005(\177\262\010\244\337\004n\274]\2143\004\365A\241\374&\207&Z\352\030\024\n\362\n0\311\217\232\017\367(\351(\267\306\360\316\372\023\003\036?\235\254\367\261aS\255\312%\267\251\371K\323\002\276\017\361n\302\021r\362\260W\224\234\274\271\375\350\213U\324\240\036\352!\313\337z>\362\241['\234@\300\tKM[HZ\376\207\336 \370\356d@ZHC w$\306\307\277\242}\375Z\233O\r\025z\321\256h\2232\300\244\021\0172Q\204;\326\036\014\027\355\033f#\22096xB\215][\027\001yb\332Yq\350-n\247\325\225\225 \027\020\005j;\342\036\276\353\223\r\2504\225x\242$\3019\247\243\221\201\223p\000\351\240\317\255e\264:\332\003\254\366!B~c&\326y\237\t \365\271]Q"; + PyObject *data = __Pyx_DecompressString(cstring, 2348, 3); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (2517 bytes) */ -const char* const cstring = "BZh91AY&SY\020U\315\310\000\001\251\377\377\355\376\377\347\377\377\377\177\277\377\377\376\277\377\377\377\300@@@@@@@@@@@@\000@\000`\t\372\357\275\346\257\023\236\336\273\267\255\3578\352Atb!B]e\367\301\360%\021M#(fhj4\361O$\324\311\350\236S\3216\246\2154\323@d\0324\000\006\200\006\215\250\014\203b\232zj\t$\205O\362\230&\223\311OM@6\240\007\250\320\0004\320\003@\000\000\000\001\241\240\006\200\003S\310\202MSzBd\310\014\232\03212\r\000\000\000\003@\000\r\000\006\200dh\000$(\"\236\225=\023=\032\023je=\023&CF#\312\000\000\000\000\000\000\000\006\200\000\004D\246F\206Fi42h0#FFFC&M\006\000\023L\201\220\302m\000\000\023\324\300\230\t\024!\240\020\023\023M*{)\372\021\251\264\3212F\217SL\215\032\000\310\030\02020ji\210\032\032\006A\253\004\002c2!Sv\306g\247\273G\207\267\325\227\t\346MBQ\"'\236Q\006\244|V\205j'\234\024\271\374\334\264\026\356 \347\366\343X\342n\253[|\rF]\272\r%I\274\211\200\326^\300Cm\214\032i\241\264\306\330\323KR\3024\253n\357PJ\3704\222\211evH-\251o\r\360$\010\205\031\245\204\311\030\346\266&X\363\241\273\004\224\324%0E9\007\313\"O)\2652\236\t\366\215\\\344\254BW\"\"\003\004\2527K\036\275\004\325%A]*\306\256a\261'\014\014\335G4\037y\326\001\225\207\3669j\000ETH\270\302\371\2165T\270:\345\310P\304\0078\276l\202\263\240Z\355W\014\211B\325\330\343\331\216\302\321\003:\360PY\346\304C\200\313\n\260\306\002\315\030\030\344%U\364\255\004%B*`\354\324\215E\026Z\342Jb\363>\345\001a\272\262O\020\210F\266{\236\343\23346B\"\260\326\250Z;6&\312X\243T\242\213)\2471\361\320\243!a\234\323\311\315\277\241t\007K$\240\316O?\255sS2\243k8a=\034\255VS\251 B\264\262l\315G!\303NC\370\003\352\222Q\022:]e$\261\255Pe\271\300\236G\263eIR\212\342&c\304\234\333\3167\243\213.9\2421f\212\242\225o\304\022\377O\032\tw\331X:\321\025x\330\3673j8$\246E\260R\240\336\t\305\310\032\321T\025PAE\021]\367\303\203m4q\353\373\372j5l\341\345\327\032\315\261$\310S\333\210\374H\361\232=_Y\266\333ne5\316\177\237\324\255\034\351\027\207_v~\345\007\324\315s\336nG\021\\\203\310\343\360\3043\230\353\305T""\251\n0G\024^-f\364\324 \310\361\256:\364K\226\365Q\244k\2279 \214i\024\2219\316Q\332K\311\213\273IXYIE)\367R\210#\225h\362\257X\004\007\337L\030Z\323\002\257>\271\365/\221+l\375|U\3154\361\352\271O\223\260\372&\375 \333\033t\216\024\314\024J\256D\240\244E4\221\277P\275\365\341H\323\344\2356\302j\260\262\036\333\263h\240\204Q\370\322\342\224\330\321\025\2427\tW<7\202\016N\221\320s\202of\363w\005WXff^7\216\255\332v\270\324\236\253\003(V\265\237wA!p\034\265\306\266A\301\220pg\304^e\213\031id\366f\036\333\361\212|:\367\341I\374\253\270\025N\275q\370\204Da@\300\315z-W\006\235\t\340b\314\340\214\265k\322\331\277G\306\021,\323z\016\200t6\271\033\373n\2667\036\357\014X\255<+6\001\261\240\350Mn\321\335\027x\353ccc\3438\305\326\276\266\256\017\007=\331\n\216\320\260\326ML\261(\277\r2S\267\310\023\001\352\364QJ\"`\340u\340\332p@\226\033Y\371n\253?\334\370\340\264\255<\303-G)\337M\206f\035#\023ak@\022hE\206\"\2502\200k\341T\332\337\275\222\333\025\224\000\240r6\216u\001\203\034[\354\375\273\345I\002l\264\251\201f\235\344\363\266\317pk\300@]dRo0-\322I\343\"\031\303\252\334Q\020\262cr-\2611=Y\231Q\252\256V\2036\332\207\311\322\n\033d\212\201^\373\364\222\030\347I\025\372p\324\206\304\231\010\266\2622L\373!\252I$A\351\200\312\t\202\206\212\317R9\270\221:\207\r\005\021\021\337\347\354\240;=\231F\036\010\304R`E\217\035\205\340\264c\3020\274#\223\002\034p\t\242\232\205\262H)\r\220V\316\271\240\210\367\032(\241\314\344\206\373\357, )\006\235\027QJ\261\362\265\027\021@ \344\200\231+(\205J\215&\302\025j\000\235\0359\351\303}_\203\205FF(\215\035\"\244LBm\003\252\262\202\211\n\025_\3345\2338\306\307\t\233\014\311\232d\233P\334\274\203\\-\273[\220a\264\360\311\226\232\224J\206\2703\032\027\274Y\232\312\320/s5\005\251wc=\353Gj\332\255\273\334\355\303\254\005.K\013\377\327bt\025\304\212X0\377cH\212/k`\265\302V\0017l\245\204\314\204sA\\\326_-0\350\t\255\027\337uAe\325\342](\022\224\260tE\002\231h\235\277:e\017\253;m\241\215\270\n\370\022\014\306\263\300\306\221\250\321\201U\342\224\236w\007""\336V\\dU\0346\037M\010f\260\317\013YN\262\362\333[\006,\256H\324.\302\362u\337\031\002\211\256\026N\005\257\243\371\273\251\001\272\272\245\200\271\206$1\240\030\325\357t{\367\254\331\246\255!\271%$\223*kR\026\222\322\324\312\213%+iM$\222I\322H)\253l\354\215\025\3433Rn\311;3*)I;\t)#f\207\232\204\274\231Iy/!3 \342\262\334\353\372\265M6&\327\021cIu\235\206\264\316\267\026\2015\023\215 Q4\221\004\014qa\036\270@\241X\310\231\004\303\230\367\250q\273\330.V\326\222\311\017\241\224\261\016\016\375\r3*H\207-\261\317\002K2.\211\317o\023y\240\225\353\r5\225\201\257\3654{l\220\212\232U\\\031\235\330\005\002\306;/A\200Y\332K\316\020H\246\205p\323\032lm\261\267l2\023\356\324\024\261\214\321*\013\360\372\34246\3306\3619f\201\255\206\201A\352\013$\213[ND\203\250\323\314\342XL9\374:h\321N\215\323\006\235\200\225\036ji(\333\324k\232\rK\302>\356\306\255\203\004\"\346\257.\365beJ\211\264\024\020\242\036$\344\346\2068\301\n\253T\033\022\257eH\325\007\305\027\213\023\t\252\026S,9K\224\274\322\372`\257\232f\256\276`#\004j8\234\347)X\227\271\263\322Ih4b0\304\247\245(\204\255\\~\236\274\340P\236\372a\322\354`\263f\342\035%\364\245i\247\207av\006\255\312\375\214\344=\375/\226w4\203lm\3228S(E)9\022\202\221\024\322G/>\301{\353\345$j\363\216\033\341b\264.\207\270\355\332(\204[\370\352\373')\301c\010\316\362L/\344UB\255\352\254*\370\317E\365\276\265\034\302\3421\214V\356\372\332y\234j/U\201\220(\265\236L\344\205\244\335dld\034\031\007\006yL\016\241wW-^^Cn\271\n\376\216\231\367\022\362\3714\332\267\241\252\274\244\010\205\343\006\365G\233\307\335\320\234\3123(\"\333\345\361k\257\301\365\304B\246\233\320v\007f\276\347\213}\312\243k\342\306,kF\305\226\030\203cA\336Mq\355\321\326.\303\255\215\215\217\210\342\027R\317vm\272\274Z\245\033s\267qu\245\245\220\217A\r:\203\210\334t\001\240\035\312}\010|$\254Z\024?\014\010-\017\217>\353\347\237\323\376\020ZV\236\360\313\221\210\360\246\303#\016\201\211\260\271\240\n\264\"\303\021T\031 \031\357\252ms.\262[b\262\200\024\006\217\020k\030\006\014uXw\266\257\317\225\004\333Z\323?n\211\345\352\3133\345M\232\005\003\007]J\236\240\246\027\034\370\343C8u[\231\342\026;\334\212X\224\232\257o!\352\253\366 \373R\241\362tb\206\341\"\240Y\317\277M!\216|qg\250\327\324\206\256T\"\225\276\3074\014\206\251$\221I\246\006@L\0243\330z\261\313\302\212Lp\316U\021\036o/2\003\233\232Q\207\2121\024\230\021c\307\260\300\026|{\343\014\002;\330\210v\240\024Es\026\311 \2546A]K(\202#\332g\252\247C\267\r\330`Z@R\r\031\357\252\265k\3565GA@\203\222\002d\254\242\025*4\233\010U\250\002tq\353N\007\215a\211\302f\363\024F\2170U\211\210M\240s\260\250\252B\227\345\354\315&\327\024\331\326f\31323T\223j\033\227H5\255\267kq\213\366\235\371\031i\215\221\030a\000E\030L\252XR\270P&E\214\022\344\230\027e\330\303\303\222f\263\302\035\000\245\333\264\303\374q\322\242\310\221K\023\017\3624\210\243\006\266\013\\%h\020i^\372 TE[\224\314""\257\341L\032\260\202\266y\346\220/Mv\222g\270{\337CZ\210\026#\001<7q\026|\031\233m\014m\301e\205C`\322r\330\3225\031\361\023\300R\223\314\340\373\025\267\233\312f\375\247\244\2043Xf\205\314\257Y\201u\315\203\026G$j\027\032\361k\3022\005\023\\-\244\013\237{\343w\326\003s\351\226!o\214Hc@1\253\256\271\034\373\2534\323-!\271%$\223%3\322\026\222\322\324\311I\312\223^K\344\222I+$\204\276k\322\264\217\024\317JS\025\365\244\225\245)1II9RRF\315\017\n\022\3512It\227HL\020l2\334\027{UM6&\327T\261R\\\2630\3173-\305\240MD\343H\024M$A\003\034W\307\304\010\024+\031\023 \230u\357z\207\027\233\005\277\265\250\251!\366[,a\247\303SL\310\222!\334\2729\240IeE\3619n\341o,\022\301b\321a`\032\3773G\352d\204M\245;\303+\277\020T,q\331\202\014Ao:_@A\"\272\225\343Li\261\266\306\335\320\336)\3270\255\214fyTe\326\361\004gm\260m\3428\346\201\255\226\201A\343\026D\213[VBA\324i\340\342W\313\373]zh\321N\336\344\301\247`%G\2055\024m\343k\222\rK\241\0376\306[\005\350E\306^=\325beJ\211\264\024\020\242\036\"\035\333\240R\220B\235\312\r\211Y\262h\325Lt\306\024B,lm\203\007y\261*1(\374\201h\357\266^\257\322\2539\313 @\031W~\207\004a\347\203\340\344\031\233\030\253\216\025\025\225\336+t\374\344\227\232m7\246s\213Xp\002\022\325\300\203%3\244J7\324\204\220\3546\355\315\023\n\316\322\014-\027$\376\313\355\236\201\347\tt\304\3717\025r\334\356\366\352\\\257\036\\:\230\230\331\023II\005\0057X\273\205\244m&\222\006\232\032\020\330\301\203\351+;\004o\231\202\300T\200n\315\324\331wK8T\253\023#u\226bm\007PU!\264\233\034dO\200\2014\257\010A%RZ\310).\007c#V8\001\320\232jF(\360\233Y\273\035t$/\205\227T\225b\\\272\324\302\225\\\201t*#a\304\200\377\243\220D\211A\241\224\353\337[W\034\304[=\032\213s\300\224k\021\315W\214rN\r\265\000\324\225\024\022\007)\016\360\263\014\202\220\320\300\250\006\210\014\200\253\024\000%.\201v\312\024Q\232\005\220*\266\033\205\"\261[\201B\365S\272\210GxWN\r6\307\3522Q\314\014&\200\nI-J\303\005\245\233l\231\215\242,I\254\306t\345\270\3135\004\314\205\311-\352\371\002\222\n\303j\\\177L$\272s""\346\267\204C\360c\327\"D\031~\343W\237\300PC0\024\320A\007\023\006\333\005\342\020m\356\347\026^\010%\343\211\020\323F\273\310\316e\267\202\350\361\350\314C\r\004\233\354\336\315\321\223\365\351\364*\243\243\347{\335#\021\275\307\237\324\203,de\254\206\006\001\230l\231\271f)7\257D0\222\247\270 B@;%\016\356\276\200\327\314\367\r\264\033I\311k\200J\270\032\330\333M\354\033IK\330\215\374\277B\241WM\375\304`\237\3579)\244V|\307b\007\224\033\177QD\014\370\273\275Gh\037\261\303\r\030@\364B\232\361\014\025\367(\205\003`]\024\2657\351\360\356S\262\230a\212\365\324\213%\354\017\260\343\374\"\013\000e\023\003\366\t!\374\201;:\206\254\371\352\377l\353<\250\271Y\374\027\225 .\264%q\2320$P\222\373b\000\242\206\007\253\203\000U\372\220\007\244\277\323\310i\370\022\037\314\356\372^\316\231\340\233\217\204p\333\350\223.^cN\265[\230\325\266\333\330\247}\3013\257G\235f\363~hm\313\332q\314\226\242\350_\235\227&h\357JD\305\031cJ\330\033\332\022\250c\346\353[\2307s\3512\037 Z)2c\037d2\3315\36690\220L\234I\354\242\341\000\236(iD\021S\365\014\333\240\251\226m\n\315\016\312\203-4\255\036,\207\364\016*\3406\326q\021\016\010\311\217\301\022?\250\364\334\014\2212:\243\252D\251$\277\322\306j\372\331B\364\213\262\006\030\"\ny\276\303\013\200\254P\207\334\221\304\203j\010\001\227\020Am\007\353\333\222\252\351c\314#\265\r\016 \365\317?\006\344+Xj\266\016\025\365\3636Q\3413}\322\325\207\302%\210\315\250\007*\3704\266\336\307\274\030#\034@\021!\273C\232\372\001\207{e2\003\\\363l\354\036m""\376\020\267\263_\017\270\200\025\242\227i\362G\231\254\244\371!\025e\005r\260\301\033m\235EH\305\242!`\204X\321\240\271\"+\362:\240\347\004\262\010\270\002I(\204\302\352\367\260a\264\333\017\251\035\331\316\371\331S\277\034\371\300\375\347\262_\371\214 \217\270:*\026v\212(\317U\271|\251\376\006\225K/K\365\342\313\255ba\273\314\355\324Pa\237;\250\226\271\n\267\037!\356\276\252\027\367G\250#\204Z\221\333\317\177\277\275\273\017\375\"\221\274\221L\336\334\006\277V\000`4\022\364\221\r\235 \320j\202\320\200\0149\245\001\264\2572 (\234(\222\240\207\353\020\030!e\010\212!)l\206\020eR\265\353\n\261f\022\277F\375;\224\0100\024\022B\374\014)\244\021\014W#\240\031\262h\313:\200\210E\016N\342\206\0359\221\2711\211\2719\236\027\357\252I\022\325\021\3466\200)\346Q\300_\342\335\242\240\217\022+\261E\000\3638\355lD\3515\205V\001\346#<\244\207`\036R\264\230bI\363\365BBY9\305\352\226b\370W\250\351\212\312G\304\207\\\242&\tX\013Y\244\"D\026\322\310\311uh(4\354\373X\003P\227\006\263\\(\360\n\032\351\370\243\343\\-\201>b\022\255I\225R\271\262[\241(+p[\345be\267\276\373b\367\005B\325\3633\370+@\007F\304\237\373\270q\260\017\300G\\\341\207r\251V\017\027/\271\372~\351G\177\271\363\035\317k\347\262 )YAQ\025\003:$\326\350,\n\340$\267\022\240\252`$A\223Uy\001\037\362\302;\322\030\221\322@\212*5\021-I\230NA\333m\276\251\321\267@\025\313\202\"\302\n5\014Y@\250\t\277\003`\243!\226\243(\216\341w\016CO\202\230\013\334\260\014f\336s\332\336\343\227\037k^5\002\231\376\314\027\346\222I\304f\026\007\340\275L\337\261~v\376\010^M\365\323\367l\216\034\362\310\312Y\005{\332\371\241+\270Q\034\020\331+\006ysY\207w\364\356S\367\303\307\374\307\201k\275\305bo\257G\363\377z\377\3177/4\363\236\367\325\032\300>EV\2529\357}\271J\300\324\237g\203\300\314\306e\037\302\226\271P6K\334\331\237\277\033\244\305\361\257\251\376\324\215\213Us\317\233\272\003%!\275\331-\367R\275\371\336\036q\3443\353\232Esj\225\340\3502\275h\0316\\\030J\2315k-\223L\2365\357\020\306\315\213co\352\215\367\346\247~z\321[|\342\346\3723\363f\331c\277\351\256\271\374e\260\323\206%\332\353\220\210K\221l\240\212+$\023\026\255s'\345\314;o\301M\223\025\376\017\262z\3473"; - PyObject *data = __Pyx_DecompressString(cstring, 2332, 1); + #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (2338 bytes) */ +const char* const cstring = "x\332\225WKs\333\310\021\006kU\t\355(ei\245]9U\266\005m\354\320z\230\016W\332-\307\217\270 \222\322rMS\024I\331\353\304\251)\010\030\222XS\000\205\207\036\211\235\354QG\034q\304\021G\036q\344\321G\034y\324O\360OH\317\000\004\001\021\244wU\022\204\351\307LOw\177\335\215\354\016/u\260\310\342\243CxJ\262\216[\252\244\237\263B\033\013\357\262\001SWXA\221O\260\252\263yV\323UIn\021Z\365\\o+r@\210\310\3423\035\313\"\333R\371n\233=\225\3646[P\371\323j\207\227y\225H\033\202n\250X\233\252\361\342\333\315:\346U\241\375\253\0256\177\253\302\326o\223\3373t\254v\351%\210\203~\245Vu\272B\027\253ME=\n\334\257\300\222\327%E\216H\250\260!V}\0011p|~\334\347IbM`\262\231]j\214\244\261\262\242C\200%]\342;\322\277\261\230-\311'\360&\262\"\326tI\246\347\372\226?fO\341_\027\007\027\251\022\345\312A\271\034j\370\367#\206\363:\253u\261 5%8\374\233!\277#\311\357\340(\021\237\021!\326 \353\307lf\002\373\344\n[S\014U\300\2371\245\242\310\270\242\350\230\325\333`C\336\317D`\212\270#\035\022/\342\016u\271$@\324\210\220\314V\213\325\007[\217\266X\036\"\244\342\237\261\240k\254f\034\n\035^\323\260\306*M\366\320\220:\340\nV?\357B\224\330R\223=W\014V\306A\254@.\252\240\2671$?\326\311\013\233\341e\360/u\"\002u\210@\206\025%\025\016\221N0\321\336\341;\032\316\326\375\273\021\023\306\334\256\261G\206\246\263m\236(\300\226\032\177\204YE%a\245\000\354\236\017\235\340\247\322p3?\032m\336\217\360!\006\253\242a>\220\371\303\0165\201\027\001\347b\013\263\367\215\r\366d\225}\306\336\317d\262\033\354s` \2318\223\330E\303\001\320&j\372\331B\364\213\262\006\030\"\ny\276\313\013\200\254P\207\334\221\304\203j\010\001\227\020Am\027\353;\222\252\351\023\314#\265\r\016 \365\317?\006\344+Xj\265\017\025\365\3636Q\3413}\332\325G\302%\210\315\270\007*\3704\266\256a^\214\021^C\021!\273C\232\372\001\207{e2C\\\363l\354\036\035\376\020w\262\337\014\271\200\025\242\227i\361G\231\254\244\371!\025e""\005r\260\311\033\035\235EH\305\242!`\204X\321\240\271\"+\362\003@\317\td\021p\005\222P\010\205\325\357a\323\350t\036R;\262\335\363\263\247~9\362\201\373\367U\277\362\031A\036q\rT,\354\026Q\236\253r\371R\343\r*\227^\226\032\305\227\333\305\302N\231\333\255\243B\215{]-s\025\256\026!\356\0354\212\2651\352\030\241^\344j\371\037v\366j\320/\022\311\233\311\344\255\035\256\\/\356\200s+\2002\032\016\372\310\206\236\020hIAhH\206\304\322\000\337W\031\020\031N\024I\344\303u\210\216\2202B\306\210\024vD\0105)\335\r\205X3\215_\247N\036I\004@\n\t!\210F\024\322\rF\2531\344\214X\264o\275\206\260E\016N\342\206m9\221\2719\215\2715\231\027o\255I\022\3251\346\016 *\346Q\000a\342\335\242\310\217\022+\261E\200\3658\355lL\351\025\305W\001\206$<\242\207\210\036Q\264\230bI\363\365BBY9\305\352\266b\370W\250\353\212\312G\304G\\\242&\tX\013Y\244,D\026\322\330\311\r\350*4\3545\254\001\262K\303\201.\0248\200n:\371\3508WK\240\217\231D\013Se\257BqV\340\266\313\305\312^c\357\305\336\013\204\252\347g\360W\200\036\214\2103k\270\331\250\035\024_\327\000\376\210+\374X.\325\033\341\342%\327\250\225~\362\227\273\337\363\274v.\013\222\222\025\024U1\240Ob\215N\244\200Nr-\001j\013F\022\264Z\225\027\360!/\274#\355\021)M\244\250R\013\321\302\204\351,\264\323\341[\032}\013T\261,(\"\254P\323\220\005\204Z\360;D6\032\2019\n\343\030\200'Cw\032h#p\215\002u\010\321DpN\202\345\004@N\200b2\010\247\301o\002\360\"\220\033\007\333\025\230\005\370\211C+\016\252q8E\201\024B(\002\236I\260I\004L\000\2258H\246\300c\0220\306!\221\010\206!\014h\342\225\245CI&\2637\222\241\267\300H\201$\r\205y\014RG\332\021BG<\244/:\202\\$\177\210$%]\032\240\207\200Ct\341\211O\021\231\037\320p\234!\004z\n\354\026\236\021\306.K\372r|\225\245\322]\245\013\355\033\340\030d\372\261\301w\374\023F\255\177\254\365\205\004|F^eQ\"\303\252\237\321*\206O\031Y\303\235&m\215\201\271\360\026\214\024\221\206\211\022\232\247\246\n\3765\302\027d\310t\310\300\252\252\250\376<\201\374\217N\215\314\324\224\214\220\016\361\203g\033\017[7\274\322\330\"\321\350\032t""\3448\201I\310\300\032\035c\203y\371\276\377\177\225\031\256O\024I\\e 4#V\364'\302\330\200/a\370j][M\244\256\255&Q7\310\034y\2053<&\201\230$N)\311\366\300b\202\306\225\307\025\001C\326\244\226\354\177\344\2572\304\003C\036\271]t\r~\032\325+\306\037N\231I\345\210\231P\217\230\t\005\211I\256H\314\264\222\304L\250I\314x%\nH\025fR\271`\022\353\0053\251\000\2143\256\310Fw\230\320\031\230\240\0321\323Z\0043\254!L\264\3670Sj\026\023kLL\264\2610\211\035\205\271R\246\231x\201f\342\025\232\031/\321L\264F3a\221f\"U\232\211\364\tf\324O\231a\253\243\374`\253Hi\366fnZ\251Oi\346\332\354\305\326\305\177\254?[\373\203\331/\315\r\213\267\216/\323K\346\231ul\317\330\334/\334 \275\340-\374\265\227\352-\366\336\366\027\372\\(EXK\336\222\317\332\017\004\327\235\234S\350\315\272y\3678&\010\2545g\305\331r\336\273\233.\037a}\372\335\270\005\203\271yB\276>\230\275qqn\245\355/\354M\033\210_\233?\333){~\220\276\341\335X\266\350\376k\026\007\302\203\205\305\313\364\037`\2233S\203m\336\330m\207\037q\311V\213\3463P]\264\337\366\376\344n\364\205\217\363Wo\341\033GWd#\335|l\355[|h\317#7\345\322\215n\232\377\265\367m\321\331\350\361\223d\237\271\373.\357\313~\2609\273\341\334\362\275\223$\373\334=\356\247|\331\377\331\274\255;O{\021\033\236B\014R\241\354v\177\245\237\243\262\336R\306>vf\234\262\233J\026\2664{\305\316]\216.\366\336\315M\223\234\272\207\371\336\316\331\005g\266\227\037\332\366\275\271`n\233\242\365\027\210L.\264/\327\233\357\255\\~\216\275`>\201\275u\373\251\243\3652\356\202\273\333\337\354\217\374\361\3209\356\315\3648\357\273\235>\337?\036\314\335\211\344\317\206\3039\215\336-\267\336O\305S+\214\355\00211\306\273g\357\307\362w\336\333\256{\365W\336\253\327\221d\2776\230]0\237\333\031g\336Y\201\344\272\370`q\243D\034,\335\274\234\2353S\346|\220)\017\234}G\354\255\220\325W\346O\336\355\207\216A\217]\316x\231'\356w\375/\372\271\301\275\007\316\277\334{\256\326_\031\254\255\373\316\035\245\353f/\327\343>]g\256\335\261\336:K`\030d4\304\223\270\346o\026g5\354[\240\274\336\257\177\034\205""\236\0041\027\270a\025\314\274\353t\274\307/?\326\275j\0042\203\271/\315\025\223\210\315-\017\301{\231\276m\375\323\371=x55H\337\2659r\310#+g\025\354Y\347\307\236\340Fq@d\257\030\344-d\035\336\321{O\335\017\037\363\037\207\256\365\226\213\375\375>\315\377k\203?\336\270\320\314\273\336\327\033\000\373\024Y\251\346\242\367\325:\001\323`\221\r\0023\037\227}\010[\346B\331,q\347`\361N\220\026\307\277\244\0063\327/\326\315}o\3466\224\204\364V\257\334O\365\027\373\373\304\221\317\254/,\232S\353\004G\227\351e\313\260\341\302P\312\254yk\225d\362\274y\2330n\\\034{3o\2747\377\030\244\227\275\345'nn0\267h\226=\366\333\336\206\313_\006;mZ\242\375\000\022q%\222\rTq\215d\302\262u\356\244\234E\347-\270i\272\302\377\001\222\206\350\373"; + PyObject *data = __Pyx_DecompressString(cstring, 2338, 1); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #else /* compression: none (6093 bytes) */ -const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_EdgeInUs""eGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNILNONEMBEDDABLENOTOKOK__Pyx_PyDict_NextRefWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6aasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencoded__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetNgp_GetNeighborgp_GetNextEdgegp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_WritegraphLibinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__new_edge_capacitynew_graphoutfile_nameplanarity.fullplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlinkgraphP (graphP)\000graphP (void)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graphP, gra""phP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (graphP *)\000void (graphP)\000gp_DupGraph\000gp_New\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000gp_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000gp_Free\000gp_ReinitGraph\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340\010\027\220x\230q\240\004\240A\200A\330\010\023\320\0230\260\001\260\024\260\\\300\023\300A\330\014\022\220,\230a\230q\200A\330\010\027\320\0270\260\001\260\024\260Q\200A\330\010\023\320\023+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\023\320\023*\250!\2504\250|\2703\270a\330\014\022\220,\230a\230q\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\024\220=\240\001\240\024\240\\\260\031\270,\300c\310\021\330\014\022\220,\230a\230q\200A\330\010\027\320\027*\250!\2504\250q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\030\220~\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:\230Q""\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\030\220}\240A\240T\250\034\260Q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\030\220\177\240a\240t\250<\260q\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\030\320\027'\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\320\027*\250!\2504\250|\2701\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\220|\2401\240D\250\014\260C\260q\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\023\220;\230a\230t\240<\250s\260'\270\023\270G\3003\300a\330\014\022\220,\230a\330\020/\250q\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\023\320\023,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\023\220=\240\001\240\024\240\\\260\023\260C\260q\330\014\022\220,\230a\230q\200A\330\010%\240Q\330\010\023\320\0230\260\001\260\024\260\\\300\021\320BS\320SV\320VW\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\027\320\027-\250Q\250d\260!\200A\330\010\025\220X\320\035/\250u\260C\260q\330\037'\320';\2705\300\003\3001\330%-\250]\270%\270s\300!\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\2209\230A\230T\240\034\250]\270+\300S\310\001\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\023\320\023)\250\021\250$\250l\320:M\310S\320PQ\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\330\020\037\230q\240\004\240A""\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\023\2208\2301\230D\240\014\250J\260c\270\021\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\320\023.\250a\250t\260<\270}\310C\310q\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\024 \240\001\240\024\240\\\260\021\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\024\036\230a\230t\240<\250q\200\001\330\004\n\210+\220Q\320\004\035\230Q\330\0104\260L\300\001\300\024\300Q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\020\030\230\001\230\021\230)\2401\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010\037\320\037;\2701\330\020\024\220L\320 2\260,\270a\340\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010\037\230y\250\001\250\024\250\\\270\021\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; + #else /* compression: none (6099 bytes) */ +const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FALSEFileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_Edg""eInUseGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNONEMBEDDABLENOTOKOK__Pyx_PyDict_NextRefTRUEWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6aasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencoded__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetNgp_GetNeighborgp_GetNextEdgegp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_WritegraphLibinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__new_edge_capacitynew_graphoutfile_nameplanarity.fullplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlinkgraphP (graphP)\000graphP (void)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graph""P, graphP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (graphP *)\000void (graphP)\000gp_DupGraph\000gp_New\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000gp_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000gp_Free\000gp_ReinitGraph\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340\010\027\220x\230q\240\004\240A\200A\330\010\023\320\0230\260\001\260\024\260\\\300\023\300A\330\014\022\220,\230a\230q\200A\330\010\027\320\0270\260\001\260\024\260Q\200A\330\010\023\320\023+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\023\320\023*\250!\2504\250|\2703\270a\330\014\022\220,\230a\230q\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\024\220=\240\001\240\024\240\\\260\031\270,\300c\310\021\330\014\022\220,\230a\230q\200A\330\010\027\320\027*\250!\2504\250q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\030\220~\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:""\230Q\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\030\220}\240A\240T\250\034\260Q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\030\220\177\240a\240t\250<\260q\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\030\320\027'\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\320\027*\250!\2504\250|\2701\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\220|\2401\240D\250\014\260C\260q\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\023\220;\230a\230t\240<\250s\260'\270\023\270G\3003\300a\330\014\022\220,\230a\330\020/\250q\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\023\320\023,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\023\220=\240\001\240\024\240\\\260\023\260C\260q\330\014\022\220,\230a\230q\200A\330\010%\240Q\330\010\023\320\0230\260\001\260\024\260\\\300\021\320BS\320SV\320VW\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\027\320\027-\250Q\250d\260!\200A\330\010\025\220X\320\035/\250u\260C\260q\330\037'\320';\2705\300\003\3001\330%-\250]\270%\270s\300!\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\2209\230A\230T\240\034\250]\270+\300S\310\001\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\023\320\023)\250\021\250$\250l\320:M\310S\320PQ\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\330\020\037\230q\240\004""\240A\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\023\2208\2301\230D\240\014\250J\260c\270\021\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\320\023.\250a\250t\260<\270}\310C\310q\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\024 \240\001\240\024\240\\\260\021\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\024\036\230a\230t\240<\250q\200\001\330\004\n\210+\220Q\320\004\035\230Q\330\0104\260L\300\001\300\024\300Q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\020\030\230\001\230\021\230)\2401\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010\037\320\037;\2701\330\020\024\220L\320 2\260,\270a\340\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010\037\230y\250\001\250\024\250\\\270\021\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; PyObject *data = NULL; CYTHON_UNUSED_VAR(__Pyx_DecompressString); #endif PyObject **stringtab = __pyx_mstate->__pyx_string_tab; Py_ssize_t pos = 0; - for (int i = 0; i < 192; i++) { + for (int i = 0; i < 193; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); if (likely(string) && i >= 52) PyUnicode_InternInPlace(&string); @@ -11469,7 +11485,7 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str stringtab[i] = string; pos += bytes_length; } - for (int i = 192; i < 222; i++) { + for (int i = 193; i < 223; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); stringtab[i] = string; @@ -11480,14 +11496,14 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str } } Py_XDECREF(data); - for (Py_ssize_t i = 0; i < 222; i++) { + for (Py_ssize_t i = 0; i < 223; i++) { if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { __PYX_ERR(0, 1, __pyx_L1_error) } } #if CYTHON_IMMORTAL_CONSTANTS { - PyObject **table = stringtab + 192; + PyObject **table = stringtab + 193; for (Py_ssize_t i=0; i<30; ++i) { #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING #if PY_VERSION_HEX < 0x030E0000 @@ -11560,172 +11576,172 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { PyObject* tuple_dedup_map = PyDict_New(); if (unlikely(!tuple_dedup_map)) return -1; { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 41}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 44}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n}; __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_InitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 45}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 48}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ReinitGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 48}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 51}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_new_edge_capacity}; __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EnsureEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_l_MSPQ_a_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 54}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 57}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetEdgeCapacity, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 57}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 60}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetN, __pyx_mstate->__pyx_kp_b_iso88591_4_Q_aq_xq_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 66}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 69}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_src_graph, __pyx_mstate->__pyx_n_u_src_graph_uninit_error}; __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_CopyGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 90}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 93}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_theGraph_dup, __pyx_mstate->__pyx_n_u_new_graph}; __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DupGraph, __pyx_mstate->__pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 101}; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 104}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_FindEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 109}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 112}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetVertexDegree, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_as_1_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 115}; + const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 118}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_ulink, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_vlink}; __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_AddEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 130}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 133}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DeleteEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 138}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 141}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_0_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 141}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 144}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdgeStorage, __pyx_mstate->__pyx_kp_b_iso88591_A_0_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 144}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 147}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_s_t1_r_d_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 151}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 154}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_EdgeInUse, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 159}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 162}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 162}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 165}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNextEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 170}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 173}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNeighbor, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 178}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 181}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetFirstEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 186}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 189}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 189}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 192}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 192}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 195}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsVertex, __pyx_mstate->__pyx_kp_b_iso88591_A_s_D_r_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 199}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 202}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 203}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 206}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 207}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 210}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_mstate->__pyx_kp_b_iso88591_A_4_3a_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 211}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 214}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Read, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_81D_Jc_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 219}; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 222}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_mode_code, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Write, __pyx_mstate->__pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 239}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 242}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 243}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 246}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_mstate->__pyx_kp_b_iso88591_A_q_at_Cq_a_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 251}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 254}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_renditionString, __pyx_mstate->__pyx_n_u_string_conversion_error}; __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 265}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 268}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_mstate->__pyx_kp_b_iso88591_A_0_A_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 269}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 272}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 273}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 276}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_embedFlags, __pyx_mstate->__pyx_n_u_embed_result}; __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Embed, __pyx_mstate->__pyx_kp_b_iso88591_y_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 280}; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 283}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_copy_of_orig_graph, __pyx_mstate->__pyx_n_u_embed_result, __pyx_mstate->__pyx_n_u_check_result}; __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_mstate->__pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad; } diff --git a/planarity/full/graph.pyx b/planarity/full/graph.pyx index 8a519f0..7cbc374 100644 --- a/planarity/full/graph.pyx +++ b/planarity/full/graph.pyx @@ -14,10 +14,13 @@ from planarity.full import graphLib OK = graphLib.OK -AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT NONEMBEDDABLE = graphLib.NONEMBEDDABLE NOTOK = graphLib.NOTOK -NIL = graphLib.NIL + +TRUE = graphLib.TRUE +FALSE = graphLib.FALSE + +AT_EDGE_CAPACITY_LIMIT = graphLib.AT_EDGE_CAPACITY_LIMIT EMBEDFLAGS_PLANAR = graphLib.EMBEDFLAGS_PLANAR EMBEDFLAGS_DRAWPLANAR = graphLib.EMBEDFLAGS_DRAWPLANAR diff --git a/planarity/full/graphLib.c b/planarity/full/graphLib.c index b8d6fe4..ab45c5b 100644 --- a/planarity/full/graphLib.c +++ b/planarity/full/graphLib.c @@ -1180,15 +1180,15 @@ static int __Pyx_init_co_variables(void) { #include "../c/graphLib/graphLib.h" #include "../c/graphLib/lowLevelUtils/appconst.h" #include "../c/graphLib/graph.h" -#include "../c/graphLib/homeomorphSearch/graphK23Search.h" -#include "../c/graphLib/homeomorphSearch/graphK33Search.h" -#include "../c/graphLib/homeomorphSearch/graphK4Search.h" #include "../c/graphLib/io/graphIO.h" -#include "../c/graphLib/planarityRelated/graphDrawPlanar.h" -#include "../c/graphLib/planarityRelated/graphOuterplanarity.h" -#include "../c/graphLib/planarityRelated/graphPlanarity.h" #include "../c/graphLib/io/g6-read-iterator.h" #include "../c/graphLib/io/g6-write-iterator.h" +#include "../c/graphLib/planarityRelated/graphPlanarity.h" +#include "../c/graphLib/planarityRelated/graphOuterplanarity.h" +#include "../c/graphLib/planarityRelated/graphDrawPlanar.h" +#include "../c/graphLib/homeomorphSearch/graphK23Search.h" +#include "../c/graphLib/homeomorphSearch/graphK33Search.h" +#include "../c/graphLib/homeomorphSearch/graphK4Search.h" #ifdef _OPENMP #include #endif /* _OPENMP */ @@ -2351,7 +2351,7 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; PyObject *__pyx_codeobj_tab[4]; - PyObject *__pyx_string_tab[47]; + PyObject *__pyx_string_tab[48]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ PyTypeObject *__pyx_CommonTypesMetaclassType; @@ -2401,44 +2401,45 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #define __pyx_n_u_EMBEDFLAGS_SEARCHFORK23 __pyx_string_tab[6] #define __pyx_n_u_EMBEDFLAGS_SEARCHFORK33 __pyx_string_tab[7] #define __pyx_n_u_EMBEDFLAGS_SEARCHFORK4 __pyx_string_tab[8] -#define __pyx_n_u_NIL __pyx_string_tab[9] +#define __pyx_n_u_FALSE __pyx_string_tab[9] #define __pyx_n_u_NONEMBEDDABLE __pyx_string_tab[10] #define __pyx_n_u_NOTOK __pyx_string_tab[11] #define __pyx_n_u_None __pyx_string_tab[12] #define __pyx_n_u_OK __pyx_string_tab[13] #define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[14] -#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[15] -#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[16] -#define __pyx_n_u_WRITE_G6 __pyx_string_tab[17] -#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[18] -#define __pyx_n_u_cline_in_traceback __pyx_string_tab[19] -#define __pyx_n_u_encoded_version __pyx_string_tab[20] -#define __pyx_n_u_func __pyx_string_tab[21] -#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[22] -#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[23] -#define __pyx_n_u_gp_GetQuietModeFlag __pyx_string_tab[24] -#define __pyx_n_u_gp_SetQuietModeFlag __pyx_string_tab[25] -#define __pyx_n_u_int __pyx_string_tab[26] -#define __pyx_n_u_is_coroutine __pyx_string_tab[27] -#define __pyx_n_u_items __pyx_string_tab[28] -#define __pyx_n_u_main __pyx_string_tab[29] -#define __pyx_n_u_module __pyx_string_tab[30] -#define __pyx_n_u_name __pyx_string_tab[31] -#define __pyx_n_u_newQuietModeFlag __pyx_string_tab[32] -#define __pyx_n_u_planarity_full_graphLib __pyx_string_tab[33] -#define __pyx_n_u_pop __pyx_string_tab[34] -#define __pyx_n_u_pyx_capi __pyx_string_tab[35] -#define __pyx_n_u_qualname __pyx_string_tab[36] -#define __pyx_n_u_return __pyx_string_tab[37] -#define __pyx_n_u_set_name __pyx_string_tab[38] -#define __pyx_n_u_setdefault __pyx_string_tab[39] -#define __pyx_n_u_test __pyx_string_tab[40] -#define __pyx_n_u_values __pyx_string_tab[41] -#define __pyx_kp_b_PyObject_G6ReadIteratorP_graphP __pyx_string_tab[42] -#define __pyx_kp_b_iso88591_1 __pyx_string_tab[43] -#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[44] -#define __pyx_kp_b_iso88591_H __pyx_string_tab[45] -#define __pyx_kp_b_iso88591_Q __pyx_string_tab[46] +#define __pyx_n_u_TRUE __pyx_string_tab[15] +#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[16] +#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[17] +#define __pyx_n_u_WRITE_G6 __pyx_string_tab[18] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[19] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[20] +#define __pyx_n_u_encoded_version __pyx_string_tab[21] +#define __pyx_n_u_func __pyx_string_tab[22] +#define __pyx_n_u_gp_GetLibPlanarityVersionFull __pyx_string_tab[23] +#define __pyx_n_u_gp_GetProjectVersionFull __pyx_string_tab[24] +#define __pyx_n_u_gp_GetQuietModeFlag __pyx_string_tab[25] +#define __pyx_n_u_gp_SetQuietModeFlag __pyx_string_tab[26] +#define __pyx_n_u_int __pyx_string_tab[27] +#define __pyx_n_u_is_coroutine __pyx_string_tab[28] +#define __pyx_n_u_items __pyx_string_tab[29] +#define __pyx_n_u_main __pyx_string_tab[30] +#define __pyx_n_u_module __pyx_string_tab[31] +#define __pyx_n_u_name __pyx_string_tab[32] +#define __pyx_n_u_newQuietModeFlag __pyx_string_tab[33] +#define __pyx_n_u_planarity_full_graphLib __pyx_string_tab[34] +#define __pyx_n_u_pop __pyx_string_tab[35] +#define __pyx_n_u_pyx_capi __pyx_string_tab[36] +#define __pyx_n_u_qualname __pyx_string_tab[37] +#define __pyx_n_u_return __pyx_string_tab[38] +#define __pyx_n_u_set_name __pyx_string_tab[39] +#define __pyx_n_u_setdefault __pyx_string_tab[40] +#define __pyx_n_u_test __pyx_string_tab[41] +#define __pyx_n_u_values __pyx_string_tab[42] +#define __pyx_kp_b_PyObject_G6ReadIteratorP_graphP __pyx_string_tab[43] +#define __pyx_kp_b_iso88591_1 __pyx_string_tab[44] +#define __pyx_kp_b_iso88591_C1 __pyx_string_tab[45] +#define __pyx_kp_b_iso88591_H __pyx_string_tab[46] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[47] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { @@ -2454,7 +2455,7 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { __Pyx_State_RemoveModule(NULL); #endif for (int i=0; i<4; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<47; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } + for (int i=0; i<48; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } /* #### Code section: module_state_clear_contents ### */ /* CommonTypesMetaclass.module_state_clear */ Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType); @@ -2478,7 +2479,7 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes); __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode); for (int i=0; i<4; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<47; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } + for (int i=0; i<48; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } /* #### Code section: module_state_traverse_contents ### */ /* CommonTypesMetaclass.module_state_traverse */ Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType); @@ -2492,7 +2493,7 @@ return 0; #endif /* #### Code section: module_code ### */ -/* "planarity/full/graphLib.pyx":36 +/* "planarity/full/graphLib.pyx":39 * * # Functions to be made available when importing package from Python * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< @@ -2526,7 +2527,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_gp_GetQuietModeFlag(CYTHON_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetQuietModeFlag", 0); - /* "planarity/full/graphLib.pyx":37 + /* "planarity/full/graphLib.pyx":40 * # Functions to be made available when importing package from Python * def gp_GetQuietModeFlag() -> int: * return cgraphLib.gp_GetQuietModeFlag() # <<<<<<<<<<<<<< @@ -2534,14 +2535,14 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_gp_GetQuietModeFlag(CYTHON_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetQuietModeFlag()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(gp_GetQuietModeFlag()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(0, 37, __pyx_L1_error) + if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(0, 40, __pyx_L1_error) __pyx_r = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graphLib.pyx":36 + /* "planarity/full/graphLib.pyx":39 * * # Functions to be made available when importing package from Python * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< @@ -2560,7 +2561,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_gp_GetQuietModeFlag(CYTHON_ return __pyx_r; } -/* "planarity/full/graphLib.pyx":40 +/* "planarity/full/graphLib.pyx":43 * * * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< @@ -2608,32 +2609,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_newQuietModeFlag,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, 40, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 43, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 40, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 43, __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_SetQuietModeFlag", 0) < (0)) __PYX_ERR(0, 40, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_SetQuietModeFlag", 0) < (0)) __PYX_ERR(0, 43, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, i); __PYX_ERR(0, 40, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, i); __PYX_ERR(0, 43, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 40, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 43, __pyx_L3_error) } - __pyx_v_newQuietModeFlag = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_newQuietModeFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 40, __pyx_L3_error) + __pyx_v_newQuietModeFlag = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_newQuietModeFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 43, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 40, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_SetQuietModeFlag", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 43, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -2659,7 +2660,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_2gp_SetQuietModeFlag(CYTHON __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("gp_SetQuietModeFlag", 0); - /* "planarity/full/graphLib.pyx":41 + /* "planarity/full/graphLib.pyx":44 * * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: * cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) # <<<<<<<<<<<<<< @@ -2668,7 +2669,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_2gp_SetQuietModeFlag(CYTHON */ gp_SetQuietModeFlag(__pyx_v_newQuietModeFlag); - /* "planarity/full/graphLib.pyx":40 + /* "planarity/full/graphLib.pyx":43 * * * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< @@ -2683,7 +2684,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_2gp_SetQuietModeFlag(CYTHON return __pyx_r; } -/* "planarity/full/graphLib.pyx":44 +/* "planarity/full/graphLib.pyx":47 * * * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< @@ -2718,19 +2719,19 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_4gp_GetProjectVersionFull(C int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetProjectVersionFull", 0); - /* "planarity/full/graphLib.pyx":45 + /* "planarity/full/graphLib.pyx":48 * * def gp_GetProjectVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() # <<<<<<<<<<<<<< * return encoded_version.decode('utf-8') * */ - __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetProjectVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetProjectVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graphLib.pyx":46 + /* "planarity/full/graphLib.pyx":49 * def gp_GetProjectVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< @@ -2738,13 +2739,13 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_4gp_GetProjectVersionFull(C * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graphLib.pyx":44 + /* "planarity/full/graphLib.pyx":47 * * * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< @@ -2764,7 +2765,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_4gp_GetProjectVersionFull(C return __pyx_r; } -/* "planarity/full/graphLib.pyx":49 +/* "planarity/full/graphLib.pyx":52 * * * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< @@ -2799,33 +2800,33 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetLibPlanarityVersionFull", 0); - /* "planarity/full/graphLib.pyx":50 + /* "planarity/full/graphLib.pyx":53 * * def gp_GetLibPlanarityVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() # <<<<<<<<<<<<<< * return encoded_version.decode('utf-8') * */ - __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetLibPlanarityVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBytes_FromString(gp_GetLibPlanarityVersionFull()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded_version = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graphLib.pyx":51 + /* "planarity/full/graphLib.pyx":54 * def gp_GetLibPlanarityVersionFull(): * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() * return encoded_version.decode('utf-8') # <<<<<<<<<<<<<< * - * # Cython cdef functions that are meant to be exposed to the planarity.full + * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_encoded_version, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graphLib.pyx":49 + /* "planarity/full/graphLib.pyx":52 * * * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< @@ -2845,7 +2846,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionF return __pyx_r; } -/* "planarity/full/graphLib.pyx":56 +/* "planarity/full/graphLib.pyx":60 * # subpackage's Cython modules * # Wraps functions declared in "../c/graphLib/graph.h": * cdef graphP gp_New(): # <<<<<<<<<<<<<< @@ -2856,7 +2857,7 @@ static PyObject *__pyx_pf_9planarity_4full_8graphLib_6gp_GetLibPlanarityVersionF static graphP __pyx_f_9planarity_4full_8graphLib_gp_New(void) { graphP __pyx_r; - /* "planarity/full/graphLib.pyx":57 + /* "planarity/full/graphLib.pyx":61 * # Wraps functions declared in "../c/graphLib/graph.h": * cdef graphP gp_New(): * return cgraphLib.gp_New() # <<<<<<<<<<<<<< @@ -2866,7 +2867,7 @@ static graphP __pyx_f_9planarity_4full_8graphLib_gp_New(void) { __pyx_r = gp_New(); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":56 + /* "planarity/full/graphLib.pyx":60 * # subpackage's Cython modules * # Wraps functions declared in "../c/graphLib/graph.h": * cdef graphP gp_New(): # <<<<<<<<<<<<<< @@ -2879,7 +2880,7 @@ static graphP __pyx_f_9planarity_4full_8graphLib_gp_New(void) { return __pyx_r; } -/* "planarity/full/graphLib.pyx":60 +/* "planarity/full/graphLib.pyx":64 * * * cdef int gp_InitGraph(graphP theGraph, int n): # <<<<<<<<<<<<<< @@ -2890,7 +2891,7 @@ static graphP __pyx_f_9planarity_4full_8graphLib_gp_New(void) { static int __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(graphP __pyx_v_theGraph, int __pyx_v_n) { int __pyx_r; - /* "planarity/full/graphLib.pyx":61 + /* "planarity/full/graphLib.pyx":65 * * cdef int gp_InitGraph(graphP theGraph, int n): * return cgraphLib.gp_InitGraph(theGraph, n) # <<<<<<<<<<<<<< @@ -2900,7 +2901,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(graphP __pyx_v_theGra __pyx_r = gp_InitGraph(__pyx_v_theGraph, __pyx_v_n); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":60 + /* "planarity/full/graphLib.pyx":64 * * * cdef int gp_InitGraph(graphP theGraph, int n): # <<<<<<<<<<<<<< @@ -2913,7 +2914,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(graphP __pyx_v_theGra return __pyx_r; } -/* "planarity/full/graphLib.pyx":64 +/* "planarity/full/graphLib.pyx":68 * * * cdef void gp_ReinitGraph(graphP theGraph): # <<<<<<<<<<<<<< @@ -2923,7 +2924,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_InitGraph(graphP __pyx_v_theGra static void __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(graphP __pyx_v_theGraph) { - /* "planarity/full/graphLib.pyx":65 + /* "planarity/full/graphLib.pyx":69 * * cdef void gp_ReinitGraph(graphP theGraph): * cgraphLib.gp_ReinitGraph(theGraph) # <<<<<<<<<<<<<< @@ -2932,7 +2933,7 @@ static void __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(graphP __pyx_v_the */ gp_ReinitGraph(__pyx_v_theGraph); - /* "planarity/full/graphLib.pyx":64 + /* "planarity/full/graphLib.pyx":68 * * * cdef void gp_ReinitGraph(graphP theGraph): # <<<<<<<<<<<<<< @@ -2943,7 +2944,7 @@ static void __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(graphP __pyx_v_the /* function exit code */ } -/* "planarity/full/graphLib.pyx":68 +/* "planarity/full/graphLib.pyx":72 * * * cdef void gp_Free(graphP *pGraph): # <<<<<<<<<<<<<< @@ -2953,7 +2954,7 @@ static void __pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph(graphP __pyx_v_the static void __pyx_f_9planarity_4full_8graphLib_gp_Free(graphP *__pyx_v_pGraph) { - /* "planarity/full/graphLib.pyx":69 + /* "planarity/full/graphLib.pyx":73 * * cdef void gp_Free(graphP *pGraph): * cgraphLib.gp_Free(pGraph) # <<<<<<<<<<<<<< @@ -2962,7 +2963,7 @@ static void __pyx_f_9planarity_4full_8graphLib_gp_Free(graphP *__pyx_v_pGraph) { */ gp_Free(__pyx_v_pGraph); - /* "planarity/full/graphLib.pyx":68 + /* "planarity/full/graphLib.pyx":72 * * * cdef void gp_Free(graphP *pGraph): # <<<<<<<<<<<<<< @@ -2973,7 +2974,7 @@ static void __pyx_f_9planarity_4full_8graphLib_gp_Free(graphP *__pyx_v_pGraph) { /* function exit code */ } -/* "planarity/full/graphLib.pyx":72 +/* "planarity/full/graphLib.pyx":76 * * * cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): # <<<<<<<<<<<<<< @@ -2984,7 +2985,7 @@ static void __pyx_f_9planarity_4full_8graphLib_gp_Free(graphP *__pyx_v_pGraph) { static int __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(graphP __pyx_v_theGraph, int __pyx_v_requiredEdgeCapacity) { int __pyx_r; - /* "planarity/full/graphLib.pyx":73 + /* "planarity/full/graphLib.pyx":77 * * cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): * return cgraphLib.gp_EnsureEdgeCapacity(theGraph, requiredEdgeCapacity) # <<<<<<<<<<<<<< @@ -2994,7 +2995,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(graphP __pyx __pyx_r = gp_EnsureEdgeCapacity(__pyx_v_theGraph, __pyx_v_requiredEdgeCapacity); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":72 + /* "planarity/full/graphLib.pyx":76 * * * cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity): # <<<<<<<<<<<<<< @@ -3007,7 +3008,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(graphP __pyx return __pyx_r; } -/* "planarity/full/graphLib.pyx":76 +/* "planarity/full/graphLib.pyx":80 * * * cdef int gp_GetEdgeCapacity(graphP theGraph): # <<<<<<<<<<<<<< @@ -3018,7 +3019,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity(graphP __pyx static int __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":77 + /* "planarity/full/graphLib.pyx":81 * * cdef int gp_GetEdgeCapacity(graphP theGraph): * return cgraphLib.gp_GetEdgeCapacity(theGraph) # <<<<<<<<<<<<<< @@ -3028,7 +3029,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(graphP __pyx_v_ __pyx_r = gp_GetEdgeCapacity(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":76 + /* "planarity/full/graphLib.pyx":80 * * * cdef int gp_GetEdgeCapacity(graphP theGraph): # <<<<<<<<<<<<<< @@ -3041,7 +3042,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(graphP __pyx_v_ return __pyx_r; } -/* "planarity/full/graphLib.pyx":80 +/* "planarity/full/graphLib.pyx":84 * * * cdef int gp_GetN(graphP theGraph): # <<<<<<<<<<<<<< @@ -3052,7 +3053,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity(graphP __pyx_v_ static int __pyx_f_9planarity_4full_8graphLib_gp_GetN(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":81 + /* "planarity/full/graphLib.pyx":85 * * cdef int gp_GetN(graphP theGraph): * return cgraphLib.gp_GetN(theGraph) # <<<<<<<<<<<<<< @@ -3062,7 +3063,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetN(graphP __pyx_v_theGraph) { __pyx_r = gp_GetN(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":80 + /* "planarity/full/graphLib.pyx":84 * * * cdef int gp_GetN(graphP theGraph): # <<<<<<<<<<<<<< @@ -3075,7 +3076,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetN(graphP __pyx_v_theGraph) { return __pyx_r; } -/* "planarity/full/graphLib.pyx":84 +/* "planarity/full/graphLib.pyx":88 * * * cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): # <<<<<<<<<<<<<< @@ -3086,7 +3087,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetN(graphP __pyx_v_theGraph) { static int __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(graphP __pyx_v_dstGraph, graphP __pyx_v_srcGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":85 + /* "planarity/full/graphLib.pyx":89 * * cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): * return cgraphLib.gp_CopyGraph(dstGraph, srcGraph) # <<<<<<<<<<<<<< @@ -3096,7 +3097,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(graphP __pyx_v_dstGra __pyx_r = gp_CopyGraph(__pyx_v_dstGraph, __pyx_v_srcGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":84 + /* "planarity/full/graphLib.pyx":88 * * * cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph): # <<<<<<<<<<<<<< @@ -3109,7 +3110,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(graphP __pyx_v_dstGra return __pyx_r; } -/* "planarity/full/graphLib.pyx":88 +/* "planarity/full/graphLib.pyx":92 * * * cdef graphP gp_DupGraph(graphP theGraph): # <<<<<<<<<<<<<< @@ -3120,7 +3121,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_CopyGraph(graphP __pyx_v_dstGra static graphP __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(graphP __pyx_v_theGraph) { graphP __pyx_r; - /* "planarity/full/graphLib.pyx":89 + /* "planarity/full/graphLib.pyx":93 * * cdef graphP gp_DupGraph(graphP theGraph): * return cgraphLib.gp_DupGraph(theGraph) # <<<<<<<<<<<<<< @@ -3130,7 +3131,7 @@ static graphP __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(graphP __pyx_v_theG __pyx_r = gp_DupGraph(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":88 + /* "planarity/full/graphLib.pyx":92 * * * cdef graphP gp_DupGraph(graphP theGraph): # <<<<<<<<<<<<<< @@ -3143,7 +3144,7 @@ static graphP __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(graphP __pyx_v_theG return __pyx_r; } -/* "planarity/full/graphLib.pyx":92 +/* "planarity/full/graphLib.pyx":96 * * * cdef int gp_FindEdge(graphP theGraph, int u, int v): # <<<<<<<<<<<<<< @@ -3154,7 +3155,7 @@ static graphP __pyx_f_9planarity_4full_8graphLib_gp_DupGraph(graphP __pyx_v_theG static int __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(graphP __pyx_v_theGraph, int __pyx_v_u, int __pyx_v_v) { int __pyx_r; - /* "planarity/full/graphLib.pyx":93 + /* "planarity/full/graphLib.pyx":97 * * cdef int gp_FindEdge(graphP theGraph, int u, int v): * return cgraphLib.gp_FindEdge(theGraph, u, v) # <<<<<<<<<<<<<< @@ -3164,7 +3165,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(graphP __pyx_v_theGrap __pyx_r = gp_FindEdge(__pyx_v_theGraph, __pyx_v_u, __pyx_v_v); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":92 + /* "planarity/full/graphLib.pyx":96 * * * cdef int gp_FindEdge(graphP theGraph, int u, int v): # <<<<<<<<<<<<<< @@ -3177,7 +3178,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(graphP __pyx_v_theGrap return __pyx_r; } -/* "planarity/full/graphLib.pyx":96 +/* "planarity/full/graphLib.pyx":100 * * * cdef int gp_GetVertexDegree(graphP theGraph, int v): # <<<<<<<<<<<<<< @@ -3188,7 +3189,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_FindEdge(graphP __pyx_v_theGrap static int __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(graphP __pyx_v_theGraph, int __pyx_v_v) { int __pyx_r; - /* "planarity/full/graphLib.pyx":97 + /* "planarity/full/graphLib.pyx":101 * * cdef int gp_GetVertexDegree(graphP theGraph, int v): * return cgraphLib.gp_GetVertexDegree(theGraph, v) # <<<<<<<<<<<<<< @@ -3198,7 +3199,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(graphP __pyx_v_ __pyx_r = gp_GetVertexDegree(__pyx_v_theGraph, __pyx_v_v); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":96 + /* "planarity/full/graphLib.pyx":100 * * * cdef int gp_GetVertexDegree(graphP theGraph, int v): # <<<<<<<<<<<<<< @@ -3211,7 +3212,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(graphP __pyx_v_ return __pyx_r; } -/* "planarity/full/graphLib.pyx":100 +/* "planarity/full/graphLib.pyx":104 * * * cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< @@ -3222,7 +3223,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree(graphP __pyx_v_ static int __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(graphP __pyx_v_theGraph, int __pyx_v_u, int __pyx_v_ulink, int __pyx_v_v, int __pyx_v_vlink) { int __pyx_r; - /* "planarity/full/graphLib.pyx":101 + /* "planarity/full/graphLib.pyx":105 * * cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): * return cgraphLib.gp_AddEdge(theGraph, u, ulink, v, vlink) # <<<<<<<<<<<<<< @@ -3232,7 +3233,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(graphP __pyx_v_theGraph __pyx_r = gp_AddEdge(__pyx_v_theGraph, __pyx_v_u, __pyx_v_ulink, __pyx_v_v, __pyx_v_vlink); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":100 + /* "planarity/full/graphLib.pyx":104 * * * cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink): # <<<<<<<<<<<<<< @@ -3245,7 +3246,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(graphP __pyx_v_theGraph return __pyx_r; } -/* "planarity/full/graphLib.pyx":104 +/* "planarity/full/graphLib.pyx":108 * * * cdef int gp_DeleteEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3256,7 +3257,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_AddEdge(graphP __pyx_v_theGraph static int __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(graphP __pyx_v_theGraph, int __pyx_v_e) { int __pyx_r; - /* "planarity/full/graphLib.pyx":105 + /* "planarity/full/graphLib.pyx":109 * * cdef int gp_DeleteEdge(graphP theGraph, int e): * return cgraphLib.gp_DeleteEdge(theGraph, e) # <<<<<<<<<<<<<< @@ -3266,7 +3267,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(graphP __pyx_v_theGr __pyx_r = gp_DeleteEdge(__pyx_v_theGraph, __pyx_v_e); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":104 + /* "planarity/full/graphLib.pyx":108 * * * cdef int gp_DeleteEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3279,7 +3280,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(graphP __pyx_v_theGr return __pyx_r; } -/* "planarity/full/graphLib.pyx":108 +/* "planarity/full/graphLib.pyx":112 * * * cdef int gp_LowerBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< @@ -3290,7 +3291,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge(graphP __pyx_v_theGr static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":109 + /* "planarity/full/graphLib.pyx":113 * * cdef int gp_LowerBoundEdgeStorage(graphP theGraph): * return cgraphLib.gp_LowerBoundEdgeStorage(theGraph) # <<<<<<<<<<<<<< @@ -3300,7 +3301,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(graphP __ __pyx_r = gp_LowerBoundEdgeStorage(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":108 + /* "planarity/full/graphLib.pyx":112 * * * cdef int gp_LowerBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< @@ -3313,7 +3314,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(graphP __ return __pyx_r; } -/* "planarity/full/graphLib.pyx":112 +/* "planarity/full/graphLib.pyx":116 * * * cdef int gp_UpperBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< @@ -3324,7 +3325,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage(graphP __ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":113 + /* "planarity/full/graphLib.pyx":117 * * cdef int gp_UpperBoundEdgeStorage(graphP theGraph): * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) # <<<<<<<<<<<<<< @@ -3334,7 +3335,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(graphP __ __pyx_r = gp_UpperBoundEdgeStorage(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":112 + /* "planarity/full/graphLib.pyx":116 * * * cdef int gp_UpperBoundEdgeStorage(graphP theGraph): # <<<<<<<<<<<<<< @@ -3347,7 +3348,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(graphP __ return __pyx_r; } -/* "planarity/full/graphLib.pyx":115 +/* "planarity/full/graphLib.pyx":119 * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) * * cdef int gp_IsEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3358,7 +3359,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage(graphP __ static int __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(graphP __pyx_v_theGraph, int __pyx_v_e) { int __pyx_r; - /* "planarity/full/graphLib.pyx":116 + /* "planarity/full/graphLib.pyx":120 * * cdef int gp_IsEdge(graphP theGraph, int e): * return cgraphLib.gp_IsEdge(theGraph, e) # <<<<<<<<<<<<<< @@ -3368,7 +3369,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(graphP __pyx_v_theGraph, __pyx_r = gp_IsEdge(__pyx_v_theGraph, __pyx_v_e); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":115 + /* "planarity/full/graphLib.pyx":119 * return cgraphLib.gp_UpperBoundEdgeStorage(theGraph) * * cdef int gp_IsEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3381,7 +3382,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(graphP __pyx_v_theGraph, return __pyx_r; } -/* "planarity/full/graphLib.pyx":119 +/* "planarity/full/graphLib.pyx":123 * * * cdef int gp_EdgeInUse(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3392,7 +3393,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_IsEdge(graphP __pyx_v_theGraph, static int __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(graphP __pyx_v_theGraph, int __pyx_v_e) { int __pyx_r; - /* "planarity/full/graphLib.pyx":120 + /* "planarity/full/graphLib.pyx":124 * * cdef int gp_EdgeInUse(graphP theGraph, int e): * return cgraphLib.gp_EdgeInUse(theGraph, e) # <<<<<<<<<<<<<< @@ -3402,7 +3403,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(graphP __pyx_v_theGra __pyx_r = gp_EdgeInUse(__pyx_v_theGraph, __pyx_v_e); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":119 + /* "planarity/full/graphLib.pyx":123 * * * cdef int gp_EdgeInUse(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3415,7 +3416,41 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(graphP __pyx_v_theGra return __pyx_r; } -/* "planarity/full/graphLib.pyx":123 +/* "planarity/full/graphLib.pyx":127 + * + * + * cdef int gp_LowerBoundEdges(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_LowerBoundEdges(theGraph) + * +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdges(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":128 + * + * cdef int gp_LowerBoundEdges(graphP theGraph): + * return cgraphLib.gp_LowerBoundEdges(theGraph) # <<<<<<<<<<<<<< + * + * +*/ + __pyx_r = gp_LowerBoundEdges(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":127 + * + * + * cdef int gp_LowerBoundEdges(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_LowerBoundEdges(theGraph) + * +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":131 * * * cdef int gp_UpperBoundEdges(graphP theGraph): # <<<<<<<<<<<<<< @@ -3426,7 +3461,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(graphP __pyx_v_theGra static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":124 + /* "planarity/full/graphLib.pyx":132 * * cdef int gp_UpperBoundEdges(graphP theGraph): * return cgraphLib.gp_UpperBoundEdges(theGraph) # <<<<<<<<<<<<<< @@ -3436,7 +3471,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(graphP __pyx_v_ __pyx_r = gp_UpperBoundEdges(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":123 + /* "planarity/full/graphLib.pyx":131 * * * cdef int gp_UpperBoundEdges(graphP theGraph): # <<<<<<<<<<<<<< @@ -3449,7 +3484,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(graphP __pyx_v_ return __pyx_r; } -/* "planarity/full/graphLib.pyx":127 +/* "planarity/full/graphLib.pyx":135 * * * cdef int gp_GetNextEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3460,7 +3495,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(graphP __pyx_v_ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(graphP __pyx_v_theGraph, int __pyx_v_e) { int __pyx_r; - /* "planarity/full/graphLib.pyx":128 + /* "planarity/full/graphLib.pyx":136 * * cdef int gp_GetNextEdge(graphP theGraph, int e): * return cgraphLib.gp_GetNextEdge(theGraph, e) # <<<<<<<<<<<<<< @@ -3470,7 +3505,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(graphP __pyx_v_theG __pyx_r = gp_GetNextEdge(__pyx_v_theGraph, __pyx_v_e); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":127 + /* "planarity/full/graphLib.pyx":135 * * * cdef int gp_GetNextEdge(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3483,7 +3518,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(graphP __pyx_v_theG return __pyx_r; } -/* "planarity/full/graphLib.pyx":131 +/* "planarity/full/graphLib.pyx":139 * * * cdef int gp_GetNeighbor(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3494,7 +3529,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(graphP __pyx_v_theG static int __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(graphP __pyx_v_theGraph, int __pyx_v_e) { int __pyx_r; - /* "planarity/full/graphLib.pyx":132 + /* "planarity/full/graphLib.pyx":140 * * cdef int gp_GetNeighbor(graphP theGraph, int e): * return cgraphLib.gp_GetNeighbor(theGraph, e) # <<<<<<<<<<<<<< @@ -3504,7 +3539,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(graphP __pyx_v_theG __pyx_r = gp_GetNeighbor(__pyx_v_theGraph, __pyx_v_e); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":131 + /* "planarity/full/graphLib.pyx":139 * * * cdef int gp_GetNeighbor(graphP theGraph, int e): # <<<<<<<<<<<<<< @@ -3517,7 +3552,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(graphP __pyx_v_theG return __pyx_r; } -/* "planarity/full/graphLib.pyx":135 +/* "planarity/full/graphLib.pyx":143 * * * cdef int gp_GetFirstEdge(graphP theGraph, int v): # <<<<<<<<<<<<<< @@ -3528,7 +3563,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(graphP __pyx_v_theG static int __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(graphP __pyx_v_theGraph, int __pyx_v_v) { int __pyx_r; - /* "planarity/full/graphLib.pyx":136 + /* "planarity/full/graphLib.pyx":144 * * cdef int gp_GetFirstEdge(graphP theGraph, int v): * return cgraphLib.gp_GetFirstEdge(theGraph, v) # <<<<<<<<<<<<<< @@ -3538,7 +3573,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(graphP __pyx_v_the __pyx_r = gp_GetFirstEdge(__pyx_v_theGraph, __pyx_v_v); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":135 + /* "planarity/full/graphLib.pyx":143 * * * cdef int gp_GetFirstEdge(graphP theGraph, int v): # <<<<<<<<<<<<<< @@ -3551,7 +3586,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(graphP __pyx_v_the return __pyx_r; } -/* "planarity/full/graphLib.pyx":139 +/* "planarity/full/graphLib.pyx":147 * * * cdef int gp_LowerBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< @@ -3562,7 +3597,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(graphP __pyx_v_the static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":140 + /* "planarity/full/graphLib.pyx":148 * * cdef int gp_LowerBoundVertices(graphP theGraph): * return cgraphLib.gp_LowerBoundVertices(theGraph) # <<<<<<<<<<<<<< @@ -3572,7 +3607,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(graphP __pyx __pyx_r = gp_LowerBoundVertices(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":139 + /* "planarity/full/graphLib.pyx":147 * * * cdef int gp_LowerBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< @@ -3585,7 +3620,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(graphP __pyx return __pyx_r; } -/* "planarity/full/graphLib.pyx":143 +/* "planarity/full/graphLib.pyx":151 * * * cdef int gp_UpperBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< @@ -3596,7 +3631,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(graphP __pyx static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":144 + /* "planarity/full/graphLib.pyx":152 * * cdef int gp_UpperBoundVertices(graphP theGraph): * return cgraphLib.gp_UpperBoundVertices(theGraph) # <<<<<<<<<<<<<< @@ -3606,7 +3641,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(graphP __pyx __pyx_r = gp_UpperBoundVertices(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":143 + /* "planarity/full/graphLib.pyx":151 * * * cdef int gp_UpperBoundVertices(graphP theGraph): # <<<<<<<<<<<<<< @@ -3619,7 +3654,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(graphP __pyx return __pyx_r; } -/* "planarity/full/graphLib.pyx":147 +/* "planarity/full/graphLib.pyx":155 * * * cdef int gp_IsVertex(graphP theGraph, int v): # <<<<<<<<<<<<<< @@ -3630,7 +3665,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(graphP __pyx static int __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(graphP __pyx_v_theGraph, int __pyx_v_v) { int __pyx_r; - /* "planarity/full/graphLib.pyx":148 + /* "planarity/full/graphLib.pyx":156 * * cdef int gp_IsVertex(graphP theGraph, int v): * return cgraphLib.gp_IsVertex(theGraph, v) # <<<<<<<<<<<<<< @@ -3640,7 +3675,7 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(graphP __pyx_v_theGrap __pyx_r = gp_IsVertex(__pyx_v_theGraph, __pyx_v_v); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":147 + /* "planarity/full/graphLib.pyx":155 * * * cdef int gp_IsVertex(graphP theGraph, int v): # <<<<<<<<<<<<<< @@ -3653,32 +3688,32 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(graphP __pyx_v_theGrap return __pyx_r; } -/* "planarity/full/graphLib.pyx":152 +/* "planarity/full/graphLib.pyx":160 * - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": - * cdef int gp_ExtendWith_K23Search(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_K23Search(theGraph) + * # Wraps functions declared in "../c/graphLib/io/graphIO.h": + * cdef int gp_Read(graphP theGraph, char *FileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Read(theGraph, FileName) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_gp_Read(graphP __pyx_v_theGraph, char *__pyx_v_FileName) { int __pyx_r; - /* "planarity/full/graphLib.pyx":153 - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": - * cdef int gp_ExtendWith_K23Search(graphP theGraph): - * return cgraphLib.gp_ExtendWith_K23Search(theGraph) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":161 + * # Wraps functions declared in "../c/graphLib/io/graphIO.h": + * cdef int gp_Read(graphP theGraph, char *FileName): + * return cgraphLib.gp_Read(theGraph, FileName) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_ExtendWith_K23Search(__pyx_v_theGraph); + __pyx_r = gp_Read(__pyx_v_theGraph, __pyx_v_FileName); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":152 + /* "planarity/full/graphLib.pyx":160 * - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": - * cdef int gp_ExtendWith_K23Search(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_K23Search(theGraph) + * # Wraps functions declared in "../c/graphLib/io/graphIO.h": + * cdef int gp_Read(graphP theGraph, char *FileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Read(theGraph, FileName) * */ @@ -3687,32 +3722,32 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(graphP __p return __pyx_r; } -/* "planarity/full/graphLib.pyx":157 +/* "planarity/full/graphLib.pyx":164 * - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": - * cdef int gp_ExtendWith_K33Search(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_K33Search(theGraph) + * + * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Write(theGraph, FileName, Mode) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_gp_Write(graphP __pyx_v_theGraph, char *__pyx_v_FileName, int __pyx_v_Mode) { int __pyx_r; - /* "planarity/full/graphLib.pyx":158 - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": - * cdef int gp_ExtendWith_K33Search(graphP theGraph): - * return cgraphLib.gp_ExtendWith_K33Search(theGraph) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":165 + * + * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): + * return cgraphLib.gp_Write(theGraph, FileName, Mode) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_ExtendWith_K33Search(__pyx_v_theGraph); + __pyx_r = gp_Write(__pyx_v_theGraph, __pyx_v_FileName, __pyx_v_Mode); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":157 + /* "planarity/full/graphLib.pyx":164 * - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": - * cdef int gp_ExtendWith_K33Search(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_K33Search(theGraph) + * + * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Write(theGraph, FileName, Mode) * */ @@ -3721,32 +3756,32 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(graphP __p return __pyx_r; } -/* "planarity/full/graphLib.pyx":162 +/* "planarity/full/graphLib.pyx":169 * - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": - * cdef int gp_ExtendWith_K4Search(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_K4Search(theGraph) + * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": + * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_g6_NewReader(G6ReadIteratorP *__pyx_v_pG6ReadIterator, graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":163 - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": - * cdef int gp_ExtendWith_K4Search(graphP theGraph): - * return cgraphLib.gp_ExtendWith_K4Search(theGraph) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":170 + * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": + * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): + * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_ExtendWith_K4Search(__pyx_v_theGraph); + __pyx_r = g6_NewReader(__pyx_v_pG6ReadIterator, __pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":162 + /* "planarity/full/graphLib.pyx":169 * - * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": - * cdef int gp_ExtendWith_K4Search(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_K4Search(theGraph) + * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": + * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) * */ @@ -3755,32 +3790,32 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(graphP __py return __pyx_r; } -/* "planarity/full/graphLib.pyx":167 +/* "planarity/full/graphLib.pyx":173 * - * # Wraps functions declared in "../c/graphLib/io/graphIO.h": - * cdef int gp_Read(graphP theGraph, char *FileName): # <<<<<<<<<<<<<< - * return cgraphLib.gp_Read(theGraph, FileName) + * + * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_Read(graphP __pyx_v_theGraph, char *__pyx_v_FileName) { +static int __pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName(G6ReadIteratorP __pyx_v_theG6ReadIterator, char *__pyx_v_infileName) { int __pyx_r; - /* "planarity/full/graphLib.pyx":168 - * # Wraps functions declared in "../c/graphLib/io/graphIO.h": - * cdef int gp_Read(graphP theGraph, char *FileName): - * return cgraphLib.gp_Read(theGraph, FileName) # <<<<<<<<<<<<<< - * + /* "planarity/full/graphLib.pyx":174 + * + * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): + * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) # <<<<<<<<<<<<<< + * * */ - __pyx_r = gp_Read(__pyx_v_theGraph, __pyx_v_FileName); + __pyx_r = g6_InitReaderWithFileName(__pyx_v_theG6ReadIterator, __pyx_v_infileName); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":167 + /* "planarity/full/graphLib.pyx":173 * - * # Wraps functions declared in "../c/graphLib/io/graphIO.h": - * cdef int gp_Read(graphP theGraph, char *FileName): # <<<<<<<<<<<<<< - * return cgraphLib.gp_Read(theGraph, FileName) + * + * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) * */ @@ -3789,66 +3824,32 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_Read(graphP __pyx_v_theGraph, c return __pyx_r; } -/* "planarity/full/graphLib.pyx":171 +/* "planarity/full/graphLib.pyx":177 * * - * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): # <<<<<<<<<<<<<< - * return cgraphLib.gp_Write(theGraph, FileName, Mode) + * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_ReadGraph(theG6ReadIterator) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_Write(graphP __pyx_v_theGraph, char *__pyx_v_FileName, int __pyx_v_Mode) { +static int __pyx_f_9planarity_4full_8graphLib_g6_ReadGraph(G6ReadIteratorP __pyx_v_theG6ReadIterator) { int __pyx_r; - /* "planarity/full/graphLib.pyx":172 + /* "planarity/full/graphLib.pyx":178 * - * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): - * return cgraphLib.gp_Write(theGraph, FileName, Mode) # <<<<<<<<<<<<<< + * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): + * return cgraphLib.g6_ReadGraph(theG6ReadIterator) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_Write(__pyx_v_theGraph, __pyx_v_FileName, __pyx_v_Mode); + __pyx_r = g6_ReadGraph(__pyx_v_theG6ReadIterator); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":171 - * - * - * cdef int gp_Write(graphP theGraph, char *FileName, int Mode): # <<<<<<<<<<<<<< - * return cgraphLib.gp_Write(theGraph, FileName, Mode) - * -*/ - - /* function exit code */ - __pyx_L0:; - return __pyx_r; -} - -/* "planarity/full/graphLib.pyx":176 - * - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": - * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) - * -*/ - -static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(graphP __pyx_v_theGraph) { - int __pyx_r; - /* "planarity/full/graphLib.pyx":177 - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": - * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): - * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) # <<<<<<<<<<<<<< * * -*/ - __pyx_r = gp_ExtendWith_DrawPlanar(__pyx_v_theGraph); - goto __pyx_L0; - - /* "planarity/full/graphLib.pyx":176 - * - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": - * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) + * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_ReadGraph(theG6ReadIterator) * */ @@ -3857,100 +3858,116 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(graphP __ return __pyx_r; } -/* "planarity/full/graphLib.pyx":180 +/* "planarity/full/graphLib.pyx":181 * * - * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): # <<<<<<<<<<<<<< - * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) + * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_EndReached(theG6ReadIterator) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(graphP __pyx_v_theEmbedding, char *__pyx_v_theFileName) { - int __pyx_r; +static PyObject *__pyx_f_9planarity_4full_8graphLib_g6_EndReached(G6ReadIteratorP __pyx_v_theG6ReadIterator) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("g6_EndReached", 0); - /* "planarity/full/graphLib.pyx":181 + /* "planarity/full/graphLib.pyx":182 * - * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): - * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) # <<<<<<<<<<<<<< + * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): + * return cgraphLib.g6_EndReached(theG6ReadIterator) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_DrawPlanar_RenderToFile(__pyx_v_theEmbedding, __pyx_v_theFileName); + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyBool_FromLong(g6_EndReached(__pyx_v_theG6ReadIterator)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (!(likely(PyBool_Check(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("bool", __pyx_t_1))) __PYX_ERR(0, 182, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graphLib.pyx":180 + /* "planarity/full/graphLib.pyx":181 * * - * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): # <<<<<<<<<<<<<< - * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) + * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_EndReached(theG6ReadIterator) * */ /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("planarity.full.graphLib.g6_EndReached", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = 0; __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "planarity/full/graphLib.pyx":184 +/* "planarity/full/graphLib.pyx":185 * * - * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): # <<<<<<<<<<<<<< - * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) + * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeReader(pG6ReadIterator) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(graphP __pyx_v_theEmbedding, char **__pyx_v_pRenditionString) { +static int __pyx_f_9planarity_4full_8graphLib_g6_FreeReader(G6ReadIteratorP *__pyx_v_pG6ReadIterator) { int __pyx_r; - /* "planarity/full/graphLib.pyx":185 + /* "planarity/full/graphLib.pyx":186 * - * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): - * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) # <<<<<<<<<<<<<< + * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): + * cgraphLib.g6_FreeReader(pG6ReadIterator) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_DrawPlanar_RenderToString(__pyx_v_theEmbedding, __pyx_v_pRenditionString); - goto __pyx_L0; + g6_FreeReader(__pyx_v_pG6ReadIterator); - /* "planarity/full/graphLib.pyx":184 + /* "planarity/full/graphLib.pyx":185 * * - * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): # <<<<<<<<<<<<<< - * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) + * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeReader(pG6ReadIterator) * */ /* function exit code */ - __pyx_L0:; + __pyx_r = 0; return __pyx_r; } -/* "planarity/full/graphLib.pyx":189 +/* "planarity/full/graphLib.pyx":190 * - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": - * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) + * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" + * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_g6_NewWriter(G6WriteIteratorP *__pyx_v_pG6WriteIterator, graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":190 - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": - * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): - * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":191 + * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" + * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): + * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_ExtendWith_Outerplanarity(__pyx_v_theGraph); + __pyx_r = g6_NewWriter(__pyx_v_pG6WriteIterator, __pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":189 + /* "planarity/full/graphLib.pyx":190 * - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": - * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) + * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" + * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) * */ @@ -3961,30 +3978,30 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(graph /* "planarity/full/graphLib.pyx":194 * - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": - * cdef int gp_ExtendWith_Planarity(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_Planarity(theGraph) + * + * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName(G6WriteIteratorP __pyx_v_theG6WriteIterator, char *__pyx_v_outputFileName) { int __pyx_r; /* "planarity/full/graphLib.pyx":195 - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": - * cdef int gp_ExtendWith_Planarity(graphP theGraph): - * return cgraphLib.gp_ExtendWith_Planarity(theGraph) # <<<<<<<<<<<<<< + * + * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): + * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_ExtendWith_Planarity(__pyx_v_theGraph); + __pyx_r = g6_InitWriterWithFileName(__pyx_v_theG6WriteIterator, __pyx_v_outputFileName); goto __pyx_L0; /* "planarity/full/graphLib.pyx":194 * - * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": - * cdef int gp_ExtendWith_Planarity(graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.gp_ExtendWith_Planarity(theGraph) + * + * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): # <<<<<<<<<<<<<< + * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) * */ @@ -3996,29 +4013,29 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(graphP __p /* "planarity/full/graphLib.pyx":198 * * - * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): # <<<<<<<<<<<<<< - * return cgraphLib.gp_Embed(theGraph, embedFlags) + * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_WriteGraph(theG6WriteIterator) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_Embed(graphP __pyx_v_theGraph, unsigned int __pyx_v_embedFlags) { +static int __pyx_f_9planarity_4full_8graphLib_g6_WriteGraph(G6WriteIteratorP __pyx_v_theG6WriteIterator) { int __pyx_r; /* "planarity/full/graphLib.pyx":199 * - * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): - * return cgraphLib.gp_Embed(theGraph, embedFlags) # <<<<<<<<<<<<<< + * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): + * return cgraphLib.g6_WriteGraph(theG6WriteIterator) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_Embed(__pyx_v_theGraph, __pyx_v_embedFlags); + __pyx_r = g6_WriteGraph(__pyx_v_theG6WriteIterator); goto __pyx_L0; /* "planarity/full/graphLib.pyx":198 * * - * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): # <<<<<<<<<<<<<< - * return cgraphLib.gp_Embed(theGraph, embedFlags) + * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): # <<<<<<<<<<<<<< + * return cgraphLib.g6_WriteGraph(theG6WriteIterator) * */ @@ -4030,63 +4047,59 @@ static int __pyx_f_9planarity_4full_8graphLib_gp_Embed(graphP __pyx_v_theGraph, /* "planarity/full/graphLib.pyx":202 * * - * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): # <<<<<<<<<<<<<< - * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) + * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeWriter(pG6WriteIterator) * */ -static int __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(graphP __pyx_v_theGraph, graphP __pyx_v_origGraph, int __pyx_v_embedResult) { - int __pyx_r; +static void __pyx_f_9planarity_4full_8graphLib_g6_FreeWriter(G6WriteIteratorP *__pyx_v_pG6WriteIterator) { /* "planarity/full/graphLib.pyx":203 * - * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): - * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) # <<<<<<<<<<<<<< + * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): + * cgraphLib.g6_FreeWriter(pG6WriteIterator) # <<<<<<<<<<<<<< * * */ - __pyx_r = gp_TestEmbedResultIntegrity(__pyx_v_theGraph, __pyx_v_origGraph, __pyx_v_embedResult); - goto __pyx_L0; + g6_FreeWriter(__pyx_v_pG6WriteIterator); /* "planarity/full/graphLib.pyx":202 * * - * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): # <<<<<<<<<<<<<< - * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) + * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): # <<<<<<<<<<<<<< + * cgraphLib.g6_FreeWriter(pG6WriteIterator) * */ /* function exit code */ - __pyx_L0:; - return __pyx_r; } /* "planarity/full/graphLib.pyx":207 * - * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": - * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": + * cdef int gp_ExtendWith_Planarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Planarity(theGraph) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_NewReader(G6ReadIteratorP *__pyx_v_pG6ReadIterator, graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(graphP __pyx_v_theGraph) { int __pyx_r; /* "planarity/full/graphLib.pyx":208 - * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": - * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): - * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) # <<<<<<<<<<<<<< + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": + * cdef int gp_ExtendWith_Planarity(graphP theGraph): + * return cgraphLib.gp_ExtendWith_Planarity(theGraph) # <<<<<<<<<<<<<< * * */ - __pyx_r = g6_NewReader(__pyx_v_pG6ReadIterator, __pyx_v_theGraph); + __pyx_r = gp_ExtendWith_Planarity(__pyx_v_theGraph); goto __pyx_L0; /* "planarity/full/graphLib.pyx":207 * - * # Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": - * cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": + * cdef int gp_ExtendWith_Planarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Planarity(theGraph) * */ @@ -4098,80 +4111,63 @@ static int __pyx_f_9planarity_4full_8graphLib_g6_NewReader(G6ReadIteratorP *__py /* "planarity/full/graphLib.pyx":211 * * - * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< - * return cgraphLib.g6_EndReached(theG6ReadIterator) + * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Embed(theGraph, embedFlags) * */ -static PyObject *__pyx_f_9planarity_4full_8graphLib_g6_EndReached(G6ReadIteratorP __pyx_v_theG6ReadIterator) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("g6_EndReached", 0); +static int __pyx_f_9planarity_4full_8graphLib_gp_Embed(graphP __pyx_v_theGraph, unsigned int __pyx_v_embedFlags) { + int __pyx_r; /* "planarity/full/graphLib.pyx":212 * - * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): - * return cgraphLib.g6_EndReached(theG6ReadIterator) # <<<<<<<<<<<<<< + * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): + * return cgraphLib.gp_Embed(theGraph, embedFlags) # <<<<<<<<<<<<<< * * */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(g6_EndReached(__pyx_v_theG6ReadIterator)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (!(likely(PyBool_Check(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("bool", __pyx_t_1))) __PYX_ERR(0, 212, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; + __pyx_r = gp_Embed(__pyx_v_theGraph, __pyx_v_embedFlags); goto __pyx_L0; /* "planarity/full/graphLib.pyx":211 * * - * cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< - * return cgraphLib.g6_EndReached(theG6ReadIterator) + * cdef int gp_Embed(graphP theGraph, unsigned int embedFlags): # <<<<<<<<<<<<<< + * return cgraphLib.gp_Embed(theGraph, embedFlags) * */ /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("planarity.full.graphLib.g6_EndReached", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = 0; __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "planarity/full/graphLib.pyx":215 * * - * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): # <<<<<<<<<<<<<< - * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) + * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): # <<<<<<<<<<<<<< + * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName(G6ReadIteratorP __pyx_v_theG6ReadIterator, char *__pyx_v_infileName) { +static int __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(graphP __pyx_v_theGraph, graphP __pyx_v_origGraph, int __pyx_v_embedResult) { int __pyx_r; /* "planarity/full/graphLib.pyx":216 * - * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): - * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) # <<<<<<<<<<<<<< + * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): + * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) # <<<<<<<<<<<<<< * * */ - __pyx_r = g6_InitReaderWithFileName(__pyx_v_theG6ReadIterator, __pyx_v_infileName); + __pyx_r = gp_TestEmbedResultIntegrity(__pyx_v_theGraph, __pyx_v_origGraph, __pyx_v_embedResult); goto __pyx_L0; /* "planarity/full/graphLib.pyx":215 * * - * cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): # <<<<<<<<<<<<<< - * return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) + * cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult): # <<<<<<<<<<<<<< + * return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) * */ @@ -4180,32 +4176,32 @@ static int __pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName(G6ReadIt return __pyx_r; } -/* "planarity/full/graphLib.pyx":219 +/* "planarity/full/graphLib.pyx":220 * - * - * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< - * return cgraphLib.g6_ReadGraph(theG6ReadIterator) + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": + * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_ReadGraph(G6ReadIteratorP __pyx_v_theG6ReadIterator) { +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":220 - * - * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): - * return cgraphLib.g6_ReadGraph(theG6ReadIterator) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":221 + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": + * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): + * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) # <<<<<<<<<<<<<< * * */ - __pyx_r = g6_ReadGraph(__pyx_v_theG6ReadIterator); + __pyx_r = gp_ExtendWith_Outerplanarity(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":219 - * + /* "planarity/full/graphLib.pyx":220 * - * cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): # <<<<<<<<<<<<<< - * return cgraphLib.g6_ReadGraph(theG6ReadIterator) + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": + * cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) * */ @@ -4214,65 +4210,66 @@ static int __pyx_f_9planarity_4full_8graphLib_g6_ReadGraph(G6ReadIteratorP __pyx return __pyx_r; } -/* "planarity/full/graphLib.pyx":223 +/* "planarity/full/graphLib.pyx":225 * - * - * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): # <<<<<<<<<<<<<< - * cgraphLib.g6_FreeReader(pG6ReadIterator) + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": + * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_FreeReader(G6ReadIteratorP *__pyx_v_pG6ReadIterator) { +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":224 - * - * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): - * cgraphLib.g6_FreeReader(pG6ReadIterator) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":226 + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": + * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): + * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) # <<<<<<<<<<<<<< * * */ - g6_FreeReader(__pyx_v_pG6ReadIterator); + __pyx_r = gp_ExtendWith_DrawPlanar(__pyx_v_theGraph); + goto __pyx_L0; - /* "planarity/full/graphLib.pyx":223 - * + /* "planarity/full/graphLib.pyx":225 * - * cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): # <<<<<<<<<<<<<< - * cgraphLib.g6_FreeReader(pG6ReadIterator) + * # Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": + * cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) * */ /* function exit code */ - __pyx_r = 0; + __pyx_L0:; return __pyx_r; } -/* "planarity/full/graphLib.pyx":228 +/* "planarity/full/graphLib.pyx":229 * - * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" - * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) + * + * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_NewWriter(G6WriteIteratorP *__pyx_v_pG6WriteIterator, graphP __pyx_v_theGraph) { +static int __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(graphP __pyx_v_theEmbedding, char *__pyx_v_theFileName) { int __pyx_r; - /* "planarity/full/graphLib.pyx":229 - * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" - * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): - * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":230 + * + * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): + * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) # <<<<<<<<<<<<<< * * */ - __pyx_r = g6_NewWriter(__pyx_v_pG6WriteIterator, __pyx_v_theGraph); + __pyx_r = gp_DrawPlanar_RenderToFile(__pyx_v_theEmbedding, __pyx_v_theFileName); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":228 + /* "planarity/full/graphLib.pyx":229 * - * # Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" - * cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): # <<<<<<<<<<<<<< - * return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) + * + * cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) * */ @@ -4281,32 +4278,32 @@ static int __pyx_f_9planarity_4full_8graphLib_g6_NewWriter(G6WriteIteratorP *__p return __pyx_r; } -/* "planarity/full/graphLib.pyx":232 +/* "planarity/full/graphLib.pyx":233 * * - * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): # <<<<<<<<<<<<<< - * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) + * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName(G6WriteIteratorP __pyx_v_theG6WriteIterator, char *__pyx_v_outputFileName) { +static int __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(graphP __pyx_v_theEmbedding, char **__pyx_v_pRenditionString) { int __pyx_r; - /* "planarity/full/graphLib.pyx":233 + /* "planarity/full/graphLib.pyx":234 * - * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): - * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) # <<<<<<<<<<<<<< + * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): + * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) # <<<<<<<<<<<<<< * * */ - __pyx_r = g6_InitWriterWithFileName(__pyx_v_theG6WriteIterator, __pyx_v_outputFileName); + __pyx_r = gp_DrawPlanar_RenderToString(__pyx_v_theEmbedding, __pyx_v_pRenditionString); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":232 + /* "planarity/full/graphLib.pyx":233 * * - * cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): # <<<<<<<<<<<<<< - * return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) + * cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): # <<<<<<<<<<<<<< + * return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) * */ @@ -4315,32 +4312,32 @@ static int __pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName(G6WriteI return __pyx_r; } -/* "planarity/full/graphLib.pyx":236 - * +/* "planarity/full/graphLib.pyx":238 * - * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): # <<<<<<<<<<<<<< - * return cgraphLib.g6_WriteGraph(theG6WriteIterator) + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": + * cdef int gp_ExtendWith_K23Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K23Search(theGraph) * */ -static int __pyx_f_9planarity_4full_8graphLib_g6_WriteGraph(G6WriteIteratorP __pyx_v_theG6WriteIterator) { +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(graphP __pyx_v_theGraph) { int __pyx_r; - /* "planarity/full/graphLib.pyx":237 - * - * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): - * return cgraphLib.g6_WriteGraph(theG6WriteIterator) # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":239 + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": + * cdef int gp_ExtendWith_K23Search(graphP theGraph): + * return cgraphLib.gp_ExtendWith_K23Search(theGraph) # <<<<<<<<<<<<<< * * */ - __pyx_r = g6_WriteGraph(__pyx_v_theG6WriteIterator); + __pyx_r = gp_ExtendWith_K23Search(__pyx_v_theGraph); goto __pyx_L0; - /* "planarity/full/graphLib.pyx":236 + /* "planarity/full/graphLib.pyx":238 * - * - * cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): # <<<<<<<<<<<<<< - * return cgraphLib.g6_WriteGraph(theG6WriteIterator) + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": + * cdef int gp_ExtendWith_K23Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K23Search(theGraph) * */ @@ -4349,30 +4346,68 @@ static int __pyx_f_9planarity_4full_8graphLib_g6_WriteGraph(G6WriteIteratorP __p return __pyx_r; } -/* "planarity/full/graphLib.pyx":240 +/* "planarity/full/graphLib.pyx":243 * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": + * cdef int gp_ExtendWith_K33Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K33Search(theGraph) * - * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): # <<<<<<<<<<<<<< - * cgraphLib.g6_FreeWriter(pG6WriteIterator) */ -static void __pyx_f_9planarity_4full_8graphLib_g6_FreeWriter(G6WriteIteratorP *__pyx_v_pG6WriteIterator) { +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(graphP __pyx_v_theGraph) { + int __pyx_r; - /* "planarity/full/graphLib.pyx":241 + /* "planarity/full/graphLib.pyx":244 + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": + * cdef int gp_ExtendWith_K33Search(graphP theGraph): + * return cgraphLib.gp_ExtendWith_K33Search(theGraph) # <<<<<<<<<<<<<< + * * - * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): - * cgraphLib.g6_FreeWriter(pG6WriteIterator) # <<<<<<<<<<<<<< */ - g6_FreeWriter(__pyx_v_pG6WriteIterator); + __pyx_r = gp_ExtendWith_K33Search(__pyx_v_theGraph); + goto __pyx_L0; - /* "planarity/full/graphLib.pyx":240 + /* "planarity/full/graphLib.pyx":243 * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": + * cdef int gp_ExtendWith_K33Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K33Search(theGraph) * - * cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): # <<<<<<<<<<<<<< - * cgraphLib.g6_FreeWriter(pG6WriteIterator) */ /* function exit code */ + __pyx_L0:; + return __pyx_r; +} + +/* "planarity/full/graphLib.pyx":248 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": + * cdef int gp_ExtendWith_K4Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K4Search(theGraph) +*/ + +static int __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(graphP __pyx_v_theGraph) { + int __pyx_r; + + /* "planarity/full/graphLib.pyx":249 + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": + * cdef int gp_ExtendWith_K4Search(graphP theGraph): + * return cgraphLib.gp_ExtendWith_K4Search(theGraph) # <<<<<<<<<<<<<< +*/ + __pyx_r = gp_ExtendWith_K4Search(__pyx_v_theGraph); + goto __pyx_L0; + + /* "planarity/full/graphLib.pyx":248 + * + * # Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": + * cdef int gp_ExtendWith_K4Search(graphP theGraph): # <<<<<<<<<<<<<< + * return cgraphLib.gp_ExtendWith_K4Search(theGraph) +*/ + + /* function exit code */ + __pyx_L0:; + return __pyx_r; } /* #### Code section: module_exttypes ### */ @@ -4428,8 +4463,8 @@ static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) { #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely(!__pyx_export_signature)) __PYX_ERR(0, 1, __pyx_L1_error) #endif - const char * __pyx_export_name = __pyx_export_signature + 561; - void (*const __pyx_export_pointers[])(void) = {(void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_EndReached, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DupGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_New, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeReader, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewReader, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_ReadGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewWriter, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_WriteGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetN, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Read, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Write, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_InitGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsVertex, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_FindEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_AddEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Embed, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeWriter, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Free, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph, (void (*)(void)) NULL}; + const char * __pyx_export_name = __pyx_export_signature + 562; + void (*const __pyx_export_pointers[])(void) = {(void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_EndReached, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DupGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_New, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeReader, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewReader, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_ReadGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitReaderWithFileName, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_NewWriter, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_WriteGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_InitWriterWithFileName, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetN, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdges, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Read, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Write, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_InitGraph, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsVertex, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_FindEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_AddEdge, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Embed, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_g6_FreeWriter, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Free, (void (*)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph, (void (*)(void)) NULL}; void (*const *__pyx_export_pointer)(void) = __pyx_export_pointers; const char *__pyx_export_current_signature = __pyx_export_signature; while (*__pyx_export_pointer) { @@ -4792,8 +4827,8 @@ __Pyx_RefNannySetupContext("PyInit_graphLib", 0); * * * OK = cgraphLib.OK # <<<<<<<<<<<<<< - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * NOTOK = cgraphLib.NOTOK */ __pyx_t_2 = __Pyx_PyLong_From_int(OK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -4803,191 +4838,203 @@ __Pyx_RefNannySetupContext("PyInit_graphLib", 0); /* "planarity/full/graphLib.pyx":22 * * OK = cgraphLib.OK - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< * NOTOK = cgraphLib.NOTOK + * */ - __pyx_t_2 = __Pyx_PyLong_From_int(AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graphLib.pyx":23 * OK = cgraphLib.OK - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE # <<<<<<<<<<<<<< + * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE + * NOTOK = cgraphLib.NOTOK # <<<<<<<<<<<<<< + * + * TRUE = cgraphLib.TRUE +*/ + __pyx_t_2 = __Pyx_PyLong_From_int(NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graphLib.pyx":25 * NOTOK = cgraphLib.NOTOK - * NIL = cgraphLib.NIL + * + * TRUE = cgraphLib.TRUE # <<<<<<<<<<<<<< + * FALSE = cgraphLib.FALSE + * */ - __pyx_t_2 = __Pyx_PyLong_From_int(NONEMBEDDABLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(TRUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE, __pyx_t_2) < (0)) __PYX_ERR(0, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TRUE, __pyx_t_2) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":24 - * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE - * NOTOK = cgraphLib.NOTOK # <<<<<<<<<<<<<< - * NIL = cgraphLib.NIL + /* "planarity/full/graphLib.pyx":26 * + * TRUE = cgraphLib.TRUE + * FALSE = cgraphLib.FALSE # <<<<<<<<<<<<<< + * + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT */ - __pyx_t_2 = __Pyx_PyLong_From_int(NOTOK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(FALSE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NOTOK, __pyx_t_2) < (0)) __PYX_ERR(0, 24, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_FALSE, __pyx_t_2) < (0)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":25 - * NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE - * NOTOK = cgraphLib.NOTOK - * NIL = cgraphLib.NIL # <<<<<<<<<<<<<< + /* "planarity/full/graphLib.pyx":28 + * FALSE = cgraphLib.FALSE + * + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT # <<<<<<<<<<<<<< * * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR */ - __pyx_t_2 = __Pyx_PyLong_From_int(NIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(AT_EDGE_CAPACITY_LIMIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NIL, __pyx_t_2) < (0)) __PYX_ERR(0, 25, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AT_EDGE_CAPACITY_LIMIT, __pyx_t_2) < (0)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":27 - * NIL = cgraphLib.NIL + /* "planarity/full/graphLib.pyx":30 + * AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT * * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_PLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 27, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_PLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":28 + /* "planarity/full/graphLib.pyx":31 * * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_DRAWPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 28, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_DRAWPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":29 + /* "planarity/full/graphLib.pyx":32 * EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_OUTERPLANAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 29, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_OUTERPLANAR, __pyx_t_2) < (0)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":30 + /* "planarity/full/graphLib.pyx":33 * EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 30, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK23, __pyx_t_2) < (0)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":31 + /* "planarity/full/graphLib.pyx":34 * EMBEDFLAGS_OUTERPLANAR = cgraphLib.EMBEDFLAGS_OUTERPLANAR * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 # <<<<<<<<<<<<<< * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 * */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 31, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK33, __pyx_t_2) < (0)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":32 + /* "planarity/full/graphLib.pyx":35 * EMBEDFLAGS_SEARCHFORK23 = cgraphLib.EMBEDFLAGS_SEARCHFORK23 * EMBEDFLAGS_SEARCHFORK33 = cgraphLib.EMBEDFLAGS_SEARCHFORK33 * EMBEDFLAGS_SEARCHFORK4 = cgraphLib.EMBEDFLAGS_SEARCHFORK4 # <<<<<<<<<<<<<< * * */ - __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(EMBEDFLAGS_SEARCHFORK4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 32, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_EMBEDFLAGS_SEARCHFORK4, __pyx_t_2) < (0)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":36 + /* "planarity/full/graphLib.pyx":39 * * # Functions to be made available when importing package from Python * def gp_GetQuietModeFlag() -> int: # <<<<<<<<<<<<<< * return cgraphLib.gp_GetQuietModeFlag() * */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 36, __pyx_L1_error) - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_1gp_GetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 36, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 39, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_1gp_GetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3); #endif __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, __pyx_t_3) < (0)) __PYX_ERR(0, 36, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetQuietModeFlag, __pyx_t_3) < (0)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "planarity/full/graphLib.pyx":40 + /* "planarity/full/graphLib.pyx":43 * * * def gp_SetQuietModeFlag(int newQuietModeFlag) -> None: # <<<<<<<<<<<<<< * cgraphLib.gp_SetQuietModeFlag(newQuietModeFlag) * */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 40, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 43, __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_None) < (0)) __PYX_ERR(0, 40, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_3gp_SetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_None) < (0)) __PYX_ERR(0, 43, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_3gp_SetQuietModeFlag, 0, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __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 (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, __pyx_t_2) < (0)) __PYX_ERR(0, 40, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_SetQuietModeFlag, __pyx_t_2) < (0)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":44 + /* "planarity/full/graphLib.pyx":47 * * * def gp_GetProjectVersionFull(): # <<<<<<<<<<<<<< * cdef bytes encoded_version = cgraphLib.gp_GetProjectVersionFull() * return encoded_version.decode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_5gp_GetProjectVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_5gp_GetProjectVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetProjectVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graphLib.pyx":49 + /* "planarity/full/graphLib.pyx":52 * * * def gp_GetLibPlanarityVersionFull(): # <<<<<<<<<<<<<< * cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() * return encoded_version.decode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_8graphLib_7gp_GetLibPlanarityVersionFull, 0, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graphLib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 49, __pyx_L1_error) + if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_t_2) < (0)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "planarity/full/graphLib.pyx":1 @@ -5061,39 +5108,39 @@ 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: 11; } index[] = {{1},{27},{22},{21},{22},{17},{23},{23},{22},{3},{13},{5},{4},{2},{20},{13},{15},{8},{18},{18},{15},{8},{29},{24},{19},{19},{3},{13},{5},{8},{10},{8},{16},{23},{3},{12},{12},{6},{12},{10},{8},{6},{1333},{12},{21},{21},{13}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (808 bytes) */ -const char* const cstring = "(\265/\375`\256\006\365\030\000\006f{3P\215s\3209\217H\363H\306\334\264\210R\377\231L\022\264E\272A\371\335\222\310\362\0149\222NL$\243ELD\314RU\354\270\253\t+\3625\204@\2106t\000a\000k\0008B\\\030X\347M\032o\203e\024\324\324\225\207u\034\217w/r\255_RJ4\342\2723\233W\253e6o\323\252Lb\242\264M\3130\355\341rq\310t\2335\201\351\246j\323U\236\305\326M\332\224q\234\251\243zsM\231EU\022\232\312\3034X\326\031\036\206\231\270\t\323\325EU\355M\242Qh\351\320\354\023\306\3731\200`\3660\214\236\336X#\030F\004\330\277\373\301\034=>\373\035w\327\233\337/\0303\007\r\243\354\356\320\206\026K\310\035\024\253\203y\332\356J#\250\033\203\374ic\332_\351\346\213\240\245y\247\271\342\245k\330\313Y\027\334\373\325\341\327-k\366tWK\361\365\216\236>\255\254\276!c\307e\274\337\2256(\261W\372\331^+-\226\312:\n1\214\030\377f\365~q\327?o\017\227\217\274\3217\027\207L(^\252g\365\027U\035:(j\016R\353\363\224\363\264b\327\335\257\025r\355\n3\325\3417\231\376\221\321\273Y\253\206\230^?\212k\366\247\227s\343GR\026(\013\025\n\345+\235(Lj;\022(\334D\201\273\366\343\365\307f\364\016\342J\250P:\333\210\303\236\301\330\021\000\"\t\005\244\202\200R\005\210\301\204\004P2\201\000\022\361!\020Pj \301TH\225\200\022\200\307A\010A\310\301@\211`\244aB\242s\232\225Z\030\363\3739%r\321\265\235\317G\375\361\245\226\337\214+\266\250\230\277\203N}\376\025{0c\357\246w@\325c\367F\241\305|\225\336\337X\257\206\241\005vI\377\372\205\177\361\332\337\314\232\255\304\365\220\3154\031\200\225\250\341\035\"TC\"\nSf\222a\0140\204(\312h\036\2010C\tS\206D\204\244\202\264\351\\\014s\336\303\226\264x\325\254L\032\302\0228:\314_\330\343E6n\266V\323\363Y\021\t\315f\354\341a\252\"\361\302\267j\377\203:H\027\240\0375V-@\352\361E\316\031\325\003\276\032\277\342\351|\016I\324\323-\312fH*\300\337\2700\004\344\305\354\r\206\366\302\334\034\312l\264\222@\005\330\\\260\232\017~e30\205,\017'\255\315+\004\314\247j`\216\261~\277\270\010l\271m\014*\342\n04\253\206|~\346\263D\320\030Kv\033\307\253!\362\025N:\271Vi\204\034F\322\322\312\312\263O""\271E\024o\014\316\0250?\307\235\373H\335\010[#\253\227\370\331\030\324\273t\223\3648c\020\302{5\274\315)\334\261\024X\214\1775N\366\272E\035R\350\030`\t\336\227\340\320\270).!\347\314\351Dn\016a>`T\0037\014+\253\000\343Q\263\010gK\005(\232N\025\305\324\326\203\025\372\326\274\304\225\226\346\010\306\204?\007:\257\n"; - PyObject *data = __Pyx_DecompressString(cstring, 808, 3); + const struct { const unsigned int length: 11; } index[] = {{1},{27},{22},{21},{22},{17},{23},{23},{22},{5},{13},{5},{4},{2},{20},{4},{13},{15},{8},{18},{18},{15},{8},{29},{24},{19},{19},{3},{13},{5},{8},{10},{8},{16},{23},{3},{12},{12},{6},{12},{10},{8},{6},{1353},{12},{21},{21},{13}}; + #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (814 bytes) */ +const char* const cstring = "(\265/\375`\310\006%\031\000&\346{3P\215s\3209\217H\363H\306\334\264\210R\377\231L\022\264E\272A\371\335\222\310\362\014yl\202\224JO\213\230\210\230\245\252\330qW\023V\344k\010\201\020mu\000a\000l\000\020\327\005\306y\223\306\353\260\214\202\232\272\3620\256Sq8\357\343\334\217\\\353\227\224\032\221\266\356\314\306\253\3252\033/\223\230(m\243U]6Y\017\227\213C\206\333X\023\030n\252:\256\3628\033n\322\246l\353L\034\325\3355e\026UIh*\017\323`Ycx\030f\332&LW\027U\2657\215H\241\305C3P\030\357\307\000\202\371\303@zzc\215`\030\021\376\335\017\346\370\361\331\357\270\273\336\374~\301\2307h\030ew\2076\264XD\356\241X\035\314\323vW\032C\3358\344O\033\323\376J\273/\202\226\346\235\346\212\227\236a\357fYl\357W\207_\267\254\371\323]-\305\3279z\372\264\262\272\206\214\036\227\361~W\332\240\304^\351g{\255\264X*+\t\3071\214\030\377f\365~m\327?o\036. y\243w\027\207\214(^\252g\365\037U\035z(j\016R\013\364\264\363\264b\327\335\257%r\355\n3\325\3417\231\016\222\321\271Y\253\206\230^?\212k\366\247\267s#HR\026(\013\025\n\345+\235(Lj9\022(\333Da\273\366\343\365\307ft\016\342J\250P<\033\322\206=\203\221\003\007\000!\t\005\245\202\200\222\212\017\203I\t\200d\002\341#\302C \240\244a\004S)U\002J\000:\016@\010@\016\006J\010D\032&%:\247Y\251\2051\277\237S#\037]\353\001}\324\037_j\371\315\270bN\305\374\035t\352\363\257\330\203\031;7\335\023\252\036\273G\n-\346\253\364~g\275\032\206\034I\377\272\005\366/^\373\335\254\331J\\\027\331L\223\001\200\227\250\341\035\"\245hD\n\223\242\024\20610\204(\311h\035\2210C\tSdD\204\244$m:81\224\337\213\227x\3015\003\217D5\261\216\0173\027\333<\301\300\335g\343\341A\266F<\266\037#{8\253\370\010\021_\023)C\025,\026\3345\032\254D\321\225\013\362\224>\313\010f\031\177\347\340\231\255\226k\234{N`\331\236\303\273\261\213Qd\221\3100\236\312\321,\270vQ\r\274\0279\000@\316\266+M\360\257,;'\234\271\344I\033O\001\203Av\362\236\363\241\\\204N\237!\277\315\010\002\024\0202\234\301H\254#\326\367\023\230\207*\023\372\035\254br\021~\032r\245\322\020{\217\264\245\225\236g\237r""\217\270\346`\306\325;\235\262\266\261\223R#@\355\254^RgaS\1775&\323\301\304@\2177jx\331\r\201m\244\210\235\244WXFPy\265u\241\307`Ss\202B\007#Nf\t!gw\207g\303\023\363\"\243\014\205\261\001\256\t\212_\271\"\234E5\240tzU\224d\315\036\367\377\350\340\302\203\307;)\305Q\374\031\317\017\034s\025"; + PyObject *data = __Pyx_DecompressString(cstring, 814, 3); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (946 bytes) */ -const char* const cstring = "BZh91AY&SY\355\365\014K\000\000\213\177\376e*$\002`\365\275\000\277\377\377\340\277\377\377\340@@\000@@@@\000@@@@P\003\230OZ\332\215\200\326\303\0252MO&\223\311\036Si\250\304\311\2104\320\000\006\203OP\000\323\020\343#L\230\232\014\2310\232d\014\206\200\320\032d\320\300\t\2400\221)\350\246@\246\215\251\351=F\215=&\200h\320\001\232\200\032hzOP\332C\214\2152bh2d\302i\2202\032\003@i\223C\000&\200\302E\024\364\r)=\251\350\320\231M\031=M2\000\031\014\200\000\032\006\217S\030\301\263Y\037\237f\203\217\211\214\323\311B\300\232*i\262\024\303%\3608c\275\017\343|F\026-\t\257\356\275G:*l\221\314\265\344\232\177\003#M\276\030@\336\3141\215\217xJZ.6\336\2639\333`\214\367\357\313WD\r\214\262\030AD6,F\"\210\221\246\35063W[\227\222#\243\317\240<|\r\301\355Ad\200\257g\035\0326\306\"\007OQ\332=\333\236/0\236\275\202\030\322\314\001\232\265 \000:\032\372\231\001\214\366\222\345O(MaU\206Ur5ho1\310\032S\210\001T\036\363o\2005\327\214\027\360\346A\n\260\024\020YE=\030CR\334\303!\2532\223\256j\246N-\261\267\264\035jIP1\203d\316\332(\324\20546\321.\272\004\246\014zT\242\024\237)^\260\331c.\233O\240n\215\214lm\261\215\006?\306Jp\247\277\2163\270'\313\232\341\\\266%:s\300(\"Jp\206\227Q\232\3507\204\355\320\027iz\243R=\2268\364\301\327\r\371\342\254\243*\374\341\367\231!X`\030_f:\350Y\216\026\357{\255I\2264\014\224\004@d\2550\254.\275F\3747V\257\031U\002\262V\353]\334\3214\224\204HH\360yO\303\024\022{>\034\253=\265\367w\373\035\007\250oJ\020TF\302\336ke/\262\333\273\371\272\362\357#\346\357\265pS\355zN{\177\035~\320.\2524\361\315\350A\333\233PQ\252y\213\"\300\377\212V\003\326\300\265\262E\211\362\257D\254\242\233\320j\221\002=h#Xc*\235V\301\246\360\014i\356\007\2355\031\265G- \345\t\0138\3709\245\206\330\244i\301\274\014\273\346\343!\350\020\203\3738'o\002~\013\017\273\236\306}\305)\333\202\007\025\320\023\000j\222 \224\207\340\312Q\326Kx\207\230\234\311\234\272er\322c!XxX_r\262\306\262\234\314\252$\345\\5)&\306L\002\367\025JtA\037\362\357\270F\340\0355\002*\274I\035?Y\203\2376\302\303\024\337\277\374.k\244]\306\361z0\374\000\2724\246\336\n\262\324:\210\036@\234G)\367U\304\010\365\247\001T\t\274j$\363 Q\350M\0347\207W\211Zl\271\302J\025\234\003G\331\335H\351\247(5\2065!#)\030\017\024\231\311\256\214n\024\317\227Cw\361:1\246c\300C\221\340\375br\tA\261{\035B\220\240\332\3124\302\325\3447I\356\360$\025\320\240M\217\211D\026)J+`\301d\034\211\245;+\263j\1770\323\361""\225\220A\352x,[3\223\"\322L\362@e\367X\256\224\2625\177if{(\216oq\372\342\314\313\025bE\351\347\326\361\357\255\305\333\235\247\255\247\235\037\033\213\315\375\347\375\356\237\343\305\346\233\237g\217\357K\340\305\337\215\022\370\334z\367x\275\330\334~\336\336\375\265\361\017\355\223\254\345"; - PyObject *data = __Pyx_DecompressString(cstring, 804, 1); + #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (810 bytes) */ +const char* const cstring = "x\332}T\301N\333@\020\r\022\267\252\007$\256\225\302\251\020\241 \n\342\212Ll\007\227\220\030\307\224\366\264\332\330\023g[g\355\256\327$\271\365\330O\340\310\261\307~B\217=r\344s:k\343$6N-\331;\363\336\314\354\354\314x\317\343\220r*\230\\\034\215\3230<\n\004\215'=6j\307\213\271\346\022C\357\032\244\243\331Z\307r\277\220\236um\271\306\365\205\241\233=\255;$\272\243\335\331=\255\2579k\340\340\3265\234W\350+`hhN\347\322\0348W\037Nj\341\223z\370\324\324zC\243?\350g\254\256]\364Pq\007W\375\210\303\340\212\020{1\307Wg\236$}\230K\007\306\256sk\3349\2308\321\364\217=k\350.\225k\315u\254\317\271\332=\243\311\202{,j{\221\210R\3118$^\210_\3028\221\202z0\242\3367\340^\344\203O\356A$,\342\204\214S\356\021\022\304\244\013\022\313f\027\325\374\224\033\230X\323\234\264E\364\025<\371\n\277I\031\310k\014j\2064@hX\201\030\227\204%d\231\024\2230M\010\231RL\013\237i\344\247!(\211\323)\256\034f%\367e{\333\252\275\355\242\275q\024\023\202-&\036\215\231\362\376\236\3220\217 @\246\002c' _b\242\344\303\230\246\241$DB\202\337{\032\246\220\330\213\301H\235\251\331\332\357\2369@}K\202\2402\022\366A#\333\310n\356\347\353J\277\217\230\177\320\300C5\253>\315\326&\374\260YD\251\343\353\321\303\2467\241b-\346\035\026\001\376\027\264l\260\001\256\204-B\224\2365fe^\207\226\243\024\350a\023\301\nSJ\265\014\326\231gH}>\250l\360\250|*\006)OX\300\301\317)\325\305\272\242\026\314K\267+:N\301\0311\270\217\215\362&\3407p\332\3654\356*N\311}\230)\003S\000\250V\202P\032\202+EI/\346g\304\342L\346\324\035\223\023\223\205\320\307i}\361\311\022\313|2\251\344\224se\247\230\030s\t\334W(\321\005\235\345?r\205\300\253j\010Tx\223*~\262\001?\255\205\007)\356\277\3741+\244\275\216\343\375`\370\001thL\275\025\324Wk/\232\201\270\210R\356+\213!\326\237\006\360\232H\312\020^?\222y9z\033\307\365\021\312D\305v=\302\252P\330\032\216\235p#URE\251\316l0\031J\301x\240\310\254\023J\350D\361b9\007.^1\306t\0048'\t\3369\026\227\020\024\005\321!\004\t*\255\254l\270Z\3746\311\025\236\244\002j\312e2\221\310\302E\225\017X0\031Eb\251\316""\327Yu>\230\353\270%d\220\232\230ejVRXZIn\250d\223\345\225R\262\346/\305\354\014\305D\027\003\031gZ^!V\204~j\034\377\336y~\273\367\270\363\270\367c\353y\273\365\324\352\3749~\336~\363\363\374\341\375\032x\371wk\r|j\274{\270y\336\336}\332\335\377\265\365\017V\031\265\314"; + PyObject *data = __Pyx_DecompressString(cstring, 810, 1); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #else /* compression: none (1966 bytes) */ -const char* const bytes = "?planarity/full/graphLib.pyxAT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4NILNONEMBEDDABLENOTOKNoneOK__Pyx_PyDict_NextRefWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6asyncio.coroutinescline_in_tracebackencoded_version__func__gp_GetLibPlanarityVersionFullgp_GetProjectVersionFullgp_GetQuietModeFlaggp_SetQuietModeFlagint_is_coroutineitems__main____module____name__newQuietModeFlagplanarity.full.graphLibpop__pyx_capi____qualname__return__set_name__setdefault__test__valuesPyObject *(G6ReadIteratorP)\000graphP (graphP)\000graphP (void)\000int (G6ReadIteratorP *)\000int (G6ReadIteratorP *, graphP)\000int (G6ReadIteratorP)\000int (G6ReadIteratorP, char *)\000int (G6WriteIteratorP *, graphP)\000int (G6WriteIteratorP)\000int (G6WriteIteratorP, char *)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graphP, graphP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (G6WriteIteratorP *)\000void (graphP *)\000void (graphP)\000g6_EndReached\000gp_DupGraph\000gp_New\000g6_FreeReader\000g6_NewReader\000g6_ReadGraph\000g6_InitReaderWithFileName\000g6_NewWriter\000g6_WriteGraph\000g6_InitWriterWithFileName\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000g""p_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000g6_FreeWriter\000gp_Free\000gp_ReinitGraph\320\0001\260\021\330\r!\240\021\240!\200\001\330\004*\320*C\3001\330\004\013\210?\230'\240\021\240!\200\001\330\004*\320*H\310\001\330\004\013\210?\230'\240\021\240!\320\000\035\230Q\330\004\024\320\024(\250\001"; + #else /* compression: none (1992 bytes) */ +const char* const bytes = "?planarity/full/graphLib.pyxAT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FALSENONEMBEDDABLENOTOKNoneOK__Pyx_PyDict_NextRefTRUEWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6asyncio.coroutinescline_in_tracebackencoded_version__func__gp_GetLibPlanarityVersionFullgp_GetProjectVersionFullgp_GetQuietModeFlaggp_SetQuietModeFlagint_is_coroutineitems__main____module____name__newQuietModeFlagplanarity.full.graphLibpop__pyx_capi____qualname__return__set_name__setdefault__test__valuesPyObject *(G6ReadIteratorP)\000graphP (graphP)\000graphP (void)\000int (G6ReadIteratorP *)\000int (G6ReadIteratorP *, graphP)\000int (G6ReadIteratorP)\000int (G6ReadIteratorP, char *)\000int (G6WriteIteratorP *, graphP)\000int (G6WriteIteratorP)\000int (G6WriteIteratorP, char *)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graphP, graphP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (G6WriteIteratorP *)\000void (graphP *)\000void (graphP)\000g6_EndReached\000gp_DupGraph\000gp_New\000g6_FreeReader\000g6_NewReader\000g6_ReadGraph\000g6_InitReaderWithFileName\000g6_NewWriter\000g6_WriteGraph\000g6_InitWriterWithFileName\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundEdges\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_Get""FirstEdge\000gp_GetNeighbor\000gp_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000g6_FreeWriter\000gp_Free\000gp_ReinitGraph\320\0001\260\021\330\r!\240\021\240!\200\001\330\004*\320*C\3001\330\004\013\210?\230'\240\021\240!\200\001\330\004*\320*H\310\001\330\004\013\210?\230'\240\021\240!\320\000\035\230Q\330\004\024\320\024(\250\001"; PyObject *data = NULL; CYTHON_UNUSED_VAR(__Pyx_DecompressString); #endif PyObject **stringtab = __pyx_mstate->__pyx_string_tab; Py_ssize_t pos = 0; - for (int i = 0; i < 42; i++) { + for (int i = 0; i < 43; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); if (likely(string) && i >= 2) PyUnicode_InternInPlace(&string); @@ -5104,7 +5151,7 @@ const char* const bytes = "?planarity/full/graphLib.pyxAT_EDGE_CAPACITY_LIMITEMB stringtab[i] = string; pos += bytes_length; } - for (int i = 42; i < 47; i++) { + for (int i = 43; i < 48; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); stringtab[i] = string; @@ -5115,14 +5162,14 @@ const char* const bytes = "?planarity/full/graphLib.pyxAT_EDGE_CAPACITY_LIMITEMB } } Py_XDECREF(data); - for (Py_ssize_t i = 0; i < 47; i++) { + for (Py_ssize_t i = 0; i < 48; i++) { if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { __PYX_ERR(0, 1, __pyx_L1_error) } } #if CYTHON_IMMORTAL_CONSTANTS { - PyObject **table = stringtab + 42; + PyObject **table = stringtab + 43; for (Py_ssize_t i=0; i<5; ++i) { #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING #if PY_VERSION_HEX < 0x030E0000 @@ -5168,22 +5215,22 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { PyObject* tuple_dedup_map = PyDict_New(); if (unlikely(!tuple_dedup_map)) return -1; { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 36}; + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 39}; PyObject* const varnames[] = {0}; __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_GetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 40}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 43}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_newQuietModeFlag}; __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_SetQuietModeFlag, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 44}; + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 47}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_GetProjectVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 49}; + const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 52}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_encoded_version}; __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graphLib_pyx, __pyx_mstate->__pyx_n_u_gp_GetLibPlanarityVersionFull, __pyx_mstate->__pyx_kp_b_iso88591_H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad; } diff --git a/planarity/full/graphLib.pxd b/planarity/full/graphLib.pxd index c2ad716..1858de8 100644 --- a/planarity/full/graphLib.pxd +++ b/planarity/full/graphLib.pxd @@ -9,11 +9,8 @@ from planarity.full.cgraphLib cimport graphP, G6ReadIteratorP, G6WriteIteratorP cdef graphP gp_New() - cdef int gp_InitGraph(graphP theGraph, int n) - cdef void gp_ReinitGraph(graphP theGraph) - cdef void gp_Free(graphP *pGraph) cdef int gp_EnsureEdgeCapacity(graphP theGraph, int requiredEdgeCapacity) @@ -23,25 +20,22 @@ cdef int gp_GetEdgeCapacity(graphP theGraph) cdef int gp_GetN(graphP theGraph) cdef int gp_CopyGraph(graphP dstGraph, graphP srcGraph) - cdef graphP gp_DupGraph(graphP theGraph) cdef int gp_FindEdge(graphP theGraph, int u, int v) - cdef int gp_GetVertexDegree(graphP theGraph, int v) cdef int gp_AddEdge(graphP theGraph, int u, int ulink, int v, int vlink) - cdef int gp_DeleteEdge(graphP theGraph, int e) cdef int gp_LowerBoundEdgeStorage(graphP theGraph) - cdef int gp_UpperBoundEdgeStorage(graphP theGraph) cdef int gp_IsEdge(graphP theGraph, int v) cdef int gp_EdgeInUse(graphP theGraph, int e) +cdef int gp_LowerBoundEdges(graphP theGraph) cdef int gp_UpperBoundEdges(graphP theGraph) cdef int gp_GetNextEdge(graphP theGraph, int e) @@ -51,58 +45,45 @@ cdef int gp_GetNeighbor(graphP theGraph, int e) cdef int gp_GetFirstEdge(graphP theGraph, int v) cdef int gp_LowerBoundVertices(graphP theGraph) - cdef int gp_UpperBoundVertices(graphP theGraph) cdef int gp_IsVertex(graphP theGraph, int v) -cdef int gp_ExtendWith_K23Search(graphP theGraph) - - -cdef int gp_ExtendWith_K33Search(graphP theGraph) - - -cdef int gp_ExtendWith_K4Search(graphP theGraph) - - cdef int gp_Read(graphP theGraph, char *FileName) - cdef int gp_Write(graphP theGraph, char *FileName, int Mode) -cdef int gp_ExtendWith_DrawPlanar(graphP theGraph) - -cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName) - -cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString) +cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph) +cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName) +cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator) +cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator) +cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator) -cdef int gp_ExtendWith_Outerplanarity(graphP theGraph) +cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph) +cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName) +cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) +cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) cdef int gp_ExtendWith_Planarity(graphP theGraph) - cdef int gp_Embed(graphP theGraph, unsigned int embedFlags) - cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embedResult) -cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph) - -cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator) +cdef int gp_ExtendWith_Outerplanarity(graphP theGraph) -cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName) -cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator) +cdef int gp_ExtendWith_DrawPlanar(graphP theGraph) +cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName) +cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString) -cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator) +cdef int gp_ExtendWith_K23Search(graphP theGraph) -cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph) -cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName) +cdef int gp_ExtendWith_K33Search(graphP theGraph) -cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator) -cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator) +cdef int gp_ExtendWith_K4Search(graphP theGraph) diff --git a/planarity/full/graphLib.pyx b/planarity/full/graphLib.pyx index cc10761..f1f5b6b 100644 --- a/planarity/full/graphLib.pyx +++ b/planarity/full/graphLib.pyx @@ -19,10 +19,13 @@ WRITE_G6 = cgraphLib.WRITE_G6 OK = cgraphLib.OK -AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT NONEMBEDDABLE = cgraphLib.NONEMBEDDABLE NOTOK = cgraphLib.NOTOK -NIL = cgraphLib.NIL + +TRUE = cgraphLib.TRUE +FALSE = cgraphLib.FALSE + +AT_EDGE_CAPACITY_LIMIT = cgraphLib.AT_EDGE_CAPACITY_LIMIT EMBEDFLAGS_PLANAR = cgraphLib.EMBEDFLAGS_PLANAR EMBEDFLAGS_DRAWPLANAR = cgraphLib.EMBEDFLAGS_DRAWPLANAR @@ -50,6 +53,7 @@ def gp_GetLibPlanarityVersionFull(): cdef bytes encoded_version = cgraphLib.gp_GetLibPlanarityVersionFull() return encoded_version.decode('utf-8') + # Cython cdef functions that are meant to be exposed to the planarity.full # subpackage's Cython modules # Wraps functions declared in "../c/graphLib/graph.h": @@ -120,6 +124,10 @@ cdef int gp_EdgeInUse(graphP theGraph, int e): return cgraphLib.gp_EdgeInUse(theGraph, e) +cdef int gp_LowerBoundEdges(graphP theGraph): + return cgraphLib.gp_LowerBoundEdges(theGraph) + + cdef int gp_UpperBoundEdges(graphP theGraph): return cgraphLib.gp_UpperBoundEdges(theGraph) @@ -148,46 +156,51 @@ cdef int gp_IsVertex(graphP theGraph, int v): return cgraphLib.gp_IsVertex(theGraph, v) -# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": -cdef int gp_ExtendWith_K23Search(graphP theGraph): - return cgraphLib.gp_ExtendWith_K23Search(theGraph) +# Wraps functions declared in "../c/graphLib/io/graphIO.h": +cdef int gp_Read(graphP theGraph, char *FileName): + return cgraphLib.gp_Read(theGraph, FileName) -# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": -cdef int gp_ExtendWith_K33Search(graphP theGraph): - return cgraphLib.gp_ExtendWith_K33Search(theGraph) +cdef int gp_Write(graphP theGraph, char *FileName, int Mode): + return cgraphLib.gp_Write(theGraph, FileName, Mode) -# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": -cdef int gp_ExtendWith_K4Search(graphP theGraph): - return cgraphLib.gp_ExtendWith_K4Search(theGraph) +# Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": +cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): + return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) -# Wraps functions declared in "../c/graphLib/io/graphIO.h": -cdef int gp_Read(graphP theGraph, char *FileName): - return cgraphLib.gp_Read(theGraph, FileName) +cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): + return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) -cdef int gp_Write(graphP theGraph, char *FileName, int Mode): - return cgraphLib.gp_Write(theGraph, FileName, Mode) +cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): + return cgraphLib.g6_ReadGraph(theG6ReadIterator) -# Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": -cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): - return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) +cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): + return cgraphLib.g6_EndReached(theG6ReadIterator) -cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): - return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) +cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): + cgraphLib.g6_FreeReader(pG6ReadIterator) -cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): - return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) +# Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" +cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): + return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) -# Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": -cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): - return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) +cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): + return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) + + +cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): + return cgraphLib.g6_WriteGraph(theG6WriteIterator) + + +cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): + cgraphLib.g6_FreeWriter(pG6WriteIterator) # Wraps functions declared in "../c/graphLib/planarityRelated/graphPlanarity.h": @@ -203,39 +216,34 @@ cdef int gp_TestEmbedResultIntegrity(graphP theGraph, graphP origGraph, int embe return cgraphLib.gp_TestEmbedResultIntegrity(theGraph, origGraph, embedResult) -# Wraps functions declared in "../c/graphLib/io/g6-read-iterator.h": -cdef int g6_NewReader(G6ReadIteratorP *pG6ReadIterator, graphP theGraph): - return cgraphLib.g6_NewReader(pG6ReadIterator, theGraph) - - -cdef bool g6_EndReached(G6ReadIteratorP theG6ReadIterator): - return cgraphLib.g6_EndReached(theG6ReadIterator) - - -cdef int g6_InitReaderWithFileName(G6ReadIteratorP theG6ReadIterator, char *infileName): - return cgraphLib.g6_InitReaderWithFileName(theG6ReadIterator, infileName) +# Wraps functions declared in "../c/graphLib/planarityRelated/graphOuterplanarity.h": +cdef int gp_ExtendWith_Outerplanarity(graphP theGraph): + return cgraphLib.gp_ExtendWith_Outerplanarity(theGraph) -cdef int g6_ReadGraph(G6ReadIteratorP theG6ReadIterator): - return cgraphLib.g6_ReadGraph(theG6ReadIterator) +# Wraps functions declared in "../c/graphLib/planarityRelated/graphDrawPlanar.h": +cdef int gp_ExtendWith_DrawPlanar(graphP theGraph): + return cgraphLib.gp_ExtendWith_DrawPlanar(theGraph) -cdef int g6_FreeReader(G6ReadIteratorP *pG6ReadIterator): - cgraphLib.g6_FreeReader(pG6ReadIterator) +cdef int gp_DrawPlanar_RenderToFile(graphP theEmbedding, char *theFileName): + return cgraphLib.gp_DrawPlanar_RenderToFile(theEmbedding, theFileName) -# Wraps functions declared in "../c/graphLib/io/g6-write-iterator.h" -cdef int g6_NewWriter(G6WriteIteratorP *pG6WriteIterator, graphP theGraph): - return cgraphLib.g6_NewWriter(pG6WriteIterator, theGraph) +cdef int gp_DrawPlanar_RenderToString(graphP theEmbedding, char **pRenditionString): + return cgraphLib.gp_DrawPlanar_RenderToString(theEmbedding, pRenditionString) -cdef int g6_InitWriterWithFileName(G6WriteIteratorP theG6WriteIterator, char *outputFileName): - return cgraphLib.g6_InitWriterWithFileName(theG6WriteIterator, outputFileName) +# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK23Search.h": +cdef int gp_ExtendWith_K23Search(graphP theGraph): + return cgraphLib.gp_ExtendWith_K23Search(theGraph) -cdef int g6_WriteGraph(G6WriteIteratorP theG6WriteIterator): - return cgraphLib.g6_WriteGraph(theG6WriteIterator) +# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK33Search.h": +cdef int gp_ExtendWith_K33Search(graphP theGraph): + return cgraphLib.gp_ExtendWith_K33Search(theGraph) -cdef void g6_FreeWriter(G6WriteIteratorP *pG6WriteIterator): - cgraphLib.g6_FreeWriter(pG6WriteIterator) +# Wraps functions declared in "../c/graphLib/homeomorphSearch/graphK4Search.h": +cdef int gp_ExtendWith_K4Search(graphP theGraph): + return cgraphLib.gp_ExtendWith_K4Search(theGraph) From 926ea60c23f64c6578d698b03d3981e381cc7fd3 Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Wed, 27 May 2026 15:44:22 -0700 Subject: [PATCH 7/8] Exposing gp_LowerBoundEdges() in the `Graph` class of `graph.pyx` --- planarity/full/graph.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/planarity/full/graph.pyx b/planarity/full/graph.pyx index 7cbc374..eb68240 100644 --- a/planarity/full/graph.pyx +++ b/planarity/full/graph.pyx @@ -159,6 +159,9 @@ cdef class Graph: return graphLib.gp_EdgeInUse(self._theGraph, e) + def gp_LowerBoundEdges(self): + return graphLib.gp_LowerBoundEdges(self._theGraph) + def gp_UpperBoundEdges(self): return graphLib.gp_UpperBoundEdges(self._theGraph) From 557f3ed1632240f034acf54c50b00d6f4978c68f Mon Sep 17 00:00:00 2001 From: "Wanda B.K. Boyer" Date: Wed, 27 May 2026 16:29:21 -0700 Subject: [PATCH 8/8] Reordering gp_ExtendWithXXX() methods in Graph class to match order in which they appear in cgraphLib.pxd, graphLib.pxd, and graphLib.pyx --- planarity/full/graph.c | 3330 ++++++++++++++++++++------------------ planarity/full/graph.pyx | 72 +- 2 files changed, 1760 insertions(+), 1642 deletions(-) diff --git a/planarity/full/graph.c b/planarity/full/graph.c index e944a71..896addc 100644 --- a/planarity/full/graph.c +++ b/planarity/full/graph.c @@ -2442,6 +2442,7 @@ static int (*__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage)(graphP static int (*__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_IsEdge)(graphP, int); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse)(graphP, int); /*proto*/ +static int (*__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdges)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges)(graphP); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge)(graphP, int); /*proto*/ static int (*__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor)(graphP, int); /*proto*/ @@ -2495,27 +2496,28 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_26gp_LowerBoundEdgeStor static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStorage(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_30gp_IsEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e); /* proto */ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_infile_name); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name, PyObject *__pyx_v_mode); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderToString(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerplanarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_embedFlags); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_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); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_LowerBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_UpperBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNextEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetNeighbor(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_GetFirstEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_LowerBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_UpperBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_IsVertex(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_Read(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_infile_name); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_Write(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name, PyObject *__pyx_v_mode); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Embed(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_embedFlags); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_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); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_ExtendWith_Outerplanarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_DrawPlanar(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_DrawPlanar_RenderToFile(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_DrawPlanar_RenderToString(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K23Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_ExtendWith_K33Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72gp_ExtendWith_K4Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_76__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_tp_new_9planarity_4full_5graph_Graph(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ /* #### Code section: late_includes ### */ /* #### Code section: module_state ### */ @@ -2542,8 +2544,8 @@ typedef struct { __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop; __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values; - PyObject *__pyx_codeobj_tab[36]; - PyObject *__pyx_string_tab[223]; + PyObject *__pyx_codeobj_tab[37]; + PyObject *__pyx_string_tab[225]; PyObject *__pyx_number_tab[1]; /* #### Code section: module_state_contents ### */ /* CommonTypesMetaclass.module_state_decls */ @@ -2675,139 +2677,141 @@ static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_stati #define __pyx_n_u_Graph_gp_IsEdge __pyx_string_tab[87] #define __pyx_n_u_Graph_gp_IsVertex __pyx_string_tab[88] #define __pyx_n_u_Graph_gp_LowerBoundEdgeStorage __pyx_string_tab[89] -#define __pyx_n_u_Graph_gp_LowerBoundVertices __pyx_string_tab[90] -#define __pyx_n_u_Graph_gp_Read __pyx_string_tab[91] -#define __pyx_n_u_Graph_gp_ReinitGraph __pyx_string_tab[92] -#define __pyx_n_u_Graph_gp_TestEmbedResultIntegrit __pyx_string_tab[93] -#define __pyx_n_u_Graph_gp_UpperBoundEdgeStorage __pyx_string_tab[94] -#define __pyx_n_u_Graph_gp_UpperBoundEdges __pyx_string_tab[95] -#define __pyx_n_u_Graph_gp_UpperBoundVertices __pyx_string_tab[96] -#define __pyx_n_u_Graph_gp_Write __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_TRUE __pyx_string_tab[102] -#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[103] -#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[104] -#define __pyx_n_u_WRITE_G6 __pyx_string_tab[105] -#define __pyx_n_u_a __pyx_string_tab[106] -#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[107] -#define __pyx_n_u_check_result __pyx_string_tab[108] -#define __pyx_n_u_cline_in_traceback __pyx_string_tab[109] -#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[110] -#define __pyx_n_u_e __pyx_string_tab[111] -#define __pyx_n_u_embedFlags __pyx_string_tab[112] -#define __pyx_n_u_embed_result __pyx_string_tab[113] -#define __pyx_n_u_encoded __pyx_string_tab[114] -#define __pyx_n_u_func __pyx_string_tab[115] -#define __pyx_n_u_g __pyx_string_tab[116] -#define __pyx_n_u_getstate __pyx_string_tab[117] -#define __pyx_n_u_gp_AddEdge __pyx_string_tab[118] -#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[119] -#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[120] -#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[121] -#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[122] -#define __pyx_n_u_gp_DupGraph __pyx_string_tab[123] -#define __pyx_n_u_gp_EdgeInUse __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_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_GetVertexDegree __pyx_string_tab[139] -#define __pyx_n_u_gp_InitGraph __pyx_string_tab[140] -#define __pyx_n_u_gp_IsEdge __pyx_string_tab[141] -#define __pyx_n_u_gp_IsVertex __pyx_string_tab[142] -#define __pyx_n_u_gp_LowerBoundEdgeStorage __pyx_string_tab[143] -#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[144] -#define __pyx_n_u_gp_Read __pyx_string_tab[145] -#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[146] -#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[147] -#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[148] -#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[149] -#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[150] -#define __pyx_n_u_gp_Write __pyx_string_tab[151] -#define __pyx_n_u_graphLib __pyx_string_tab[152] -#define __pyx_n_u_infile_name __pyx_string_tab[153] -#define __pyx_n_u_int __pyx_string_tab[154] -#define __pyx_n_u_is_coroutine __pyx_string_tab[155] -#define __pyx_n_u_items __pyx_string_tab[156] -#define __pyx_n_u_m __pyx_string_tab[157] -#define __pyx_n_u_main __pyx_string_tab[158] -#define __pyx_n_u_mode __pyx_string_tab[159] -#define __pyx_n_u_mode_code __pyx_string_tab[160] -#define __pyx_n_u_module __pyx_string_tab[161] -#define __pyx_n_u_n __pyx_string_tab[162] -#define __pyx_n_u_name __pyx_string_tab[163] -#define __pyx_n_u_new_edge_capacity __pyx_string_tab[164] -#define __pyx_n_u_new_graph __pyx_string_tab[165] -#define __pyx_n_u_outfile_name __pyx_string_tab[166] -#define __pyx_n_u_planarity_full __pyx_string_tab[167] -#define __pyx_n_u_planarity_full_graph __pyx_string_tab[168] -#define __pyx_n_u_pop __pyx_string_tab[169] -#define __pyx_n_u_pyx_state __pyx_string_tab[170] -#define __pyx_n_u_qualname __pyx_string_tab[171] -#define __pyx_n_u_reduce __pyx_string_tab[172] -#define __pyx_n_u_reduce_cython __pyx_string_tab[173] -#define __pyx_n_u_reduce_ex __pyx_string_tab[174] -#define __pyx_n_u_renditionString __pyx_string_tab[175] -#define __pyx_n_u_return __pyx_string_tab[176] -#define __pyx_n_u_self __pyx_string_tab[177] -#define __pyx_n_u_set_name __pyx_string_tab[178] -#define __pyx_n_u_setdefault __pyx_string_tab[179] -#define __pyx_n_u_setstate __pyx_string_tab[180] -#define __pyx_n_u_setstate_cython __pyx_string_tab[181] -#define __pyx_n_u_src_graph __pyx_string_tab[182] -#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[183] -#define __pyx_n_u_string_conversion_error __pyx_string_tab[184] -#define __pyx_n_u_test __pyx_string_tab[185] -#define __pyx_n_u_theFileName __pyx_string_tab[186] -#define __pyx_n_u_theGraph_dup __pyx_string_tab[187] -#define __pyx_n_u_u __pyx_string_tab[188] -#define __pyx_n_u_ulink __pyx_string_tab[189] -#define __pyx_n_u_v __pyx_string_tab[190] -#define __pyx_n_u_values __pyx_string_tab[191] -#define __pyx_n_u_vlink __pyx_string_tab[192] -#define __pyx_kp_b_graphP_graphP_graphP_void_int_gr __pyx_string_tab[193] -#define __pyx_kp_b_iso88591_4_Q_aq_xq_A __pyx_string_tab[194] -#define __pyx_kp_b_iso88591_A_0_A_aq __pyx_string_tab[195] -#define __pyx_kp_b_iso88591_A_0_Q __pyx_string_tab[196] -#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[197] -#define __pyx_kp_b_iso88591_A_4_3a_aq __pyx_string_tab[198] -#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a __pyx_string_tab[199] -#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[200] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a __pyx_string_tab[201] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q __pyx_string_tab[202] -#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q __pyx_string_tab[203] -#define __pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L __pyx_string_tab[204] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4_1 __pyx_string_tab[205] -#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq __pyx_string_tab[206] -#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a __pyx_string_tab[207] -#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[208] -#define __pyx_kp_b_iso88591_A_Cq_aq __pyx_string_tab[209] -#define __pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a __pyx_string_tab[210] -#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[211] -#define __pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a __pyx_string_tab[212] -#define __pyx_kp_b_iso88591_A_l_MSPQ_a_1 __pyx_string_tab[213] -#define __pyx_kp_b_iso88591_A_q_A __pyx_string_tab[214] -#define __pyx_kp_b_iso88591_A_q_A_81D_Jc_aq __pyx_string_tab[215] -#define __pyx_kp_b_iso88591_A_q_at_Cq_a_EQa __pyx_string_tab[216] -#define __pyx_kp_b_iso88591_A_s_D_r_4q __pyx_string_tab[217] -#define __pyx_kp_b_iso88591_A_s_t1_r_d_at_q __pyx_string_tab[218] -#define __pyx_kp_b_iso88591_Q __pyx_string_tab[219] -#define __pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q __pyx_string_tab[220] -#define __pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q __pyx_string_tab[221] -#define __pyx_kp_b_iso88591_y_3d_s_aq_q __pyx_string_tab[222] +#define __pyx_n_u_Graph_gp_LowerBoundEdges __pyx_string_tab[90] +#define __pyx_n_u_Graph_gp_LowerBoundVertices __pyx_string_tab[91] +#define __pyx_n_u_Graph_gp_Read __pyx_string_tab[92] +#define __pyx_n_u_Graph_gp_ReinitGraph __pyx_string_tab[93] +#define __pyx_n_u_Graph_gp_TestEmbedResultIntegrit __pyx_string_tab[94] +#define __pyx_n_u_Graph_gp_UpperBoundEdgeStorage __pyx_string_tab[95] +#define __pyx_n_u_Graph_gp_UpperBoundEdges __pyx_string_tab[96] +#define __pyx_n_u_Graph_gp_UpperBoundVertices __pyx_string_tab[97] +#define __pyx_n_u_Graph_gp_Write __pyx_string_tab[98] +#define __pyx_n_u_NONEMBEDDABLE __pyx_string_tab[99] +#define __pyx_n_u_NOTOK __pyx_string_tab[100] +#define __pyx_n_u_OK __pyx_string_tab[101] +#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[102] +#define __pyx_n_u_TRUE __pyx_string_tab[103] +#define __pyx_n_u_WRITE_ADJLIST __pyx_string_tab[104] +#define __pyx_n_u_WRITE_ADJMATRIX __pyx_string_tab[105] +#define __pyx_n_u_WRITE_G6 __pyx_string_tab[106] +#define __pyx_n_u_a __pyx_string_tab[107] +#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[108] +#define __pyx_n_u_check_result __pyx_string_tab[109] +#define __pyx_n_u_cline_in_traceback __pyx_string_tab[110] +#define __pyx_n_u_copy_of_orig_graph __pyx_string_tab[111] +#define __pyx_n_u_e __pyx_string_tab[112] +#define __pyx_n_u_embedFlags __pyx_string_tab[113] +#define __pyx_n_u_embed_result __pyx_string_tab[114] +#define __pyx_n_u_encoded __pyx_string_tab[115] +#define __pyx_n_u_func __pyx_string_tab[116] +#define __pyx_n_u_g __pyx_string_tab[117] +#define __pyx_n_u_getstate __pyx_string_tab[118] +#define __pyx_n_u_gp_AddEdge __pyx_string_tab[119] +#define __pyx_n_u_gp_CopyGraph __pyx_string_tab[120] +#define __pyx_n_u_gp_DeleteEdge __pyx_string_tab[121] +#define __pyx_n_u_gp_DrawPlanar_RenderToFile __pyx_string_tab[122] +#define __pyx_n_u_gp_DrawPlanar_RenderToString __pyx_string_tab[123] +#define __pyx_n_u_gp_DupGraph __pyx_string_tab[124] +#define __pyx_n_u_gp_EdgeInUse __pyx_string_tab[125] +#define __pyx_n_u_gp_Embed __pyx_string_tab[126] +#define __pyx_n_u_gp_EnsureEdgeCapacity __pyx_string_tab[127] +#define __pyx_n_u_gp_ExtendWith_DrawPlanar __pyx_string_tab[128] +#define __pyx_n_u_gp_ExtendWith_K23Search __pyx_string_tab[129] +#define __pyx_n_u_gp_ExtendWith_K33Search __pyx_string_tab[130] +#define __pyx_n_u_gp_ExtendWith_K4Search __pyx_string_tab[131] +#define __pyx_n_u_gp_ExtendWith_Outerplanarity __pyx_string_tab[132] +#define __pyx_n_u_gp_ExtendWith_Planarity __pyx_string_tab[133] +#define __pyx_n_u_gp_FindEdge __pyx_string_tab[134] +#define __pyx_n_u_gp_GetEdgeCapacity __pyx_string_tab[135] +#define __pyx_n_u_gp_GetFirstEdge __pyx_string_tab[136] +#define __pyx_n_u_gp_GetN __pyx_string_tab[137] +#define __pyx_n_u_gp_GetNeighbor __pyx_string_tab[138] +#define __pyx_n_u_gp_GetNextEdge __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_LowerBoundEdgeStorage __pyx_string_tab[144] +#define __pyx_n_u_gp_LowerBoundEdges __pyx_string_tab[145] +#define __pyx_n_u_gp_LowerBoundVertices __pyx_string_tab[146] +#define __pyx_n_u_gp_Read __pyx_string_tab[147] +#define __pyx_n_u_gp_ReinitGraph __pyx_string_tab[148] +#define __pyx_n_u_gp_TestEmbedResultIntegrity __pyx_string_tab[149] +#define __pyx_n_u_gp_UpperBoundEdgeStorage __pyx_string_tab[150] +#define __pyx_n_u_gp_UpperBoundEdges __pyx_string_tab[151] +#define __pyx_n_u_gp_UpperBoundVertices __pyx_string_tab[152] +#define __pyx_n_u_gp_Write __pyx_string_tab[153] +#define __pyx_n_u_graphLib __pyx_string_tab[154] +#define __pyx_n_u_infile_name __pyx_string_tab[155] +#define __pyx_n_u_int __pyx_string_tab[156] +#define __pyx_n_u_is_coroutine __pyx_string_tab[157] +#define __pyx_n_u_items __pyx_string_tab[158] +#define __pyx_n_u_m __pyx_string_tab[159] +#define __pyx_n_u_main __pyx_string_tab[160] +#define __pyx_n_u_mode __pyx_string_tab[161] +#define __pyx_n_u_mode_code __pyx_string_tab[162] +#define __pyx_n_u_module __pyx_string_tab[163] +#define __pyx_n_u_n __pyx_string_tab[164] +#define __pyx_n_u_name __pyx_string_tab[165] +#define __pyx_n_u_new_edge_capacity __pyx_string_tab[166] +#define __pyx_n_u_new_graph __pyx_string_tab[167] +#define __pyx_n_u_outfile_name __pyx_string_tab[168] +#define __pyx_n_u_planarity_full __pyx_string_tab[169] +#define __pyx_n_u_planarity_full_graph __pyx_string_tab[170] +#define __pyx_n_u_pop __pyx_string_tab[171] +#define __pyx_n_u_pyx_state __pyx_string_tab[172] +#define __pyx_n_u_qualname __pyx_string_tab[173] +#define __pyx_n_u_reduce __pyx_string_tab[174] +#define __pyx_n_u_reduce_cython __pyx_string_tab[175] +#define __pyx_n_u_reduce_ex __pyx_string_tab[176] +#define __pyx_n_u_renditionString __pyx_string_tab[177] +#define __pyx_n_u_return __pyx_string_tab[178] +#define __pyx_n_u_self __pyx_string_tab[179] +#define __pyx_n_u_set_name __pyx_string_tab[180] +#define __pyx_n_u_setdefault __pyx_string_tab[181] +#define __pyx_n_u_setstate __pyx_string_tab[182] +#define __pyx_n_u_setstate_cython __pyx_string_tab[183] +#define __pyx_n_u_src_graph __pyx_string_tab[184] +#define __pyx_n_u_src_graph_uninit_error __pyx_string_tab[185] +#define __pyx_n_u_string_conversion_error __pyx_string_tab[186] +#define __pyx_n_u_test __pyx_string_tab[187] +#define __pyx_n_u_theFileName __pyx_string_tab[188] +#define __pyx_n_u_theGraph_dup __pyx_string_tab[189] +#define __pyx_n_u_u __pyx_string_tab[190] +#define __pyx_n_u_ulink __pyx_string_tab[191] +#define __pyx_n_u_v __pyx_string_tab[192] +#define __pyx_n_u_values __pyx_string_tab[193] +#define __pyx_n_u_vlink __pyx_string_tab[194] +#define __pyx_kp_b_graphP_graphP_graphP_void_int_gr __pyx_string_tab[195] +#define __pyx_kp_b_iso88591_4_Q_aq_xq_A __pyx_string_tab[196] +#define __pyx_kp_b_iso88591_A_0_A_aq __pyx_string_tab[197] +#define __pyx_kp_b_iso88591_A_0_Q __pyx_string_tab[198] +#define __pyx_kp_b_iso88591_A_1D_Cq_aq __pyx_string_tab[199] +#define __pyx_kp_b_iso88591_A_4_3a_aq __pyx_string_tab[200] +#define __pyx_kp_b_iso88591_A_4_Q_a_y_3a_j_q_A_4xs_Yha_A_c_a __pyx_string_tab[201] +#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[202] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_8_Qd_a __pyx_string_tab[203] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_Qa_AT_Q __pyx_string_tab[204] +#define __pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q __pyx_string_tab[205] +#define __pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L __pyx_string_tab[206] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4_1 __pyx_string_tab[207] +#define __pyx_kp_b_iso88591_A_4t_q_as_1_4t_q_as_1_1D_Cq __pyx_string_tab[208] +#define __pyx_kp_b_iso88591_A_6_Bd_1_a_1_6_Bd_1_a_1_at_s_G3a __pyx_string_tab[209] +#define __pyx_kp_b_iso88591_A_AT_S_aq __pyx_string_tab[210] +#define __pyx_kp_b_iso88591_A_Cq_aq __pyx_string_tab[211] +#define __pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a __pyx_string_tab[212] +#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[213] +#define __pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a __pyx_string_tab[214] +#define __pyx_kp_b_iso88591_A_l_MSPQ_a_1 __pyx_string_tab[215] +#define __pyx_kp_b_iso88591_A_q_A __pyx_string_tab[216] +#define __pyx_kp_b_iso88591_A_q_A_81D_Jc_aq __pyx_string_tab[217] +#define __pyx_kp_b_iso88591_A_q_at_Cq_a_EQa __pyx_string_tab[218] +#define __pyx_kp_b_iso88591_A_s_D_r_4q __pyx_string_tab[219] +#define __pyx_kp_b_iso88591_A_s_t1_r_d_at_q __pyx_string_tab[220] +#define __pyx_kp_b_iso88591_Q __pyx_string_tab[221] +#define __pyx_kp_b_iso88591_Q_4L_Q_1_Qa_uA_1_a_q __pyx_string_tab[222] +#define __pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q __pyx_string_tab[223] +#define __pyx_kp_b_iso88591_y_3d_s_aq_q __pyx_string_tab[224] #define __pyx_int_0 __pyx_number_tab[0] /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE @@ -2825,8 +2829,8 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) { #endif 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<36; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<223; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); } + for (int i=0; i<37; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<225; ++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 */ @@ -2852,8 +2856,8 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode); 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<36; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } - for (int i=0; i<223; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); } + for (int i=0; i<37; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); } + for (int i=0; i<225; ++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 */ @@ -6151,7 +6155,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ * * return graphLib.gp_EdgeInUse(self._theGraph, e) # <<<<<<<<<<<<<< * - * def gp_UpperBoundEdges(self): + * def gp_LowerBoundEdges(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 160, __pyx_L1_error) @@ -6186,22 +6190,117 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_32gp_EdgeInUse(struct _ /* "planarity/full/graph.pyx":162 * return graphLib.gp_EdgeInUse(self._theGraph, e) * + * def gp_LowerBoundEdges(self): # <<<<<<<<<<<<<< + * return graphLib.gp_LowerBoundEdges(self._theGraph) + * +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_35gp_LowerBoundEdges(PyObject *__pyx_v_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_34gp_LowerBoundEdges, "Graph.gp_LowerBoundEdges(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_35gp_LowerBoundEdges = {"gp_LowerBoundEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_35gp_LowerBoundEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_34gp_LowerBoundEdges}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_35gp_LowerBoundEdges(PyObject *__pyx_v_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +) { + #if !CYTHON_METH_FASTCALL + CYTHON_UNUSED Py_ssize_t __pyx_nargs; + #endif + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_LowerBoundEdges (wrapper)", 0); + #if !CYTHON_METH_FASTCALL + #if CYTHON_ASSUME_SAFE_SIZE + __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); + #else + __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; + #endif + #endif + __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); + if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_LowerBoundEdges", 1, 0, 0, __pyx_nargs); return NULL; } + const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; + if (unlikely(__pyx_kwds_len < 0)) return NULL; + if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_LowerBoundEdges", __pyx_kwds); return NULL;} + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_34gp_LowerBoundEdges(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_LowerBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; + __Pyx_RefNannySetupContext("gp_LowerBoundEdges", 0); + + /* "planarity/full/graph.pyx":163 + * + * def gp_LowerBoundEdges(self): + * return graphLib.gp_LowerBoundEdges(self._theGraph) # <<<<<<<<<<<<<< + * + * def gp_UpperBoundEdges(self): +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdges(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 163, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "planarity/full/graph.pyx":162 + * return graphLib.gp_EdgeInUse(self._theGraph, e) + * + * def gp_LowerBoundEdges(self): # <<<<<<<<<<<<<< + * return graphLib.gp_LowerBoundEdges(self._theGraph) + * +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_LowerBoundEdges", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graph.pyx":165 + * return graphLib.gp_LowerBoundEdges(self._theGraph) + * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundEdges(self._theGraph) * */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_37gp_UpperBoundEdges(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges, "Graph.gp_UpperBoundEdges(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges = {"gp_UpperBoundEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_36gp_UpperBoundEdges, "Graph.gp_UpperBoundEdges(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_37gp_UpperBoundEdges = {"gp_UpperBoundEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_37gp_UpperBoundEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_36gp_UpperBoundEdges}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_37gp_UpperBoundEdges(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -6227,14 +6326,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_UpperBoundEdges", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_36gp_UpperBoundEdges(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_UpperBoundEdges(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -6244,7 +6343,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundEdges", 0); - /* "planarity/full/graph.pyx":163 + /* "planarity/full/graph.pyx":166 * * def gp_UpperBoundEdges(self): * return graphLib.gp_UpperBoundEdges(self._theGraph) # <<<<<<<<<<<<<< @@ -6252,15 +6351,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st * def gp_GetNextEdge(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 163, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 166, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":162 - * return graphLib.gp_EdgeInUse(self._theGraph, e) + /* "planarity/full/graph.pyx":165 + * return graphLib.gp_LowerBoundEdges(self._theGraph) * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundEdges(self._theGraph) @@ -6278,7 +6377,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st return __pyx_r; } -/* "planarity/full/graph.pyx":165 +/* "planarity/full/graph.pyx":168 * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< @@ -6287,16 +6386,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges(st */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_37gp_GetNextEdge(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNextEdge(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_36gp_GetNextEdge, "Graph.gp_GetNextEdge(self, int e)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge = {"gp_GetNextEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_36gp_GetNextEdge}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_37gp_GetNextEdge(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_38gp_GetNextEdge, "Graph.gp_GetNextEdge(self, int e)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNextEdge = {"gp_GetNextEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNextEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_38gp_GetNextEdge}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNextEdge(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -6326,32 +6425,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 165, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 168, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 165, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 168, __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_GetNextEdge", 0) < (0)) __PYX_ERR(0, 165, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetNextEdge", 0) < (0)) __PYX_ERR(0, 168, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, i); __PYX_ERR(0, 165, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, i); __PYX_ERR(0, 168, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 165, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 168, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 165, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 168, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 165, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetNextEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 168, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6362,7 +6461,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_e); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNextEdge(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_e); /* function exit code */ for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { @@ -6372,7 +6471,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNextEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -6389,7 +6488,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetNextEdge", 0); - /* "planarity/full/graph.pyx":166 + /* "planarity/full/graph.pyx":169 * * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6398,7 +6497,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6406,15 +6505,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 166, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":167 + /* "planarity/full/graph.pyx":170 * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6423,20 +6522,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":168 + /* "planarity/full/graph.pyx":171 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_GetNextEdge() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetNextEdge_failed_invalid_ed; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 45 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 168, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6445,14 +6544,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 167, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 167, __pyx_L1_error) + __PYX_ERR(0, 170, __pyx_L1_error) - /* "planarity/full/graph.pyx":166 + /* "planarity/full/graph.pyx":169 * * def gp_GetNextEdge(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6461,7 +6560,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ } - /* "planarity/full/graph.pyx":171 + /* "planarity/full/graph.pyx":174 * ) * * return graphLib.gp_GetNextEdge(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6469,14 +6568,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct * def gp_GetNeighbor(self, int e): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 171, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 174, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":165 + /* "planarity/full/graph.pyx":168 * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< @@ -6498,7 +6597,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct return __pyx_r; } -/* "planarity/full/graph.pyx":173 +/* "planarity/full/graph.pyx":176 * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< @@ -6507,16 +6606,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_36gp_GetNextEdge(struct */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNeighbor(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetNeighbor(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_38gp_GetNeighbor, "Graph.gp_GetNeighbor(self, int e)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor = {"gp_GetNeighbor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_38gp_GetNeighbor}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNeighbor(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_40gp_GetNeighbor, "Graph.gp_GetNeighbor(self, int e)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetNeighbor = {"gp_GetNeighbor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetNeighbor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_40gp_GetNeighbor}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetNeighbor(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -6546,32 +6645,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_e,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, 173, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 176, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 173, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 176, __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_GetNeighbor", 0) < (0)) __PYX_ERR(0, 173, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetNeighbor", 0) < (0)) __PYX_ERR(0, 176, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, i); __PYX_ERR(0, 173, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, i); __PYX_ERR(0, 176, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 173, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 176, __pyx_L3_error) } - __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 173, __pyx_L3_error) + __pyx_v_e = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_e == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 173, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetNeighbor", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 176, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6582,7 +6681,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_e); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetNeighbor(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_e); /* function exit code */ for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { @@ -6592,7 +6691,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetNeighbor(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_e) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -6609,7 +6708,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetNeighbor", 0); - /* "planarity/full/graph.pyx":174 + /* "planarity/full/graph.pyx":177 * * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6618,7 +6717,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_e); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6626,15 +6725,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsEdge, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 174, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":175 + /* "planarity/full/graph.pyx":178 * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6643,20 +6742,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":176 + /* "planarity/full/graph.pyx":179 * if not self.gp_IsEdge(e): * raise RuntimeError( * f"gp_GetNeighbor() failed: invalid edge index '{e}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_e, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetNeighbor_failed_invalid_ed; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 45 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 176, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6665,14 +6764,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 175, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 175, __pyx_L1_error) + __PYX_ERR(0, 178, __pyx_L1_error) - /* "planarity/full/graph.pyx":174 + /* "planarity/full/graph.pyx":177 * * def gp_GetNeighbor(self, int e): * if not self.gp_IsEdge(e): # <<<<<<<<<<<<<< @@ -6681,7 +6780,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ } - /* "planarity/full/graph.pyx":179 + /* "planarity/full/graph.pyx":182 * ) * * return graphLib.gp_GetNeighbor(self._theGraph, e) # <<<<<<<<<<<<<< @@ -6689,14 +6788,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct * def gp_GetFirstEdge(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor(__pyx_v_self->_theGraph, __pyx_v_e); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 182, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":173 + /* "planarity/full/graph.pyx":176 * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< @@ -6718,7 +6817,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct return __pyx_r; } -/* "planarity/full/graph.pyx":181 +/* "planarity/full/graph.pyx":184 * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< @@ -6727,16 +6826,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_38gp_GetNeighbor(struct */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_43gp_GetFirstEdge(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge, "Graph.gp_GetFirstEdge(self, int v)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge = {"gp_GetFirstEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_42gp_GetFirstEdge, "Graph.gp_GetFirstEdge(self, int v)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_43gp_GetFirstEdge = {"gp_GetFirstEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_43gp_GetFirstEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_42gp_GetFirstEdge}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_43gp_GetFirstEdge(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -6766,32 +6865,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 181, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 184, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 181, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 184, __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_GetFirstEdge", 0) < (0)) __PYX_ERR(0, 181, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_GetFirstEdge", 0) < (0)) __PYX_ERR(0, 184, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, i); __PYX_ERR(0, 181, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, i); __PYX_ERR(0, 184, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 181, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 184, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 181, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 184, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 181, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_GetFirstEdge", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 184, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -6802,7 +6901,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_v); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_42gp_GetFirstEdge(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_v); /* function exit code */ for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { @@ -6812,7 +6911,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_GetFirstEdge(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -6829,7 +6928,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_GetFirstEdge", 0); - /* "planarity/full/graph.pyx":182 + /* "planarity/full/graph.pyx":185 * * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -6838,7 +6937,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 182, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = 0; { @@ -6846,15 +6945,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 182, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (!__pyx_t_5); if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":183 + /* "planarity/full/graph.pyx":186 * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): * raise RuntimeError( # <<<<<<<<<<<<<< @@ -6863,20 +6962,20 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ __pyx_t_3 = NULL; - /* "planarity/full/graph.pyx":184 + /* "planarity/full/graph.pyx":187 * if not self.gp_IsVertex(v): * raise RuntimeError( * f"gp_GetFirstEdge() failed: invalid vertex intex '{v}'." # <<<<<<<<<<<<<< * ) * */ - __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_v, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_gp_GetFirstEdge_failed_invalid_v; __pyx_t_7[1] = __pyx_t_2; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 48 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2, 127); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 184, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = 1; @@ -6885,14 +6984,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc __pyx_t_1 = __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; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 183, __pyx_L1_error) + __PYX_ERR(0, 186, __pyx_L1_error) - /* "planarity/full/graph.pyx":182 + /* "planarity/full/graph.pyx":185 * * def gp_GetFirstEdge(self, int v): * if not self.gp_IsVertex(v): # <<<<<<<<<<<<<< @@ -6901,7 +7000,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ } - /* "planarity/full/graph.pyx":187 + /* "planarity/full/graph.pyx":190 * ) * * return graphLib.gp_GetFirstEdge(self._theGraph, v) # <<<<<<<<<<<<<< @@ -6909,14 +7008,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc * def gp_LowerBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 187, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error) + __pyx_t_9 = __pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":181 + /* "planarity/full/graph.pyx":184 * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< @@ -6938,7 +7037,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc return __pyx_r; } -/* "planarity/full/graph.pyx":189 +/* "planarity/full/graph.pyx":192 * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< @@ -6947,16 +7046,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge(struc */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_45gp_LowerBoundVertices(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices, "Graph.gp_LowerBoundVertices(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices = {"gp_LowerBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_44gp_LowerBoundVertices, "Graph.gp_LowerBoundVertices(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_45gp_LowerBoundVertices = {"gp_LowerBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_45gp_LowerBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_44gp_LowerBoundVertices}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_45gp_LowerBoundVertices(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -6982,14 +7081,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_LowerBoundVertices", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_44gp_LowerBoundVertices(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_LowerBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -6999,7 +7098,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_LowerBoundVertices", 0); - /* "planarity/full/graph.pyx":190 + /* "planarity/full/graph.pyx":193 * * def gp_LowerBoundVertices(self): * return graphLib.gp_LowerBoundVertices(self._theGraph) # <<<<<<<<<<<<<< @@ -7007,14 +7106,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices * def gp_UpperBoundVertices(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 190, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":189 + /* "planarity/full/graph.pyx":192 * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< @@ -7033,7 +7132,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices return __pyx_r; } -/* "planarity/full/graph.pyx":192 +/* "planarity/full/graph.pyx":195 * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< @@ -7042,16 +7141,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_47gp_UpperBoundVertices(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices, "Graph.gp_UpperBoundVertices(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices = {"gp_UpperBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_46gp_UpperBoundVertices, "Graph.gp_UpperBoundVertices(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_47gp_UpperBoundVertices = {"gp_UpperBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_47gp_UpperBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_46gp_UpperBoundVertices}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_47gp_UpperBoundVertices(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -7077,14 +7176,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_UpperBoundVertices", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_46gp_UpperBoundVertices(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_UpperBoundVertices(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -7094,7 +7193,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_UpperBoundVertices", 0); - /* "planarity/full/graph.pyx":193 + /* "planarity/full/graph.pyx":196 * * def gp_UpperBoundVertices(self): * return graphLib.gp_UpperBoundVertices(self._theGraph) # <<<<<<<<<<<<<< @@ -7102,14 +7201,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices * def gp_IsVertex(self, int v): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 193, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 196, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":192 + /* "planarity/full/graph.pyx":195 * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< @@ -7128,7 +7227,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices return __pyx_r; } -/* "planarity/full/graph.pyx":195 +/* "planarity/full/graph.pyx":198 * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< @@ -7137,16 +7236,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_47gp_IsVertex(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_49gp_IsVertex(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_46gp_IsVertex, "Graph.gp_IsVertex(self, int v)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex = {"gp_IsVertex", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_46gp_IsVertex}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_47gp_IsVertex(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_48gp_IsVertex, "Graph.gp_IsVertex(self, int v)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_49gp_IsVertex = {"gp_IsVertex", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_49gp_IsVertex, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_48gp_IsVertex}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_49gp_IsVertex(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -7176,32 +7275,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,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, 195, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 198, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 195, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 198, __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_IsVertex", 0) < (0)) __PYX_ERR(0, 195, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_IsVertex", 0) < (0)) __PYX_ERR(0, 198, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, i); __PYX_ERR(0, 195, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, i); __PYX_ERR(0, 198, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 195, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 198, __pyx_L3_error) } - __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 195, __pyx_L3_error) + __pyx_v_v = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 198, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 195, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_IsVertex", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 198, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -7212,7 +7311,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_v); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_48gp_IsVertex(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_v); /* function exit code */ for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { @@ -7222,7 +7321,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_IsVertex(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_v) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -7237,7 +7336,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_IsVertex", 0); - /* "planarity/full/graph.pyx":196 + /* "planarity/full/graph.pyx":199 * * def gp_IsVertex(self, int v): * return ( # <<<<<<<<<<<<<< @@ -7246,14 +7345,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ */ __Pyx_XDECREF(__pyx_r); - /* "planarity/full/graph.pyx":197 + /* "planarity/full/graph.pyx":200 * def gp_IsVertex(self, int v): * return ( * (v >= self.gp_LowerBoundVertices()) and # <<<<<<<<<<<<<< * (v < self.gp_UpperBoundVertices()) and * graphLib.gp_IsVertex(self._theGraph, v) */ - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_4); @@ -7262,13 +7361,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 197, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 197, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 200, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { @@ -7278,14 +7377,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":198 + /* "planarity/full/graph.pyx":201 * return ( * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and # <<<<<<<<<<<<<< * graphLib.gp_IsVertex(self._theGraph, v) * ) */ - __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 198, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = ((PyObject *)__pyx_v_self); __Pyx_INCREF(__pyx_t_2); @@ -7294,13 +7393,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 198, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } - __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 198, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 201, __pyx_L1_error) if (__pyx_t_6) { __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { @@ -7310,15 +7409,15 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ goto __pyx_L3_bool_binop_done; } - /* "planarity/full/graph.pyx":199 + /* "planarity/full/graph.pyx":202 * (v >= self.gp_LowerBoundVertices()) and * (v < self.gp_UpperBoundVertices()) and * graphLib.gp_IsVertex(self._theGraph, v) # <<<<<<<<<<<<<< * ) * */ - __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 199, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) + __pyx_t_7 = __pyx_f_9planarity_4full_8graphLib_gp_IsVertex(__pyx_v_self->_theGraph, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 202, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; @@ -7327,7 +7426,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ __pyx_t_1 = 0; goto __pyx_L0; - /* "planarity/full/graph.pyx":195 + /* "planarity/full/graph.pyx":198 * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< @@ -7349,38 +7448,43 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_46gp_IsVertex(struct __ return __pyx_r; } -/* "planarity/full/graph.pyx":202 +/* "planarity/full/graph.pyx":205 * ) * - * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K23Search structures.") + * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = infile_name.encode('utf-8') */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_49gp_ExtendWith_K23Search(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_51gp_Read(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search, "Graph.gp_ExtendWith_K23Search(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_49gp_ExtendWith_K23Search = {"gp_ExtendWith_K23Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_49gp_ExtendWith_K23Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_49gp_ExtendWith_K23Search(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_50gp_Read, "Graph.gp_Read(self, str infile_name)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_51gp_Read = {"gp_Read", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_51gp_Read, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_50gp_Read}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_51gp_Read(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { + PyObject *__pyx_v_infile_name = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject* values[1] = {0}; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_ExtendWith_K23Search (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_Read (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -7389,134 +7493,218 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_K23Search", 1, 0, 0, __pyx_nargs); return NULL; } - const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len < 0)) return NULL; - if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_K23Search", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + { + PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_infile_name,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, 205, __pyx_L3_error) + if (__pyx_kwds_len > 0) { + switch (__pyx_nargs) { + case 1: + values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 205, __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_Read", 0) < (0)) __PYX_ERR(0, 205, __pyx_L3_error) + for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, i); __PYX_ERR(0, 205, __pyx_L3_error) } + } + } else if (unlikely(__pyx_nargs != 1)) { + 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, 205, __pyx_L3_error) + } + __pyx_v_infile_name = ((PyObject*)values[0]); + } + goto __pyx_L6_skip; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 205, __pyx_L3_error) + __pyx_L6_skip:; + goto __pyx_L4_argument_unpacking_done; + __pyx_L3_error:; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Read", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 205, __pyx_L1_error) + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_50gp_Read(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_infile_name); /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __pyx_r = NULL; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + goto __pyx_L7_cleaned_up; + __pyx_L0:; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __pyx_L7_cleaned_up:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_Read(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_infile_name) { + PyObject *__pyx_v_encoded = 0; + char const *__pyx_v_FileName; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_1 = NULL; + char const *__pyx_t_2; + int __pyx_t_3; PyObject *__pyx_t_4 = NULL; - int __pyx_t_5; - size_t __pyx_t_6; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_ExtendWith_K23Search", 0); + __Pyx_RefNannySetupContext("gp_Read", 0); - /* "planarity/full/graph.pyx":203 - * - * def gp_ExtendWith_K23Search(self): - * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with K23Search structures.") + /* "planarity/full/graph.pyx":207 + * def gp_Read(self, str infile_name): + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = infile_name.encode('utf-8') # <<<<<<<<<<<<<< + * cdef const char *FileName = encoded * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 203, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __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, 203, __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, 203, __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, 203, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(__pyx_t_5)) { + if (unlikely(__pyx_v_infile_name == Py_None)) { + PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); + __PYX_ERR(0, 207, __pyx_L1_error) + } + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_encoded = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":204 - * def gp_ExtendWith_K23Search(self): - * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K23Search structures.") # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":208 + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = infile_name.encode('utf-8') + * cdef const char *FileName = encoded # <<<<<<<<<<<<<< * - * def gp_ExtendWith_K33Search(self): + * if graphLib.gp_Read(self._theGraph, FileName) != OK: */ - __pyx_t_3 = NULL; - __pyx_t_6 = 1; - { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K23S}; - __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, 204, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - } - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 204, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L1_error) + __pyx_v_FileName = __pyx_t_2; - /* "planarity/full/graph.pyx":203 + /* "planarity/full/graph.pyx":210 + * cdef const char *FileName = encoded * - * def gp_ExtendWith_K23Search(self): - * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with K23Search structures.") + * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError(f"gp_Read() failed.") * */ - } + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 210, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 210, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 210, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":202 - * ) + /* "planarity/full/graph.pyx":211 * - * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K23Search structures.") + * if graphLib.gp_Read(self._theGraph, FileName) != OK: + * raise RuntimeError(f"gp_Read() failed.") # <<<<<<<<<<<<<< + * + * def gp_Write(self, str outfile_name, str mode): */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; + __pyx_t_4 = NULL; + __pyx_t_7 = 1; + { + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_Read_failed}; + __pyx_t_5 = __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; + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + } + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __PYX_ERR(0, 211, __pyx_L1_error) + + /* "planarity/full/graph.pyx":210 + * cdef const char *FileName = encoded + * + * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError(f"gp_Read() failed.") + * +*/ + } + + /* "planarity/full/graph.pyx":205 + * ) + * + * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = infile_name.encode('utf-8') +*/ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K23Search", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Read", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; + __Pyx_XDECREF(__pyx_v_encoded); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "planarity/full/graph.pyx":206 - * raise RuntimeError("Failed to extend graph with K23Search structures.") +/* "planarity/full/graph.pyx":213 + * raise RuntimeError(f"gp_Read() failed.") * - * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K33Search structures.") + * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_51gp_ExtendWith_K33Search(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_53gp_Write(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search, "Graph.gp_ExtendWith_K33Search(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_51gp_ExtendWith_K33Search = {"gp_ExtendWith_K33Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_51gp_ExtendWith_K33Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_51gp_ExtendWith_K33Search(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_52gp_Write, "Graph.gp_Write(self, str outfile_name, str mode)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_53gp_Write = {"gp_Write", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_53gp_Write, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_52gp_Write}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_53gp_Write(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { + PyObject *__pyx_v_outfile_name = 0; + PyObject *__pyx_v_mode = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject* values[2] = {0,0}; + int __pyx_lineno = 0; + const char *__pyx_filename = NULL; + int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_ExtendWith_K33Search (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_Write (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -7525,121 +7713,367 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_K33Search", 1, 0, 0, __pyx_nargs); return NULL; } - const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len < 0)) return NULL; - if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_K33Search", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + { + PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,&__pyx_mstate_global->__pyx_n_u_mode,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, 213, __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, 213, __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, 213, __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_Write", 0) < (0)) __PYX_ERR(0, 213, __pyx_L3_error) + for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, i); __PYX_ERR(0, 213, __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, 213, __pyx_L3_error) + values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 213, __pyx_L3_error) + } + __pyx_v_outfile_name = ((PyObject*)values[0]); + __pyx_v_mode = ((PyObject*)values[1]); + } + goto __pyx_L6_skip; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 213, __pyx_L3_error) + __pyx_L6_skip:; + goto __pyx_L4_argument_unpacking_done; + __pyx_L3_error:; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Write", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 213, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mode), (&PyUnicode_Type), 1, "mode", 1))) __PYX_ERR(0, 213, __pyx_L1_error) + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_52gp_Write(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name, __pyx_v_mode); /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __pyx_r = NULL; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + goto __pyx_L7_cleaned_up; + __pyx_L0:; + for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { + Py_XDECREF(values[__pyx_temp]); + } + __pyx_L7_cleaned_up:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_Write(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name, PyObject *__pyx_v_mode) { + PyObject *__pyx_v_mode_code = NULL; + PyObject *__pyx_v_encoded = 0; + char const *__pyx_v_theFileName; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_1 = NULL; + int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; - size_t __pyx_t_6; + PyObject *__pyx_t_6 = NULL; + int __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_9[3]; + size_t __pyx_t_10; + char const *__pyx_t_11; + int __pyx_t_12; + int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_ExtendWith_K33Search", 0); + __Pyx_RefNannySetupContext("gp_Write", 0); - /* "planarity/full/graph.pyx":207 + /* "planarity/full/graph.pyx":214 * - * def gp_ExtendWith_K33Search(self): - * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with K33Search structures.") + * def gp_Write(self, str outfile_name, str mode): + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" # <<<<<<<<<<<<<< + * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * else (graphLib.WRITE_G6 if mode == "g" +*/ + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 214, __pyx_L1_error) + if (__pyx_t_2) { + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJLIST); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_1 = __pyx_t_4; + __pyx_t_4 = 0; + } else { + + /* "planarity/full/graph.pyx":215 + * def gp_Write(self, str outfile_name, str mode): + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" # <<<<<<<<<<<<<< + * else (graphLib.WRITE_G6 if mode == "g" + * else None))) +*/ + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 215, __pyx_L1_error) + if (__pyx_t_5) { + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJMATRIX); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_4 = __pyx_t_6; + __pyx_t_6 = 0; + } else { + + /* "planarity/full/graph.pyx":216 + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * else (graphLib.WRITE_G6 if mode == "g" # <<<<<<<<<<<<<< + * else None))) + * if not mode_code: +*/ + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 216, __pyx_L1_error) + if (__pyx_t_7) { + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_G6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_6 = __pyx_t_8; + __pyx_t_8 = 0; + } else { + + /* "planarity/full/graph.pyx":217 + * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * else (graphLib.WRITE_G6 if mode == "g" + * else None))) # <<<<<<<<<<<<<< + * if not mode_code: + * raise ValueError( +*/ + __Pyx_INCREF(Py_None); + __pyx_t_6 = Py_None; + } + __pyx_t_4 = __pyx_t_6; + __pyx_t_6 = 0; + } + __pyx_t_1 = __pyx_t_4; + __pyx_t_4 = 0; + } + __pyx_v_mode_code = __pyx_t_1; + __pyx_t_1 = 0; + + /* "planarity/full/graph.pyx":218 + * else (graphLib.WRITE_G6 if mode == "g" + * else None))) + * if not mode_code: # <<<<<<<<<<<<<< + * raise ValueError( + * f"Invalid graph format specifier \"{mode}\" is not one of " +*/ + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 218, __pyx_L1_error) + __pyx_t_5 = (!__pyx_t_2); + if (unlikely(__pyx_t_5)) { + + /* "planarity/full/graph.pyx":219 + * else None))) + * if not mode_code: + * raise ValueError( # <<<<<<<<<<<<<< + * f"Invalid graph format specifier \"{mode}\" is not one of " + * "'gam'." +*/ + __pyx_t_4 = NULL; + + /* "planarity/full/graph.pyx":220 + * if not mode_code: + * raise ValueError( + * f"Invalid graph format specifier \"{mode}\" is not one of " # <<<<<<<<<<<<<< + * "'gam'." + * ) +*/ + __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_graph_format_specifier; + __pyx_t_9[1] = __pyx_t_6; + __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_is_not_one_of_gam; + __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 32 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 22, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6)); + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_10 = 1; + { + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8}; + __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_Raise(__pyx_t_1, 0, 0, 0); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __PYX_ERR(0, 219, __pyx_L1_error) + + /* "planarity/full/graph.pyx":218 + * else (graphLib.WRITE_G6 if mode == "g" + * else None))) + * if not mode_code: # <<<<<<<<<<<<<< + * raise ValueError( + * f"Invalid graph format specifier \"{mode}\" is not one of " +*/ + } + + /* "planarity/full/graph.pyx":225 + * + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< + * cdef const char *theFileName = encoded * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 207, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __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, 207, __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, 207, __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, 207, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(__pyx_t_5)) { + if (unlikely(__pyx_v_outfile_name == Py_None)) { + PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); + __PYX_ERR(0, 225, __pyx_L1_error) + } + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_encoded = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "planarity/full/graph.pyx":226 + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = outfile_name.encode('utf-8') + * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< + * + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: +*/ + __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 226, __pyx_L1_error) + __pyx_v_theFileName = __pyx_t_11; + + /* "planarity/full/graph.pyx":228 + * cdef const char *theFileName = encoded + * + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError( + * f"gp_Write() of graph to '{outfile_name}' failed." +*/ + __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 228, __pyx_L1_error) + __pyx_t_13 = __pyx_f_9planarity_4full_8graphLib_gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_12); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 228, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 228, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 228, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__pyx_t_5)) { + + /* "planarity/full/graph.pyx":229 + * + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: + * raise RuntimeError( # <<<<<<<<<<<<<< + * f"gp_Write() of graph to '{outfile_name}' failed." + * ) +*/ + __pyx_t_8 = NULL; - /* "planarity/full/graph.pyx":208 - * def gp_ExtendWith_K33Search(self): - * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K33Search structures.") # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":230 + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: + * raise RuntimeError( + * f"gp_Write() of graph to '{outfile_name}' failed." # <<<<<<<<<<<<<< + * ) * - * def gp_ExtendWith_K4Search(self): */ - __pyx_t_3 = NULL; - __pyx_t_6 = 1; + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_gp_Write_of_graph_to; + __pyx_t_9[1] = __pyx_t_1; + __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_failed; + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_10 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K33S}; - __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, 208, __pyx_L1_error) + PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; + __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 208, __pyx_L1_error) + __PYX_ERR(0, 229, __pyx_L1_error) - /* "planarity/full/graph.pyx":207 - * - * def gp_ExtendWith_K33Search(self): - * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with K33Search structures.") + /* "planarity/full/graph.pyx":228 + * cdef const char *theFileName = encoded * + * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError( + * f"gp_Write() of graph to '{outfile_name}' failed." */ } - /* "planarity/full/graph.pyx":206 - * raise RuntimeError("Failed to extend graph with K23Search structures.") + /* "planarity/full/graph.pyx":213 + * raise RuntimeError(f"gp_Read() failed.") * - * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K33Search structures.") + * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K33Search", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Write", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; + __Pyx_XDECREF(__pyx_v_mode_code); + __Pyx_XDECREF(__pyx_v_encoded); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "planarity/full/graph.pyx":210 - * raise RuntimeError("Failed to extend graph with K33Search structures.") +/* "planarity/full/graph.pyx":233 + * ) * - * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K4Search structures.") + * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with Planarity structures.") */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_53gp_ExtendWith_K4Search(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_55gp_ExtendWith_Planarity(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search, "Graph.gp_ExtendWith_K4Search(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_53gp_ExtendWith_K4Search = {"gp_ExtendWith_K4Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_53gp_ExtendWith_K4Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_53gp_ExtendWith_K4Search(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planarity, "Graph.gp_ExtendWith_Planarity(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_55gp_ExtendWith_Planarity = {"gp_ExtendWith_Planarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_55gp_ExtendWith_Planarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planarity}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_55gp_ExtendWith_Planarity(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -7652,7 +8086,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_ExtendWith_K4Search (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_Planarity (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -7661,18 +8095,18 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_K4Search", 1, 0, 0, __pyx_nargs); return NULL; } + if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_Planarity", 1, 0, 0, __pyx_nargs); return NULL; } const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; - if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_K4Search", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_Planarity", __pyx_kwds); return NULL;} + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planarity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +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; @@ -7684,62 +8118,62 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_ExtendWith_K4Search", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_Planarity", 0); - /* "planarity/full/graph.pyx":211 + /* "planarity/full/graph.pyx":234 * - * def gp_ExtendWith_K4Search(self): - * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with K4Search structures.") + * def gp_ExtendWith_Planarity(self): + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 211, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __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, 211, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 234, __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, 211, __pyx_L1_error) + __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, 234, __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, 211, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":212 - * def gp_ExtendWith_K4Search(self): - * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K4Search structures.") # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":235 + * def gp_ExtendWith_Planarity(self): + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with Planarity structures.") # <<<<<<<<<<<<<< * - * def gp_Read(self, str infile_name): + * def gp_Embed(self, int embedFlags) -> int: */ __pyx_t_3 = NULL; __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K4Se}; + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Plan}; __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, 212, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 212, __pyx_L1_error) + __PYX_ERR(0, 235, __pyx_L1_error) - /* "planarity/full/graph.pyx":211 + /* "planarity/full/graph.pyx":234 * - * def gp_ExtendWith_K4Search(self): - * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with K4Search structures.") + * def gp_ExtendWith_Planarity(self): + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with Planarity structures.") * */ } - /* "planarity/full/graph.pyx":210 - * raise RuntimeError("Failed to extend graph with K33Search structures.") + /* "planarity/full/graph.pyx":233 + * ) * - * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K4Search structures.") + * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with Planarity structures.") */ /* function exit code */ @@ -7749,7 +8183,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K4Search", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Planarity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -7757,32 +8191,32 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Searc return __pyx_r; } -/* "planarity/full/graph.pyx":214 - * raise RuntimeError("Failed to extend graph with K4Search structures.") +/* "planarity/full/graph.pyx":237 + * raise RuntimeError("Failed to extend graph with Planarity structures.") * - * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = infile_name.encode('utf-8') + * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_55gp_Read(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Embed(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_54gp_Read, "Graph.gp_Read(self, str infile_name)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read = {"gp_Read", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_54gp_Read}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_55gp_Read(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_56gp_Embed, "Graph.gp_Embed(self, int embedFlags) -> int"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Embed = {"gp_Embed", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Embed, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_56gp_Embed}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Embed(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { - PyObject *__pyx_v_infile_name = 0; + int __pyx_v_embedFlags; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif @@ -7793,7 +8227,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_Read (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_Embed (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -7803,72 +8237,61 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { - PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_infile_name,0}; + PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_embedFlags,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, 214, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 237, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 214, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 237, __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_Read", 0) < (0)) __PYX_ERR(0, 214, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_Embed", 0) < (0)) __PYX_ERR(0, 237, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, i); __PYX_ERR(0, 214, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, i); __PYX_ERR(0, 237, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 214, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 237, __pyx_L3_error) } - __pyx_v_infile_name = ((PyObject*)values[0]); + __pyx_v_embedFlags = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_embedFlags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 237, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Read", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 214, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 237, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { Py_XDECREF(values[__pyx_temp]); } - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Read", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Embed", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_infile_name), (&PyUnicode_Type), 1, "infile_name", 1))) __PYX_ERR(0, 214, __pyx_L1_error) - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_infile_name); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_56gp_Embed(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_embedFlags); /* function exit code */ - goto __pyx_L0; - __pyx_L1_error:; - __pyx_r = NULL; - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - goto __pyx_L7_cleaned_up; - __pyx_L0:; for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { Py_XDECREF(values[__pyx_temp]); } - __pyx_L7_cleaned_up:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_infile_name) { - PyObject *__pyx_v_encoded = 0; - char const *__pyx_v_FileName; +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_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; - char const *__pyx_t_2; - int __pyx_t_3; + int __pyx_t_1; + int __pyx_t_2; + PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; @@ -7876,133 +8299,144 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_54gp_Read(struct __pyx_ int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_Read", 0); - - /* "planarity/full/graph.pyx":216 - * def gp_Read(self, str infile_name): - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = infile_name.encode('utf-8') # <<<<<<<<<<<<<< - * cdef const char *FileName = encoded - * -*/ - if (unlikely(__pyx_v_infile_name == Py_None)) { - PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 216, __pyx_L1_error) - } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_infile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_encoded = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; + __Pyx_RefNannySetupContext("gp_Embed", 0); - /* "planarity/full/graph.pyx":217 - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = infile_name.encode('utf-8') - * cdef const char *FileName = encoded # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":238 * - * if graphLib.gp_Read(self._theGraph, FileName) != OK: + * def gp_Embed(self, int embedFlags) -> int: + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< + * if embed_result != OK and embed_result != NONEMBEDDABLE: + * raise RuntimeError("Failed to perform embed operation.") */ - __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 217, __pyx_L1_error) - __pyx_v_FileName = __pyx_t_2; + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 238, __pyx_L1_error) + __pyx_v_embed_result = __pyx_t_1; - /* "planarity/full/graph.pyx":219 - * cdef const char *FileName = encoded - * - * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError(f"gp_Read() failed.") + /* "planarity/full/graph.pyx":239 + * def gp_Embed(self, int embedFlags) -> int: + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to perform embed operation.") * */ - __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_Read(__pyx_v_self->_theGraph, __pyx_v_FileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 219, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 219, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(__pyx_t_6)) { + if (__pyx_t_6) { + } else { + __pyx_t_2 = __pyx_t_6; + goto __pyx_L4_bool_binop_done; + } + __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 239, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_2 = __pyx_t_6; + __pyx_L4_bool_binop_done:; + if (unlikely(__pyx_t_2)) { - /* "planarity/full/graph.pyx":220 - * - * if graphLib.gp_Read(self._theGraph, FileName) != OK: - * raise RuntimeError(f"gp_Read() failed.") # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":240 + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: + * raise RuntimeError("Failed to perform embed operation.") # <<<<<<<<<<<<<< * - * def gp_Write(self, str outfile_name, str mode): + * return embed_result */ __pyx_t_4 = NULL; __pyx_t_7 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_gp_Read_failed}; - __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_to_perform_embed_operatio}; + __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_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 220, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); } - __Pyx_Raise(__pyx_t_5, 0, 0, 0); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(0, 220, __pyx_L1_error) + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __PYX_ERR(0, 240, __pyx_L1_error) - /* "planarity/full/graph.pyx":219 - * cdef const char *FileName = encoded - * - * if graphLib.gp_Read(self._theGraph, FileName) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError(f"gp_Read() failed.") + /* "planarity/full/graph.pyx":239 + * def gp_Embed(self, int embedFlags) -> int: + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to perform embed operation.") * */ } - /* "planarity/full/graph.pyx":214 - * raise RuntimeError("Failed to extend graph with K4Search structures.") + /* "planarity/full/graph.pyx":242 + * raise RuntimeError("Failed to perform embed operation.") * - * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = infile_name.encode('utf-8') + * return embed_result # <<<<<<<<<<<<<< + * + * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: +*/ + __Pyx_XDECREF(__pyx_r); + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_3); + __pyx_t_3 = 0; + goto __pyx_L0; + + /* "planarity/full/graph.pyx":237 + * raise RuntimeError("Failed to extend graph with Planarity structures.") + * + * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< + * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) + * if embed_result != OK and embed_result != NONEMBEDDABLE: */ /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - 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_AddTraceback("planarity.full.graph.Graph.gp_Read", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Embed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; - __Pyx_XDECREF(__pyx_v_encoded); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "planarity/full/graph.pyx":222 - * raise RuntimeError(f"gp_Read() failed.") +/* "planarity/full/graph.pyx":244 + * return embed_result * - * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< - * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" - * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< + * check_result = graphLib.gp_TestEmbedResultIntegrity( + * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Write(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_59gp_TestEmbedResultIntegrity(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_56gp_Write, "Graph.gp_Write(self, str outfile_name, str mode)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Write = {"gp_Write", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_56gp_Write}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Write(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_58gp_TestEmbedResultIntegrity, "Graph.gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_59gp_TestEmbedResultIntegrity = {"gp_TestEmbedResultIntegrity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_59gp_TestEmbedResultIntegrity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_58gp_TestEmbedResultIntegrity}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_59gp_TestEmbedResultIntegrity(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { - PyObject *__pyx_v_outfile_name = 0; - PyObject *__pyx_v_mode = 0; + struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_copy_of_orig_graph = 0; + int __pyx_v_embed_result; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif @@ -8013,7 +8447,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_Write (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_TestEmbedResultIntegrity (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -8023,54 +8457,53 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { - PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,&__pyx_mstate_global->__pyx_n_u_mode,0}; + 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, 222, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 244, __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, 222, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 244, __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, 222, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 244, __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_Write", 0) < (0)) __PYX_ERR(0, 222, __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, 244, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 2; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, i); __PYX_ERR(0, 222, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, i); __PYX_ERR(0, 244, __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, 222, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 244, __pyx_L3_error) values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 222, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 244, __pyx_L3_error) } - __pyx_v_outfile_name = ((PyObject*)values[0]); - __pyx_v_mode = ((PyObject*)values[1]); + __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, 244, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Write", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 222, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 244, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { Py_XDECREF(values[__pyx_temp]); } - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Write", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_TestEmbedResultIntegrity", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 222, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mode), (&PyUnicode_Type), 1, "mode", 1))) __PYX_ERR(0, 222, __pyx_L1_error) - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name, __pyx_v_mode); + 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, 244, __pyx_L1_error) + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_58gp_TestEmbedResultIntegrity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_copy_of_orig_graph, __pyx_v_embed_result); /* function exit code */ goto __pyx_L0; @@ -8089,283 +8522,269 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name, PyObject *__pyx_v_mode) { - PyObject *__pyx_v_mode_code = NULL; - PyObject *__pyx_v_encoded = 0; - char const *__pyx_v_theFileName; +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_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; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - int __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_t_7; - PyObject *__pyx_t_8 = NULL; - PyObject *__pyx_t_9[3]; - size_t __pyx_t_10; - char const *__pyx_t_11; - int __pyx_t_12; - int __pyx_t_13; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + size_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_Write", 0); + __Pyx_RefNannySetupContext("gp_TestEmbedResultIntegrity", 0); - /* "planarity/full/graph.pyx":223 + /* "planarity/full/graph.pyx":245 * - * def gp_Write(self, str outfile_name, str mode): - * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" # <<<<<<<<<<<<<< - * else (graphLib.WRITE_ADJMATRIX if mode == "m" - * else (graphLib.WRITE_G6 if mode == "g" -*/ - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_a, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 223, __pyx_L1_error) - if (__pyx_t_2) { - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJLIST); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 223, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_1 = __pyx_t_4; - __pyx_t_4 = 0; - } else { - - /* "planarity/full/graph.pyx":224 - * def gp_Write(self, str outfile_name, str mode): - * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" - * else (graphLib.WRITE_ADJMATRIX if mode == "m" # <<<<<<<<<<<<<< - * else (graphLib.WRITE_G6 if mode == "g" - * else None))) -*/ - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_m, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 224, __pyx_L1_error) - if (__pyx_t_5) { - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_ADJMATRIX); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_4 = __pyx_t_6; - __pyx_t_6 = 0; - } else { - - /* "planarity/full/graph.pyx":225 - * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" - * else (graphLib.WRITE_ADJMATRIX if mode == "m" - * else (graphLib.WRITE_G6 if mode == "g" # <<<<<<<<<<<<<< - * else None))) - * if not mode_code: + * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: + * check_result = graphLib.gp_TestEmbedResultIntegrity( # <<<<<<<<<<<<<< + * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * ) */ - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_g, Py_EQ)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 225, __pyx_L1_error) - if (__pyx_t_7) { - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_graphLib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_WRITE_G6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 225, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __pyx_t_8; - __pyx_t_8 = 0; - } else { + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 245, __pyx_L1_error) + __pyx_v_check_result = __pyx_t_1; - /* "planarity/full/graph.pyx":226 - * else (graphLib.WRITE_ADJMATRIX if mode == "m" - * else (graphLib.WRITE_G6 if mode == "g" - * else None))) # <<<<<<<<<<<<<< - * if not mode_code: - * raise ValueError( + /* "planarity/full/graph.pyx":248 + * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * ) + * if check_result != OK and check_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed embed integrity check.") + * */ - __Pyx_INCREF(Py_None); - __pyx_t_6 = Py_None; - } - __pyx_t_4 = __pyx_t_6; - __pyx_t_6 = 0; - } - __pyx_t_1 = __pyx_t_4; - __pyx_t_4 = 0; + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (__pyx_t_6) { + } else { + __pyx_t_2 = __pyx_t_6; + goto __pyx_L4_bool_binop_done; } - __pyx_v_mode_code = __pyx_t_1; - __pyx_t_1 = 0; - - /* "planarity/full/graph.pyx":227 - * else (graphLib.WRITE_G6 if mode == "g" - * else None))) - * if not mode_code: # <<<<<<<<<<<<<< - * raise ValueError( - * f"Invalid graph format specifier \"{mode}\" is not one of " -*/ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mode_code); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 227, __pyx_L1_error) - __pyx_t_5 = (!__pyx_t_2); - if (unlikely(__pyx_t_5)) { + __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_2 = __pyx_t_6; + __pyx_L4_bool_binop_done:; + if (unlikely(__pyx_t_2)) { - /* "planarity/full/graph.pyx":228 - * else None))) - * if not mode_code: - * raise ValueError( # <<<<<<<<<<<<<< - * f"Invalid graph format specifier \"{mode}\" is not one of " - * "'gam'." + /* "planarity/full/graph.pyx":249 + * ) + * if check_result != OK and check_result != NONEMBEDDABLE: + * raise RuntimeError("Failed embed integrity check.") # <<<<<<<<<<<<<< + * + * return check_result */ __pyx_t_4 = NULL; - - /* "planarity/full/graph.pyx":229 - * if not mode_code: - * raise ValueError( - * f"Invalid graph format specifier \"{mode}\" is not one of " # <<<<<<<<<<<<<< - * "'gam'." - * ) -*/ - __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_mode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 229, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_Invalid_graph_format_specifier; - __pyx_t_9[1] = __pyx_t_6; - __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_is_not_one_of_gam; - __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 32 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 22, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6)); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 229, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_10 = 1; + __pyx_t_7 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8}; - __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); + PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_embed_integrity_check}; + __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_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 249, __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_ERR(0, 228, __pyx_L1_error) + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __PYX_ERR(0, 249, __pyx_L1_error) - /* "planarity/full/graph.pyx":227 - * else (graphLib.WRITE_G6 if mode == "g" - * else None))) - * if not mode_code: # <<<<<<<<<<<<<< - * raise ValueError( - * f"Invalid graph format specifier \"{mode}\" is not one of " + /* "planarity/full/graph.pyx":248 + * 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":234 + /* "planarity/full/graph.pyx":251 + * raise RuntimeError("Failed embed integrity check.") * - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< - * cdef const char *theFileName = encoded + * return check_result # <<<<<<<<<<<<<< * + * def gp_ExtendWith_Outerplanarity(self): */ - if (unlikely(__pyx_v_outfile_name == Py_None)) { - PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 234, __pyx_L1_error) - } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_encoded = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; + __Pyx_XDECREF(__pyx_r); + __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 251, __pyx_L1_error) + __pyx_r = ((PyObject*)__pyx_t_3); + __pyx_t_3 = 0; + goto __pyx_L0; + + /* "planarity/full/graph.pyx":244 + * return embed_result + * + * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< + * check_result = graphLib.gp_TestEmbedResultIntegrity( + * self._theGraph, copy_of_orig_graph._theGraph, embed_result +*/ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_TestEmbedResultIntegrity", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "planarity/full/graph.pyx":253 + * return check_result + * + * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") +*/ + +/* Python wrapper */ +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_61gp_ExtendWith_Outerplanarity(PyObject *__pyx_v_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +); /*proto*/ +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_60gp_ExtendWith_Outerplanarity, "Graph.gp_ExtendWith_Outerplanarity(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_61gp_ExtendWith_Outerplanarity = {"gp_ExtendWith_Outerplanarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_61gp_ExtendWith_Outerplanarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_60gp_ExtendWith_Outerplanarity}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_61gp_ExtendWith_Outerplanarity(PyObject *__pyx_v_self, +#if CYTHON_METH_FASTCALL +PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds +#else +PyObject *__pyx_args, PyObject *__pyx_kwds +#endif +) { + #if !CYTHON_METH_FASTCALL + CYTHON_UNUSED Py_ssize_t __pyx_nargs; + #endif + CYTHON_UNUSED PyObject *const *__pyx_kwvalues; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("gp_ExtendWith_Outerplanarity (wrapper)", 0); + #if !CYTHON_METH_FASTCALL + #if CYTHON_ASSUME_SAFE_SIZE + __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); + #else + __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; + #endif + #endif + __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); + if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_Outerplanarity", 1, 0, 0, __pyx_nargs); return NULL; } + const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; + if (unlikely(__pyx_kwds_len < 0)) return NULL; + if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_Outerplanarity", __pyx_kwds); return NULL;} + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_60gp_ExtendWith_Outerplanarity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); - /* "planarity/full/graph.pyx":235 - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = outfile_name.encode('utf-8') - * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< - * - * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: -*/ - __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 235, __pyx_L1_error) - __pyx_v_theFileName = __pyx_t_11; + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} - /* "planarity/full/graph.pyx":237 - * cdef const char *theFileName = encoded +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_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_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_ExtendWith_Outerplanarity", 0); + + /* "planarity/full/graph.pyx":254 + * + * def gp_ExtendWith_Outerplanarity(self): + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * - * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError( - * f"gp_Write() of graph to '{outfile_name}' failed." */ - __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_mode_code); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 237, __pyx_L1_error) - __pyx_t_13 = __pyx_f_9planarity_4full_8graphLib_gp_Write(__pyx_v_self->_theGraph, __pyx_v_theFileName, __pyx_t_12); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 237, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 237, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 237, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 254, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __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, 254, __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, 254, __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, 254, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":238 - * - * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: - * raise RuntimeError( # <<<<<<<<<<<<<< - * f"gp_Write() of graph to '{outfile_name}' failed." - * ) -*/ - __pyx_t_8 = NULL; - - /* "planarity/full/graph.pyx":239 - * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: - * raise RuntimeError( - * f"gp_Write() of graph to '{outfile_name}' failed." # <<<<<<<<<<<<<< - * ) + /* "planarity/full/graph.pyx":255 + * def gp_ExtendWith_Outerplanarity(self): + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") # <<<<<<<<<<<<<< * + * def gp_ExtendWith_DrawPlanar(self): */ - __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_gp_Write_of_graph_to; - __pyx_t_9[1] = __pyx_t_1; - __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_failed; - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_9, 3, 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 9, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_10 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; - __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)); - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 238, __pyx_L1_error) + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Oute}; + __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, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 238, __pyx_L1_error) + __PYX_ERR(0, 255, __pyx_L1_error) - /* "planarity/full/graph.pyx":237 - * cdef const char *theFileName = encoded + /* "planarity/full/graph.pyx":254 + * + * def gp_ExtendWith_Outerplanarity(self): + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * - * if graphLib.gp_Write(self._theGraph, theFileName, mode_code) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError( - * f"gp_Write() of graph to '{outfile_name}' failed." */ } - /* "planarity/full/graph.pyx":222 - * raise RuntimeError(f"gp_Read() failed.") + /* "planarity/full/graph.pyx":253 + * return check_result * - * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< - * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" - * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") */ /* function exit code */ __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_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Write", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Outerplanarity", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; - __Pyx_XDECREF(__pyx_v_mode_code); - __Pyx_XDECREF(__pyx_v_encoded); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "planarity/full/graph.pyx":242 - * ) +/* "planarity/full/graph.pyx":257 + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: @@ -8373,16 +8792,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_56gp_Write(struct __pyx */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_59gp_ExtendWith_DrawPlanar(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_63gp_ExtendWith_DrawPlanar(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar, "Graph.gp_ExtendWith_DrawPlanar(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_59gp_ExtendWith_DrawPlanar = {"gp_ExtendWith_DrawPlanar", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_59gp_ExtendWith_DrawPlanar, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_59gp_ExtendWith_DrawPlanar(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_62gp_ExtendWith_DrawPlanar, "Graph.gp_ExtendWith_DrawPlanar(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_63gp_ExtendWith_DrawPlanar = {"gp_ExtendWith_DrawPlanar", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_63gp_ExtendWith_DrawPlanar, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_62gp_ExtendWith_DrawPlanar}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_63gp_ExtendWith_DrawPlanar(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -8408,14 +8827,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_DrawPlanar", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_DrawPlanar(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_ExtendWith_DrawPlanar(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -8429,26 +8848,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_ExtendWith_DrawPlanar", 0); - /* "planarity/full/graph.pyx":243 + /* "planarity/full/graph.pyx":258 * * def gp_ExtendWith_DrawPlanar(self): * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 243, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 258, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __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, 243, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 258, __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, 243, __pyx_L1_error) + __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, 258, __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, 243, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":244 + /* "planarity/full/graph.pyx":259 * def gp_ExtendWith_DrawPlanar(self): * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") # <<<<<<<<<<<<<< @@ -8461,14 +8880,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Draw}; __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, 244, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 244, __pyx_L1_error) + __PYX_ERR(0, 259, __pyx_L1_error) - /* "planarity/full/graph.pyx":243 + /* "planarity/full/graph.pyx":258 * * def gp_ExtendWith_DrawPlanar(self): * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: # <<<<<<<<<<<<<< @@ -8477,8 +8896,8 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla */ } - /* "planarity/full/graph.pyx":242 - * ) + /* "planarity/full/graph.pyx":257 + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< * if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: @@ -8500,7 +8919,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla return __pyx_r; } -/* "planarity/full/graph.pyx":246 +/* "planarity/full/graph.pyx":261 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< @@ -8509,16 +8928,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPla */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_65gp_DrawPlanar_RenderToFile(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile, "Graph.gp_DrawPlanar_RenderToFile(self, str outfile_name)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile = {"gp_DrawPlanar_RenderToFile", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_64gp_DrawPlanar_RenderToFile, "Graph.gp_DrawPlanar_RenderToFile(self, str outfile_name)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_65gp_DrawPlanar_RenderToFile = {"gp_DrawPlanar_RenderToFile", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_65gp_DrawPlanar_RenderToFile, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_64gp_DrawPlanar_RenderToFile}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_65gp_DrawPlanar_RenderToFile(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -8548,32 +8967,32 @@ PyObject *__pyx_args, PyObject *__pyx_kwds { PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_outfile_name,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, 246, __pyx_L3_error) + if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 261, __pyx_L3_error) if (__pyx_kwds_len > 0) { switch (__pyx_nargs) { case 1: values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 246, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 261, __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_DrawPlanar_RenderToFile", 0) < (0)) __PYX_ERR(0, 246, __pyx_L3_error) + if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gp_DrawPlanar_RenderToFile", 0) < (0)) __PYX_ERR(0, 261, __pyx_L3_error) for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, i); __PYX_ERR(0, 246, __pyx_L3_error) } + if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, i); __PYX_ERR(0, 261, __pyx_L3_error) } } } else if (unlikely(__pyx_nargs != 1)) { 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, 246, __pyx_L3_error) + if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 261, __pyx_L3_error) } __pyx_v_outfile_name = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 246, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gp_DrawPlanar_RenderToFile", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 261, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -8584,8 +9003,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 246, __pyx_L1_error) - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outfile_name), (&PyUnicode_Type), 1, "outfile_name", 1))) __PYX_ERR(0, 261, __pyx_L1_error) + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_64gp_DrawPlanar_RenderToFile(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_outfile_name); /* function exit code */ goto __pyx_L0; @@ -8604,7 +9023,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_DrawPlanar_RenderToFile(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, PyObject *__pyx_v_outfile_name) { PyObject *__pyx_v_encoded = 0; char const *__pyx_v_theFileName; PyObject *__pyx_r = NULL; @@ -8623,7 +9042,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DrawPlanar_RenderToFile", 0); - /* "planarity/full/graph.pyx":248 + /* "planarity/full/graph.pyx":263 * def gp_DrawPlanar_RenderToFile(self, str outfile_name): * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') # <<<<<<<<<<<<<< @@ -8632,43 +9051,43 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ if (unlikely(__pyx_v_outfile_name == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode"); - __PYX_ERR(0, 248, __pyx_L1_error) + __PYX_ERR(0, 263, __pyx_L1_error) } - __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_encoded = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "planarity/full/graph.pyx":249 + /* "planarity/full/graph.pyx":264 * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') * cdef const char *theFileName = encoded # <<<<<<<<<<<<<< * * if graphLib.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, 249, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_encoded); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 264, __pyx_L1_error) __pyx_v_theFileName = __pyx_t_2; - /* "planarity/full/graph.pyx":251 + /* "planarity/full/graph.pyx":266 * cdef const char *theFileName = encoded * * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * */ - __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 251, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error) + __pyx_t_3 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile(__pyx_v_self->_theGraph, __pyx_v_theFileName); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 266, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 251, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 251, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_t_6)) { - /* "planarity/full/graph.pyx":252 + /* "planarity/full/graph.pyx":267 * * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") # <<<<<<<<<<<<<< @@ -8676,13 +9095,13 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT * def gp_DrawPlanar_RenderToString(self): */ __pyx_t_4 = NULL; - __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_outfile_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_fi; __pyx_t_7[1] = __pyx_t_1; __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__3; __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, 36 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 2, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1)); - if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 252, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = 1; @@ -8691,14 +9110,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT __pyx_t_5 = __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_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 252, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); } __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(0, 252, __pyx_L1_error) + __PYX_ERR(0, 267, __pyx_L1_error) - /* "planarity/full/graph.pyx":251 + /* "planarity/full/graph.pyx":266 * cdef const char *theFileName = encoded * * if graphLib.gp_DrawPlanar_RenderToFile(self._theGraph, theFileName) != OK: # <<<<<<<<<<<<<< @@ -8707,7 +9126,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ } - /* "planarity/full/graph.pyx":246 + /* "planarity/full/graph.pyx":261 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< @@ -8732,7 +9151,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT return __pyx_r; } -/* "planarity/full/graph.pyx":254 +/* "planarity/full/graph.pyx":269 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< @@ -8741,16 +9160,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderT */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_67gp_DrawPlanar_RenderToString(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderToString, "Graph.gp_DrawPlanar_RenderToString(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString = {"gp_DrawPlanar_RenderToString", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderToString}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_66gp_DrawPlanar_RenderToString, "Graph.gp_DrawPlanar_RenderToString(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_67gp_DrawPlanar_RenderToString = {"gp_DrawPlanar_RenderToString", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_67gp_DrawPlanar_RenderToString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_66gp_DrawPlanar_RenderToString}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_67gp_DrawPlanar_RenderToString(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -8776,14 +9195,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_DrawPlanar_RenderToString", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderToString(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_66gp_DrawPlanar_RenderToString(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderToString(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_DrawPlanar_RenderToString(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { char *__pyx_v_renditionString; PyObject *__pyx_v_string_conversion_error = NULL; PyObject *__pyx_r = NULL; @@ -8814,7 +9233,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT int __pyx_clineno = 0; __Pyx_RefNannySetupContext("gp_DrawPlanar_RenderToString", 0); - /* "planarity/full/graph.pyx":255 + /* "planarity/full/graph.pyx":270 * * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL # <<<<<<<<<<<<<< @@ -8823,26 +9242,26 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ __pyx_v_renditionString = NULL; - /* "planarity/full/graph.pyx":256 + /* "planarity/full/graph.pyx":271 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< * raise RuntimeError(f"Failed to render embedding to C string.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 256, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString(__pyx_v_self->_theGraph, (&__pyx_v_renditionString)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 271, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __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, 256, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 271, __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, 256, __pyx_L1_error) + __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, 271, __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, 256, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":257 + /* "planarity/full/graph.pyx":272 * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: * raise RuntimeError(f"Failed to render embedding to C string.") # <<<<<<<<<<<<<< @@ -8855,14 +9274,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_render_embedding_to_C}; __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, 257, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 257, __pyx_L1_error) + __PYX_ERR(0, 272, __pyx_L1_error) - /* "planarity/full/graph.pyx":256 + /* "planarity/full/graph.pyx":271 * def gp_DrawPlanar_RenderToString(self): * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: # <<<<<<<<<<<<<< @@ -8871,7 +9290,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ } - /* "planarity/full/graph.pyx":259 + /* "planarity/full/graph.pyx":274 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8888,7 +9307,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "planarity/full/graph.pyx":260 + /* "planarity/full/graph.pyx":275 * * try: * return renditionString.decode('ascii') # <<<<<<<<<<<<<< @@ -8896,14 +9315,14 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT * raise RuntimeError( */ __Pyx_XDECREF(__pyx_r); - __pyx_t_10 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(0, 260, __pyx_L7_error) - __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_10, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 260, __pyx_L7_error) + __pyx_t_10 = __Pyx_ssize_strlen(__pyx_v_renditionString); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(0, 275, __pyx_L7_error) + __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_renditionString, 0, __pyx_t_10, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L11_try_return; - /* "planarity/full/graph.pyx":259 + /* "planarity/full/graph.pyx":274 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -8916,7 +9335,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "planarity/full/graph.pyx":261 + /* "planarity/full/graph.pyx":276 * try: * return renditionString.decode('ascii') * except Exception as string_conversion_error: # <<<<<<<<<<<<<< @@ -8926,7 +9345,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __pyx_t_1 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception)))); if (__pyx_t_1) { __Pyx_AddTraceback("planarity.full.graph.Graph.gp_DrawPlanar_RenderToString", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 261, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 276, __pyx_L9_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); @@ -8934,7 +9353,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT __pyx_v_string_conversion_error = __pyx_t_3; /*try:*/ { - /* "planarity/full/graph.pyx":262 + /* "planarity/full/graph.pyx":277 * return renditionString.decode('ascii') * except Exception as string_conversion_error: * raise RuntimeError( # <<<<<<<<<<<<<< @@ -8947,11 +9366,11 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_mstate_global->__pyx_kp_u_Failed_to_convert_C_string_to_Py}; __pyx_t_11 = __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_12); __pyx_t_12 = 0; - if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 262, __pyx_L18_error) + if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 277, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_11); } - /* "planarity/full/graph.pyx":264 + /* "planarity/full/graph.pyx":279 * raise RuntimeError( * "Failed to convert C string to Python string." * ) from string_conversion_error # <<<<<<<<<<<<<< @@ -8960,10 +9379,10 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT */ __Pyx_Raise(__pyx_t_11, 0, 0, __pyx_v_string_conversion_error); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __PYX_ERR(0, 262, __pyx_L18_error) + __PYX_ERR(0, 277, __pyx_L18_error) } - /* "planarity/full/graph.pyx":261 + /* "planarity/full/graph.pyx":276 * try: * return renditionString.decode('ascii') * except Exception as string_conversion_error: # <<<<<<<<<<<<<< @@ -9006,7 +9425,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } goto __pyx_L9_except_error; - /* "planarity/full/graph.pyx":259 + /* "planarity/full/graph.pyx":274 * raise RuntimeError(f"Failed to render embedding to C string.") * * try: # <<<<<<<<<<<<<< @@ -9028,12 +9447,12 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } } - /* "planarity/full/graph.pyx":266 + /* "planarity/full/graph.pyx":281 * ) from string_conversion_error * finally: * free(renditionString) # <<<<<<<<<<<<<< * - * def gp_ExtendWith_Outerplanarity(self): + * def gp_ExtendWith_K23Search(self): */ /*finally:*/ { __pyx_L5_error:; @@ -9080,7 +9499,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT } } - /* "planarity/full/graph.pyx":254 + /* "planarity/full/graph.pyx":269 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< @@ -9104,161 +9523,25 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderT return __pyx_r; } -/* "planarity/full/graph.pyx":268 - * free(renditionString) - * - * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") -*/ - -/* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_65gp_ExtendWith_Outerplanarity(PyObject *__pyx_v_self, -#if CYTHON_METH_FASTCALL -PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds -#else -PyObject *__pyx_args, PyObject *__pyx_kwds -#endif -); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerplanarity, "Graph.gp_ExtendWith_Outerplanarity(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_65gp_ExtendWith_Outerplanarity = {"gp_ExtendWith_Outerplanarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_65gp_ExtendWith_Outerplanarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerplanarity}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_65gp_ExtendWith_Outerplanarity(PyObject *__pyx_v_self, -#if CYTHON_METH_FASTCALL -PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds -#else -PyObject *__pyx_args, PyObject *__pyx_kwds -#endif -) { - #if !CYTHON_METH_FASTCALL - CYTHON_UNUSED Py_ssize_t __pyx_nargs; - #endif - CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_ExtendWith_Outerplanarity (wrapper)", 0); - #if !CYTHON_METH_FASTCALL - #if CYTHON_ASSUME_SAFE_SIZE - __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); - #else - __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; - #endif - #endif - __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_Outerplanarity", 1, 0, 0, __pyx_nargs); return NULL; } - const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; - if (unlikely(__pyx_kwds_len < 0)) return NULL; - if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_Outerplanarity", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerplanarity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_64gp_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_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_ExtendWith_Outerplanarity", 0); - - /* "planarity/full/graph.pyx":269 - * - * def gp_ExtendWith_Outerplanarity(self): - * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") - * -*/ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 269, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __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, 269, __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, 269, __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, 269, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(__pyx_t_5)) { - - /* "planarity/full/graph.pyx":270 - * def gp_ExtendWith_Outerplanarity(self): - * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") # <<<<<<<<<<<<<< - * - * def gp_ExtendWith_Planarity(self): -*/ - __pyx_t_3 = NULL; - __pyx_t_6 = 1; - { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Oute}; - __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, 270, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - } - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 270, __pyx_L1_error) - - /* "planarity/full/graph.pyx":269 - * - * def gp_ExtendWith_Outerplanarity(self): - * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") - * -*/ - } - - /* "planarity/full/graph.pyx":268 +/* "planarity/full/graph.pyx":283 * free(renditionString) * - * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") -*/ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Outerplanarity", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "planarity/full/graph.pyx":272 - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") - * - * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Planarity structures.") + * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K23Search structures.") */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_67gp_ExtendWith_Planarity(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_69gp_ExtendWith_K23Search(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity, "Graph.gp_ExtendWith_Planarity(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_67gp_ExtendWith_Planarity = {"gp_ExtendWith_Planarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_67gp_ExtendWith_Planarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_67gp_ExtendWith_Planarity(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K23Search, "Graph.gp_ExtendWith_K23Search(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_69gp_ExtendWith_K23Search = {"gp_ExtendWith_K23Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_69gp_ExtendWith_K23Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K23Search}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_69gp_ExtendWith_K23Search(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -9271,7 +9554,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_ExtendWith_Planarity (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_K23Search (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -9280,18 +9563,18 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_Planarity", 1, 0, 0, __pyx_nargs); return NULL; } + if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_K23Search", 1, 0, 0, __pyx_nargs); return NULL; } const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; - if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_Planarity", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_K23Search", __pyx_kwds); return NULL;} + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K23Search(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K23Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -9303,62 +9586,62 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("gp_ExtendWith_Planarity", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_K23Search", 0); - /* "planarity/full/graph.pyx":273 + /* "planarity/full/graph.pyx":284 * - * def gp_ExtendWith_Planarity(self): - * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with Planarity structures.") + * def gp_ExtendWith_K23Search(self): + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 273, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 284, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 284, __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, 273, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __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, 273, __pyx_L1_error) + __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, 284, __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, 273, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":274 - * def gp_ExtendWith_Planarity(self): - * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Planarity structures.") # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":285 + * def gp_ExtendWith_K23Search(self): + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K23Search structures.") # <<<<<<<<<<<<<< * - * def gp_Embed(self, int embedFlags) -> int: + * def gp_ExtendWith_K33Search(self): */ __pyx_t_3 = NULL; __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_Plan}; + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K23S}; __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, 274, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 274, __pyx_L1_error) + __PYX_ERR(0, 285, __pyx_L1_error) - /* "planarity/full/graph.pyx":273 + /* "planarity/full/graph.pyx":284 * - * def gp_ExtendWith_Planarity(self): - * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to extend graph with Planarity structures.") + * def gp_ExtendWith_K23Search(self): + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with K23Search structures.") * */ } - /* "planarity/full/graph.pyx":272 - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") + /* "planarity/full/graph.pyx":283 + * free(renditionString) * - * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Planarity structures.") + * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K23Search structures.") */ /* function exit code */ @@ -9368,7 +9651,7 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_Planarity", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K23Search", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9376,43 +9659,38 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planari return __pyx_r; } -/* "planarity/full/graph.pyx":276 - * raise RuntimeError("Failed to extend graph with Planarity structures.") +/* "planarity/full/graph.pyx":287 + * raise RuntimeError("Failed to extend graph with K23Search structures.") * - * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) - * if embed_result != OK and embed_result != NONEMBEDDABLE: + * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K33Search structures.") */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_69gp_Embed(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_71gp_ExtendWith_K33Search(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_68gp_Embed, "Graph.gp_Embed(self, int embedFlags) -> int"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed = {"gp_Embed", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_68gp_Embed}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_69gp_Embed(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_70gp_ExtendWith_K33Search, "Graph.gp_ExtendWith_K33Search(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_71gp_ExtendWith_K33Search = {"gp_ExtendWith_K33Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_71gp_ExtendWith_K33Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_70gp_ExtendWith_K33Search}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_71gp_ExtendWith_K33Search(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { - int __pyx_v_embedFlags; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject* values[1] = {0}; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_Embed (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_K33Search (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); @@ -9421,173 +9699,95 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - { - PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_embedFlags,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, 276, __pyx_L3_error) - if (__pyx_kwds_len > 0) { - switch (__pyx_nargs) { - case 1: - values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 276, __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_Embed", 0) < (0)) __PYX_ERR(0, 276, __pyx_L3_error) - for (Py_ssize_t i = __pyx_nargs; i < 1; i++) { - if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, i); __PYX_ERR(0, 276, __pyx_L3_error) } - } - } else if (unlikely(__pyx_nargs != 1)) { - 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, 276, __pyx_L3_error) - } - __pyx_v_embedFlags = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_embedFlags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 276, __pyx_L3_error) - } - goto __pyx_L6_skip; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_Embed", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 276, __pyx_L3_error) - __pyx_L6_skip:; - goto __pyx_L4_argument_unpacking_done; - __pyx_L3_error:; - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Embed", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_embedFlags); + if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_K33Search", 1, 0, 0, __pyx_nargs); return NULL; } + const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; + if (unlikely(__pyx_kwds_len < 0)) return NULL; + if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_K33Search", __pyx_kwds); return NULL;} + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_70gp_ExtendWith_K33Search(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, int __pyx_v_embedFlags) { - int __pyx_v_embed_result; +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_ExtendWith_K33Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; - int __pyx_t_2; + PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - size_t __pyx_t_7; + 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_Embed", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_K33Search", 0); - /* "planarity/full/graph.pyx":277 + /* "planarity/full/graph.pyx":288 * - * def gp_Embed(self, int embedFlags) -> int: - * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) # <<<<<<<<<<<<<< - * if embed_result != OK and embed_result != NONEMBEDDABLE: - * raise RuntimeError("Failed to perform embed operation.") -*/ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_Embed(__pyx_v_self->_theGraph, __pyx_v_embedFlags); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 277, __pyx_L1_error) - __pyx_v_embed_result = __pyx_t_1; - - /* "planarity/full/graph.pyx":278 - * def gp_Embed(self, int embedFlags) -> int: - * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) - * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to perform embed operation.") + * def gp_ExtendWith_K33Search(self): + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with K33Search structures.") * */ - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 288, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __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, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) + __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, 288, __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, 288, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (__pyx_t_6) { - } else { - __pyx_t_2 = __pyx_t_6; - goto __pyx_L4_bool_binop_done; - } - __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 278, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __pyx_t_6; - __pyx_L4_bool_binop_done:; - if (unlikely(__pyx_t_2)) { + if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":279 - * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) - * if embed_result != OK and embed_result != NONEMBEDDABLE: - * raise RuntimeError("Failed to perform embed operation.") # <<<<<<<<<<<<<< + /* "planarity/full/graph.pyx":289 + * def gp_ExtendWith_K33Search(self): + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K33Search structures.") # <<<<<<<<<<<<<< * - * return embed_result + * def gp_ExtendWith_K4Search(self): */ - __pyx_t_4 = NULL; - __pyx_t_7 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_to_perform_embed_operatio}; - __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_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K33S}; + __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, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 279, __pyx_L1_error) - - /* "planarity/full/graph.pyx":278 - * def gp_Embed(self, int embedFlags) -> int: - * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) - * if embed_result != OK and embed_result != NONEMBEDDABLE: # <<<<<<<<<<<<<< - * raise RuntimeError("Failed to perform embed operation.") - * -*/ - } + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __PYX_ERR(0, 289, __pyx_L1_error) - /* "planarity/full/graph.pyx":281 - * raise RuntimeError("Failed to perform embed operation.") + /* "planarity/full/graph.pyx":288 * - * return embed_result # <<<<<<<<<<<<<< + * def gp_ExtendWith_K33Search(self): + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with K33Search structures.") * - * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_embed_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 281, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_3); - __pyx_t_3 = 0; - goto __pyx_L0; + } - /* "planarity/full/graph.pyx":276 - * raise RuntimeError("Failed to extend graph with Planarity structures.") + /* "planarity/full/graph.pyx":287 + * raise RuntimeError("Failed to extend graph with K23Search structures.") * - * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) - * if embed_result != OK and embed_result != NONEMBEDDABLE: + * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K33Search structures.") */ /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_Embed", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K33Search", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9595,234 +9795,131 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_68gp_Embed(struct __pyx return __pyx_r; } -/* "planarity/full/graph.pyx":283 - * return embed_result +/* "planarity/full/graph.pyx":291 + * raise RuntimeError("Failed to extend graph with K33Search structures.") * - * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * check_result = graphLib.gp_TestEmbedResultIntegrity( - * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K4Search structures.") */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_71gp_TestEmbedResultIntegrity(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_73gp_ExtendWith_K4Search(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultIntegrity, "Graph.gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_71gp_TestEmbedResultIntegrity = {"gp_TestEmbedResultIntegrity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_71gp_TestEmbedResultIntegrity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultIntegrity}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_71gp_TestEmbedResultIntegrity(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_72gp_ExtendWith_K4Search, "Graph.gp_ExtendWith_K4Search(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_73gp_ExtendWith_K4Search = {"gp_ExtendWith_K4Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_73gp_ExtendWith_K4Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_72gp_ExtendWith_K4Search}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_73gp_ExtendWith_K4Search(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { - struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_copy_of_orig_graph = 0; - int __pyx_v_embed_result; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; - PyObject* values[2] = {0,0}; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("gp_TestEmbedResultIntegrity (wrapper)", 0); + __Pyx_RefNannySetupContext("gp_ExtendWith_K4Search (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_SIZE __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; - #endif - #endif - __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); - { - 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, 283, __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, 283, __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, 283, __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, 283, __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, 283, __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, 283, __pyx_L3_error) - values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1); - if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 283, __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, 283, __pyx_L3_error) - } - goto __pyx_L6_skip; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gp_TestEmbedResultIntegrity", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 283, __pyx_L3_error) - __pyx_L6_skip:; - goto __pyx_L4_argument_unpacking_done; - __pyx_L3_error:; - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_TestEmbedResultIntegrity", __pyx_clineno, __pyx_lineno, __pyx_filename); - __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, 283, __pyx_L1_error) - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultIntegrity(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v_copy_of_orig_graph, __pyx_v_embed_result); - - /* function exit code */ - goto __pyx_L0; - __pyx_L1_error:; - __pyx_r = NULL; - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - goto __pyx_L7_cleaned_up; - __pyx_L0:; - for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { - Py_XDECREF(values[__pyx_temp]); - } - __pyx_L7_cleaned_up:; + #endif + #endif + __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); + if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gp_ExtendWith_K4Search", 1, 0, 0, __pyx_nargs); return NULL; } + const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; + if (unlikely(__pyx_kwds_len < 0)) return NULL; + if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gp_ExtendWith_K4Search", __pyx_kwds); return NULL;} + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_72gp_ExtendWith_K4Search(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + + /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_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; +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72gp_ExtendWith_K4Search(struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; - int __pyx_t_2; + PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - size_t __pyx_t_7; + 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":284 - * - * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: - * check_result = graphLib.gp_TestEmbedResultIntegrity( # <<<<<<<<<<<<<< - * self._theGraph, copy_of_orig_graph._theGraph, embed_result - * ) -*/ - __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity(__pyx_v_self->_theGraph, __pyx_v_copy_of_orig_graph->_theGraph, __pyx_v_embed_result); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 284, __pyx_L1_error) - __pyx_v_check_result = __pyx_t_1; + __Pyx_RefNannySetupContext("gp_ExtendWith_K4Search", 0); - /* "planarity/full/graph.pyx":287 - * 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":292 * + * def gp_ExtendWith_K4Search(self): + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with K4Search structures.") */ - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) + __pyx_t_1 = __pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search(__pyx_v_self->_theGraph); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 292, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 292, __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, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_OK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L1_error) + __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, 292, __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, 292, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (__pyx_t_6) { - } else { - __pyx_t_2 = __pyx_t_6; - goto __pyx_L4_bool_binop_done; - } - __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NONEMBEDDABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 287, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __pyx_t_6; - __pyx_L4_bool_binop_done:; - if (unlikely(__pyx_t_2)) { + if (unlikely(__pyx_t_5)) { - /* "planarity/full/graph.pyx":288 - * ) - * if check_result != OK and check_result != NONEMBEDDABLE: - * raise RuntimeError("Failed embed integrity check.") # <<<<<<<<<<<<<< - * - * return check_result + /* "planarity/full/graph.pyx":293 + * def gp_ExtendWith_K4Search(self): + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K4Search structures.") # <<<<<<<<<<<<<< */ - __pyx_t_4 = NULL; - __pyx_t_7 = 1; + __pyx_t_3 = NULL; + __pyx_t_6 = 1; { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Failed_embed_integrity_check}; - __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_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_extend_graph_with_K4Se}; + __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, 293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); } - __Pyx_Raise(__pyx_t_3, 0, 0, 0); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 288, __pyx_L1_error) + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __PYX_ERR(0, 293, __pyx_L1_error) - /* "planarity/full/graph.pyx":287 - * 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":292 * + * def gp_ExtendWith_K4Search(self): + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: # <<<<<<<<<<<<<< + * raise RuntimeError("Failed to extend graph with K4Search structures.") */ } - /* "planarity/full/graph.pyx":290 - * raise RuntimeError("Failed embed integrity check.") - * - * return check_result # <<<<<<<<<<<<<< -*/ - __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_check_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 290, __pyx_L1_error) - __pyx_r = ((PyObject*)__pyx_t_3); - __pyx_t_3 = 0; - goto __pyx_L0; - - /* "planarity/full/graph.pyx":283 - * return embed_result + /* "planarity/full/graph.pyx":291 + * raise RuntimeError("Failed to extend graph with K33Search structures.") * - * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * check_result = graphLib.gp_TestEmbedResultIntegrity( - * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K4Search structures.") */ /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("planarity.full.graph.Graph.gp_TestEmbedResultIntegrity", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("planarity.full.graph.Graph.gp_ExtendWith_K4Search", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9837,16 +9934,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultInt */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_73__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_75__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_72__reduce_cython__, "Graph.__reduce_cython__(self)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_73__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_72__reduce_cython__}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_73__reduce_cython__(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_74__reduce_cython__, "Graph.__reduce_cython__(self)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_75__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_75__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_74__reduce_cython__}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_75__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -9872,14 +9969,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0; if (unlikely(__pyx_kwds_len < 0)) return NULL; if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;} - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_72__reduce_cython__(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_74__reduce_cython__(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; @@ -9919,16 +10016,16 @@ static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_72__reduce_cython__(CYT */ /* Python wrapper */ -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_75__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_77__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_74__setstate_cython__, "Graph.__setstate_cython__(self, __pyx_state)"); -static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_75__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_74__setstate_cython__}; -static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_75__setstate_cython__(PyObject *__pyx_v_self, +PyDoc_STRVAR(__pyx_doc_9planarity_4full_5graph_5Graph_76__setstate_cython__, "Graph.__setstate_cython__(self, __pyx_state)"); +static PyMethodDef __pyx_mdef_9planarity_4full_5graph_5Graph_77__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_77__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_76__setstate_cython__}; +static PyObject *__pyx_pw_9planarity_4full_5graph_5Graph_77__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -9994,7 +10091,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v___pyx_state); + __pyx_r = __pyx_pf_9planarity_4full_5graph_5Graph_76__setstate_cython__(((struct __pyx_obj_9planarity_4full_5graph_Graph *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { @@ -10004,7 +10101,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds return __pyx_r; } -static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_74__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { +static PyObject *__pyx_pf_9planarity_4full_5graph_5Graph_76__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9planarity_4full_5graph_Graph *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; @@ -10094,27 +10191,28 @@ static PyMethodDef __pyx_methods_9planarity_4full_5graph_Graph[] = { {"gp_UpperBoundEdgeStorage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_29gp_UpperBoundEdgeStorage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_28gp_UpperBoundEdgeStorage}, {"gp_IsEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_31gp_IsEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_30gp_IsEdge}, {"gp_EdgeInUse", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_33gp_EdgeInUse, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_32gp_EdgeInUse}, - {"gp_UpperBoundEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_34gp_UpperBoundEdges}, - {"gp_GetNextEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_36gp_GetNextEdge}, - {"gp_GetNeighbor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_38gp_GetNeighbor}, - {"gp_GetFirstEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_40gp_GetFirstEdge}, - {"gp_LowerBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_42gp_LowerBoundVertices}, - {"gp_UpperBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_44gp_UpperBoundVertices}, - {"gp_IsVertex", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_46gp_IsVertex}, - {"gp_ExtendWith_K23Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_49gp_ExtendWith_K23Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_48gp_ExtendWith_K23Search}, - {"gp_ExtendWith_K33Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_51gp_ExtendWith_K33Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_50gp_ExtendWith_K33Search}, - {"gp_ExtendWith_K4Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_53gp_ExtendWith_K4Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_52gp_ExtendWith_K4Search}, - {"gp_Read", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_54gp_Read}, - {"gp_Write", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Write, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_56gp_Write}, - {"gp_ExtendWith_DrawPlanar", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_59gp_ExtendWith_DrawPlanar, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_58gp_ExtendWith_DrawPlanar}, - {"gp_DrawPlanar_RenderToFile", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_60gp_DrawPlanar_RenderToFile}, - {"gp_DrawPlanar_RenderToString", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_62gp_DrawPlanar_RenderToString}, - {"gp_ExtendWith_Outerplanarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_65gp_ExtendWith_Outerplanarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_64gp_ExtendWith_Outerplanarity}, - {"gp_ExtendWith_Planarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_67gp_ExtendWith_Planarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_66gp_ExtendWith_Planarity}, - {"gp_Embed", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_68gp_Embed}, - {"gp_TestEmbedResultIntegrity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_71gp_TestEmbedResultIntegrity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_70gp_TestEmbedResultIntegrity}, - {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_72__reduce_cython__}, - {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_74__setstate_cython__}, + {"gp_LowerBoundEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_35gp_LowerBoundEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_34gp_LowerBoundEdges}, + {"gp_UpperBoundEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_37gp_UpperBoundEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_36gp_UpperBoundEdges}, + {"gp_GetNextEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_39gp_GetNextEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_38gp_GetNextEdge}, + {"gp_GetNeighbor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_41gp_GetNeighbor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_40gp_GetNeighbor}, + {"gp_GetFirstEdge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_43gp_GetFirstEdge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_42gp_GetFirstEdge}, + {"gp_LowerBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_45gp_LowerBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_44gp_LowerBoundVertices}, + {"gp_UpperBoundVertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_47gp_UpperBoundVertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_46gp_UpperBoundVertices}, + {"gp_IsVertex", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_49gp_IsVertex, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_48gp_IsVertex}, + {"gp_Read", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_51gp_Read, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_50gp_Read}, + {"gp_Write", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_53gp_Write, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_52gp_Write}, + {"gp_ExtendWith_Planarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_55gp_ExtendWith_Planarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_54gp_ExtendWith_Planarity}, + {"gp_Embed", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_57gp_Embed, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_56gp_Embed}, + {"gp_TestEmbedResultIntegrity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_59gp_TestEmbedResultIntegrity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_58gp_TestEmbedResultIntegrity}, + {"gp_ExtendWith_Outerplanarity", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_61gp_ExtendWith_Outerplanarity, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_60gp_ExtendWith_Outerplanarity}, + {"gp_ExtendWith_DrawPlanar", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_63gp_ExtendWith_DrawPlanar, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_62gp_ExtendWith_DrawPlanar}, + {"gp_DrawPlanar_RenderToFile", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_65gp_DrawPlanar_RenderToFile, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_64gp_DrawPlanar_RenderToFile}, + {"gp_DrawPlanar_RenderToString", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_67gp_DrawPlanar_RenderToString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_66gp_DrawPlanar_RenderToString}, + {"gp_ExtendWith_K23Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_69gp_ExtendWith_K23Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_68gp_ExtendWith_K23Search}, + {"gp_ExtendWith_K33Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_71gp_ExtendWith_K33Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_70gp_ExtendWith_K33Search}, + {"gp_ExtendWith_K4Search", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_73gp_ExtendWith_K4Search, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_72gp_ExtendWith_K4Search}, + {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_75__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_74__reduce_cython__}, + {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9planarity_4full_5graph_5Graph_77__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9planarity_4full_5graph_5Graph_76__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS @@ -10321,8 +10419,8 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) { #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error) #endif - const char * __pyx_import_name = __pyx_import_signature + 312; - void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DupGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_New, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetN, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Read, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Write, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_InitGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsVertex, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_FindEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_AddEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Embed, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Free, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph, (void (**)(void)) NULL}; + const char * __pyx_import_name = __pyx_import_signature + 313; + void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DupGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_New, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_DrawPlanar, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K23Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K33Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_K4Search, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Outerplanarity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ExtendWith_Planarity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetEdgeCapacity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetN, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdgeStorage, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundEdges, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_LowerBoundVertices, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdgeStorage, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundEdges, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_UpperBoundVertices, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToFile, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Read, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DrawPlanar_RenderToString, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Write, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_CopyGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_TestEmbedResultIntegrity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_DeleteEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EdgeInUse, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_EnsureEdgeCapacity, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetFirstEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNeighbor, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetNextEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_GetVertexDegree, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_InitGraph, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_IsVertex, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_FindEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_AddEdge, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Embed, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_Free, (void (**)(void))&__pyx_f_9planarity_4full_8graphLib_gp_ReinitGraph, (void (**)(void)) NULL}; void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers; const char *__pyx_import_current_signature = __pyx_import_signature; while (*__pyx_import_pointer) { @@ -11052,296 +11150,311 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); /* "planarity/full/graph.pyx":162 * return graphLib.gp_EdgeInUse(self._theGraph, e) * + * def gp_LowerBoundEdges(self): # <<<<<<<<<<<<<< + * return graphLib.gp_LowerBoundEdges(self._theGraph) + * +*/ + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_LowerBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundEdges, 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_2)) __PYX_ERR(0, 162, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); + #endif + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "planarity/full/graph.pyx":165 + * return graphLib.gp_LowerBoundEdges(self._theGraph) + * * def gp_UpperBoundEdges(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundEdges(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_35gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, 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_2)) __PYX_ERR(0, 162, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_UpperBoundEdges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundEdges, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 162, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundEdges, __pyx_t_2) < (0)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":165 + /* "planarity/full/graph.pyx":168 * return graphLib.gp_UpperBoundEdges(self._theGraph) * * def gp_GetNextEdge(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_37gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNextEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNextEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 165, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNextEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":173 + /* "planarity/full/graph.pyx":176 * return graphLib.gp_GetNextEdge(self._theGraph, e) * * def gp_GetNeighbor(self, int e): # <<<<<<<<<<<<<< * if not self.gp_IsEdge(e): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_39gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetNeighbor, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetNeighbor, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_2) < (0)) __PYX_ERR(0, 173, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetNeighbor, __pyx_t_2) < (0)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":181 + /* "planarity/full/graph.pyx":184 * return graphLib.gp_GetNeighbor(self._theGraph, e) * * def gp_GetFirstEdge(self, int v): # <<<<<<<<<<<<<< * if not self.gp_IsVertex(v): * raise RuntimeError( */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_41gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_GetFirstEdge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_GetFirstEdge, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 181, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_GetFirstEdge, __pyx_t_2) < (0)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":189 + /* "planarity/full/graph.pyx":192 * return graphLib.gp_GetFirstEdge(self._theGraph, v) * * def gp_LowerBoundVertices(self): # <<<<<<<<<<<<<< * return graphLib.gp_LowerBoundVertices(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_43gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_LowerBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_LowerBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 189, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_LowerBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":192 + /* "planarity/full/graph.pyx":195 * return graphLib.gp_LowerBoundVertices(self._theGraph) * * def gp_UpperBoundVertices(self): # <<<<<<<<<<<<<< * return graphLib.gp_UpperBoundVertices(self._theGraph) * */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_45gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_UpperBoundVertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_UpperBoundVertices, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 192, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_UpperBoundVertices, __pyx_t_2) < (0)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":195 + /* "planarity/full/graph.pyx":198 * return graphLib.gp_UpperBoundVertices(self._theGraph) * * def gp_IsVertex(self, int v): # <<<<<<<<<<<<<< * return ( * (v >= self.gp_LowerBoundVertices()) and */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_47gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_IsVertex, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_IsVertex, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_2) < (0)) __PYX_ERR(0, 195, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_IsVertex, __pyx_t_2) < (0)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":202 + /* "planarity/full/graph.pyx":205 * ) * - * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K23Search structures.") + * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< + * # Convert Python str to UTF-8 encoded bytes, and then to const char * + * cdef bytes encoded = infile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_49gp_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[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_51gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_2) < (0)) __PYX_ERR(0, 202, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_2) < (0)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":206 - * raise RuntimeError("Failed to extend graph with K23Search structures.") + /* "planarity/full/graph.pyx":213 + * raise RuntimeError(f"gp_Read() failed.") * - * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K33Search structures.") + * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< + * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" + * else (graphLib.WRITE_ADJMATRIX if mode == "m" */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_51gp_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[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 206, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_53gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, 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, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_2) < (0)) __PYX_ERR(0, 206, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_2) < (0)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":210 - * raise RuntimeError("Failed to extend graph with K33Search structures.") + /* "planarity/full/graph.pyx":233 + * ) * - * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with K4Search structures.") + * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< + * if graphLib.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_53gp_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[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) + __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[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_2) < (0)) __PYX_ERR(0, 210, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_2) < (0)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":214 - * raise RuntimeError("Failed to extend graph with K4Search structures.") + /* "planarity/full/graph.pyx":237 + * raise RuntimeError("Failed to extend graph with Planarity structures.") * - * def gp_Read(self, str infile_name): # <<<<<<<<<<<<<< - * # Convert Python str to UTF-8 encoded bytes, and then to const char * - * cdef bytes encoded = infile_name.encode('utf-8') + * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< + * embed_result = graphLib.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, 237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 237, __pyx_L1_error) + __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_57gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 + PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); + #endif + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Embed, __pyx_t_4) < (0)) __PYX_ERR(0, 237, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "planarity/full/graph.pyx":244 + * return embed_result + * + * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< + * check_result = graphLib.gp_TestEmbedResultIntegrity( + * self._theGraph, copy_of_orig_graph._theGraph, embed_result */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_55gp_Read, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Read, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 244, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_59gp_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[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Read, __pyx_t_2) < (0)) __PYX_ERR(0, 214, __pyx_L1_error) + __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 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, 244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":222 - * raise RuntimeError(f"gp_Read() failed.") + /* "planarity/full/graph.pyx":253 + * return check_result * - * def gp_Write(self, str outfile_name, str mode): # <<<<<<<<<<<<<< - * mode_code = (graphLib.WRITE_ADJLIST if mode == "a" - * else (graphLib.WRITE_ADJMATRIX if mode == "m" + * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< + * if graphLib.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_57gp_Write, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Write, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_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[28])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Write, __pyx_t_2) < (0)) __PYX_ERR(0, 222, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_2) < (0)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":242 - * ) + /* "planarity/full/graph.pyx":257 + * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") * * def gp_ExtendWith_DrawPlanar(self): # <<<<<<<<<<<<<< * if graphLib.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_59gp_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[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_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[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_2) < (0)) __PYX_ERR(0, 242, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_t_2) < (0)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":246 + /* "planarity/full/graph.pyx":261 * raise RuntimeError("Failed to extend graph with DrawPlanar structures.") * * def gp_DrawPlanar_RenderToFile(self, str outfile_name): # <<<<<<<<<<<<<< * # Convert Python str to UTF-8 encoded bytes, and then to const char * * cdef bytes encoded = outfile_name.encode('utf-8') */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_61gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, 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, 246, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_65gp_DrawPlanar_RenderToFile, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToFile, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_2) < (0)) __PYX_ERR(0, 246, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_t_2) < (0)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":254 + /* "planarity/full/graph.pyx":269 * raise RuntimeError(f"Failed to render embedding to file '{outfile_name}'.") * * def gp_DrawPlanar_RenderToString(self): # <<<<<<<<<<<<<< * cdef char* renditionString = NULL * if graphLib.gp_DrawPlanar_RenderToString(self._theGraph, &renditionString) != OK: */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_63gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_67gp_DrawPlanar_RenderToString, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_DrawPlanar_RenderToStri, 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, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_2) < (0)) __PYX_ERR(0, 254, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_t_2) < (0)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":268 + /* "planarity/full/graph.pyx":283 * free(renditionString) * - * def gp_ExtendWith_Outerplanarity(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") + * def gp_ExtendWith_K23Search(self): # <<<<<<<<<<<<<< + * if graphLib.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_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[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 268, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_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, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_t_2) < (0)) __PYX_ERR(0, 268, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_t_2) < (0)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":272 - * raise RuntimeError("Failed to extend graph with Outerplanarity structures.") + /* "planarity/full/graph.pyx":287 + * raise RuntimeError("Failed to extend graph with K23Search structures.") * - * def gp_ExtendWith_Planarity(self): # <<<<<<<<<<<<<< - * if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: - * raise RuntimeError("Failed to extend graph with Planarity structures.") + * def gp_ExtendWith_K33Search(self): # <<<<<<<<<<<<<< + * if graphLib.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_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[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); #endif - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_t_2) < (0)) __PYX_ERR(0, 272, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_t_2) < (0)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "planarity/full/graph.pyx":276 - * raise RuntimeError("Failed to extend graph with Planarity structures.") - * - * def gp_Embed(self, int embedFlags) -> int: # <<<<<<<<<<<<<< - * embed_result = graphLib.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, 276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 276, __pyx_L1_error) - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_69gp_Embed, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph_gp_Embed, 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_4)) __PYX_ERR(0, 276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 - PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4); - #endif - __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_Embed, __pyx_t_4) < (0)) __PYX_ERR(0, 276, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - - /* "planarity/full/graph.pyx":283 - * return embed_result + /* "planarity/full/graph.pyx":291 + * raise RuntimeError("Failed to extend graph with K33Search structures.") * - * def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: # <<<<<<<<<<<<<< - * check_result = graphLib.gp_TestEmbedResultIntegrity( - * self._theGraph, copy_of_orig_graph._theGraph, embed_result + * def gp_ExtendWith_K4Search(self): # <<<<<<<<<<<<<< + * if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + * raise RuntimeError("Failed to extend graph with K4Search structures.") */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 283, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 283, __pyx_L1_error) - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_71gp_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[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 283, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73gp_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, 291, __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_4); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 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, 283, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9planarity_4full_5graph_Graph, __pyx_mstate_global->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_t_2) < (0)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":1 @@ -11349,7 +11462,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_73__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___reduce_cython, 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(1, 1, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_75__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); @@ -11363,7 +11476,7 @@ __Pyx_RefNannySetupContext("PyInit_graph", 0); * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_75__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_planarity_full_graph, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) + __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9planarity_4full_5graph_5Graph_77__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Graph___setstate_cython, 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(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000 PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2); @@ -11442,39 +11555,39 @@ 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: 10; } index[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{5},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{27},{13},{20},{33},{30},{24},{27},{14},{13},{5},{2},{20},{4},{13},{15},{8},{1},{18},{12},{18},{18},{1},{10},{12},{7},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{7},{14},{14},{18},{12},{9},{11},{24},{21},{7},{14},{27},{24},{18},{21},{8},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{17},{9},{12},{14},{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},{937},{38},{27},{14},{27},{27},{130},{14},{44},{44},{44},{45},{42},{69},{117},{27},{28},{80},{14},{114},{39},{11},{44},{50},{44},{44},{9},{64},{57},{49}}; - #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2348 bytes) */ -const char* const cstring = "(\265/\375`\323\026\025I\000\212^\360\023F\000\221\272\001\374?\337{\215:\326\267\216\257Q\307\327\250\343k\324\261~\034\356\215HdJ\266T\252O\336>'O\212\303\n\343}\257\377\317\207\246\335\347@\377\346|a\025\326\367\274\262\230\334=\234w?\013\2117\331\001\022\001(\001+\001~\203\030\304\365|\272\256\302\365p?j\327CV\270:\006\352\013\2029|e\216\302\265~\335\306.^=\313^\327\262\354~O\316\256\347\271\365\321>\314&]\333\377\323}\203\267\303_\344\240v\261\303\274\377\346\373~\221_\277M\272\013\003\273\356\\\334?\213\263.\302\272\036Uc\327\237<\021\205d_\317\272\025\3020\302\353N\376\217\354\231\347P\245\222;\351\312\376V\271\2621\367\330\005\271\3766\315E\331\277\251b|\367\357\357\350\376\256k\\\374\256\370[|Z\366\335\333\337=\246?\337\257\231\276\240\016w6}\002\030&\342\026_~\351/\367\217\371\306\341\327\261\327|\177R\354\342\367\021\367\307o>g\r&&N,\227G\302\325:\241D\220<\\r\235X)%\024\226\013\246Y\370\177\233d\273\2510\036q2\342\304u\222*\241JL\215y\222\246\007\246\005\304\004`zX\255\234\365\262\242R\221\351`\203]\225 +\0046\332\313\003N\373\001\211h.\247\005I\300r\312~\361(`%\224~\345\200\201u\265\226N7\362\256\273|\345\236\247!\031a\350JEjI\204L\315\313/\264XC\304\021x\3716\311\212\335#\264\216\247\305\riq\220\350\037\352|0X\363\225\334\212\364\032\360\003!H\342\277v\325p\315x`\352\2173?\016\031-\301h?\316\274-M\022\025^\3142 \317T\264\036\010Z\300\275\000Qk\211\300z'/\251+\260\244\245Q\333Cn\365\243\017""\002\241G\020T\314O\005(\177\262\010\244\337\004n\274]\2143\004\365A\241\374&\207&Z\352\030\024\n\362\n0\311\217\232\017\367(\351(\267\306\360\316\372\023\003\036?\235\254\367\261aS\255\312%\267\251\371K\323\002\276\017\361n\302\021r\362\260W\224\234\274\271\375\350\213U\324\240\036\352!\313\337z>\362\241['\234@\300\tKM[HZ\376\207\336 \370\356d@ZHC w$\306\307\277\242}\375Z\233O\r\025z\321\256h\2232\300\244\021\0172Q\204;\326\036\014\027\355\033f#\22096xB\215][\027\001yb\332Yq\350-n\247\325\225\225 \027\020\005j;\342\036\276\353\223\r\2504\225x\242$\3019\247\243\221\201\223p\000\351\240\317\255e\264:\332\003\254\366!B~c&\326y\237\t \365\271]Q"; - PyObject *data = __Pyx_DecompressString(cstring, 2348, 3); + const struct { const unsigned int length: 10; } index[] = {{1},{29},{44},{50},{49},{49},{48},{54},{49},{34},{39},{36},{25},{50},{32},{31},{31},{45},{4},{179},{77},{38},{29},{1},{2},{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},{22},{21},{22},{17},{23},{23},{22},{5},{8},{5},{23},{25},{16},{18},{19},{32},{34},{17},{18},{14},{27},{30},{29},{29},{28},{34},{29},{17},{24},{21},{13},{20},{20},{24},{18},{15},{17},{30},{24},{27},{13},{20},{33},{30},{24},{27},{14},{13},{5},{2},{20},{4},{13},{15},{8},{1},{18},{12},{18},{18},{1},{10},{12},{7},{8},{1},{12},{10},{12},{13},{26},{28},{11},{12},{8},{21},{24},{23},{23},{22},{28},{23},{11},{18},{15},{7},{14},{14},{18},{12},{9},{11},{24},{18},{21},{7},{14},{27},{24},{18},{21},{8},{8},{11},{3},{13},{5},{1},{8},{4},{9},{10},{1},{8},{17},{9},{12},{14},{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},{957},{38},{27},{14},{27},{27},{130},{14},{44},{44},{44},{45},{42},{69},{117},{27},{28},{80},{14},{114},{39},{11},{44},{50},{44},{44},{9},{64},{57},{49}}; + #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (2354 bytes) */ +const char* const cstring = "(\265/\375`\021\027EI\000\212^\360\023F\000\221\272\001\374?\337{\215:\326\267\216\257Q\307\327\250\343k\324\261~\034\356\215HdJ\266T\252O\336>'O\212\303\n\343}\257\377\317\207\246\335\347@\377\346|a\025\326\367\274\262\230\334=\234w?\013\2117\331\001\022\001(\001+\001~\203\030\304\365|\272\256\302\365p?j\327CV\270:\006\352\013\2029|e\216\302\265~\335\306.^=\313^\327\262\354~O\316\256\347\271\365\321>\314&]\333\377\323}\203\267\303_\344\240v\261\303\274\377\346\373~\221_\277M\272\013\003\273\356\\\334?\213\263.\302\272\036Uc\327\237<\021\205d_\317\272\025\3020\302\353N\376\217\354\231\347P\245\222;\351\312\376V\271\2621\367\330\005\271\3766\315E\331\277\251b|\367\357\357\350\376\256k\\\374\256\370[|Z\366\335\333\337=\246?\337\257\231\276\240\016w6}\002]\3040\021\267\370\362K\177\271\177\3147\016\277\216\275\346\373\223b\027\277\217\270?~\3639k01qb\271<\022\256\326\t%\202\344\341\222\353\304J)\241\260\\0\315\302\377\333$\333M\205\361\210\223\021'\256\223T\tU\342\221R'\251qD9y\315\372^\273\366\267\275\216\345.\376\026)\226t\255\"\242\274\3561M*aK\361mR\211B)-\321\305\302 \350\375\374\375\327\036\343\357\243g9\245\303m*\265P\236I\024b\235\230B\214X^\251\305*\271PNX^\312C\251R<\026\t\267L<\224\211T*!Qr\235H\234P\370\204\3534\362T\336\010\227LH%\354\362\310\217\017$\266\333\370\021\tC\022&\202\361\027\346]\333\375\207p\022\274\030\353\217\004u\307\370\376\220\3140\r^\221\203~\177\272Y\206\360\t\365+\2077w\035L\374\273\247\200Y\263Tt\352d\353\342K\026\333:\365m\372\373\276M_\233|\267\277\277<\346Q'=\357<\n?\215d\267\357HI\177\035j\322G\205\021\036c_\354\003\273\235\016\377\314\347\214\313JSA\254\322\006\250\353\364\316\030Y]\251\036r\352A\301su\312(\027\250\027uC6W""\346H\3715,\337\352Q\031\244*N\216\207\222\223Q\331y\302\227\266\002\230\026\316\246\365L\013\246\307\001\366\000\246\325\234\227\223E\251\340\014\235\000N\214y[9\220i\th8\332\0005\262\032Ra\240\"\264\203Z\240\251#5\223\222P\020\n\262\352`;\274u\263\252H9\351%\275\260a7\230\326\243\341\235\033'\315\264\225\035\230\026\232\231MO\211 \323\256\314\010\346\213\025\321Jf\000\207\251q1\027l\260\034\3479\033\307q\034\307q\034\307q\234\347R\034'\nq\034\007j\036\333\236\223\327\363a\341\366,\373\256\347\363\315}\200[\254q\037\025j^\223a\256\325\310\221\004\261\226}\257?\306\036\373.\366\2569\211\277\3561,\324\236w\362\353\316\305\3757\310m:\314$m\304x\024\307\317\007\253h\3141\211\371\3163\214g~\206\375\306\237o=\313\034\353p\303\370~m\024\216a\374q\022\206A\361\343\332\307rh\322\032\307v*P\016zAof'\344\004\315PKV=)\206\313\242J\016G\013R;x\260\036\230\026\305\t\366\304\006KsPj>L\215y\222\246\007\246\005\304\004`zX\255\234\365\262\242R\221\351`\203]\225 +\0046\332\313\003N\373\001\211h.\247\005I\300r\312~\361(`%\224~\345\200\201u\265\226W\024"; + PyObject *data = __Pyx_DecompressString(cstring, 2354, 3); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (2522 bytes) */ -const char* const cstring = "BZh91AY&SY\020\311Q6\000\001\251\377\377\355\376\377\347\377\377\377\177\277\377\377\376\277\377\377\377\300@@@@@@@@@@@@\000@\000`\t\375\327\307\256xn\275P\353{\316:\273wd\021\020\243]i\333\332\017\006\232\220AF\233OM4\321\211\220\247\224\364O)\232\236$i\241\243C \311\240\003C@d\323\324mCCM\033H\323\323PI$\322mF\004\305@\000\365\000\320\310\000\017H\000\003@\032\000\006\215\000\001\240\000\032h\024\324\312\217\3252z\232d\001\241\246\200\000\000\000\000\000\000\000\000\000\003\324\365\r4\022\024\"\032\251\372(\366S\323I\265O)\351\036\211\241\352\006 \003F\200\000\000\0004\006F\324\001\240\000A\246&&&\002`&\000\000\000\0010\000\004\300\000&\000\000\000\002h\022(F@\211\200!\251\220\364L\247\246\251\370\211\220\231\000\003G\250h\r\014FA\204i\232\214\200\000:\341\203v\275\213\035=\303\207\241\357b\252\351t~5\177\r\361]fY\371\3561\343\217\237\220\300\204\357\000E\377\307\346\360\037\253\350#\367}\226\023\370Y\252\001\221r2\000arrQ-e\311\274Cm\214\032i\241\264\306\330\323K\035\204jV\335\336\240\225\327\264\222\211m\226\310.\232\334\033\240H\021\n\262\313\025\t\030\362\335\023$yP\335\242J\354\022\270#yI\333RS1Yr\276\212v\034\367\226\262\226\301\021(0\265U\222\0357_8R\272\027R\316\213\246G\236k\213\371v\274\203\375\317\220=N_\352\377<\020U\013\0330\301\3618\267a;k\035\307r\326\215\230\317\371\334\035FCE[\245X\267\025\352\3165\033\010\213\314\031\226\220\026j1\020\322d\204\361c\200\262\306\006=\342S\302\265\234\204\252D\330;u#QU\265\360\246\241\230\275\200\240Zpm\227\200\244)\261\237\003\266\346\333\266\244\013\003WB\321\260bk\222\021\252vA\\\316\\}!\031\302[tab\343i1\323\034\rA\016\212F/\023Z\230\323AYk\014\t\256E#IT\353.\020X\2221\245h\261\003\251\315{\214\036(\312\"EGL\206T\262\304\005o\313\001<\356Z\220\311\023\214\364\262\340f\326\026\026\353P\223\0260E\034`H\"\274p\201#\350R~Ll\214]HE{\225?\226\2530\022B\241\272(\314[\2169uB\313\002@%\002\002\010Bq1\024\343\314\261A\3359\221\204\331\323\351:\264\200\362\301r\024\315u\201\272\202\231A\345\325$\222K\241]\224\247\257\352""\330\216T\214\003\253\256\236\335G\313\313{\334mG\td\203\301\332\364b\031\214z\363\252\205\031>\007\305\027\213\023\t\252\026S,9K\224\274\322\372`\257\232f\256\276`#\004j8\234\347)X\227\271\263\322Ih4b0\304\247\245(\204\255\\~\236\274\340P\236\372a\322\354`\263f\342\035%\364\245i\247\207av\006\255\312\375\214\344=\375/\226w4\203lm\3228S(E)9\022\202\221\024\322G/>\301{\353\345$j\363\216\033\341b\264.\207\270\355\332(\204[\370\352\373')\301c\010\316\362L/\344UB\255\352\254*\370\317E\365\276\265\034\302\3421\214V\356\372\332y\234j/U\201\220(\265\236L\344\205\244\335dld\034\031\007\006yL\016\241wW-^^Cn\271\n\376\216\231\367\022\362\3714\332\267\241\252\274\244\010\205\343\006\365G\233\307\335\320\234\3123(\"\333\345\361k\257\301\365\304B\246\233\320v\007f\276\347\213}\312\243k\342\306,kF\305\226\030\203cA\336Mq\355\321\326.\303\255\215\215\217\210\342\027R\317vm\272\274Z\245\033s\267qu\245\245\220\217A\r:\203\210\334t\001\240\035\312}\010|$\254Z\024?\014\010-\017\217>\353\347\237\323\376\020ZV\236\360\313\221\210\360\246\303#\016\201\211\260\271\240\n\264\"\303\021T\031 \031\357\252ms.\262[b\262\200\024\006\217\020k\030\006\014uXw\266\257\317\225\004\333Z\323?n\211\345\352\3133\345M\232\005\003\007]J\236\240\246\027\034\370\343C8u[\231\342\026;\334\212X\224\232\257o!\352\253\366 \373R\241\362tb\206\341\"\240Y\317\277M!\216|qg\250\327\324\206\256T\"\225\276\3074\014\206\251$\221I\246\006@L\0243\330z\261\313\302\212Lp\316U\021\036o/2\003\233\232Q\207\2121\024\230\021c\307\260\300\026|{\343\014\002;\330\210v\240\024Es\026\311 \2546A]K(\202#\332g\252\247C\267\r\330`Z@R\r\031\357\252\265k\3565GA@\203\222\002d\254\242\025*4\233\010U\250\002tq\353N\007\215a\211\302f\363\024F\2170U\211\210M\240s\260\250\252B\227\345\354\315&\327\024\331\326f\31323T\223j\033\227H5\255\267kq\213\366\235\371\031i\215\221\030a\000E\030L\252XR\270P&E\214\022\344\230\027e\330\303\303\222f\263\302\035\000\245\333\264\303\374q\322\242\310\221K\023\017\3624\210\243\006\266\013\\%h\020i^\372 TE[\224\314""\257\341L\032\260\202\266y\346\220/Mv\222g\270{\337CZ\210\026#\001<7q\026|\031\233m\014m\301e\205C`\322r\330\3225\031\361\023\300R\223\314\340\373\025\267\233\312f\375\247\244\2043Xf\205\314\257Y\201u\315\203\026G$j\027\032\361k\3022\005\023\\-\244\013\237{\343w\326\003s\351\226!o\214Hc@1\253\256\271\034\373\2534\323-!\271%$\223%3\322\026\222\322\324\311I\312\223^K\344\222I+$\204\276k\322\264\217\024\317JS\025\365\244\225\245)1II9RRF\315\017\n\022\3512It\227HL\020l2\334\027{UM6&\327T\261R\\\2630\3173-\305\240MD\343H\024M$A\003\034W\307\304\010\024+\031\023 \230u\357z\207\027\233\005\277\265\250\251!\366[,a\247\303SL\310\222!\334\2729\240IeE\3619n\341o,\022\301b\321a`\032\3773G\352d\204M\245;\303+\277\020T,q\331\202\014Ao:_@A\"\272\225\343Li\261\266\306\335\320\336)\3270\255\214fyTe\326\361\004gm\260m\3428\346\201\255\226\201A\343\026D\213[VBA\324i\340\342W\313\373]zh\321N\336\344\301\247`%G\2055\024m\343k\222\rK\241\0376\306[\005\350E\306^=\325beJ\211\264\024\020\242\036\"\035\333\240R\220B\235\312\r\211Y\262h\325Lt\306\024B,lm\203\007y\261*1(\374\201h\357\266^\257\322\2539\313 @\031W~\207\004a\347\203\340\344\031\233\030\253\216\025\025\225\336+t\374\344\227\232m7\246s\213Xp\002\022\325\300\203%3\244J7\324\204\220\3546\355\315\023\n\316\322\014-\027$\376\313\355\236\201\347\tt\304\3717\025r\334\356\366\352\\\257\036\\:\230\230\331\023II\005\0057X\273\205\244m&\222\006\232\032\020\330\301\203\351+;\004o\231\202\300T\200n\315\324\331wK8T\253\023#u\226bm\007PU!\264\233\034dO\200\2014\257\010A%RZ\310).\007c#V8\001\320\232jF(\360\233Y\273\035t$/\205\227T\225b\\\272\324\302\225\\\201t*#a\304\200\377\243\220D\211A\241\224\353\337[W\034\304[=\032\213s\300\224k\021\315W\214rN\r\265\000\324\225\024\022\007)\016\360\263\014\202\220\320\300\250\006\210\014\200\253\024\000%.\201v\312\024Q\232\005\220*\266\033\205\"\261[\201B\365S\272\210GxWN\r6\307\3522Q\314\014&\200\nI-J\303\005\245\233l\231\215\242,I\254\306t\345\270\3135\004\314\205\311-\352\371\002\222\n\303j\\\177L$\272s""\346\267\204C\360c\327\"D\031~\343W\237\300PC0\024\320A\007\023\006\333\005\342\020m\356\347\026^\010%\343\211\020\323F\273\310\316e\267\202\350\361\350\314C\r\004\233\354\336\315\321\223\365\351\364*\243\243\347{\335#\021\275\307\237\324\203,de\254\206\006\001\230l\231\271f)7\257D0\222\247\270 B@;%\016\356\276\200\327\314\367\r\264\033I\311k\200J\270\032\330\333M\354\033IK\330\215\374\277B\241WM\375\304`\237\3579)\244V|\307b\007\224\033\177QD\014\370\273\275Gh\037\261\303\r\030@\364B\232\361\014\025\367(\205\003`]\024\2657\351\360\356S\262\230a\212\365\324\213%\354\017\260\343\374\"\013\000e\023\003\366\t!\374\201;:\206\254\371\352\377l\353<\250\271Y\374\027\225 .\264%q\2320$P\222\373b\000\242\206\007\253\203\000U\372\220\007\244\277\323\310i\370\022\037\314\356\372^\316\231\340\233\217\204p\333\350\223.^cN\265[\230\325\266\333\330\247}\3013\257G\235f\363~hm\313\332q\314\226\242\350_\235\227&h\357JD\305\031cJ\330\033\332\022\250c\346\353[\2307s\3512\037 Z)2\267\005Mn\253\020\220s\016j\037\n\3740j\256\252R\024\017\236,\3717On\331\261F\271E\026\316y\317n\245\031\013\036\006\236^m\335\013\240\310=(4\0108P\036\231$aa\337\213\334\261\222/qL\n]2\234(v[d\343\n!\026\376x\334\247)\273c,g:L\267\344\325B\255\354\326\025{o1z\336\262\034.\270\214c\025\273\251m<|\212/]\201\230(\266\0373A!j7Y\033\031\007\004\nE \335\023\005\200i\232\254n\324\020:\271\002\363\nNTd\356\3519,\316U\026Z\n\013\001\210`\336\270\364\372\276\035)\326Q\231\301\026\342\227\361\331?7\312\021\n\232oI\332\035\273<\035\373\356U\033_\036AdZw\226xc\r\346\203\2415\311\267O`\273N\30666>1\0106\016k\264l\325\274\252\205\267;\270\353\255<\343\002\364\020\323\250.\333\224@h\007q_(\037\007.N./MB\013C\323\243v*\364|\237n\013R\325\3202\344c;\223a\231\207\220bl2\264\001V\204Xb*\203$H\325\275Sk\274\302\311h\025\224\000\210xv\036\244B$_V\277\357\356\245\354\316\003x\355\2058\261\370%9W\2222\275\335\307\000\267\270\214\260\224-F\303\241$\210g\016\257\177e\342\307\203\221i\212\nk\314\347AWn\351\006}\245\037\273\244\024qR+\005{\241\331Hc\"G\337\325\265\255\rr\204\"\322\306\3075\014\207\224\000T\25503\002`\241\242\303\332\216~\024R\261\303ATDy\371\372P\035=2\214;\343\021I\201\026<\233\305\340\264d\337\030^\021\313\214\207\024\002\210\235b\336\222\t\206\364\025\324\262\210\"=\246\212\252t9a\272\373\313H\nA\247F+`\262=\266\250\350(\020r@L\225\224B\245F\223iB\255@\023\213\217bp=U~7\n\314\254Q\032\245\320`\3003\r\334\247\240m\212~8#\t+^#\0053\003zY6nW,\312\340d\231\210\366\234&\270\204\354p\326\256\361\267sh\307\250[\331\264*\"\255&\360R\000S\205U\312\022\027V\260\302\000v\300{h,@A\251\222\370\260\007\354}\0243\341\003\331\t\370\304.a\357\322\n\t \330\021\367\270i\361\357\323\306<\220\305\267\260b\260\365\307\330q\3761\004\200b\242@\374\210\210\037\301\027\331\230\036\233\373\365\177\276Zo*,L\336-\265]\005\326\205\027\031B\341\212\024G\333\020\005!H\036\303\t\000U\272\220\007\245\277\326\301i\370\014<\027\336#\271\231C\307F\277 \343\263\226\211>~KN\265[\240\325\226\333\326\247m\301CB\227K\033q\277T6g\355\270\345\206\242\352[\276\310\227Dxg\023\313\031\003F\310\037\254\351\330\025\362\264\354\320\037\214\330\331\017\240\034\3644%D\353TU\242\275[\323\002\336\326~\033\307y\205\344\267S!\216\353\twL1\rO\361\322\024\263\036:\322\227p\033\n\342\254v\244\317-A\341(\313\024+\257z:\220\371\303\0165\201\027\001\347b\013\263\367\215\r\366d\225}\306\336\317d\262\033\354s` \2318\223\330E\303\001\320&j\372\331B\364\213\262\006\030\"\ny\276\313\013\200\254P\207\334\221\304\203j\010\001\227\020Am\027\353;\222\252\351\023\314#\265\r\016 \365\317?\006\344+Xj\265\017\025\365\3636Q\3413}\332\325G\302%\210\315\270\007*\3704\266\256a^\214\021^C\021!\273C\232\372\001\207{e2C\\\363l\354\036\035\376\020w\262\337\014\271\200\025\242\227i\361G\231\254\244\371!\025e""\005r\260\311\033\035\235EH\305\242!`\204X\321\240\271\"+\362\003@\317\td\021p\005\222P\010\205\325\357a\323\350t\036R;\262\335\363\263\247~9\362\201\373\367U\277\362\031A\036q\rT,\354\026Q\236\253r\371R\343\r*\227^\226\032\305\227\333\305\302N\231\333\255\243B\215{]-s\025\256\026!\356\0354\212\2651\352\030\241^\344j\371\037v\366j\320/\022\311\233\311\344\255\035\256\\/\356\200s+\2002\032\016\372\310\206\236\020hIAhH\206\304\322\000\337W\031\020\031N\024I\344\303u\210\216\2202B\306\210\024vD\0105)\335\r\205X3\215_\247N\036I\004@\n\t!\210F\024\322\rF\2531\344\214X\264o\275\206\260E\016N\342\206m9\221\2719\215\2715\231\027o\255I\022\3251\346\016 *\346Q\000a\342\335\242\310\217\022+\261E\200\3658\355lL\351\025\305W\001\206$<\242\207\210\036Q\264\230bI\363\365BBY9\305\352\266b\370W\250\353\212\312G\304G\\\242&\tX\013Y\244,D\026\322\330\311\r\350*4\3545\254\001\262K\303\201.\0248\200n:\371\3508WK\240\217\231D\013Se\257BqV\340\266\313\305\312^c\357\305\336\013\204\252\347g\360W\200\036\214\2103k\270\331\250\035\024_\327\000\376\210+\374X.\325\033\341\342%\327\250\225~\362\227\273\337\363\274v.\013\222\222\025\024U1\240Ob\215N\244\200Nr-\001j\013F\022\264Z\225\027\360!/\274#\355\021)M\244\250R\013\321\302\204\351,\264\323\341[\032}\013T\261,(\"\254P\323\220\005\204Z\360;D6\032\2019\n\343\030\200'Cw\032h#p\215\002u\010\321DpN\202\345\004@N\200b2\010\247\301o\002\360\"\220\033\007\333\025\230\005\370\211C+\016\252q8E\201\024B(\002\236I\260I\004L\000\2258H\246\300c\0220\306!\221\010\206!\014h\342\225\245CI&\2637\222\241\267\300H\201$\r\205y\014RG\332\021BG<\244/:\202\\$\177\210$%]\032\240\207\200Ct\341\211O\021\231\037\320p\234!\004z\n\354\026\236\021\306.K\372r|\225\245\322]\245\013\355\033\340\030d\372\261\301w\374\023F\255\177\254\365\205\004|F^eQ\"\303\252\237\321*\206O\031Y\303\235&m\215\201\271\360\026\214\024\221\206\211\022\232\247\246\n\3765\302\027d\310t\310\300\252\252\250\376<\201\374\217N\215\314\324\224\214\220\016\361\203g\033\017[7\274\322\330\"\321\350\032t""\3448\201I\310\300\032\035c\203y\371\276\377\177\225\031\256O\024I\\e 4#V\364'\302\330\200/a\370j][M\244\256\255&Q7\310\034y\2053<&\201\230$N)\311\366\300b\202\306\225\307\025\001C\326\244\226\354\177\344\2572\304\003C\036\271]t\r~\032\325+\306\037N\231I\345\210\231P\217\230\t\005\211I\256H\314\264\222\304L\250I\314x%\nH\025fR\271`\022\353\0053\251\000\2143\256\310Fw\230\320\031\230\240\0321\323Z\0043\254!L\264\3670Sj\026\023kLL\264\2610\211\035\205\271R\246\231x\201f\342\025\232\031/\321L\264F3a\221f\"U\232\211\364\tf\324O\231a\253\243\374`\253Hi\366fnZ\251Oi\346\332\354\305\326\305\177\254?[\373\203\331/\315\r\213\267\216/\323K\346\231ul\317\330\334/\334 \275\340-\374\265\227\352-\366\336\366\027\372\\(EXK\336\222\317\332\017\004\327\235\234S\350\315\272y\3678&\010\2545g\305\331r\336\273\233.\037a}\372\335\270\005\203\271yB\276>\230\275qqn\245\355/\354M\033\210_\233?\333){~\220\276\341\335X\266\350\376k\026\007\302\203\205\305\313\364\037`\2233S\203m\336\330m\207\037q\311V\213\3463P]\264\337\366\376\344n\364\205\217\363Wo\341\033GWd#\335|l\355[|h\317#7\345\322\215n\232\377\265\367m\321\331\350\361\223d\237\271\373.\357\313~\2609\273\341\334\362\275\223$\373\334=\356\247|\331\377\331\274\255;O{\021\033\236B\014R\241\354v\177\245\237\243\262\336R\306>vf\234\262\233J\026\2664{\305\316]\216.\366\336\315M\223\234\272\207\371\336\316\331\005g\266\227\037\332\366\275\271`n\233\242\365\027\210L.\264/\327\233\357\255\\~\216\275`>\201\275u\373\251\243\3652\356\202\273\333\337\354\217\374\361\3209\356\315\3648\357\273\235>\337?\036\314\335\211\344\317\206\3039\215\336-\267\336O\305S+\214\355\00211\306\273g\357\307\362w\336\333\256{\365W\336\253\327\221d\2776\230]0\237\333\031g\336Y\201\344\272\370`q\243D\034,\335\274\234\2353S\346|\220)\017\234}G\354\255\220\325W\346O\336\355\207\216A\217]\316x\231'\356w\375/\372\271\301\275\007\316\277\334{\256\326_\031\254\255\373\316\035\245\353f/\327\343>]g\256\335\261\336:K`\030d4\304\223\270\346o\026g5\354[\240\274\336\257\177\034\205""\236\0041\027\270a\025\314\274\353t\274\307/?\326\275j\0042\203\271/\315\025\223\210\315-\017\301{\231\276m\375\323\371=x55H\337\2659r\310#+g\025\354Y\347\307\236\340Fq@d\257\030\344-d\035\336\321{O\335\017\037\363\037\207\256\365\226\213\375\375>\315\377k\203?\336\270\320\314\273\336\327\033\000\373\024Y\251\346\242\367\325:\001\323`\221\r\0023\037\227}\010[\346B\331,q\347`\361N\220\026\307\277\244\0063\327/\326\315}o\3466\224\204\364V\257\334O\365\027\373\373\304\221\317\254/,\232S\353\004G\227\351e\313\260\341\302P\312\254yk\225d\362\274y\2330n\\\034{3o\2747\377\030\244\227\275\345'nn0\267h\226=\366\333\336\206\313_\006;mZ\242\375\000\022q%\222\rTq\215d\302\262u\356\244\234E\347-\270i\272\302\377\001\222\206\350\373"; - PyObject *data = __Pyx_DecompressString(cstring, 2338, 1); + #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (2346 bytes) */ +const char* const cstring = "x\332\225XKs\333\310\021\006kU\t\355(ei\245]9U\266\005m\354\320z\230\016W\332-\307\217\270 \222\322rMS\024I\331\353\304\251)\010\030\222XS\000\205\207\036\211\235\354QG\034q\304\021G\036q\344\321G\034y\324O\360OH\317\000\004\001\021\244wU\022\210\351\307LOw\177\335Mewx\251\203E\026\037\035\302S\222u\334R%\375\234\025\332Xx\227\r\230\272\302\n\212|\202U\235\315\263\232\256Jr\213\320\252\347z[\221\003BD\026\237\351X\026\331\226\312w\333\354\251\244\267\331\202\312\237V;\274\314\253D\332\020tC\305\332T\215\027\337n\3261\257\n\355_\255\260\371[\025\266~\233\374\236\241c\265K/A\034\364+\265\252\323\025\272Xm*\352Q\340~\005\226\274.)rDB\205\r\261\352\013\210\201\343\363\343>O\022k\002\223\315\354Rc$\215\225\025\035\002,\351\022\337\221\376\215\305lI>\2017\221\025\261\246K2=\327\267\3741{\n\037]\034\\\244J\224+\007\345r\250\341\337\217\030\316\353\254\326\305\202\324\224\340\360o\206\374\216$\277\203\243D|F\204X\203\254\037\263\231\t\354\223+lM1T\001\177\306\224\212\"\343\212\242cVo\203\ry?\023\201)\342\216tH\274\210;\324\345\222\000Q#B2[-V\037l=\332by\210\220\212\177\306\202\256\261\232q(txM\303\032\2534\331CC\352\200+X\375\274\013QbKM\366\\1X\031\007\261\002\271\250\202\336\306\220\374X'/l\206\227\301\277\324\211\010\324!\002\031V\224T8D:\301D{\207\357h8[\367\357FL\030s\273\306\036\031\232\316\266y\242\000[j\374\021f\025\225\204\225\002\260{>t\202\237J\303\315\374h\264y?\302\207\030\254\212\206\371@\346\017;\324\004^\004\234\213-\314\33676\330\223U\366\031{?\223\311n\260\317\201\201d\342Lb\027\r\007\360DI#\212\230\252g\330&M\265lKhuQ\036l\241iu\1775\244wQ\001w\260\216\213p@H~\014\226\370A\245\347f\210\224\321\035W%J%\371@\233\250\351g\013\321/\312\032`\210(\344\371./\000\262B\035rG\022\017\252!\004\\B\004\265]\254\357H\252\246O0\217\32468\200\324?\377\030\220\257`\251\325>T\324\317\333D\205\317\364iW\037\t\227 6\343\036\250\340\323\330\272\206y1Fx\rE\204\354\016i\352\007\034\356\225\311\014q\315\263\261{t\370C\334\311~3\344\002V\210^\246\305\037e\262\222\346\207T\224""\025\310\301&ott\026!\025\213\206\200\021bE\203\346\212\254\310\017\000='\220E\300\025HB!\024V\277\207M\243\323yH\355\310v\317\317\236\372\345\310\007\356\337W\375\312g\004y\3045P\261\260[Dy\256\312\345K\2157\250\\zYj\024_n\027\013;en\267\216\n5\356u\265\314U\270Z\204\270w\320(\326\306\250c\204z\221\253\345\177\330\331\253A\277H$o&\223\267v\270r\275\270\003\316\255\000\312h8\350#\033zB\240%\005\241!\031\022K\003|_e@d8Q$\221\017\327!:B\312\010\031#R\330\021!\324\244t7\024b\3154~\235:y$\021\000)$\204 \032QH7\030\255\306\2203b\321\276\365\032\302\02698\211\033\266\345D\346\3464\346\326d^\274\265&IT\307\230;\200\250\230G\001\204\211w\213\"?J\254\304\026\001\326\343\264\2631\245W\024_\005\030\222\360\210\036\"zD\321b\212%\315\327\013\te\345\024\253\333\212\341_\241\256+*\037\021\217s\265\004:\331N\022\",R.\"\013i\314\242\006t\033\232\0165\254\001\342K\303A/\0248\200.;\331\2448WK\240\217\231D\013Ve\257B\361W\340\266\313\305\312^c\357\305\336\013\204\252\347g\360W\200\336\214\210\223k\270\331\250\035\024_\327\240, \256\360c\271To\204\213\227\\\243V\372\311_\356~\317\363\332\271,HJVPT\305\200\376\2115:\251\002j\311\265\004\2509\030I\320\202U^\300\207\274\360\216\264M\2444\221\242J-D\013\026\2463\322N\207oi\364-P\305\262\240\210\260BMC\026\020j\301\357\020\361h\004\362(\274c\300\236\014\351i`\216\3008\n\340!t\023A;\t\256\023\200:\001\242\311\340\234\006\313\t\200\214@q\034\204W\340\027\340*\016\2718\330\306a\026\005X\010\255\010\250&\301i\034H\211\020\n\300\023\207\315\024\300L\202\3128H\022\3411\004\006M\305\262t(\311dJG2t!\030>\220\244\2410\263A\352H;B\350\210\207\204FG\220\235\344\017\2214\245K\003\364\020p\210.<\361)\"\223\006\032\016>\204@O\201\335\3023\302hfI\007\217\257\262T\272\253t\241\321\003@\203\334?6\370\216\177\302hH\030k\222!\001\237\221WY\224\310X\353\347\270\212\341K\217\254\341N\2236\321\300\\x\013\206\217HkE\tmVS\005\377\032\341\0132d:\216`UUT\177\362@\376\327S\215L\337\224\214\220\016\361\203g\033\017\233<\274\322\330\"\321\350\032t89\201\231\311\300\032""\035x\203\311\372\276\377\271\312\014\327'\212$\2562\020\232\021+\366\023\341l\300\227f\370\202\273\266\232H][M\242n\220\221\363\ngxN\0021I\234R\222\355\201\305\004\215+\217+\002\206\254I-\331\377\177\300*C\\0\344\221\333E\327\340\250Q\tc\3749\226\231T\241\230\t%\212\231P\243\230\344\"\305L\253R\314\2042\305\214\027\247\200Ta&U\220q\206\306$\326\020fRQ\030g\\\221\215\3560\241\1770A\205b\2465\022fXW\230h\207b\246\3241&\326\276\230h\373a\022\373\016s\245\2303\3612\316\304\35383^\310\231h%g\302R\316Dj9\023\351&\314\250\3532\303\206H\371\301V\221r\355\315\334\264R\237\322\314\265\331\213\255\213\377X\177\266\366\007\263_\232\033\026o\035_\246\227\3143\353\330\236\261\271_\270Az\301[\370k/\325[\354\275\355/\364\271P\212\260\226\274%\237\265\037\010\256;9\247\320\233u\363\356qL\020Xk\316\212\263\345\274w7]>\302\372\364\273q\013\006s\363\204|}0{\343\342\334J\333_\330\2336\020\2776\177\266S\366\374 }\303\273\261l\321\375\327,\016\204\007\013\213\227\351?\300&g\246\006\333\274\261\333\016?\342\222\255\026\315g\240\272h\277\355\375\311\335\350\013\037\347\257\336\3027\216\256\310F\272\371\330\332\267\370\320\236Gn\312\245\033\3354\377k\357\333\242\263\321\343'\311>s\367]\336\227\375`sv\303\271\345{'I\366\271{\334O\371\262\377\263y[w\236\366\"6<\205\030\244B\331\355\376J?Ge\275\245\214}\354\3148e7\225,li\366\212\235\273\034]\354\275\233\233&9u\017\363\275\235\263\013\316l/?\264\355{s\301\3346E\353/\020\231\\h_\2567\337[\271\374\034{\301|\002{\353\366SG\353e\334\005w\267\277\331\037\371\343\241s\334\233\351q\336w;}\276\177<\230\273\023\311\237\r\207s\032\275[n\275\237\212\247V\030\333\005bb\214w\317\336\217\345\357\274\267]\367\352\257\274W\257#\311~m0\273`>\2673\316\274\263\002\311u\361\301\342F\2118X\272y9;g\246\314\371 S\0368\373\216\330[!\253\257\314\237\274\333\017\035\203\036\273\234\3612O\334\357\372_\364s\203{\017\234\177\271\367\\\255\2772X[\367\235;J\327\315^\256\307}\272\316\\\273c\275u\226\3000\310h\210'q\315\337,\316j\330\267@y\275_\3778\n=\tb.p\303*\230y\327\351x""\217_~\254{\325\010d\006s_\232+&\021\233[\036\202\3672}\333\372\247\363{\360jj\220\276ks\344\220GV\316*\330\263\316\217=\301\215\342\200\310^1\310[\310:\274\243\367\236\272\037>\346?\016]\353-\027\373\373}\232\377\327\006\177\274q\241\231w\275\2577\000\366)\262R\315E\357\253u\002\246\301\"\033\004f>.\373\020\266\314\205\262Y\342\316\301\342\235 -\216\177I\rf\256_\254\233\373\336\314m(\t\351\255^\271\237\352/\366\367\211#\237Y_X4\247\326\t\216.\323\313\226a\303\205\241\224Y\363\326*\311\344y\3636a\334\2708\366f\336xo\3761H/{\313O\334\334`n\321,{\354\267\275\r\227\277\014v\332\264D\373\001$\342J$\033\250\342\032\311\204e\353\334I9\213\316[p\323t\205\377\003F\335\000\207"; + PyObject *data = __Pyx_DecompressString(cstring, 2346, 1); if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error) const char* const bytes = __Pyx_PyBytes_AsString(data); #if !CYTHON_ASSUME_SAFE_MACROS if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) } #endif - #else /* compression: none (6099 bytes) */ -const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FALSEFileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_Edg""eInUseGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNONEMBEDDABLENOTOKOK__Pyx_PyDict_NextRefTRUEWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6aasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencoded__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetNgp_GetNeighborgp_GetNextEdgegp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_WritegraphLibinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__new_edge_capacitynew_graphoutfile_nameplanarity.fullplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlinkgraphP (graphP)\000graphP (void)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char **)\000int (graphP, char *, int)\000int (graph""P, graphP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (graphP *)\000void (graphP)\000gp_DupGraph\000gp_New\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000gp_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000gp_Free\000gp_ReinitGraph\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340\010\027\220x\230q\240\004\240A\200A\330\010\023\320\0230\260\001\260\024\260\\\300\023\300A\330\014\022\220,\230a\230q\200A\330\010\027\320\0270\260\001\260\024\260Q\200A\330\010\023\320\023+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\023\320\023*\250!\2504\250|\2703\270a\330\014\022\220,\230a\230q\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\024\220=\240\001\240\024\240\\\260\031\270,\300c\310\021\330\014\022\220,\230a\230q\200A\330\010\027\320\027*\250!\2504\250q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360\006\000\t\030\220~\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:""\230Q\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\030\220}\240A\240T\250\034\260Q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\030\220\177\240a\240t\250<\260q\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\030\320\027'\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\320\027*\250!\2504\250|\2701\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\220|\2401\240D\250\014\260C\260q\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\023\220;\230a\230t\240<\250s\260'\270\023\270G\3003\300a\330\014\022\220,\230a\330\020/\250q\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\023\320\023,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\023\220=\240\001\240\024\240\\\260\023\260C\260q\330\014\022\220,\230a\230q\200A\330\010%\240Q\330\010\023\320\0230\260\001\260\024\260\\\300\021\320BS\320SV\320VW\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\027\320\027-\250Q\250d\260!\200A\330\010\025\220X\320\035/\250u\260C\260q\330\037'\320';\2705\300\003\3001\330%-\250]\270%\270s\300!\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\2209\230A\230T\240\034\250]\270+\300S\310\001\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\023\320\023)\250\021\250$\250l\320:M\310S\320PQ\330\014\022\220,\230a\330\020\021\330\020\022\220!\2201\200A\330\020\037\230q\240\004""\240A\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\023\2208\2301\230D\240\014\250J\260c\270\021\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\320\023.\250a\250t\260<\270}\310C\310q\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\024 \240\001\240\024\240\\\260\021\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\024\036\230a\230t\240<\250q\200\001\330\004\n\210+\220Q\320\004\035\230Q\330\0104\260L\300\001\300\024\300Q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\020\030\230\001\230\021\230)\2401\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010\037\320\037;\2701\330\020\024\220L\320 2\260,\270a\340\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010\037\230y\250\001\250\024\250\\\270\021\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; + #else /* compression: none (6161 bytes) */ +const char* const bytes = ".Failed embed integrity check.Failed to convert C string to Python string.Failed to extend graph with DrawPlanar structures.Failed to extend graph with K23Search structures.Failed to extend graph with K33Search structures.Failed to extend graph with K4Search structures.Failed to extend graph with Outerplanarity structures.Failed to extend graph with Planarity structures.Failed to perform embed operation.Failed to render embedding to C string.Failed to render embedding to file 'Graph is not initialized.Invalid destination graph: wrapped graphP is NULL.Invalid graph format specifier \"Invalid link index for ulink: 'Invalid link index for vlink: 'Invalid source graph: wrapped graphP is NULL.NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Source and destination graphs must have the same order to copy graphP struct.Source graph has not been initialized.Unable to add edge (u, v) = (''., ?add_note and vlink = disableenable' failed.gcgp_CopyGraph() failed.gp_DeleteEdge() failed: invalid edge 'gp_DupGraph() failed.gp_EdgeInUse() failed: invalid edge index 'gp_EnsureEdgeCapacity() failed to set edge capacity to gp_GetFirstEdge() failed: invalid vertex intex 'gp_GetNeighbor() failed: invalid edge index 'gp_GetNextEdge() failed: invalid edge index 'gp_InitGraph() failed.gp_New() failed.gp_Read() failed.gp_Write() of graph to '' is not a valid vertex label.\" is not one of 'gam'.isenabledno default __reduce__ due to non-trivial __cinit__planarity/full/graph.pyx) with ulink = AT_EDGE_CAPACITY_LIMITEMBEDFLAGS_DRAWPLANAREMBEDFLAGS_OUTERPLANAREMBEDFLAGS_PLANAREMBEDFLAGS_SEARCHFORK23EMBEDFLAGS_SEARCHFORK33EMBEDFLAGS_SEARCHFORK4FALSEFileNameGraphGraph.__reduce_cython__Graph.__setstate_cython__Graph.gp_AddEdgeGraph.gp_CopyGraphGraph.gp_DeleteEdgeGraph.gp_DrawPlanar_RenderToFileGraph.gp_DrawPlanar_RenderToStringGraph.gp_DupGraphGraph.gp_Edg""eInUseGraph.gp_EmbedGraph.gp_EnsureEdgeCapacityGraph.gp_ExtendWith_DrawPlanarGraph.gp_ExtendWith_K23SearchGraph.gp_ExtendWith_K33SearchGraph.gp_ExtendWith_K4SearchGraph.gp_ExtendWith_OuterplanarityGraph.gp_ExtendWith_PlanarityGraph.gp_FindEdgeGraph.gp_GetEdgeCapacityGraph.gp_GetFirstEdgeGraph.gp_GetNGraph.gp_GetNeighborGraph.gp_GetNextEdgeGraph.gp_GetVertexDegreeGraph.gp_InitGraphGraph.gp_IsEdgeGraph.gp_IsVertexGraph.gp_LowerBoundEdgeStorageGraph.gp_LowerBoundEdgesGraph.gp_LowerBoundVerticesGraph.gp_ReadGraph.gp_ReinitGraphGraph.gp_TestEmbedResultIntegrityGraph.gp_UpperBoundEdgeStorageGraph.gp_UpperBoundEdgesGraph.gp_UpperBoundVerticesGraph.gp_WriteNONEMBEDDABLENOTOKOK__Pyx_PyDict_NextRefTRUEWRITE_ADJLISTWRITE_ADJMATRIXWRITE_G6aasyncio.coroutinescheck_resultcline_in_tracebackcopy_of_orig_grapheembedFlagsembed_resultencoded__func__g__getstate__gp_AddEdgegp_CopyGraphgp_DeleteEdgegp_DrawPlanar_RenderToFilegp_DrawPlanar_RenderToStringgp_DupGraphgp_EdgeInUsegp_Embedgp_EnsureEdgeCapacitygp_ExtendWith_DrawPlanargp_ExtendWith_K23Searchgp_ExtendWith_K33Searchgp_ExtendWith_K4Searchgp_ExtendWith_Outerplanaritygp_ExtendWith_Planaritygp_FindEdgegp_GetEdgeCapacitygp_GetFirstEdgegp_GetNgp_GetNeighborgp_GetNextEdgegp_GetVertexDegreegp_InitGraphgp_IsEdgegp_IsVertexgp_LowerBoundEdgeStoragegp_LowerBoundEdgesgp_LowerBoundVerticesgp_Readgp_ReinitGraphgp_TestEmbedResultIntegritygp_UpperBoundEdgeStoragegp_UpperBoundEdgesgp_UpperBoundVerticesgp_WritegraphLibinfile_nameint_is_coroutineitemsm__main__modemode_code__module__n__name__new_edge_capacitynew_graphoutfile_nameplanarity.fullplanarity.full.graphpop__pyx_state__qualname____reduce____reduce_cython____reduce_ex__renditionStringreturnself__set_name__setdefault__setstate____setstate_cython__src_graphsrc_graph_uninit_errorstring_conversion_error__test__theFileNametheGraph_dupuulinkvvaluesvlinkgraphP (graphP)\000graphP (void)\000int (graphP)\000\000\000\000\000\000\000\000\000\000\000\000\000\000int (graphP, char *)\000\000int (graphP, char ""**)\000int (graphP, char *, int)\000int (graphP, graphP)\000int (graphP, graphP, int)\000int (graphP, int)\000\000\000\000\000\000\000\000\000\000int (graphP, int, int)\000int (graphP, int, int, int, int)\000int (graphP, unsigned int)\000void (graphP *)\000void (graphP)\000gp_DupGraph\000gp_New\000gp_ExtendWith_DrawPlanar\000gp_ExtendWith_K23Search\000gp_ExtendWith_K33Search\000gp_ExtendWith_K4Search\000gp_ExtendWith_Outerplanarity\000gp_ExtendWith_Planarity\000gp_GetEdgeCapacity\000gp_GetN\000gp_LowerBoundEdgeStorage\000gp_LowerBoundEdges\000gp_LowerBoundVertices\000gp_UpperBoundEdgeStorage\000gp_UpperBoundEdges\000gp_UpperBoundVertices\000gp_DrawPlanar_RenderToFile\000gp_Read\000gp_DrawPlanar_RenderToString\000gp_Write\000gp_CopyGraph\000gp_TestEmbedResultIntegrity\000gp_DeleteEdge\000gp_EdgeInUse\000gp_EnsureEdgeCapacity\000gp_GetFirstEdge\000gp_GetNeighbor\000gp_GetNextEdge\000gp_GetVertexDegree\000gp_InitGraph\000gp_IsEdge\000gp_IsVertex\000gp_FindEdge\000gp_AddEdge\000gp_Embed\000gp_Free\000gp_ReinitGraph\320\004\030\230\001\360\010\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\230q\340\010\027\220x\230q\240\004\240A\200A\330\010\023\320\0230\260\001\260\024\260\\\300\023\300A\330\014\022\220,\230a\230q\200A\330\010\027\320\0270\260\001\260\024\260Q\200A\330\010\023\320\023+\2501\250D\260\014\270C\270q\330\014\022\220,\230a\230q\200A\330\010\023\320\023*\250!\2504\250|\2703\270a\330\014\022\220,\230a\230q\200A\360\006\000\t\014\2104\210{\230#\230Q\330\014\022\220,\230a\330\020\021\360\006\000\t\n\330\014\017\210y\230\010\240\003\2403\240a\330\020\026\220j\240\001\240\021\330\010\017\320\017\037\230q\330\014\022\220*\230A\330\020\021\330\023\024\340\010\013\2104\210x\220s\230#\230Y\240h\250a\330\014\022\220*\230A\330\020\021\360\006\000\t\024\220=\240\001\240\024\240\\\260\031\270,\300c\310\021\330\014\022\220,\230a\230q\200A\330\010\027\320\027*\250!\2504\250q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\0208\270\001\270\021\360""\006\000\t\030\220~\240Q\240d\250,\260a\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020=\270Q\270a\360\006\000\t\030\220}\240A\240T\250\034\260Q\200A\330\010\013\2104\210t\220:\230Q\230a\330\014\022\220,\230a\330\020?\270q\300\001\360\006\000\t\030\220\177\240a\240t\250<\260q\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\330\020B\300!\3001\360\006\000\t\030\320\027'\240q\250\004\250L\270\001\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\320\027*\250!\2504\250|\2701\200A\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\330\010\013\2104\210t\220<\230q\240\001\330\014\022\220,\230a\230s\240!\2401\340\010\027\220|\2401\240D\250\014\260C\260q\200A\330\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\013\2106\220\023\220B\220d\230&\240\003\2401\330\014\022\220,\230a\330\0201\260\021\260!\340\010\023\220;\230a\230t\240<\250s\260'\270\023\270G\3003\300a\330\014\022\220,\230a\330\020/\250q\260\004\260A\3205F\300a\300q\330\020\036\230a\230q\200A\330\010\023\320\023,\250A\250T\260\034\270S\300\001\330\014\022\220,\230a\230q\200A\330\010\023\220=\240\001\240\024\240\\\260\023\260C\260q\330\014\022\220,\230a\230q\200A\330\010%\240Q\330\010\023\320\0230\260\001\260\024\260\\\300\021\320BS\320SV\320VW\330\014\022\220,\230a\230q\340\010\t\330\014\023\220?\240'\250\021\250!\330\010\017\210}\230A\330\014\022\220,\230a\330\020\021\330\027\030\340\014\020\220\001\220\021\200A\330\010\027\320\027-\250Q\250d\260!\200A\330\010\025\220X\320\035/\250u\260C\260q\330\037'\320';\2705\300\003\3001\330%-\250]\270%\270s\300!\330*+\330\010\013\2104\210q\330\014\022\220*\230A\330\0203\2601\260A\360\n\000\t\036\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\2209\230A\230T\240\034\250]\270+\300S\310\001\330\014\022\220,\230a\330\020*\250!\2501\200A\330\010\023\320\023)\250\021\250$\250l\320:M\310S\320PQ\330\014\022\220,""\230a\330\020\021\330\020\022\220!\2201\200A\330\020\037\230q\240\004\240A\200A\340\010\035\230[\250\007\250q\260\001\330\010$\240A\340\010\023\2208\2301\230D\240\014\250J\260c\270\021\330\014\022\220,\230a\230q\200A\340\010\035\230\\\250\027\260\001\260\021\330\010'\240q\340\010\023\320\023.\250a\250t\260<\270}\310C\310q\330\014\022\220,\230a\320\037E\300Q\300a\200A\330\010\t\330\r\017\210s\220$\320\026,\250D\260\001\330\r\017\210r\220\024\320\025+\2504\250q\330\024 \240\001\240\024\240\\\260\021\200A\330\010\t\330\r\017\210s\220$\320\026/\250t\2601\330\r\017\210r\220\024\320\025.\250d\260!\330\024\036\230a\230t\240<\250q\200\001\330\004\n\210+\220Q\320\004\035\230Q\330\0104\260L\300\001\300\024\300Q\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\230a\340\010\037\230u\240A\330\020\030\230\001\230\021\230)\2401\330\010\021\220\035\230a\340\010\017\210q\320\004Y\320YZ\330\010\037\320\037;\2701\330\020\024\220L\320 2\260,\270a\340\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q\320\004*\250!\330\010\037\230y\250\001\250\024\250\\\270\021\330\010\013\210=\230\003\2303\230d\240-\250s\260!\330\014\022\220,\230a\230q\340\010\017\210q"; PyObject *data = NULL; CYTHON_UNUSED_VAR(__Pyx_DecompressString); #endif PyObject **stringtab = __pyx_mstate->__pyx_string_tab; Py_ssize_t pos = 0; - for (int i = 0; i < 193; i++) { + for (int i = 0; i < 195; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL); if (likely(string) && i >= 52) PyUnicode_InternInPlace(&string); @@ -11485,7 +11598,7 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str stringtab[i] = string; pos += bytes_length; } - for (int i = 193; i < 223; i++) { + for (int i = 195; i < 225; i++) { Py_ssize_t bytes_length = index[i].length; PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length); stringtab[i] = string; @@ -11496,14 +11609,14 @@ const char* const bytes = ".Failed embed integrity check.Failed to convert C str } } Py_XDECREF(data); - for (Py_ssize_t i = 0; i < 223; i++) { + for (Py_ssize_t i = 0; i < 225; i++) { if (unlikely(PyObject_Hash(stringtab[i]) == -1)) { __PYX_ERR(0, 1, __pyx_L1_error) } } #if CYTHON_IMMORTAL_CONSTANTS { - PyObject **table = stringtab + 193; + PyObject **table = stringtab + 195; for (Py_ssize_t i=0; i<30; ++i) { #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING #if PY_VERSION_HEX < 0x030E0000 @@ -11653,107 +11766,112 @@ static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) { { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 162}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 165}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; + __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundEdges, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 165}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 168}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNextEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNextEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 173}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 176}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_e}; - __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNeighbor, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetNeighbor, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Qa_a_q_at_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 181}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 184}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; - __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetFirstEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_GetFirstEdge, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_q_a_B_1_q_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 189}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 192}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_LowerBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 192}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 195}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_UpperBoundVertices, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 195}; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 198}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v}; - __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsVertex, __pyx_mstate->__pyx_kp_b_iso88591_A_s_D_r_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_IsVertex, __pyx_mstate->__pyx_kp_b_iso88591_A_s_D_r_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 202}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 205}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; + __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Read, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_81D_Jc_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 206}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 213}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_mode_code, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; + __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Write, __pyx_mstate->__pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 210}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 233}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_mstate->__pyx_kp_b_iso88591_A_4_3a_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 214}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_infile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_FileName}; - __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Read, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_81D_Jc_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad; + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 237}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_embedFlags, __pyx_mstate->__pyx_n_u_embed_result}; + __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Embed, __pyx_mstate->__pyx_kp_b_iso88591_y_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 222}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_mode_code, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; - __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Write, __pyx_mstate->__pyx_kp_b_iso88591_A_X_uCq_5_1_s_4q_A_31A_q_9AT_S_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad; + const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 244}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_copy_of_orig_graph, __pyx_mstate->__pyx_n_u_embed_result, __pyx_mstate->__pyx_n_u_check_result}; + __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_mstate->__pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 242}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 253}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_mstate->__pyx_kp_b_iso88591_A_0_A_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 246}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 257}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; + __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_DrawPlanar, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_S_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad; + } + { + const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 261}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_outfile_name, __pyx_mstate->__pyx_n_u_encoded, __pyx_mstate->__pyx_n_u_theFileName}; - __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_mstate->__pyx_kp_b_iso88591_A_q_at_Cq_a_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToFile, __pyx_mstate->__pyx_kp_b_iso88591_A_q_at_Cq_a_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 254}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 269}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_renditionString, __pyx_mstate->__pyx_n_u_string_conversion_error}; - __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_DrawPlanar_RenderToString, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_0_BSSVVW_aq_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 268}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 283}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Outerplanarity, __pyx_mstate->__pyx_kp_b_iso88591_A_0_A_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K23Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 272}; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 287}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_Planarity, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad; - } - { - const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 276}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_embedFlags, __pyx_mstate->__pyx_n_u_embed_result}; - __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_Embed, __pyx_mstate->__pyx_kp_b_iso88591_y_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K33Search, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_Cq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad; } { - const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 283}; - PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_copy_of_orig_graph, __pyx_mstate->__pyx_n_u_embed_result, __pyx_mstate->__pyx_n_u_check_result}; - __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_TestEmbedResultIntegrity, __pyx_mstate->__pyx_kp_b_iso88591_YYZ_1_L_2_a_3d_s_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad; + const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 291}; + PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; + __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_planarity_full_graph_pyx, __pyx_mstate->__pyx_n_u_gp_ExtendWith_K4Search, __pyx_mstate->__pyx_kp_b_iso88591_A_4_3a_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self}; - __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad; } { const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3}; PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state}; - __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad; + __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad; } Py_DECREF(tuple_dedup_map); return 0; diff --git a/planarity/full/graph.pyx b/planarity/full/graph.pyx index eb68240..1954bff 100644 --- a/planarity/full/graph.pyx +++ b/planarity/full/graph.pyx @@ -201,19 +201,7 @@ cdef class Graph: (v < self.gp_UpperBoundVertices()) and graphLib.gp_IsVertex(self._theGraph, v) ) - - def gp_ExtendWith_K23Search(self): - if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: - raise RuntimeError("Failed to extend graph with K23Search structures.") - def gp_ExtendWith_K33Search(self): - if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: - raise RuntimeError("Failed to extend graph with K33Search structures.") - - def gp_ExtendWith_K4Search(self): - if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: - raise RuntimeError("Failed to extend graph with K4Search structures.") - def gp_Read(self, str infile_name): # Convert Python str to UTF-8 encoded bytes, and then to const char * cdef bytes encoded = infile_name.encode('utf-8') @@ -242,10 +230,34 @@ cdef class Graph: f"gp_Write() of graph to '{outfile_name}' failed." ) + def gp_ExtendWith_Planarity(self): + if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: + raise RuntimeError("Failed to extend graph with Planarity structures.") + + def gp_Embed(self, int embedFlags) -> int: + embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) + if embed_result != OK and embed_result != NONEMBEDDABLE: + raise RuntimeError("Failed to perform embed operation.") + + return embed_result + + def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: + check_result = graphLib.gp_TestEmbedResultIntegrity( + self._theGraph, copy_of_orig_graph._theGraph, embed_result + ) + if check_result != OK and check_result != NONEMBEDDABLE: + raise RuntimeError("Failed embed integrity check.") + + return check_result + + def gp_ExtendWith_Outerplanarity(self): + if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: + raise RuntimeError("Failed to extend graph with Outerplanarity structures.") + def gp_ExtendWith_DrawPlanar(self): if graphLib.gp_ExtendWith_DrawPlanar(self._theGraph) != OK: raise RuntimeError("Failed to extend graph with DrawPlanar structures.") - + def gp_DrawPlanar_RenderToFile(self, str outfile_name): # Convert Python str to UTF-8 encoded bytes, and then to const char * cdef bytes encoded = outfile_name.encode('utf-8') @@ -267,27 +279,15 @@ cdef class Graph: ) from string_conversion_error finally: free(renditionString) - - def gp_ExtendWith_Outerplanarity(self): - if graphLib.gp_ExtendWith_Outerplanarity(self._theGraph) != OK: - raise RuntimeError("Failed to extend graph with Outerplanarity structures.") - - def gp_ExtendWith_Planarity(self): - if graphLib.gp_ExtendWith_Planarity(self._theGraph) != OK: - raise RuntimeError("Failed to extend graph with Planarity structures.") - def gp_Embed(self, int embedFlags) -> int: - embed_result = graphLib.gp_Embed(self._theGraph, embedFlags) - if embed_result != OK and embed_result != NONEMBEDDABLE: - raise RuntimeError("Failed to perform embed operation.") - - return embed_result - - def gp_TestEmbedResultIntegrity(self, Graph copy_of_orig_graph, int embed_result) -> int: - check_result = graphLib.gp_TestEmbedResultIntegrity( - self._theGraph, copy_of_orig_graph._theGraph, embed_result - ) - if check_result != OK and check_result != NONEMBEDDABLE: - raise RuntimeError("Failed embed integrity check.") - - return check_result + def gp_ExtendWith_K23Search(self): + if graphLib.gp_ExtendWith_K23Search(self._theGraph) != OK: + raise RuntimeError("Failed to extend graph with K23Search structures.") + + def gp_ExtendWith_K33Search(self): + if graphLib.gp_ExtendWith_K33Search(self._theGraph) != OK: + raise RuntimeError("Failed to extend graph with K33Search structures.") + + def gp_ExtendWith_K4Search(self): + if graphLib.gp_ExtendWith_K4Search(self._theGraph) != OK: + raise RuntimeError("Failed to extend graph with K4Search structures.")