void WriteSimpleComponent(const GraphComponent<Graph>& gc, const string& file_name, shared_ptr<GraphColorer<Graph>> colorer, const GraphLabeler<Graph> &labeler) { EmptyGraphLinker<Graph> linker; ofstream os; os.open(file_name); omnigraph::visualization::ComponentVisualizer<Graph>(gc.g(), false).Visualize(gc, os, labeler, *colorer, linker); os.close(); }
void WriteComponent(const GraphComponent<Graph>& gc, const string& file_name, shared_ptr<GraphColorer<Graph>> colorer, const GraphLabeler<Graph> &labeler) { EmptyGraphLinker<Graph> linker; BorderDecorator<Graph> component_colorer(gc, *colorer, "yellow"); ofstream os; os.open(file_name); omnigraph::visualization::ComponentVisualizer<Graph>(gc.g(), true).Visualize(gc, os, labeler, component_colorer, linker); os.close(); }