File tree Expand file tree Collapse file tree
test/partitioner/external_tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments