From f752f2358c5132f9e280d2c37f6525fbc2ff6bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?0hm=E2=98=98=EF=B8=8F?= Date: Fri, 12 Jun 2026 12:04:10 +0530 Subject: [PATCH] Remove empty section optimize skip --- .../TinyHyperGraphSectionPipelineSolver.ts | 51 ------------------- 1 file changed, 51 deletions(-) diff --git a/lib/section-solver/TinyHyperGraphSectionPipelineSolver.ts b/lib/section-solver/TinyHyperGraphSectionPipelineSolver.ts index 2f1c648..1d33f4c 100644 --- a/lib/section-solver/TinyHyperGraphSectionPipelineSolver.ts +++ b/lib/section-solver/TinyHyperGraphSectionPipelineSolver.ts @@ -382,14 +382,6 @@ export class TinyHyperGraphSectionPipelineSolver extends BasePipelineSolver[] = [ { solverName: "solveGraph", @@ -527,49 +519,6 @@ export class TinyHyperGraphSectionPipelineSolver extends BasePipelineSolver("solveGraph") - - if (!solveGraphOutput) { - return false - } - - const [, problem] = this.getSectionStageParams() - let sectionMaskPortCount = 0 - for (const value of problem.portSectionMask) { - if (value === 1) { - sectionMaskPortCount += 1 - } - } - - if (sectionMaskPortCount !== 0) { - return false - } - - this.pipelineOutputs.optimizeSection = solveGraphOutput - this.stats = { - ...this.stats, - activeRouteCount: 0, - optimized: false, - sectionOptimizationSkipped: true, - sectionOptimizationReason: "empty-section-mask", - } - this.currentPipelineStageIndex++ - // The section stage will never run, so the topology/problem/solution view - // loaded for the mask check is dead weight from here on. - this.cachedSectionStageParams = undefined - return true - } - getInitialVisualizationSolver() { if (!this.initialVisualizationSolver) { const { topology, problem } = this.loadHyperGraph(