|
43 | 43 | #include "mt-kahypar/partition/refinement/fm/strategies/unconstrained_strategy.h" |
44 | 44 | #include "mt-kahypar/partition/refinement/flows/do_nothing_refiner.h" |
45 | 45 | #include "mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.h" |
46 | | -#include "mt-kahypar/partition/refinement/flows/flow_refiner.h" |
47 | 46 | #include "mt-kahypar/partition/refinement/gains/gain_definitions.h" |
48 | 47 | #include "mt-kahypar/partition/refinement/rebalancing/simple_rebalancer.h" |
49 | 48 | #include "mt-kahypar/partition/refinement/rebalancing/advanced_rebalancer.h" |
@@ -103,11 +102,6 @@ using AdvancedRebalancerDispatcher = kahypar::meta::StaticMultiDispatchFactory< |
103 | 102 | IRebalancer, |
104 | 103 | kahypar::meta::Typelist<GraphAndGainTypesList>>; |
105 | 104 |
|
106 | | -using FlowRefinementDispatcher = kahypar::meta::StaticMultiDispatchFactory< |
107 | | - FlowRefiner, |
108 | | - IFlowRefiner, |
109 | | - kahypar::meta::Typelist<GraphAndGainTypesList>>; |
110 | | - |
111 | 105 |
|
112 | 106 | #define REGISTER_DISPATCHED_LP_REFINER(id, dispatcher, ...) \ |
113 | 107 | kahypar::meta::Registrar<LabelPropagationFactory> register_ ## dispatcher( \ |
@@ -213,23 +207,6 @@ using FlowRefinementDispatcher = kahypar::meta::StaticMultiDispatchFactory< |
213 | 207 | return new refiner(num_hypernodes, context, gain_cache); \ |
214 | 208 | }) |
215 | 209 |
|
216 | | -#define REGISTER_DISPATCHED_FLOW_REFINER(id, dispatcher, ...) \ |
217 | | - kahypar::meta::Registrar<FlowRefinementFactory> register_ ## dispatcher( \ |
218 | | - id, \ |
219 | | - [](const HyperedgeID num_hyperedges, const Context& context) { \ |
220 | | - return dispatcher::create( \ |
221 | | - std::forward_as_tuple(num_hyperedges, context), \ |
222 | | - __VA_ARGS__ \ |
223 | | - ); \ |
224 | | - }) |
225 | | - |
226 | | -#define REGISTER_FLOW_REFINER(id, refiner, t) \ |
227 | | - kahypar::meta::Registrar<FlowRefinementFactory> JOIN(register_ ## refiner, t)( \ |
228 | | - id, \ |
229 | | - [](const HyperedgeID num_Hyperedges, const Context& context) -> IFlowRefiner* { \ |
230 | | - return new refiner(num_Hyperedges, context); \ |
231 | | - }) |
232 | | - |
233 | 210 |
|
234 | 211 | kahypar::meta::PolicyBase& getGraphAndGainTypesPolicy(mt_kahypar_partition_type_t partition_type, GainPolicy gain_policy) { |
235 | 212 | switch ( partition_type ) { |
@@ -287,11 +264,6 @@ void register_refinement_algorithms() { |
287 | 264 | AdvancedRebalancerDispatcher, |
288 | 265 | getGraphAndGainTypesPolicy(context.partition.partition_type, context.partition.gain_policy)); |
289 | 266 | REGISTER_REBALANCER(RebalancingAlgorithm::do_nothing, DoNothingRefiner, 5); |
290 | | - |
291 | | - REGISTER_DISPATCHED_FLOW_REFINER(FlowAlgorithm::flow_cutter, |
292 | | - FlowRefinementDispatcher, |
293 | | - getGraphAndGainTypesPolicy(context.partition.partition_type, context.partition.gain_policy)); |
294 | | - REGISTER_FLOW_REFINER(FlowAlgorithm::do_nothing, DoNothingFlowRefiner, 6); |
295 | 267 | } |
296 | 268 |
|
297 | 269 | } // namespace mt_kahypar |
0 commit comments