Skip to content

Commit 89c09e0

Browse files
committed
Writes the MIS to files with --output flag in mmwis and struction
1 parent 56236a4 commit 89c09e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mmwis/app/mmwis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ int run(mmwis::MISConfig &mis_config, graph_access &G, NodeWeight weight_offset)
104104
evo.perform_mis_search(mis_config, G, independent_set, best_nodes, worse_nodes, solved_exactly, false);
105105
mmwis::mmwis_log::instance()->print_results();
106106
if (mis_config.print_log) mmwis::mmwis_log::instance()->write_log();
107-
/* if (mis_config.write_graph) graph_io::writeIndependentSet(G, mis_config.output_filename); */
107+
if (mis_config.write_graph) graph_io::writePartition(G, mis_config.output_filename);
108108
#ifdef NDEBUG
109109
if(is_IS(G)) {
110110
int solution_weight = weight_offset;

mmwis/extern/struction/app/branch_reduce.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,9 @@ int main(int argn, char **argv) {
149149
}
150150
#endif
151151

152+
if (mis_config.write_graph) {
153+
graph_io::writePartition(G, mis_config.output_filename);
154+
}
155+
152156
return 0;
153157
}

0 commit comments

Comments
 (0)