Skip to content

Commit e49b2ff

Browse files
committed
reverse confusion
1 parent 62cd1a2 commit e49b2ff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/osp/dag_divider/isomorphism_divider/IsomorphicSubgraphScheduler.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class IsomorphicSubgraphScheduler {
3939
private:
4040

4141
static constexpr bool verbose = false;
42-
const HashComputer<std::size_t>* hash_computer_;
42+
const HashComputer<vertex_idx_t<Graph_t>>* hash_computer_;
4343
size_t symmetry_ = 2;
4444
Scheduler<Constr_Graph_t> * bsp_scheduler_;
4545
bool use_max_group_size_ = false;
@@ -51,7 +51,7 @@ class IsomorphicSubgraphScheduler {
5151
explicit IsomorphicSubgraphScheduler(Scheduler<Constr_Graph_t> & bsp_scheduler)
5252
: hash_computer_(nullptr), symmetry_(2), bsp_scheduler_(&bsp_scheduler), plot_dot_graphs_(false) {}
5353

54-
IsomorphicSubgraphScheduler(Scheduler<Constr_Graph_t> & bsp_scheduler, const HashComputer<std::size_t>& hash_computer)
54+
IsomorphicSubgraphScheduler(Scheduler<Constr_Graph_t> & bsp_scheduler, const HashComputer<vertex_idx_t<Graph_t>>& hash_computer)
5555
: hash_computer_(&hash_computer), symmetry_(2), bsp_scheduler_(&bsp_scheduler), plot_dot_graphs_(false) {}
5656

5757
virtual ~IsomorphicSubgraphScheduler() {}
@@ -68,7 +68,7 @@ class IsomorphicSubgraphScheduler {
6868
std::vector<vertex_idx_t<Graph_t>> compute_partition(const BspInstance<Graph_t>& instance) {
6969
OrbitGraphProcessor<Graph_t, Constr_Graph_t> orbit_processor(symmetry_);
7070

71-
std::unique_ptr<HashComputer<std::size_t>> local_hasher;
71+
std::unique_ptr<HashComputer<vertex_idx_t<Graph_t>>> local_hasher;
7272
if (!hash_computer_) {
7373
local_hasher = std::make_unique<MerkleHashComputer<Graph_t, bwd_merkle_node_hash_func<Graph_t>, true>>(instance.getComputationalDag(), instance.getComputationalDag());
7474
hash_computer_ = local_hasher.get();

include/osp/dag_divider/isomorphism_divider/MerkleHashComputer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ limitations under the License.
3232
namespace osp {
3333

3434
template<typename Graph_t, typename node_hash_func_t = uniform_node_hash_func<vertex_idx_t<Graph_t>>, bool forward = true>
35-
class MerkleHashComputer : public HashComputer<std::size_t> {
35+
class MerkleHashComputer : public HashComputer<vertex_idx_t<Graph_t>> {
3636

3737
static_assert(is_directed_graph_v<Graph_t>, "Graph_t must satisfy the directed_graph concept");
3838
static_assert(std::is_invocable_r<std::size_t, node_hash_func_t, vertex_idx_t<Graph_t>>::value, "node_hash_func_t must be invocable with one vertex_idx_t<Graph_t> argument and return std::size_t.");

include/osp/dag_divider/isomorphism_divider/OrbitGraphProcessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class OrbitGraphProcessor {
387387
* @brief Discovers isomorphic groups (orbits) and constructs a coarse graph.
388388
* @param dag The input computational DAG.
389389
*/
390-
void discover_isomorphic_groups(const Graph_t &dag, const HashComputer<std::size_t> &hasher) {
390+
void discover_isomorphic_groups(const Graph_t &dag, const HashComputer<VertexType> &hasher) {
391391
coarse_graph_ = Constr_Graph_t();
392392
contraction_map_.clear();
393393
final_coarse_graph_ = Constr_Graph_t();

0 commit comments

Comments
 (0)