Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kittobi1992 committed Jul 24, 2023
1 parent 5d33548 commit 08c20ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion mt-kahypar/datastructures/delta_partitioned_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ class DeltaPartitionedGraph {
sync_update.edge_size = _pg->edgeSize(edge);
sync_update.pin_count_in_from_part_after = target_part == from ? 1 : 0;
sync_update.pin_count_in_to_part_after = target_part == to ? 2 : 1;
// TODO: deep copy of connectivity set required here
delta_func(sync_update);
}
return true;
Expand Down
7 changes: 3 additions & 4 deletions mt-kahypar/partition/partitioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ namespace mt_kahypar {
}

template<typename Hypergraph>
void preprocess(Hypergraph& hypergraph, Context& context, TargetGraph* target_graph, const bool is_vcycle) {
void preprocess(Hypergraph& hypergraph, Context& context, TargetGraph* target_graph) {
bool use_community_detection = context.preprocessing.use_community_detection;
bool is_graph = false;

Expand All @@ -248,7 +248,7 @@ namespace mt_kahypar {
timer.stop_timer("detect_graph_structure");
}

if ( use_community_detection && !is_vcycle ) {
if ( use_community_detection ) {
io::printTopLevelPreprocessingBanner(context);

timer.start_timer("community_detection", "Community Detection");
Expand Down Expand Up @@ -301,7 +301,7 @@ namespace mt_kahypar {
timer.start_timer("preprocessing", "Preprocessing");
DegreeZeroHypernodeRemover<TypeTraits> degree_zero_hn_remover(context);
LargeHyperedgeRemover<TypeTraits> large_he_remover(context);
preprocess(hypergraph, context, target_graph, false);
preprocess(hypergraph, context, target_graph);
sanitize(hypergraph, context, degree_zero_hn_remover, large_he_remover);
timer.stop_timer("preprocessing");

Expand Down Expand Up @@ -368,7 +368,6 @@ namespace mt_kahypar {
timer.start_timer("preprocessing", "Preprocessing");
DegreeZeroHypernodeRemover<TypeTraits> degree_zero_hn_remover(context);
LargeHyperedgeRemover<TypeTraits> large_he_remover(context);
preprocess(hypergraph, context, target_graph, true);
sanitize(hypergraph, context, degree_zero_hn_remover, large_he_remover);
timer.stop_timer("preprocessing");

Expand Down
2 changes: 1 addition & 1 deletion mt-kahypar/partition/refinement/fm/multitry_kway_fm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ namespace mt_kahypar {

metrics.quality -= overall_improvement;
metrics.imbalance = metrics::imbalance(phg, context);
ASSERT(phg.checkTrackedPartitionInformation(gain_cache));
HEAVY_REFINEMENT_ASSERT(phg.checkTrackedPartitionInformation(gain_cache));
ASSERT(metrics.quality == metrics::quality(phg, context),
V(metrics.quality) << V(metrics::quality(phg, context)));
return overall_improvement > 0;
Expand Down

0 comments on commit 08c20ae

Please sign in to comment.