@tscircuit/hypergraph 0.0.11 → 0.0.12

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.
package/dist/index.d.ts CHANGED
@@ -294,6 +294,13 @@ declare class HyperGraphSolver<RegionType extends Region = Region, RegionPortTyp
294
294
  rippingEnabled?: boolean;
295
295
  ripCost?: number;
296
296
  });
297
+ getConstructorParams(): {
298
+ inputGraph: HyperGraph | SerializedHyperGraph;
299
+ inputConnections: (Connection | SerializedConnection)[];
300
+ greedyMultiplier?: number;
301
+ rippingEnabled?: boolean;
302
+ ripCost?: number;
303
+ };
297
304
  computeH(candidate: CandidateType): number;
298
305
  /**
299
306
  * OVERRIDE THIS
package/dist/index.js CHANGED
@@ -1767,6 +1767,9 @@ var HyperGraphSolver = class extends BaseSolver {
1767
1767
  ripCost = 0;
1768
1768
  lastCandidate = null;
1769
1769
  visitedPointsForCurrentConnection = /* @__PURE__ */ new Map();
1770
+ getConstructorParams() {
1771
+ return this.input;
1772
+ }
1770
1773
  computeH(candidate) {
1771
1774
  return this.estimateCostToEnd(candidate.port);
1772
1775
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/hypergraph",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",