Skip to content

Commit

Permalink
,
Browse files Browse the repository at this point in the history
  • Loading branch information
kittobi1992 committed Jul 24, 2023
1 parent 08c20ae commit 0c4c135
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace mt_kahypar {
template<typename PartitionedGraph>
void GraphCutGainCache::initializeGainCache(const PartitionedGraph& partitioned_graph) {
ASSERT(!_is_initialized, "Gain cache is already initialized");
ASSERT(_k <= 0 || _k >= partitioned_hg.k(),
"Gain cache was already initialized for a different k" << V(_k) << V(partitioned_hg.k()));
ASSERT(_k <= 0 || _k >= partitioned_graph.k(),
"Gain cache was already initialized for a different k" << V(_k) << V(partitioned_graph.k()));
allocateGainTable(partitioned_graph.topLevelNumNodes(), partitioned_graph.k());

// assert that current gain values are zero
Expand Down

0 comments on commit 0c4c135

Please sign in to comment.