diff --git a/lib/core.ts b/lib/core.ts index 748d6d6..2a1a394 100644 --- a/lib/core.ts +++ b/lib/core.ts @@ -1560,12 +1560,7 @@ export class TinyHyperGraphSolver extends BaseSolver { const routeId = this.state.currentRouteId! const directedHopCountToEnd = this.problemSetup.directedHopCountToEndByRoute[routeId] - const endPortId = this.problem.routeEndPort[routeId]! - - if ( - directedHopCountToEnd && - this.topology.portZ[neighborPortId] !== this.topology.portZ[endPortId] - ) { + if (directedHopCountToEnd) { const directedHopCount = getDirectedRouteHopCount( this.topology, directedHopCountToEnd,