@reicek/neataptic-ts 0.1.21 → 0.1.22
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/.github/agents/boundary-mapper.agent.md +29 -0
- package/.github/agents/docs-scout.agent.md +29 -0
- package/.github/agents/plan-scout.agent.md +29 -0
- package/.github/agents/solid-split.agent.md +138 -0
- package/.github/copilot-instructions.md +103 -0
- package/package.json +6 -3
- package/plans/ES2023 migration +13 -8
- package/plans/Evolution_Training_Interoperability_Contracts.md +1 -1
- package/plans/Interactive_Examples_and_Learning_Path.md +10 -2
- package/plans/Memory_Optimization.md +3 -3
- package/plans/README.md +63 -0
- package/plans/Roadmap.md +15 -3
- package/plans/asciiMaze_SOLID_split.done.md +130 -0
- package/plans/flappy_bird_SOLID_split.done.md +67 -0
- package/scripts/assets/theme.css +221 -34
- package/scripts/copy-examples.mjs +9 -5
- package/scripts/export-onnx.mjs +3 -3
- package/scripts/generate-bench-tables.mjs +10 -10
- package/scripts/generate-bench-tables.ts +10 -10
- package/scripts/generate-docs.ts +1415 -449
- package/scripts/render-docs-html.ts +15 -8
- package/src/README.md +101 -223
- package/src/architecture/README.md +57 -185
- package/src/architecture/layer/README.md +38 -38
- package/src/architecture/network/README.md +33 -31
- package/src/architecture/network/activate/README.md +77 -77
- package/src/architecture/network/connect/README.md +15 -13
- package/src/architecture/network/deterministic/README.md +7 -7
- package/src/architecture/network/evolve/README.md +44 -44
- package/src/architecture/network/gating/README.md +20 -20
- package/src/architecture/network/genetic/README.md +51 -51
- package/src/architecture/network/mutate/README.md +97 -97
- package/src/architecture/network/onnx/README.md +264 -264
- package/src/architecture/network/prune/README.md +39 -39
- package/src/architecture/network/remove/README.md +26 -26
- package/src/architecture/network/serialize/README.md +56 -56
- package/src/architecture/network/slab/README.md +61 -61
- package/src/architecture/network/standalone/README.md +24 -24
- package/src/architecture/network/stats/README.md +9 -9
- package/src/architecture/network/topology/README.md +46 -46
- package/src/architecture/network/training/README.md +21 -21
- package/src/methods/README.md +9 -87
- package/src/multithreading/README.md +8 -77
- package/src/multithreading/workers/README.md +2 -2
- package/src/multithreading/workers/browser/README.md +0 -6
- package/src/multithreading/workers/node/README.md +0 -3
- package/src/neat/README.md +562 -568
- package/src/utils/README.md +18 -18
- package/test/examples/asciiMaze/README.md +59 -59
- package/test/examples/asciiMaze/asciiMaze.e2e.test.ts +14 -9
- package/test/examples/asciiMaze/browser-entry/README.md +196 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.abort.services.ts +95 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.constants.ts +23 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.curriculum.services.ts +115 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.globals.services.ts +106 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.host.services.ts +157 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.services.ts +14 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.ts +129 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.types.ts +120 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.utils.ts +98 -0
- package/test/examples/asciiMaze/browser-entry.ts +10 -576
- package/test/examples/asciiMaze/dashboardManager/README.md +276 -0
- package/test/examples/asciiMaze/dashboardManager/archive/README.md +16 -0
- package/test/examples/asciiMaze/dashboardManager/archive/dashboardManager.archive.services.ts +267 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.constants.ts +35 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.services.ts +103 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.ts +181 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.types.ts +267 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.utils.ts +254 -0
- package/test/examples/asciiMaze/dashboardManager/live/README.md +14 -0
- package/test/examples/asciiMaze/dashboardManager/live/dashboardManager.live.services.ts +264 -0
- package/test/examples/asciiMaze/dashboardManager/telemetry/README.md +47 -0
- package/test/examples/asciiMaze/dashboardManager/telemetry/dashboardManager.telemetry.services.ts +513 -0
- package/test/examples/asciiMaze/dashboardManager.ts +13 -2335
- package/test/examples/asciiMaze/evolutionEngine/README.md +1058 -0
- package/test/examples/asciiMaze/evolutionEngine/curriculumPhase.ts +90 -0
- package/test/examples/asciiMaze/evolutionEngine/engineState.constants.ts +36 -0
- package/test/examples/asciiMaze/evolutionEngine/engineState.ts +58 -513
- package/test/examples/asciiMaze/evolutionEngine/engineState.types.ts +212 -0
- package/test/examples/asciiMaze/evolutionEngine/engineState.utils.ts +301 -0
- package/test/examples/asciiMaze/evolutionEngine/evolutionEngine.types.ts +445 -0
- package/test/examples/asciiMaze/evolutionEngine/evolutionLoop.ts +81 -50
- package/test/examples/asciiMaze/evolutionEngine/optionsAndSetup.ts +2 -4
- package/test/examples/asciiMaze/evolutionEngine/populationDynamics.ts +17 -33
- package/test/examples/asciiMaze/evolutionEngine/populationPruning.ts +1 -1
- package/test/examples/asciiMaze/evolutionEngine/rngAndTiming.ts +1 -2
- package/test/examples/asciiMaze/evolutionEngine/sampling.ts +1 -1
- package/test/examples/asciiMaze/evolutionEngine/scratchPools.ts +2 -5
- package/test/examples/asciiMaze/evolutionEngine/setupHelpers.ts +30 -37
- package/test/examples/asciiMaze/evolutionEngine/telemetryMetrics.ts +16 -58
- package/test/examples/asciiMaze/evolutionEngine/trainingWarmStart.ts +2 -2
- package/test/examples/asciiMaze/evolutionEngine.ts +55 -55
- package/test/examples/asciiMaze/fitness.ts +2 -2
- package/test/examples/asciiMaze/fitness.types.ts +65 -0
- package/test/examples/asciiMaze/interfaces.ts +64 -1352
- package/test/examples/asciiMaze/mazeMovement/README.md +356 -0
- package/test/examples/asciiMaze/mazeMovement/finalization/README.md +49 -0
- package/test/examples/asciiMaze/mazeMovement/finalization/mazeMovement.finalization.ts +138 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.constants.ts +101 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.services.ts +230 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.ts +299 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.types.ts +185 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.utils.ts +153 -0
- package/test/examples/asciiMaze/mazeMovement/policy/README.md +91 -0
- package/test/examples/asciiMaze/mazeMovement/policy/mazeMovement.policy.ts +467 -0
- package/test/examples/asciiMaze/mazeMovement/runtime/README.md +95 -0
- package/test/examples/asciiMaze/mazeMovement/runtime/mazeMovement.runtime.ts +354 -0
- package/test/examples/asciiMaze/mazeMovement/shaping/README.md +124 -0
- package/test/examples/asciiMaze/mazeMovement/shaping/mazeMovement.shaping.ts +459 -0
- package/test/examples/asciiMaze/mazeMovement.ts +12 -2978
- package/test/examples/flappy_bird/Trace-20260309T191949.json +24124 -0
- package/test/examples/flappy_bird/browser-entry/README.md +1129 -0
- package/test/examples/flappy_bird/browser-entry/browser-entry.host.utils.ts +4 -324
- package/test/examples/flappy_bird/browser-entry/browser-entry.network-view.utils.ts +6 -399
- package/test/examples/flappy_bird/browser-entry/browser-entry.playback.utils.ts +1 -717
- package/test/examples/flappy_bird/browser-entry/browser-entry.spawn.utils.ts +11 -31
- package/test/examples/flappy_bird/browser-entry/browser-entry.visualization.utils.ts +15 -893
- package/test/examples/flappy_bird/browser-entry/host/README.md +307 -0
- package/test/examples/flappy_bird/browser-entry/host/host.resize.service.ts +1 -295
- package/test/examples/flappy_bird/browser-entry/host/host.ts +562 -6
- package/test/examples/flappy_bird/browser-entry/host/resize/README.md +274 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.constants.ts +31 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.services.ts +360 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.ts +117 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.types.ts +63 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.utils.ts +250 -0
- package/test/examples/flappy_bird/browser-entry/network-view/README.md +399 -0
- package/test/examples/flappy_bird/browser-entry/network-view/network-view.topology.utils.ts +255 -0
- package/test/examples/flappy_bird/browser-entry/network-view/network-view.ts +802 -7
- package/test/examples/flappy_bird/browser-entry/playback/README.md +684 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/README.md +277 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/README.md +770 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.cache.services.ts +178 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.constants.ts +107 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.utils.ts +518 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.math.utils.ts +117 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.pulse.utils.ts +233 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.services.ts +211 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.ts +48 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.types.ts +212 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.utils.ts +81 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.cache.services.ts +96 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.constants.ts +62 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.services.ts +244 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.ts +53 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.types.ts +68 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.utils.ts +100 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/README.md +310 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.service.ts +92 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.services.ts +272 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.types.ts +39 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.utils.ts +493 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.constants.ts +1 -1
- package/test/examples/flappy_bird/browser-entry/playback/playback.frame-render.service.ts +4 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.snapshot.utils.ts +44 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.service.ts +39 -122
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.services.ts +272 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.types.ts +62 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.utils.ts +11 -4
- package/test/examples/flappy_bird/browser-entry/playback/playback.ts +409 -8
- package/test/examples/flappy_bird/browser-entry/playback/playback.types.ts +4 -12
- package/test/examples/flappy_bird/browser-entry/runtime/README.md +235 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.evolution-launch.service.ts +45 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.lifecycle.service.ts +81 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.startup.service.ts +74 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.ts +31 -121
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.types.ts +36 -0
- package/test/examples/flappy_bird/browser-entry/visualization/README.md +557 -0
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.constants.ts +110 -0
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.draw.service.ts +957 -19
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.legend.utils.ts +138 -3
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.topology.utils.ts +3 -27
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.ts +1 -23
- package/test/examples/flappy_bird/browser-entry/worker-channel/README.md +156 -0
- package/test/examples/flappy_bird/constants/README.md +1179 -0
- package/test/examples/flappy_bird/constants/constants.network-view.ts +24 -0
- package/test/examples/flappy_bird/constants/constants.palette.ts +7 -0
- package/test/examples/flappy_bird/constants/constants.starfield.ts +78 -3
- package/test/examples/flappy_bird/environment/README.md +143 -0
- package/test/examples/flappy_bird/environment/environment.observation.utils.ts +1 -19
- package/test/examples/flappy_bird/environment/environment.step.service.ts +3 -66
- package/test/examples/flappy_bird/evaluation/README.md +130 -0
- package/test/examples/flappy_bird/evaluation/evaluation.fitness.utils.ts +1 -1
- package/test/examples/flappy_bird/evaluation/evaluation.rollout.service.ts +5 -375
- package/test/examples/flappy_bird/evaluation/rollout/README.md +291 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.constants.ts +30 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.service.ts +58 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.services.ts +310 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.types.ts +56 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.utils.ts +368 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/README.md +618 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.playback.service.ts +7 -7
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.frame.service.ts +364 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.types.ts +14 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.utils.ts +4 -201
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.ts +184 -345
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.warm-start.service.ts +291 -0
- package/test/examples/flappy_bird/flappy.simulation.shared.utils.ts +5 -0
- package/test/examples/flappy_bird/simulation-shared/README.md +417 -0
- package/test/examples/flappy_bird/simulation-shared/observation/README.md +183 -0
- package/test/examples/flappy_bird/simulation-shared/observation/observation.features.utils.ts +301 -0
- package/test/examples/flappy_bird/simulation-shared/observation/observation.ts +9 -0
- package/test/examples/flappy_bird/simulation-shared/observation/observation.vector.utils.ts +59 -0
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.observation.utils.ts +5 -403
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.spawn.utils.ts +20 -6
- package/test/examples/flappy_bird/{evaluation/evaluation.statistics.utils.ts → simulation-shared/simulation-shared.statistics.utils.ts} +23 -8
- package/test/examples/flappy_bird/trainer/README.md +563 -0
- package/test/examples/flappy_bird/trainer/evaluation/README.md +199 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.constants.ts +9 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.services.ts +73 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.ts +165 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.types.ts +25 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.utils.ts +161 -0
- package/test/examples/flappy_bird/trainer/trainer.evaluation.service.ts +13 -0
- package/test/examples/flappy_bird/trainer/trainer.report.service.services.ts +181 -0
- package/test/examples/flappy_bird/trainer/trainer.report.service.ts +126 -0
- package/test/examples/flappy_bird/trainer/trainer.selection.utils.ts +89 -0
- package/test/examples/flappy_bird/trainer/trainer.ts +11 -553
- package/test/examples/flappy_bird/browser-entry/browser-entry.utils.ts +0 -12
- package/test/examples/flappy_bird/environment/environment.ts +0 -7
- package/test/examples/flappy_bird/evaluation/evaluation.ts +0 -7
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.ts +0 -15
- package/test/examples/flappy_bird/trainer/trainer.statistics.utils.ts +0 -78
|
@@ -56,7 +56,7 @@ Internal State Fields (attached to Network via `any` casting):
|
|
|
56
56
|
|
|
57
57
|
### pruneToSparsity
|
|
58
58
|
|
|
59
|
-
`(targetSparsity: number, method: import("
|
|
59
|
+
`(targetSparsity: number, method: import("src/architecture/network/network.types").PruningMethod) => void`
|
|
60
60
|
|
|
61
61
|
Evolutionary (generation-based) pruning toward a target sparsity baseline.
|
|
62
62
|
Unlike maybePrune this operates immediately relative to the first invocation's connection count
|
|
@@ -72,7 +72,7 @@ Returns: Nothing.
|
|
|
72
72
|
|
|
73
73
|
### buildRegrowthCandidatePair
|
|
74
74
|
|
|
75
|
-
`(currentNetwork: import("
|
|
75
|
+
`(currentNetwork: import("src/architecture/network").default) => { sourceNode: import("src/architecture/node").default; targetNode: import("src/architecture/node").default; } | null`
|
|
76
76
|
|
|
77
77
|
Build one random regrowth candidate pair if valid.
|
|
78
78
|
|
|
@@ -83,7 +83,7 @@ Returns: Candidate node pair or null when invalid.
|
|
|
83
83
|
|
|
84
84
|
### buildRegrowthPlan
|
|
85
85
|
|
|
86
|
-
`(context: import("
|
|
86
|
+
`(context: import("src/architecture/network/network.types").RegrowthPlanContext) => import("src/architecture/network/network.types").RegrowthPlan | null`
|
|
87
87
|
|
|
88
88
|
Convert regrowth intent into a bounded execution plan.
|
|
89
89
|
|
|
@@ -94,7 +94,7 @@ Returns: A plan when regrowth is meaningful; otherwise null.
|
|
|
94
94
|
|
|
95
95
|
### connectionAlreadyExists
|
|
96
96
|
|
|
97
|
-
`(currentNetwork: import("
|
|
97
|
+
`(currentNetwork: import("src/architecture/network").default, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => boolean`
|
|
98
98
|
|
|
99
99
|
Check whether a connection already exists.
|
|
100
100
|
|
|
@@ -107,7 +107,7 @@ Returns: True when the edge already exists.
|
|
|
107
107
|
|
|
108
108
|
### executeRegrowthAttempts
|
|
109
109
|
|
|
110
|
-
`(context: import("
|
|
110
|
+
`(context: import("src/architecture/network/network.types").RegrowthExecutionContext) => void`
|
|
111
111
|
|
|
112
112
|
Execute bounded stochastic regrowth attempts.
|
|
113
113
|
|
|
@@ -118,7 +118,7 @@ Returns: Nothing.
|
|
|
118
118
|
|
|
119
119
|
### isInvalidRegrowthPair
|
|
120
120
|
|
|
121
|
-
`(currentNetwork: import("
|
|
121
|
+
`(currentNetwork: import("src/architecture/network").default, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => boolean`
|
|
122
122
|
|
|
123
123
|
Validate whether a candidate regrowth pair is acceptable.
|
|
124
124
|
|
|
@@ -131,7 +131,7 @@ Returns: True when the pair must be rejected.
|
|
|
131
131
|
|
|
132
132
|
### maybeRunRegrowth
|
|
133
133
|
|
|
134
|
-
`(currentNetwork: import("
|
|
134
|
+
`(currentNetwork: import("src/architecture/network").default, context: import("src/architecture/network/network.types").RegrowthPlanContext) => void`
|
|
135
135
|
|
|
136
136
|
Build and execute a regrowth plan when enabled.
|
|
137
137
|
|
|
@@ -143,7 +143,7 @@ Returns: Nothing.
|
|
|
143
143
|
|
|
144
144
|
### pickRandomNode
|
|
145
145
|
|
|
146
|
-
`(currentNetwork: import("
|
|
146
|
+
`(currentNetwork: import("src/architecture/network").default) => import("src/architecture/node").default | undefined`
|
|
147
147
|
|
|
148
148
|
Pick a random node using the network RNG.
|
|
149
149
|
|
|
@@ -154,7 +154,7 @@ Returns: Random node or undefined when the node list is empty.
|
|
|
154
154
|
|
|
155
155
|
### shouldContinueRegrowth
|
|
156
156
|
|
|
157
|
-
`(currentNetwork: import("
|
|
157
|
+
`(currentNetwork: import("src/architecture/network").default, desiredRemainingConnections: number, attemptedRegrowthCount: number, maxAttempts: number) => boolean`
|
|
158
158
|
|
|
159
159
|
Decide whether another regrowth attempt is allowed.
|
|
160
160
|
|
|
@@ -168,7 +168,7 @@ Returns: True when another attempt should run.
|
|
|
168
168
|
|
|
169
169
|
### tryRegrowConnection
|
|
170
170
|
|
|
171
|
-
`(currentNetwork: import("
|
|
171
|
+
`(currentNetwork: import("src/architecture/network").default) => void`
|
|
172
172
|
|
|
173
173
|
Attempt one random valid connection addition.
|
|
174
174
|
|
|
@@ -179,7 +179,7 @@ Returns: Nothing.
|
|
|
179
179
|
|
|
180
180
|
### violatesAcyclicConstraint
|
|
181
181
|
|
|
182
|
-
`(currentNetwork: import("
|
|
182
|
+
`(currentNetwork: import("src/architecture/network").default, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => boolean`
|
|
183
183
|
|
|
184
184
|
Check whether a pair violates forward-only acyclic ordering.
|
|
185
185
|
|
|
@@ -194,7 +194,7 @@ Returns: True when acyclic ordering would be violated.
|
|
|
194
194
|
|
|
195
195
|
### alreadyPrunedThisIteration
|
|
196
196
|
|
|
197
|
-
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("
|
|
197
|
+
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("src/architecture/network/network.types").PruningMethod; regrowFraction: number; lastPruneIter?: number | undefined; }) => boolean`
|
|
198
198
|
|
|
199
199
|
Check whether this iteration was already pruned.
|
|
200
200
|
|
|
@@ -206,7 +206,7 @@ Returns: True when pruning already happened for this iteration.
|
|
|
206
206
|
|
|
207
207
|
### buildPruneSelection
|
|
208
208
|
|
|
209
|
-
`(context: import("
|
|
209
|
+
`(context: import("src/architecture/network/network.types").PruneSelectionContext) => import("src/architecture/network/network.types").PruneSelectionResult`
|
|
210
210
|
|
|
211
211
|
Build a connection removal selection from current ranking context.
|
|
212
212
|
|
|
@@ -217,7 +217,7 @@ Returns: Connections selected for pruning.
|
|
|
217
217
|
|
|
218
218
|
### buildScheduledTarget
|
|
219
219
|
|
|
220
|
-
`(context: import("
|
|
220
|
+
`(context: import("src/architecture/network/network.types").ScheduledTargetContext, currentConnectionCount: number) => import("src/architecture/network/network.types").ScheduledTargetResult`
|
|
221
221
|
|
|
222
222
|
Build current scheduled pruning targets from schedule context.
|
|
223
223
|
|
|
@@ -242,7 +242,7 @@ Returns: Clamped normalized progress.
|
|
|
242
242
|
|
|
243
243
|
### calculateSnipSaliency
|
|
244
244
|
|
|
245
|
-
`(connection: import("
|
|
245
|
+
`(connection: import("src/architecture/connection").default) => number`
|
|
246
246
|
|
|
247
247
|
Compute saliency for SNIP-like ranking.
|
|
248
248
|
|
|
@@ -266,7 +266,7 @@ Returns: Clamped value.
|
|
|
266
266
|
|
|
267
267
|
### disconnectConnections
|
|
268
268
|
|
|
269
|
-
`(currentNetwork: import("
|
|
269
|
+
`(currentNetwork: import("src/architecture/network").default, connectionsToDisconnect: import("src/architecture/connection").default[]) => void`
|
|
270
270
|
|
|
271
271
|
Disconnect all selected connections from the network.
|
|
272
272
|
|
|
@@ -278,7 +278,7 @@ Returns: Nothing.
|
|
|
278
278
|
|
|
279
279
|
### getInitialConnectionBaseline
|
|
280
280
|
|
|
281
|
-
`(currentNetwork: import("
|
|
281
|
+
`(currentNetwork: import("src/architecture/network").default) => number | undefined`
|
|
282
282
|
|
|
283
283
|
Read the scheduled-pruning baseline connection count.
|
|
284
284
|
|
|
@@ -289,7 +289,7 @@ Returns: Baseline count when captured; otherwise undefined.
|
|
|
289
289
|
|
|
290
290
|
### getPruningConfig
|
|
291
291
|
|
|
292
|
-
`(currentNetwork: import("
|
|
292
|
+
`(currentNetwork: import("src/architecture/network").default) => { start: number; end: number; frequency: number; targetSparsity: number; method: import("src/architecture/network/network.types").PruningMethod; regrowFraction: number; lastPruneIter?: number | undefined; } | undefined`
|
|
293
293
|
|
|
294
294
|
Read the active pruning schedule from network internals.
|
|
295
295
|
|
|
@@ -300,7 +300,7 @@ Returns: Pruning configuration when enabled; otherwise undefined.
|
|
|
300
300
|
|
|
301
301
|
### isOutsidePruningWindow
|
|
302
302
|
|
|
303
|
-
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("
|
|
303
|
+
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("src/architecture/network/network.types").PruningMethod; regrowFraction: number; lastPruneIter?: number | undefined; }) => boolean`
|
|
304
304
|
|
|
305
305
|
Check whether an iteration is outside the pruning window.
|
|
306
306
|
|
|
@@ -312,7 +312,7 @@ Returns: True when the iteration is out of range.
|
|
|
312
312
|
|
|
313
313
|
### isScheduledPruningIteration
|
|
314
314
|
|
|
315
|
-
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("
|
|
315
|
+
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("src/architecture/network/network.types").PruningMethod; regrowFraction: number; lastPruneIter?: number | undefined; }) => boolean`
|
|
316
316
|
|
|
317
317
|
Check frequency cadence for scheduled pruning.
|
|
318
318
|
|
|
@@ -324,7 +324,7 @@ Returns: True when this iteration matches the schedule cadence.
|
|
|
324
324
|
|
|
325
325
|
### markPruneIteration
|
|
326
326
|
|
|
327
|
-
`(currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("
|
|
327
|
+
`(currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("src/architecture/network/network.types").PruningMethod; regrowFraction: number; lastPruneIter?: number | undefined; }, currentIteration: number) => void`
|
|
328
328
|
|
|
329
329
|
Persist the iteration that last performed pruning.
|
|
330
330
|
|
|
@@ -336,7 +336,7 @@ Returns: Nothing.
|
|
|
336
336
|
|
|
337
337
|
### markTopologyDirty
|
|
338
338
|
|
|
339
|
-
`(currentNetwork: import("
|
|
339
|
+
`(currentNetwork: import("src/architecture/network").default) => void`
|
|
340
340
|
|
|
341
341
|
Mark topology cache as dirty after structural updates.
|
|
342
342
|
|
|
@@ -347,7 +347,7 @@ Returns: Nothing.
|
|
|
347
347
|
|
|
348
348
|
### rankConnectionsByMagnitude
|
|
349
349
|
|
|
350
|
-
`(connections: import("
|
|
350
|
+
`(connections: import("src/architecture/connection").default[]) => import("src/architecture/connection").default[]`
|
|
351
351
|
|
|
352
352
|
Rank connections by absolute weight magnitude.
|
|
353
353
|
|
|
@@ -358,7 +358,7 @@ Returns: Connections sorted by ascending absolute weight.
|
|
|
358
358
|
|
|
359
359
|
### rankConnectionsByRemovalPriority
|
|
360
360
|
|
|
361
|
-
`(connections: import("
|
|
361
|
+
`(connections: import("src/architecture/connection").default[], method: import("src/architecture/network/network.types").PruningMethod) => import("src/architecture/connection").default[]`
|
|
362
362
|
|
|
363
363
|
Route ranking to the configured pruning heuristic.
|
|
364
364
|
|
|
@@ -370,7 +370,7 @@ Returns: Connections sorted by ascending removal priority.
|
|
|
370
370
|
|
|
371
371
|
### rankConnectionsBySnipSaliency
|
|
372
372
|
|
|
373
|
-
`(connections: import("
|
|
373
|
+
`(connections: import("src/architecture/connection").default[]) => import("src/architecture/connection").default[]`
|
|
374
374
|
|
|
375
375
|
Rank connections by SNIP-like saliency approximation.
|
|
376
376
|
|
|
@@ -381,7 +381,7 @@ Returns: Connections sorted by ascending saliency.
|
|
|
381
381
|
|
|
382
382
|
### resolveGradientMagnitude
|
|
383
383
|
|
|
384
|
-
`(connection: import("
|
|
384
|
+
`(connection: import("src/architecture/connection").default) => number`
|
|
385
385
|
|
|
386
386
|
Resolve a stable gradient-magnitude proxy from connection delta statistics.
|
|
387
387
|
|
|
@@ -392,7 +392,7 @@ Returns: Absolute gradient magnitude proxy.
|
|
|
392
392
|
|
|
393
393
|
### resolvePruningMethod
|
|
394
394
|
|
|
395
|
-
`(method: import("
|
|
395
|
+
`(method: import("src/architecture/network/network.types").PruningMethod | undefined) => import("src/architecture/network/network.types").PruningMethod`
|
|
396
396
|
|
|
397
397
|
Normalize optional pruning method to a concrete value.
|
|
398
398
|
|
|
@@ -403,7 +403,7 @@ Returns: Concrete pruning method.
|
|
|
403
403
|
|
|
404
404
|
### shouldRunScheduledPrune
|
|
405
405
|
|
|
406
|
-
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("
|
|
406
|
+
`(currentIteration: number, currentPruningConfig: { start: number; end: number; frequency: number; targetSparsity: number; method: import("src/architecture/network/network.types").PruningMethod; regrowFraction: number; lastPruneIter?: number | undefined; }) => boolean`
|
|
407
407
|
|
|
408
408
|
Determine whether scheduled pruning should run at this iteration.
|
|
409
409
|
|
|
@@ -429,7 +429,7 @@ Returns: Sparsity ratio in [0,1] for valid baselines.
|
|
|
429
429
|
|
|
430
430
|
### readInitialSparsityBaseline
|
|
431
431
|
|
|
432
|
-
`(currentNetwork: import("
|
|
432
|
+
`(currentNetwork: import("src/architecture/network").default) => number | undefined`
|
|
433
433
|
|
|
434
434
|
Read baseline used for sparsity reporting.
|
|
435
435
|
|
|
@@ -442,7 +442,7 @@ Returns: Baseline connection count when available.
|
|
|
442
442
|
|
|
443
443
|
### buildEvolutionaryPruneSelection
|
|
444
444
|
|
|
445
|
-
`(context: import("
|
|
445
|
+
`(context: import("src/architecture/network/network.types").PruneSelectionContext) => import("src/architecture/network/network.types").PruneSelectionResult`
|
|
446
446
|
|
|
447
447
|
Build evolutionary pruning connection selection.
|
|
448
448
|
|
|
@@ -453,7 +453,7 @@ Returns: Connections selected for removal.
|
|
|
453
453
|
|
|
454
454
|
### buildEvolutionaryTarget
|
|
455
455
|
|
|
456
|
-
`(context: import("
|
|
456
|
+
`(context: import("src/architecture/network/network.types").EvolutionaryTargetContext, currentConnectionCount: number) => import("src/architecture/network/network.types").EvolutionaryTargetResult`
|
|
457
457
|
|
|
458
458
|
Compute evolutionary pruning target counts.
|
|
459
459
|
|
|
@@ -465,7 +465,7 @@ Returns: Desired remaining and excess connection counts.
|
|
|
465
465
|
|
|
466
466
|
### calculateEvolutionarySnipSaliency
|
|
467
467
|
|
|
468
|
-
`(connection: import("
|
|
468
|
+
`(connection: import("src/architecture/connection").default) => number`
|
|
469
469
|
|
|
470
470
|
Compute evolutionary SNIP-like saliency for one connection.
|
|
471
471
|
|
|
@@ -476,7 +476,7 @@ Returns: Saliency score.
|
|
|
476
476
|
|
|
477
477
|
### disconnectEvolutionaryConnections
|
|
478
478
|
|
|
479
|
-
`(currentNetwork: import("
|
|
479
|
+
`(currentNetwork: import("src/architecture/network").default, connectionsToDisconnect: import("src/architecture/connection").default[]) => void`
|
|
480
480
|
|
|
481
481
|
Disconnect selected evolutionary pruning edges.
|
|
482
482
|
|
|
@@ -488,7 +488,7 @@ Returns: Nothing.
|
|
|
488
488
|
|
|
489
489
|
### getOrCaptureEvolutionaryBaseline
|
|
490
490
|
|
|
491
|
-
`(currentNetwork: import("
|
|
491
|
+
`(currentNetwork: import("src/architecture/network").default) => number`
|
|
492
492
|
|
|
493
493
|
Capture evolutionary baseline once and reuse it for subsequent pruning calls.
|
|
494
494
|
|
|
@@ -499,7 +499,7 @@ Returns: Evolutionary baseline connection count.
|
|
|
499
499
|
|
|
500
500
|
### markEvolutionaryTopologyDirty
|
|
501
501
|
|
|
502
|
-
`(currentNetwork: import("
|
|
502
|
+
`(currentNetwork: import("src/architecture/network").default) => void`
|
|
503
503
|
|
|
504
504
|
Mark topology cache as dirty after evolutionary pruning.
|
|
505
505
|
|
|
@@ -521,7 +521,7 @@ Returns: Normalized target sparsity.
|
|
|
521
521
|
|
|
522
522
|
### rankEvolutionaryConnections
|
|
523
523
|
|
|
524
|
-
`(connections: import("
|
|
524
|
+
`(connections: import("src/architecture/connection").default[], pruningMethod: import("src/architecture/network/network.types").PruningMethod) => import("src/architecture/connection").default[]`
|
|
525
525
|
|
|
526
526
|
Route evolutionary ranking to selected heuristic.
|
|
527
527
|
|
|
@@ -533,7 +533,7 @@ Returns: Connections sorted by ascending removal priority.
|
|
|
533
533
|
|
|
534
534
|
### rankEvolutionaryConnectionsByMagnitude
|
|
535
535
|
|
|
536
|
-
`(connections: import("
|
|
536
|
+
`(connections: import("src/architecture/connection").default[]) => import("src/architecture/connection").default[]`
|
|
537
537
|
|
|
538
538
|
Rank connections by magnitude for evolutionary pruning.
|
|
539
539
|
|
|
@@ -544,7 +544,7 @@ Returns: Connections sorted by ascending absolute weight.
|
|
|
544
544
|
|
|
545
545
|
### rankEvolutionaryConnectionsBySnip
|
|
546
546
|
|
|
547
|
-
`(connections: import("
|
|
547
|
+
`(connections: import("src/architecture/connection").default[]) => import("src/architecture/connection").default[]`
|
|
548
548
|
|
|
549
549
|
Rank connections by SNIP-like saliency for evolutionary pruning.
|
|
550
550
|
|
|
@@ -555,7 +555,7 @@ Returns: Connections sorted by ascending saliency.
|
|
|
555
555
|
|
|
556
556
|
### resolveEvolutionaryGradientMagnitude
|
|
557
557
|
|
|
558
|
-
`(connection: import("
|
|
558
|
+
`(connection: import("src/architecture/connection").default) => number`
|
|
559
559
|
|
|
560
560
|
Resolve gradient proxy for evolutionary SNIP ranking.
|
|
561
561
|
|
|
@@ -34,7 +34,7 @@ Endpoint pair for reconnecting bridged paths.
|
|
|
34
34
|
|
|
35
35
|
### removeNode
|
|
36
36
|
|
|
37
|
-
`(node: import("
|
|
37
|
+
`(node: import("src/architecture/node").default) => void`
|
|
38
38
|
|
|
39
39
|
Node removal utilities.
|
|
40
40
|
|
|
@@ -65,7 +65,7 @@ Notes / Limitations:
|
|
|
65
65
|
|
|
66
66
|
### clearConnectionGater
|
|
67
67
|
|
|
68
|
-
`(candidateConnection: import("
|
|
68
|
+
`(candidateConnection: import("src/architecture/connection").default) => void`
|
|
69
69
|
|
|
70
70
|
Clears gater reference so legacy checks treat connection as ungated.
|
|
71
71
|
|
|
@@ -76,7 +76,7 @@ Returns: Nothing.
|
|
|
76
76
|
|
|
77
77
|
### detachGatesOwnedByNode
|
|
78
78
|
|
|
79
|
-
`(removalContext: import("
|
|
79
|
+
`(removalContext: import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext) => void`
|
|
80
80
|
|
|
81
81
|
Removes gate records gated by target node and nulls their gater field.
|
|
82
82
|
|
|
@@ -87,7 +87,7 @@ Returns: Nothing.
|
|
|
87
87
|
|
|
88
88
|
### isGatedByRemovedNode
|
|
89
89
|
|
|
90
|
-
`(candidateConnection: import("
|
|
90
|
+
`(candidateConnection: import("src/architecture/connection").default, removedNode: import("src/architecture/node").default) => boolean`
|
|
91
91
|
|
|
92
92
|
Checks whether a gate candidate is currently gated by removed node.
|
|
93
93
|
|
|
@@ -99,7 +99,7 @@ Returns: True when removed node is gater.
|
|
|
99
99
|
|
|
100
100
|
### keepGateConnectionAfterNodeRemoval
|
|
101
101
|
|
|
102
|
-
`(candidateConnection: import("
|
|
102
|
+
`(candidateConnection: import("src/architecture/connection").default, removedNode: import("src/architecture/node").default) => boolean`
|
|
103
103
|
|
|
104
104
|
Filters one gate connection while clearing removed-node gater ownership.
|
|
105
105
|
|
|
@@ -113,7 +113,7 @@ Returns: True when gate should remain in list.
|
|
|
113
113
|
|
|
114
114
|
### markNetworkRemovalDirtyFlags
|
|
115
115
|
|
|
116
|
-
`(internalNetwork: import("
|
|
116
|
+
`(internalNetwork: import("src/architecture/network/remove/network.remove.utils.types").NetworkRemoveProps) => void`
|
|
117
117
|
|
|
118
118
|
Marks all cached removal-sensitive structures as dirty.
|
|
119
119
|
|
|
@@ -124,7 +124,7 @@ Returns: Nothing.
|
|
|
124
124
|
|
|
125
125
|
### releaseRemovedNodeWhenPoolingEnabled
|
|
126
126
|
|
|
127
|
-
`(removedNode: import("
|
|
127
|
+
`(removedNode: import("src/architecture/node").default | undefined) => void`
|
|
128
128
|
|
|
129
129
|
Releases removed node to object pool when pooling is enabled.
|
|
130
130
|
|
|
@@ -135,7 +135,7 @@ Returns: Nothing.
|
|
|
135
135
|
|
|
136
136
|
### removeNodeFromNetworkStorage
|
|
137
137
|
|
|
138
|
-
`(removalContext: import("
|
|
138
|
+
`(removalContext: import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext) => void`
|
|
139
139
|
|
|
140
140
|
Removes node from network storage and conditionally releases it to pool.
|
|
141
141
|
|
|
@@ -146,7 +146,7 @@ Returns: Nothing.
|
|
|
146
146
|
|
|
147
147
|
### spliceNodeFromNetwork
|
|
148
148
|
|
|
149
|
-
`(removalContext: import("
|
|
149
|
+
`(removalContext: import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext) => import("src/architecture/node").default | undefined`
|
|
150
150
|
|
|
151
151
|
Splices node out of network list using validated index.
|
|
152
152
|
|
|
@@ -159,7 +159,7 @@ Returns: Removed node or undefined.
|
|
|
159
159
|
|
|
160
160
|
### cloneInboundConnections
|
|
161
161
|
|
|
162
|
-
`(targetNode: import("
|
|
162
|
+
`(targetNode: import("src/architecture/node").default) => import("src/architecture/connection").default[]`
|
|
163
163
|
|
|
164
164
|
Clones inbound connections for safe traversal after mutation.
|
|
165
165
|
|
|
@@ -170,7 +170,7 @@ Returns: Inbound connection snapshot.
|
|
|
170
170
|
|
|
171
171
|
### cloneOutboundConnections
|
|
172
172
|
|
|
173
|
-
`(targetNode: import("
|
|
173
|
+
`(targetNode: import("src/architecture/node").default) => import("src/architecture/connection").default[]`
|
|
174
174
|
|
|
175
175
|
Clones outbound connections for safe traversal after mutation.
|
|
176
176
|
|
|
@@ -181,7 +181,7 @@ Returns: Outbound connection snapshot.
|
|
|
181
181
|
|
|
182
182
|
### countSelfConnections
|
|
183
183
|
|
|
184
|
-
`(targetNode: import("
|
|
184
|
+
`(targetNode: import("src/architecture/node").default) => number`
|
|
185
185
|
|
|
186
186
|
Counts self-loop connections currently attached to node.
|
|
187
187
|
|
|
@@ -192,7 +192,7 @@ Returns: Self-loop count.
|
|
|
192
192
|
|
|
193
193
|
### createNodeConnectionSnapshot
|
|
194
194
|
|
|
195
|
-
`(removalContext: import("
|
|
195
|
+
`(removalContext: import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext) => import("src/architecture/network/remove/network.remove.utils.types").NodeConnectionSnapshotContext`
|
|
196
196
|
|
|
197
197
|
Creates immutable snapshots of node adjacency lists before mutation.
|
|
198
198
|
|
|
@@ -203,7 +203,7 @@ Returns: Snapshot context.
|
|
|
203
203
|
|
|
204
204
|
### disconnectAllNodeConnections
|
|
205
205
|
|
|
206
|
-
`(removalContext: import("
|
|
206
|
+
`(removalContext: import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext, snapshotContext: import("src/architecture/network/remove/network.remove.utils.types").NodeConnectionSnapshotContext) => void`
|
|
207
207
|
|
|
208
208
|
Disconnects all inbound, outbound, and self-loop edges for removed node.
|
|
209
209
|
|
|
@@ -215,7 +215,7 @@ Returns: Nothing.
|
|
|
215
215
|
|
|
216
216
|
### disconnectConnectionGroup
|
|
217
217
|
|
|
218
|
-
`(network: import("
|
|
218
|
+
`(network: import("src/architecture/network").default, connectionsToDisconnect: import("src/architecture/connection").default[]) => void`
|
|
219
219
|
|
|
220
220
|
Disconnects each connection in a single connection list.
|
|
221
221
|
|
|
@@ -227,7 +227,7 @@ Returns: Nothing.
|
|
|
227
227
|
|
|
228
228
|
### disconnectSelfLoops
|
|
229
229
|
|
|
230
|
-
`(network: import("
|
|
230
|
+
`(network: import("src/architecture/network").default, targetNode: import("src/architecture/node").default, selfConnectionCount: number) => void`
|
|
231
231
|
|
|
232
232
|
Disconnects node self-loop connections using deterministic count traversal.
|
|
233
233
|
|
|
@@ -242,7 +242,7 @@ Returns: Nothing.
|
|
|
242
242
|
|
|
243
243
|
### collectReconnectEndpointPairs
|
|
244
244
|
|
|
245
|
-
`(snapshotContext: import("
|
|
245
|
+
`(snapshotContext: import("src/architecture/network/remove/network.remove.utils.types").NodeConnectionSnapshotContext) => import("src/architecture/network/remove/network.remove.utils.types").ReconnectEndpointPairContext[]`
|
|
246
246
|
|
|
247
247
|
Collects all valid source/target reconnect endpoint pairs.
|
|
248
248
|
|
|
@@ -253,7 +253,7 @@ Returns: Valid reconnect endpoint pairs.
|
|
|
253
253
|
|
|
254
254
|
### connectPairWhenMissing
|
|
255
255
|
|
|
256
|
-
`(network: import("
|
|
256
|
+
`(network: import("src/architecture/network").default, reconnectPair: import("src/architecture/network/remove/network.remove.utils.types").ReconnectEndpointPairContext) => void`
|
|
257
257
|
|
|
258
258
|
Connects one endpoint pair only when direct edge does not already exist.
|
|
259
259
|
|
|
@@ -265,7 +265,7 @@ Returns: Nothing.
|
|
|
265
265
|
|
|
266
266
|
### createReconnectEndpointPair
|
|
267
267
|
|
|
268
|
-
`(inboundConnection: import("
|
|
268
|
+
`(inboundConnection: import("src/architecture/connection").default, outboundConnection: import("src/architecture/connection").default) => import("src/architecture/network/remove/network.remove.utils.types").ReconnectEndpointPairContext | undefined`
|
|
269
269
|
|
|
270
270
|
Creates one reconnect endpoint pair when endpoints are valid.
|
|
271
271
|
|
|
@@ -277,7 +277,7 @@ Returns: Reconnect pair or undefined.
|
|
|
277
277
|
|
|
278
278
|
### doesDirectConnectionExist
|
|
279
279
|
|
|
280
|
-
`(network: import("
|
|
280
|
+
`(network: import("src/architecture/network").default, reconnectPair: import("src/architecture/network/remove/network.remove.utils.types").ReconnectEndpointPairContext) => boolean`
|
|
281
281
|
|
|
282
282
|
Checks whether a direct connection already exists for reconnect pair.
|
|
283
283
|
|
|
@@ -289,7 +289,7 @@ Returns: True when direct edge already exists.
|
|
|
289
289
|
|
|
290
290
|
### isReconnectPairValid
|
|
291
291
|
|
|
292
|
-
`(inboundConnection: import("
|
|
292
|
+
`(inboundConnection: import("src/architecture/connection").default, outboundConnection: import("src/architecture/connection").default) => boolean`
|
|
293
293
|
|
|
294
294
|
Validates reconnect pair endpoints.
|
|
295
295
|
|
|
@@ -301,7 +301,7 @@ Returns: True when reconnect pair should be attempted.
|
|
|
301
301
|
|
|
302
302
|
### reconnectBridgedPaths
|
|
303
303
|
|
|
304
|
-
`(removalContext: import("
|
|
304
|
+
`(removalContext: import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext, snapshotContext: import("src/architecture/network/remove/network.remove.utils.types").NodeConnectionSnapshotContext) => void`
|
|
305
305
|
|
|
306
306
|
Reconnects paths from former inbound sources to former outbound targets.
|
|
307
307
|
|
|
@@ -315,7 +315,7 @@ Returns: Nothing.
|
|
|
315
315
|
|
|
316
316
|
### createValidatedNodeRemovalContext
|
|
317
317
|
|
|
318
|
-
`(network: import("
|
|
318
|
+
`(network: import("src/architecture/network").default, targetNode: import("src/architecture/node").default) => import("src/architecture/network/remove/network.remove.utils.types").NodeRemovalContext`
|
|
319
319
|
|
|
320
320
|
Creates validated immutable context for a node-removal operation.
|
|
321
321
|
|
|
@@ -327,7 +327,7 @@ Returns: Validated removal context.
|
|
|
327
327
|
|
|
328
328
|
### ensureNodeIsNotStructuralAnchor
|
|
329
329
|
|
|
330
|
-
`(targetNode: import("
|
|
330
|
+
`(targetNode: import("src/architecture/node").default) => void`
|
|
331
331
|
|
|
332
332
|
Ensures removal target is not an input/output anchor node.
|
|
333
333
|
|
|
@@ -338,7 +338,7 @@ Returns: Nothing.
|
|
|
338
338
|
|
|
339
339
|
### isStructuralAnchorNode
|
|
340
340
|
|
|
341
|
-
`(targetNode: import("
|
|
341
|
+
`(targetNode: import("src/architecture/node").default) => boolean`
|
|
342
342
|
|
|
343
343
|
Checks whether node is an input/output structural anchor.
|
|
344
344
|
|
|
@@ -349,7 +349,7 @@ Returns: True when node is an anchor.
|
|
|
349
349
|
|
|
350
350
|
### resolveNodeIndexOrThrow
|
|
351
351
|
|
|
352
|
-
`(network: import("
|
|
352
|
+
`(network: import("src/architecture/network").default, targetNode: import("src/architecture/node").default) => number`
|
|
353
353
|
|
|
354
354
|
Resolves node index and throws when missing.
|
|
355
355
|
|