-
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 projection data structures to contraction code rather …
…than coarsening code
- Loading branch information
1 parent
ba85d5d
commit b4b6e71
Showing
6 changed files
with
226 additions
and
232 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,25 @@ | ||
/******************************************************************************* | ||
* Common code for graph contraction algorithms. | ||
* | ||
* @file: contraction.h | ||
* @author: Daniel Seemaier | ||
* @date: 06.05.2024 | ||
******************************************************************************/ | ||
#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 CoarseGraph { | ||
public: | ||
virtual ~CoarseGraph() = default; | ||
|
||
[[nodiscard]] virtual const DistributedGraph &get() const = 0; | ||
[[nodiscard]] virtual DistributedGraph &get() = 0; | ||
|
||
virtual void project(const StaticArray<BlockID> &partition, StaticArray<BlockID> &onto) = 0; | ||
}; | ||
} // namespace kaminpar::dist |
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.