@tscircuit/fanout-solver 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,12 +282,12 @@ class Dinic {
282
282
  while (head < tail) {
283
283
  const node = queue[head++]!
284
284
  for (const edge of this.edges[node]!) {
285
- if (edge.capacity <= 0 || this.levels[edge.to] >= 0) continue
285
+ if (edge.capacity <= 0 || this.levels[edge.to]! >= 0) continue
286
286
  this.levels[edge.to] = this.levels[node]! + 1
287
287
  queue[tail++] = edge.to
288
288
  }
289
289
  }
290
- return this.levels[sink] >= 0
290
+ return this.levels[sink]! >= 0
291
291
  }
292
292
 
293
293
  private sendFlow(node: number, sink: number): number {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fanout-solver",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "BGA fanout solver with coordinated bus-layer escapes for SimpleRouteJson",
5
5
  "module": "lib/index.ts",
6
6
  "type": "module",