Skip to content

Commit 355e754

Browse files
committed
Flows: scheduler -> flow_refinement_scheduler
1 parent 741f540 commit 355e754

7 files changed

Lines changed: 6 additions & 6 deletions

File tree

mt-kahypar/partition/coarsening/uncoarsener_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "mt-kahypar/partition/context.h"
3434
#include "mt-kahypar/partition/refinement/i_refiner.h"
3535
#include "mt-kahypar/partition/coarsening/coarsening_commons.h"
36-
#include "mt-kahypar/partition/refinement/flows/scheduler.h"
36+
#include "mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.h"
3737
#include "mt-kahypar/partition/refinement/gains/gain_cache_ptr.h"
3838
#include "mt-kahypar/utils/utilities.h"
3939
#include "mt-kahypar/partition/metrics.h"

mt-kahypar/partition/refinement/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(RefinementSources
1111
deterministic/deterministic_label_propagation.cpp
1212
deterministic/deterministic_jet_refiner.cpp
1313
flows/problem_construction.cpp
14-
flows/scheduler.cpp
14+
flows/flow_refinement_scheduler.cpp
1515
flows/active_block_scheduler.cpp
1616
flows/quotient_graph.cpp
1717
flows/flow_refiner.cpp

mt-kahypar/partition/refinement/flows/scheduler.cpp renamed to mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* SOFTWARE.
2525
******************************************************************************/
2626

27-
#include "mt-kahypar/partition/refinement/flows/scheduler.h"
27+
#include "mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.h"
2828

2929
#include <chrono>
3030

mt-kahypar/partition/refinement/flows/scheduler.h renamed to mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.h

File renamed without changes.

mt-kahypar/partition/refinement/gains/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static bool dropHyperedge(const PartitionedHypergraph& phg,
145145
```
146146
The ```capacity(...)``` function gives a hyperedge in the flow network a capacity. The flow network contains nodes of block ```block_0``` and ```block_1```. The capacity should be chosen such that the initial objective value of the bipartition induced by the region minus the maximum flow value equals the reduction in the objective function when we apply the minimum cut to the k-way partition. The ```dropHyperedge(...)``` function removes hyperedges from the flow network that are not relevant for the objective function. For example for the cut metric, we can remove all hyperedges that contains nodes of a block different from ```block_0``` and ```block_1```. The flow algorithm can not remove such nets from cut.
147147
148-
To test your implementation, you can enable logging in our flow-based refinement algorithm by setting the ```debug``` flag to ```true``` in the class ```FlowRefinementScheduler``` (see ```partition/refinement/flows/scheduler.h```). Then, run Mt-KaHyPar with one thread using the following command line parameters: ```-t 1 --preset-type=quality```. If our flow-based refinement algorithm finds an improvement, it outputs the expected gain (initial objective value - maximum flow value) and the real gain (computed via attributed gains). If your implementation is correct, then the expected should always match the real gain.
148+
To test your implementation, you can enable logging in our flow-based refinement algorithm by setting the ```debug``` flag to ```true``` in the class ```FlowRefinementScheduler``` (see ```partition/refinement/flows/flow_refinement_scheduler.h```). Then, run Mt-KaHyPar with one thread using the following command line parameters: ```-t 1 --preset-type=quality```. If our flow-based refinement algorithm finds an improvement, it outputs the expected gain (initial objective value - maximum flow value) and the real gain (computed via attributed gains). If your implementation is correct, then the expected should always match the real gain.
149149
150150
## Extending the Library Interface with a Custom Objective Function
151151

mt-kahypar/partition/registries/register_refinement_algorithms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "mt-kahypar/partition/refinement/fm/strategies/gain_cache_strategy.h"
4343
#include "mt-kahypar/partition/refinement/fm/strategies/unconstrained_strategy.h"
4444
#include "mt-kahypar/partition/refinement/flows/do_nothing_refiner.h"
45-
#include "mt-kahypar/partition/refinement/flows/scheduler.h"
45+
#include "mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.h"
4646
#include "mt-kahypar/partition/refinement/gains/gain_definitions.h"
4747
#include "mt-kahypar/partition/refinement/rebalancing/simple_rebalancer.h"
4848
#include "mt-kahypar/partition/refinement/rebalancing/advanced_rebalancer.h"

tests/partition/refinement/scheduler_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "mt-kahypar/definitions.h"
3030
#include "mt-kahypar/io/hypergraph_factory.h"
3131
#include "mt-kahypar/io/hypergraph_io.h"
32-
#include "mt-kahypar/partition/refinement/flows/scheduler.h"
32+
#include "mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.h"
3333
#include "mt-kahypar/partition/refinement/gains/km1/km1_gain_computation.h"
3434
#include "mt-kahypar/partition/refinement/gains/gain_definitions.h"
3535
#include "tests/partition/refinement/flow_refiner_mock.h"

0 commit comments

Comments
 (0)