Skip to content

Commit 70e0037

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent 836d7b7 commit 70e0037

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pydatastructs/graphs/_backend/cpp/algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
static PyMethodDef AlgorithmsMethods[] = {
77
{"bfs_adjacency_list", (PyCFunction)breadth_first_search_adjacency_list, METH_VARARGS | METH_KEYWORDS, "Run BFS on adjacency list with callback"},
88
{"bfs_adjacency_matrix", (PyCFunction)breadth_first_search_adjacency_matrix, METH_VARARGS | METH_KEYWORDS, "Run BFS on adjacency matrix with callback"},
9+
{"minimum_spanning_tree_prim_adjacency_list", (PyCFunction)minimum_spanning_tree_prim_adjacency_list, METH_VARARGS | METH_KEYWORDS, "Run Prim's algorithm on adjacency list"},
910
{NULL, NULL, 0, NULL}
1011
};
1112

pydatastructs/utils/_backend/cpp/GraphEdge.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ typedef struct {
1919
} GraphEdge;
2020

2121
static void GraphEdge_dealloc(GraphEdge* self) {
22-
self->value.~decltype(self->value)();
2322
Py_XDECREF(self->source);
2423
Py_XDECREF(self->target);
2524
Py_TYPE(self)->tp_free(reinterpret_cast<PyObject*>(self));

0 commit comments

Comments
 (0)