-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move to the same interface as in the Shm code
- Loading branch information
1 parent
b139e10
commit 78a8f37
Showing
13 changed files
with
680 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/******************************************************************************* | ||
* Interface for clustering algorithms. | ||
* | ||
* @file: clusterer.h | ||
* @author: Daniel Seemaier | ||
* @date: 29.09.21 | ||
******************************************************************************/ | ||
#pragma once | ||
|
||
#include "kaminpar-dist/datastructures/distributed_graph.h" | ||
#include "kaminpar-dist/dkaminpar.h" | ||
|
||
#include "kaminpar-common/datastructures/static_array.h" | ||
|
||
namespace kaminpar::dist { | ||
class Clusterer { | ||
public: | ||
Clusterer() = default; | ||
|
||
Clusterer(const Clusterer &) = delete; | ||
Clusterer &operator=(const Clusterer &) = delete; | ||
|
||
Clusterer(Clusterer &&) noexcept = default; | ||
Clusterer &operator=(Clusterer &&) noexcept = default; | ||
|
||
virtual ~Clusterer() = default; | ||
|
||
// | ||
// Optional options | ||
// | ||
|
||
virtual void set_communities(const StaticArray<BlockID> & /* communities */) {} | ||
virtual void clear_communities() {} | ||
|
||
virtual void set_max_cluster_weight(GlobalNodeWeight /* weight */) {} | ||
|
||
// | ||
// Clustering function | ||
// | ||
|
||
virtual void cluster(StaticArray<GlobalNodeID> &clustering, const DistributedGraph &graph) = 0; | ||
}; | ||
} // namespace kaminpar::dist | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.