@tscircuit/hypergraph 0.0.18 → 0.0.19
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 +2 -0
- package/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -276,6 +276,7 @@ declare class HyperGraphSolver<RegionType extends Region = Region, RegionPortTyp
|
|
|
276
276
|
rippingEnabled?: boolean;
|
|
277
277
|
ripCost?: number;
|
|
278
278
|
};
|
|
279
|
+
getSolverName(): string;
|
|
279
280
|
graph: HyperGraph;
|
|
280
281
|
connections: Connection[];
|
|
281
282
|
candidateQueue: PriorityQueue<Candidate>;
|
|
@@ -379,6 +380,7 @@ declare const JUMPER_GRAPH_SOLVER_DEFAULTS: {
|
|
|
379
380
|
greedyMultiplier: number;
|
|
380
381
|
};
|
|
381
382
|
declare class JumperGraphSolver extends HyperGraphSolver<JRegion, JPort> {
|
|
383
|
+
getSolverName(): string;
|
|
382
384
|
UNIT_OF_COST: string;
|
|
383
385
|
portUsagePenalty: number;
|
|
384
386
|
portUsagePenaltySq: number;
|
package/dist/index.js
CHANGED
|
@@ -1829,6 +1829,9 @@ var HyperGraphSolver = class extends BaseSolver {
|
|
|
1829
1829
|
this.candidateQueue = new PriorityQueue();
|
|
1830
1830
|
this.beginNewConnection();
|
|
1831
1831
|
}
|
|
1832
|
+
getSolverName() {
|
|
1833
|
+
return "HyperGraphSolver";
|
|
1834
|
+
}
|
|
1832
1835
|
graph;
|
|
1833
1836
|
connections;
|
|
1834
1837
|
candidateQueue;
|
|
@@ -2486,6 +2489,9 @@ var JUMPER_GRAPH_SOLVER_DEFAULTS = {
|
|
|
2486
2489
|
greedyMultiplier: 0.5518001238069296
|
|
2487
2490
|
};
|
|
2488
2491
|
var JumperGraphSolver = class extends HyperGraphSolver {
|
|
2492
|
+
getSolverName() {
|
|
2493
|
+
return "JumperGraphSolver";
|
|
2494
|
+
}
|
|
2489
2495
|
UNIT_OF_COST = "hops";
|
|
2490
2496
|
portUsagePenalty = JUMPER_GRAPH_SOLVER_DEFAULTS.portUsagePenalty;
|
|
2491
2497
|
portUsagePenaltySq = JUMPER_GRAPH_SOLVER_DEFAULTS.portUsagePenaltySq;
|
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.
|
|
4
|
+
"version": "0.0.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "cosmos",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"typescript": "^5"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tscircuit/solver-utils": "^0.0.
|
|
32
|
+
"@tscircuit/solver-utils": "^0.0.14"
|
|
33
33
|
}
|
|
34
34
|
}
|