/** * \ingroup python_interface_edge * \brief Deallocates a Python representation of a given edge object */ void igraphmodule_Edge_dealloc(igraphmodule_EdgeObject* self) { igraphmodule_Edge_clear(self); RC_DEALLOC("Edge", self); PyObject_Del((PyObject*)self); }
/** * \ingroup python_interface_vertex * \brief Deallocates a Python representation of a given vertex object */ void igraphmodule_Vertex_dealloc(igraphmodule_VertexObject* self) { igraphmodule_Vertex_clear(self); RC_DEALLOC("Vertex", self); PyObject_Del((PyObject*)self); }
/** * \ingroup python_interface_vertexseq * \brief Deallocates a Python representation of a given vertex sequence object */ void igraphmodule_VertexSeq_dealloc(igraphmodule_VertexSeqObject* self) { if (self->weakreflist != NULL) PyObject_ClearWeakRefs((PyObject *) self); if (self->gref) { igraph_vs_destroy(&self->vs); Py_DECREF(self->gref); self->gref=0; } Py_TYPE(self)->tp_free((PyObject*)self); RC_DEALLOC("VertexSeq", self); }