dialog_graph.cpp
Go to the documentation of this file.
29 * @brief A dialog to write graph representations of the matrix and read partitions as decompositions.
33 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
96 SCIP_RETCODE DialogWriteGraphs<T, G>::scip_exec(SCIP* scip, SCIP_DIALOG* dialog, SCIP_DIALOGHDLR* dialoghdlr, SCIP_DIALOG** nextdialog)
109 SCIP_CALL( SCIPdialoghdlrGetWord(dialoghdlr, dialog, "enter filename: ", &filename, &endoffile) );
134 SCIP_CALL( graph->createFromMatrix(SCIPgetConss(scip), SCIPgetVars(scip), SCIPgetNConss(scip), SCIPgetNVars(scip)) );
148 (void)static_cast<MatrixGraph<T>*>((G<T>*)0); /* assure we only get descendants of type Graph */
152 SCIP_RETCODE DialogReadGraphs<T, G>::scip_exec(SCIP* scip, SCIP_DIALOG* dialog, SCIP_DIALOGHDLR* dialoghdlr, SCIP_DIALOG** nextdialog)
165 SCIP_CALL( SCIPdialoghdlrGetWord(dialoghdlr, dialog, "enter filename: ", &filename, &endoffile) );
178 SCIP_CALL( graph->createFromMatrix(SCIPgetConss(scip), SCIPgetVars(scip), SCIPgetNConss(scip), SCIPgetNVars(scip)) );
202 (void)static_cast<gcg::MatrixGraph<T>*>((G<T>*)0); /* assure we only get descendants of type Graph */
209 SCIP_CALL( SCIPincludeObjDialog(scip, subdialog, new gcg::DialogWriteGraphs<T,G>(scip), true) );
213 SCIP_CALL( SCIPincludeObjDialog(scip, subdialog, new gcg::DialogReadGraphs<T,G >(scip), true) );
Definition: dialog_graph.h:77
DialogReadPartition(SCIP *scip)
Definition: dialog_graph.cpp:73
A row graph where each row is a node and rows are adjacent if they share a variable.
Definition: struct_decomp.h:51
A hypergraph with row and column nodes.
DialogWriteGraphs(SCIP *scip)
Definition: dialog_graph.cpp:87
constraint handler for structure detection
SCIP_RETCODE GCGconshdlrDecompAddPreexistingDecomp(SCIP *scip, DEC_DECOMP *decomp)
adds a decomp that exists before the detection is called
Definition: cons_decomp.cpp:3534
Definition: class_conspartition.cpp:43
Definition: weights.h:41
Definition: dialog_graph.h:90
various SCIP helper methods
Definition: dialog_graph.h:56
Column hypergraph.
SCIP_RETCODE GCGincludeDialogsGraph(SCIP *scip)
Definition: dialog_graph.cpp:220
SCIP_DECL_DIALOGEXEC(DialogWriteGraph::scip_exec)
Definition: dialog_graph.cpp:57
A row graph where each column is a node and columns are adjacent if they appear in a row.
interface to the SCIP tclique graph library
Definition: dialog_graph.h:66
Definition: matrixgraph.h:54
Column hypergraph.
SCIP_RETCODE GCGincludeGraphEntries(SCIP *scip)
Definition: dialog_graph.cpp:195
A dialog to write graph representations of the matrix and read partitions as decompositions.
Definition: dialog_graph.h:46
SCIP_RETCODE SCIPincludeObjDialog(SCIP *scip, SCIP_DIALOG *parentdialog, gcg::ObjDialog *objdialog, SCIP_Bool deleteobject)
Definition: objdialog.cpp:127