@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 +7 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
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
|
}
|