mis.pipeline.fixtures
source module mis.pipeline.fixtures
Classes
-
Fixtures — Handles all preprocessing and postprocessing logic for MIS problems.
source class Fixtures(instance: MISInstance, config: SolverConfig)
Handles all preprocessing and postprocessing logic for MIS problems.
This class allows centralized transformation or validation of the problem instance before solving, and modification or annotation of the solution after solving.
Initialize the fixture handler with the MIS instance and solver config.
Parameters
-
instance : MISInstance — The problem instance to process.
-
config : SolverConfig — Solver configuration, which may include flags for enabling or customizing processing behavior.
Methods
-
preprocess — Apply preprocessing steps to the MIS instance before solving.
-
rebuild — Apply any pending rebuild operations to convert solutions on preprocessed graphs into solutions on the original graph.
source method Fixtures.preprocess() → MISInstance
Apply preprocessing steps to the MIS instance before solving.
Returns
-
MISInstance — The processed or annotated instance.
source method Fixtures.rebuild(solution: MISSolution) → MISSolution
Apply any pending rebuild operations to convert solutions on preprocessed graphs into solutions on the original graph.
Parameters
-
solution : MISSolution — The raw solution from a solver.
Returns
-
MISSolution — The cleaned or transformed solution.
source method Fixtures.postprocess(solutions: list[MISSolution]) → list[MISSolution]