From 71b0c4981aee0d3284e03ad13b9e5ccf8aa466b8 Mon Sep 17 00:00:00 2001 From: kutay Date: Wed, 14 Feb 2024 16:35:48 +0300 Subject: [PATCH] Multi-Constraint Enabled This part enables the multi-constraint partitioning of nodes. It also sets the number of constraints automatically. --- src/wrapper/wrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wrapper/wrapper.cpp b/src/wrapper/wrapper.cpp index b2e030c..50a449e 100644 --- a/src/wrapper/wrapper.cpp +++ b/src/wrapper/wrapper.cpp @@ -174,6 +174,7 @@ namespace if (!vwgt_py.is_none()) { + ncon = py::len(vwgt_py) / py::len(xadj_py); COPY_IDXTYPE_LIST(vwgt); } if (!adjwgt_py.is_none())