Skip to content

Commit 17f8fcc

Browse files
committed
update graph partitioner according to changes
1 parent f49a44f commit 17f8fcc

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/partitioner/external_tools/graph_partitioner.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <algorithms/partitioner/build_sb_graph.hpp>
3939
#include <algorithms/partitioner/kernighan_lin_partitioner.hpp>
4040
#include <algorithms/partitioner/partition_graph.hpp>
41+
#include <algorithms/partitioner/partition_graph_cc.hpp>
4142
#include <algorithms/partitioner/sbg_partitioner_types.hpp>
4243
#include <algorithms/partitioner/weighted_sb_graph.hpp>
4344

@@ -206,6 +207,21 @@ void GraphPartitioner::readGraphFromJson()
206207
sbg_graph.reset(new SBG::LIB::WeightedSBGraph(temp_sbg_graph));
207208
}
208209
std::cout << *sbg_graph << std::endl;
210+
211+
{
212+
auto new_vertices = sbg_partitioner::using_cc::split_sets_according_to_relations(*sbg_graph);
213+
sbg_graph.reset(
214+
new SBG::LIB::WeightedSBGraph(
215+
new_vertices,
216+
SBG::LIB::PW_FACT.createPWMap(),
217+
sbg_graph->map1().compact(),
218+
sbg_graph->map2().compact(),
219+
SBG::LIB::PW_FACT.createPWMap(),
220+
SBG::LIB::PW_FACT.createPWMap()
221+
)
222+
);
223+
}
224+
209225
readGraphFromSBG();
210226
}
211227

0 commit comments

Comments
 (0)