Skip to content

Commit 8943cc4

Browse files
Set default cluster_upperbound to max/2
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 511a996 commit 8943cc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/vieclus_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ void vieclus_clustering(int* n, int* vwgt, int* xadj,
7676
config.cluster_upperbound = cluster_upperbound;
7777
config.upper_bound_partition = cluster_upperbound;
7878
} else {
79-
config.cluster_upperbound = std::numeric_limits<NodeWeight>::max();
80-
config.upper_bound_partition = std::numeric_limits<NodeWeight>::max();
79+
config.cluster_upperbound = std::numeric_limits<NodeWeight>::max() / 2;
80+
config.upper_bound_partition = std::numeric_limits<NodeWeight>::max() / 2;
8181
}
8282

8383
// Build graph

0 commit comments

Comments
 (0)