Skip to content

Commit 2788bbb

Browse files
committed
fix: update convex_hull() for C API changes
1 parent 701f8a1 commit 2788bbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_igraph/igraphmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ PyObject* igraphmodule_convex_hull(PyObject* self, PyObject* args, PyObject* kwd
345345
igraph_matrix_destroy(&mtrx);
346346
return NULL;
347347
}
348-
if (igraph_convex_hull(&mtrx, &result, 0)) {
348+
if (igraph_convex_hull_2d(&mtrx, &result, 0)) {
349349
igraphmodule_handle_igraph_error();
350350
igraph_matrix_destroy(&mtrx);
351351
igraph_vector_int_destroy(&result);
@@ -359,7 +359,7 @@ PyObject* igraphmodule_convex_hull(PyObject* self, PyObject* args, PyObject* kwd
359359
igraph_matrix_destroy(&mtrx);
360360
return NULL;
361361
}
362-
if (igraph_convex_hull(&mtrx, 0, &resmat)) {
362+
if (igraph_convex_hull_2d(&mtrx, 0, &resmat)) {
363363
igraphmodule_handle_igraph_error();
364364
igraph_matrix_destroy(&mtrx);
365365
igraph_matrix_destroy(&resmat);

0 commit comments

Comments
 (0)