@reicek/neataptic-ts 0.1.24 → 0.1.26
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/copilot-instructions.md +11 -0
- package/.github/skills/trace-analyzer-extension/SKILL.md +3 -3
- package/.github/skills/trace-analyzer-extension/assets/extension-checklist.md +1 -1
- package/.github/skills/trace-analyzer-extension/references/analyzer-extension-workflow.md +1 -1
- package/.github/skills/trace-audit-reporting/SKILL.md +3 -3
- package/.github/skills/trace-audit-reporting/references/trace-analysis-workflow.md +1 -1
- package/.github/workflows/ci.yml +3 -3
- package/.github/workflows/deploy-pages.yml +6 -6
- package/.github/workflows/manual_release_pipeline.yml +3 -3
- package/.github/workflows/publish.yml +18 -19
- package/.github/workflows/release_dispatch.yml +3 -3
- package/package.json +26 -20
- package/plans/Flappy_Bird_Folder_Documentation_Pass.md +4 -4
- package/plans/README.md +24 -0
- package/plans/Roadmap.md +62 -40
- package/plans/analyze-trace-solid-split.plans.md +66 -0
- package/plans/architecture-solid-split.plans.md +9 -15
- package/plans/asciiMaze-typescript-repair.plans.md +1 -1
- package/plans/generate-docs-solid-split.plans.md +87 -0
- package/plans/methods-docs.plans.md +25 -1
- package/plans/methods-solid-split.plans.md +14 -14
- package/plans/neat-docs.plans.md +9 -1
- package/plans/neat-test-surface-repair.plans.md +1 -1
- package/plans/render-docs-html-solid-split.plans.md +68 -0
- package/plans/src-no-explicit-any-cleanup.plans.md +1 -1
- package/plans/utils-docs.plans.md +6 -1
- package/scripts/analyze-trace/analyze-trace.analysis.ts +479 -0
- package/scripts/analyze-trace/analyze-trace.constants.ts +35 -0
- package/scripts/analyze-trace/analyze-trace.io.ts +69 -0
- package/scripts/analyze-trace/analyze-trace.report.ts +100 -0
- package/scripts/analyze-trace/analyze-trace.shared.ts +116 -0
- package/scripts/analyze-trace/analyze-trace.ts +45 -0
- package/scripts/analyze-trace/analyze-trace.types.ts +72 -0
- package/scripts/assets/theme.css +80 -23
- package/scripts/copy-examples.ts +239 -0
- package/scripts/export-onnx.ts +223 -0
- package/scripts/generate-bench-tables.ts +378 -37
- package/scripts/generate-docs/generate-docs.constants.ts +107 -0
- package/scripts/generate-docs/generate-docs.order.ts +355 -0
- package/scripts/generate-docs/generate-docs.state.ts +31 -0
- package/scripts/generate-docs/generate-docs.targets.ts +165 -0
- package/scripts/generate-docs/generate-docs.ts +63 -0
- package/scripts/generate-docs/generate-docs.types.ts +112 -0
- package/scripts/generate-docs/output/generate-docs.output.folder-index.utils.ts +167 -0
- package/scripts/generate-docs/output/generate-docs.output.ordering.utils.ts +353 -0
- package/scripts/generate-docs/output/generate-docs.output.readme.utils.ts +420 -0
- package/scripts/generate-docs/output/generate-docs.output.ts +123 -0
- package/scripts/generate-docs/output/generate-docs.output.warnings.utils.ts +219 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.collection.utils.ts +365 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.jsdoc.utils.ts +373 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.normalize.utils.ts +155 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.render.utils.ts +149 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.signature.utils.ts +289 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.ts +11 -0
- package/scripts/mermaid-cli.mjs +102 -22
- package/scripts/mermaid-cli.ts +736 -0
- package/scripts/render-docs-html/render-docs-html.assets.ts +54 -0
- package/scripts/render-docs-html/render-docs-html.mermaid.ts +245 -0
- package/scripts/{render-docs-html.sidebar.ts → render-docs-html/render-docs-html.navigation.ts} +141 -144
- package/scripts/render-docs-html/render-docs-html.pages.ts +333 -0
- package/scripts/render-docs-html/render-docs-html.shared.ts +333 -0
- package/scripts/render-docs-html/render-docs-html.types.ts +42 -0
- package/scripts/render-docs-html.ts +23 -587
- package/scripts/run-docs.ts +238 -0
- package/scripts/write-dist-docs-pkg.ts +40 -0
- package/src/README.md +75 -75
- package/src/architecture/connection/README.md +5 -5
- package/src/architecture/layer/README.md +508 -508
- package/src/architecture/network/README.md +1458 -1458
- package/src/architecture/network/activate/README.md +694 -694
- package/src/architecture/network/bootstrap/README.md +77 -77
- package/src/architecture/network/connect/README.md +74 -74
- package/src/architecture/network/deterministic/README.md +135 -135
- package/src/architecture/network/evolve/README.md +364 -364
- package/src/architecture/network/gating/README.md +130 -130
- package/src/architecture/network/genetic/README.md +399 -399
- package/src/architecture/network/mutate/README.md +897 -897
- package/src/architecture/network/onnx/README.md +720 -720
- package/src/architecture/network/onnx/export/README.md +728 -728
- package/src/architecture/network/onnx/export/layers/README.md +450 -450
- package/src/architecture/network/onnx/import/README.md +618 -618
- package/src/architecture/network/onnx/schema/README.md +32 -32
- package/src/architecture/network/prune/README.md +245 -245
- package/src/architecture/network/remove/README.md +135 -135
- package/src/architecture/network/runtime/README.md +106 -106
- package/src/architecture/network/serialize/README.md +542 -542
- package/src/architecture/network/slab/README.md +608 -608
- package/src/architecture/network/standalone/README.md +212 -212
- package/src/architecture/network/stats/README.md +84 -84
- package/src/architecture/network/topology/README.md +465 -465
- package/src/architecture/network/training/README.md +200 -200
- package/src/architecture/node/README.md +5 -5
- package/src/architecture/nodePool/README.md +14 -14
- package/src/methods/README.md +99 -99
- package/src/methods/activation/README.md +189 -189
- package/src/methods/cost/README.md +131 -131
- package/src/methods/rate/README.md +86 -86
- package/src/multithreading/README.md +77 -77
- package/src/multithreading/workers/browser/README.md +8 -8
- package/src/multithreading/workers/node/README.md +8 -8
- package/src/neat/README.md +148 -148
- package/src/neat/adaptive/README.md +120 -120
- package/src/neat/adaptive/acceptance/README.md +40 -40
- package/src/neat/adaptive/complexity/README.md +137 -137
- package/src/neat/adaptive/core/README.md +197 -197
- package/src/neat/adaptive/lineage/README.md +90 -90
- package/src/neat/adaptive/mutation/README.md +284 -284
- package/src/neat/compat/README.md +43 -43
- package/src/neat/compat/core/README.md +90 -90
- package/src/neat/diversity/README.md +35 -35
- package/src/neat/diversity/core/README.md +88 -88
- package/src/neat/evaluate/README.md +85 -85
- package/src/neat/evaluate/auto-distance/README.md +75 -75
- package/src/neat/evaluate/entropy-compat/README.md +37 -37
- package/src/neat/evaluate/entropy-sharing/README.md +43 -43
- package/src/neat/evaluate/fitness/README.md +23 -23
- package/src/neat/evaluate/novelty/README.md +120 -120
- package/src/neat/evaluate/objectives/README.md +17 -17
- package/src/neat/evaluate/shared/README.md +94 -94
- package/src/neat/evolve/README.md +96 -96
- package/src/neat/evolve/adaptive/README.md +60 -60
- package/src/neat/evolve/objectives/README.md +63 -63
- package/src/neat/evolve/offspring/README.md +56 -56
- package/src/neat/evolve/population/README.md +171 -171
- package/src/neat/evolve/runtime/README.md +79 -79
- package/src/neat/evolve/speciation/README.md +74 -74
- package/src/neat/evolve/warnings/README.md +10 -10
- package/src/neat/export/README.md +114 -114
- package/src/neat/helpers/README.md +50 -50
- package/src/neat/init/README.md +9 -9
- package/src/neat/lineage/core/README.md +101 -101
- package/src/neat/multiobjective/category/README.md +74 -74
- package/src/neat/multiobjective/crowding/README.md +272 -272
- package/src/neat/multiobjective/dominance/README.md +171 -171
- package/src/neat/multiobjective/fronts/README.md +68 -68
- package/src/neat/multiobjective/metrics/README.md +43 -43
- package/src/neat/multiobjective/objectives/README.md +31 -31
- package/src/neat/multiobjective/shared/README.md +27 -27
- package/src/neat/mutation/README.md +97 -97
- package/src/neat/mutation/add-conn/README.md +115 -115
- package/src/neat/mutation/add-node/README.md +126 -126
- package/src/neat/mutation/flow/README.md +149 -149
- package/src/neat/mutation/repair/README.md +185 -185
- package/src/neat/mutation/select/README.md +117 -117
- package/src/neat/mutation/shared/README.md +32 -32
- package/src/neat/objectives/README.md +25 -25
- package/src/neat/objectives/core/README.md +67 -67
- package/src/neat/pruning/README.md +40 -40
- package/src/neat/pruning/core/README.md +171 -171
- package/src/neat/pruning/facade/README.md +32 -32
- package/src/neat/rng/README.md +104 -104
- package/src/neat/rng/core/README.md +137 -137
- package/src/neat/rng/facade/README.md +50 -50
- package/src/neat/selection/README.md +111 -111
- package/src/neat/selection/core/README.md +227 -227
- package/src/neat/selection/facade/README.md +61 -61
- package/src/neat/shared/README.md +163 -163
- package/src/neat/speciation/README.md +31 -31
- package/src/neat/speciation/threshold/README.md +35 -35
- package/src/neat/species/README.md +25 -25
- package/src/neat/species/core/README.md +20 -20
- package/src/neat/species/core/shared/README.md +18 -18
- package/src/neat/species/history/context/README.md +22 -22
- package/src/neat/telemetry/accessors/README.md +58 -58
- package/src/neat/telemetry/exports/README.md +233 -233
- package/src/neat/telemetry/facade/README.md +252 -252
- package/src/neat/telemetry/facade/archive/README.md +57 -57
- package/src/neat/telemetry/facade/buffer/README.md +43 -43
- package/src/neat/telemetry/facade/lineage/README.md +12 -12
- package/src/neat/telemetry/facade/objectives/README.md +44 -44
- package/src/neat/telemetry/facade/runtime/README.md +26 -26
- package/src/neat/telemetry/facade/species/README.md +27 -27
- package/src/neat/telemetry/metrics/README.md +696 -696
- package/src/neat/telemetry/recorder/README.md +57 -57
- package/src/neat/telemetry/types/README.md +32 -32
- package/src/neat/topology-intent/README.md +75 -75
- package/src/utils/README.md +193 -193
- package/test/examples/asciiMaze/browser-entry/README.md +92 -92
- package/test/examples/asciiMaze/dashboardManager/README.md +109 -109
- package/test/examples/asciiMaze/dashboardManager/telemetry/README.md +28 -28
- package/test/examples/asciiMaze/evolutionEngine/README.md +1527 -1527
- package/test/examples/asciiMaze/mazeMovement/README.md +105 -105
- package/test/examples/asciiMaze/mazeMovement/finalization/README.md +16 -16
- package/test/examples/asciiMaze/mazeMovement/policy/README.md +57 -57
- package/test/examples/asciiMaze/mazeMovement/runtime/README.md +52 -52
- package/test/examples/asciiMaze/mazeMovement/shaping/README.md +46 -46
- package/test/examples/flappy_bird/browser-entry/README.md +508 -508
- package/test/examples/flappy_bird/browser-entry/host/README.md +101 -101
- package/test/examples/flappy_bird/browser-entry/host/resize/README.md +144 -144
- package/test/examples/flappy_bird/browser-entry/network-view/README.md +194 -194
- package/test/examples/flappy_bird/browser-entry/playback/README.md +278 -278
- package/test/examples/flappy_bird/browser-entry/playback/background/README.md +129 -129
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/README.md +502 -502
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/README.md +139 -139
- package/test/examples/flappy_bird/browser-entry/playback/snapshot/README.md +10 -10
- package/test/examples/flappy_bird/browser-entry/playback/trail/README.md +43 -43
- package/test/examples/flappy_bird/browser-entry/playback/worker-channel/README.md +30 -30
- package/test/examples/flappy_bird/browser-entry/runtime/README.md +59 -59
- package/test/examples/flappy_bird/browser-entry/visualization/README.md +276 -276
- package/test/examples/flappy_bird/browser-entry/worker-channel/README.md +16 -16
- package/test/examples/flappy_bird/constants/README.md +1070 -1070
- package/test/examples/flappy_bird/environment/README.md +22 -22
- package/test/examples/flappy_bird/evaluation/README.md +32 -32
- package/test/examples/flappy_bird/evaluation/rollout/README.md +141 -141
- package/test/examples/flappy_bird/flappy-evolution-worker/README.md +425 -425
- package/test/examples/flappy_bird/simulation-shared/README.md +170 -170
- package/test/examples/flappy_bird/simulation-shared/observation/README.md +109 -109
- package/test/examples/flappy_bird/trainer/README.md +325 -325
- package/test/examples/flappy_bird/trainer/evaluation/README.md +74 -74
- package/scripts/analyze-trace.ts +0 -590
- package/scripts/copy-examples.mjs +0 -114
- package/scripts/export-onnx.mjs +0 -86
- package/scripts/generate-bench-tables.mjs +0 -182
- package/scripts/generate-docs.ts +0 -2900
- package/scripts/write-dist-docs-pkg.mjs +0 -16
|
@@ -13,80 +13,97 @@ constructor policy and the ongoing activation or training lifecycle.
|
|
|
13
13
|
|
|
14
14
|
## architecture/network/bootstrap/network.bootstrap.utils.ts
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### applySeedOption
|
|
17
17
|
|
|
18
18
|
```ts
|
|
19
|
-
|
|
19
|
+
applySeedOption(
|
|
20
|
+
network: NetworkBootstrapInternals,
|
|
20
21
|
options: NetworkConstructorOptions | undefined,
|
|
21
|
-
):
|
|
22
|
+
): void
|
|
22
23
|
```
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Prefer this semantic contract over the legacy low-level acyclic flag when
|
|
27
|
-
both are available.
|
|
25
|
+
Applies the optional deterministic seed from constructor options.
|
|
28
26
|
|
|
29
27
|
Parameters:
|
|
28
|
+
- `network` - Network instance being constructed.
|
|
30
29
|
- `options` - Optional constructor options.
|
|
31
30
|
|
|
32
|
-
Returns:
|
|
31
|
+
Returns: Nothing.
|
|
33
32
|
|
|
34
|
-
###
|
|
33
|
+
### bootstrapNetwork
|
|
35
34
|
|
|
36
35
|
```ts
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
bootstrapNetwork(
|
|
37
|
+
network: NetworkBootstrapInternals,
|
|
38
|
+
bootstrapContext: NetworkBootstrapContext,
|
|
39
39
|
): void
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Performs one-time `Network` construction setup.
|
|
43
43
|
|
|
44
|
-
This
|
|
45
|
-
|
|
44
|
+
This orchestration keeps the constructor readable by separating four concerns:
|
|
45
|
+
public topology-policy resolution, runtime flag initialization, pooled memory
|
|
46
|
+
warmup, and synthesis of the initial fully connected IO graph.
|
|
46
47
|
|
|
47
48
|
Parameters:
|
|
48
|
-
- `
|
|
49
|
+
- `network` - Network instance being constructed.
|
|
50
|
+
- `bootstrapContext` - Constructor inputs and resolved topology policy.
|
|
49
51
|
|
|
50
52
|
Returns: Nothing.
|
|
51
53
|
|
|
52
|
-
###
|
|
54
|
+
### connectInitialInputToOutputGraph
|
|
53
55
|
|
|
54
56
|
```ts
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
): boolean
|
|
57
|
+
connectInitialInputToOutputGraph(
|
|
58
|
+
network: NetworkBootstrapInternals,
|
|
59
|
+
): void
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
Connects every input node to every output node to form the starter graph.
|
|
62
63
|
|
|
63
|
-
The
|
|
64
|
-
|
|
64
|
+
The initial weight scaling mirrors the existing Network constructor behavior
|
|
65
|
+
so this split remains a pure structural refactor.
|
|
65
66
|
|
|
66
67
|
Parameters:
|
|
67
|
-
- `
|
|
68
|
-
- `topologyIntent` - Resolved public topology intent.
|
|
68
|
+
- `network` - Network instance being constructed.
|
|
69
69
|
|
|
70
|
-
Returns:
|
|
70
|
+
Returns: Nothing.
|
|
71
71
|
|
|
72
|
-
###
|
|
72
|
+
### ensureMinimumHiddenNodes
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
|
-
|
|
75
|
+
ensureMinimumHiddenNodes(
|
|
76
76
|
network: NetworkBootstrapInternals,
|
|
77
|
-
|
|
77
|
+
minimumHiddenNodes: number,
|
|
78
78
|
): void
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Ensures the network reaches the caller's requested minimum hidden width.
|
|
82
82
|
|
|
83
|
-
This
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
This relies on the public node-split mutation flow so the constructor and the
|
|
84
|
+
evolutionary runtime keep growing hidden structure the same way.
|
|
85
|
+
|
|
86
|
+
Parameters:
|
|
87
|
+
- `network` - Network instance being constructed.
|
|
88
|
+
- `minimumHiddenNodes` - Requested minimum hidden-node count.
|
|
89
|
+
|
|
90
|
+
Returns: Nothing.
|
|
91
|
+
|
|
92
|
+
### initializeIONodes
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
initializeIONodes(
|
|
96
|
+
network: NetworkBootstrapInternals,
|
|
97
|
+
): void
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Creates the initial input and output nodes for a new network.
|
|
101
|
+
|
|
102
|
+
When node pooling is enabled, each acquired node is reset before use so the
|
|
103
|
+
freshly constructed graph still starts from deterministic runtime state.
|
|
86
104
|
|
|
87
105
|
Parameters:
|
|
88
106
|
- `network` - Network instance being constructed.
|
|
89
|
-
- `bootstrapContext` - Constructor inputs and resolved topology policy.
|
|
90
107
|
|
|
91
108
|
Returns: Nothing.
|
|
92
109
|
|
|
@@ -133,75 +150,58 @@ Parameters:
|
|
|
133
150
|
|
|
134
151
|
Returns: Nothing.
|
|
135
152
|
|
|
136
|
-
###
|
|
153
|
+
### resolveAcyclicEnforcement
|
|
137
154
|
|
|
138
155
|
```ts
|
|
139
|
-
|
|
140
|
-
network: NetworkBootstrapInternals,
|
|
156
|
+
resolveAcyclicEnforcement(
|
|
141
157
|
options: NetworkConstructorOptions | undefined,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Applies the optional deterministic seed from constructor options.
|
|
146
|
-
|
|
147
|
-
Parameters:
|
|
148
|
-
- `network` - Network instance being constructed.
|
|
149
|
-
- `options` - Optional constructor options.
|
|
150
|
-
|
|
151
|
-
Returns: Nothing.
|
|
152
|
-
|
|
153
|
-
### initializeIONodes
|
|
154
|
-
|
|
155
|
-
```ts
|
|
156
|
-
initializeIONodes(
|
|
157
|
-
network: NetworkBootstrapInternals,
|
|
158
|
-
): void
|
|
158
|
+
topologyIntent: NetworkTopologyIntent,
|
|
159
|
+
): boolean
|
|
159
160
|
```
|
|
160
161
|
|
|
161
|
-
|
|
162
|
+
Resolves whether acyclic enforcement should be enabled for one constructor call.
|
|
162
163
|
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
The semantic topology intent remains the source of truth unless the caller
|
|
165
|
+
explicitly opted into the legacy boolean toggle.
|
|
165
166
|
|
|
166
167
|
Parameters:
|
|
167
|
-
- `
|
|
168
|
+
- `options` - Optional constructor options.
|
|
169
|
+
- `topologyIntent` - Resolved public topology intent.
|
|
168
170
|
|
|
169
|
-
Returns:
|
|
171
|
+
Returns: True when acyclic enforcement should be enabled.
|
|
170
172
|
|
|
171
|
-
###
|
|
173
|
+
### resolveTopologyIntent
|
|
172
174
|
|
|
173
175
|
```ts
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
):
|
|
176
|
+
resolveTopologyIntent(
|
|
177
|
+
options: NetworkConstructorOptions | undefined,
|
|
178
|
+
): NetworkTopologyIntent
|
|
177
179
|
```
|
|
178
180
|
|
|
179
|
-
|
|
181
|
+
Resolves the public topology intent for one constructor call.
|
|
180
182
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
Prefer this semantic contract over the legacy low-level acyclic flag when
|
|
184
|
+
both are available.
|
|
183
185
|
|
|
184
186
|
Parameters:
|
|
185
|
-
- `
|
|
187
|
+
- `options` - Optional constructor options.
|
|
186
188
|
|
|
187
|
-
Returns:
|
|
189
|
+
Returns: Resolved topology intent.
|
|
188
190
|
|
|
189
|
-
###
|
|
191
|
+
### validateTopologyIntentConfiguration
|
|
190
192
|
|
|
191
193
|
```ts
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
minimumHiddenNodes: number,
|
|
194
|
+
validateTopologyIntentConfiguration(
|
|
195
|
+
options: NetworkConstructorOptions | undefined,
|
|
195
196
|
): void
|
|
196
197
|
```
|
|
197
198
|
|
|
198
|
-
|
|
199
|
+
Validates that legacy acyclic flags do not contradict public topology intent.
|
|
199
200
|
|
|
200
|
-
This
|
|
201
|
-
|
|
201
|
+
This protects callers from creating a constructor packet that says
|
|
202
|
+
"feed-forward" in one field and "cyclic is allowed" in another.
|
|
202
203
|
|
|
203
204
|
Parameters:
|
|
204
|
-
- `
|
|
205
|
-
- `minimumHiddenNodes` - Requested minimum hidden-node count.
|
|
205
|
+
- `options` - Optional constructor options.
|
|
206
206
|
|
|
207
207
|
Returns: Nothing.
|
|
@@ -97,27 +97,6 @@ net.disconnect(nodeA, nodeB);
|
|
|
97
97
|
|
|
98
98
|
## architecture/network/connect/network.connect.create.utils.ts
|
|
99
99
|
|
|
100
|
-
### shouldRejectConnectionForAcyclicMode
|
|
101
|
-
|
|
102
|
-
```ts
|
|
103
|
-
shouldRejectConnectionForAcyclicMode(
|
|
104
|
-
network: default,
|
|
105
|
-
internalState: ConnectNetworkInternals,
|
|
106
|
-
sourceNode: default,
|
|
107
|
-
targetNode: default,
|
|
108
|
-
): boolean
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Determine whether an edge must be rejected to preserve acyclic ordering.
|
|
112
|
-
|
|
113
|
-
Parameters:
|
|
114
|
-
- `network` - - Network instance owning node ordering.
|
|
115
|
-
- `internalState` - - Runtime network internals used by connection pipeline.
|
|
116
|
-
- `sourceNode` - - Candidate source node.
|
|
117
|
-
- `targetNode` - - Candidate target node.
|
|
118
|
-
|
|
119
|
-
Returns: True when edge should be rejected.
|
|
120
|
-
|
|
121
100
|
### createConnectionsFromSourceNode
|
|
122
101
|
|
|
123
102
|
```ts
|
|
@@ -137,43 +116,43 @@ Parameters:
|
|
|
137
116
|
|
|
138
117
|
Returns: Created low-level connection objects.
|
|
139
118
|
|
|
140
|
-
###
|
|
119
|
+
### markConnectionCachesDirtyWhenNeeded
|
|
141
120
|
|
|
142
121
|
```ts
|
|
143
|
-
|
|
144
|
-
network: default,
|
|
122
|
+
markConnectionCachesDirtyWhenNeeded(
|
|
145
123
|
internalState: ConnectNetworkInternals,
|
|
146
|
-
|
|
147
|
-
targetNode: default,
|
|
148
|
-
createdConnections: default[],
|
|
124
|
+
createdConnectionCount: number,
|
|
149
125
|
): void
|
|
150
126
|
```
|
|
151
127
|
|
|
152
|
-
|
|
128
|
+
Mark topology and slab caches dirty when connection creation occurred.
|
|
153
129
|
|
|
154
130
|
Parameters:
|
|
155
|
-
- `network` - - Network instance owning connection collections.
|
|
156
131
|
- `internalState` - - Runtime network internals used by connection pipeline.
|
|
157
|
-
- `
|
|
158
|
-
- `targetNode` - - Target node used during connection creation.
|
|
159
|
-
- `createdConnections` - - Created low-level connection objects.
|
|
132
|
+
- `createdConnectionCount` - - Number of created low-level connections.
|
|
160
133
|
|
|
161
134
|
Returns: Nothing.
|
|
162
135
|
|
|
163
|
-
###
|
|
136
|
+
### registerCreatedConnections
|
|
164
137
|
|
|
165
138
|
```ts
|
|
166
|
-
|
|
139
|
+
registerCreatedConnections(
|
|
140
|
+
network: default,
|
|
167
141
|
internalState: ConnectNetworkInternals,
|
|
168
|
-
|
|
142
|
+
sourceNode: default,
|
|
143
|
+
targetNode: default,
|
|
144
|
+
createdConnections: default[],
|
|
169
145
|
): void
|
|
170
146
|
```
|
|
171
147
|
|
|
172
|
-
|
|
148
|
+
Register created connections in either normal-connection or self-connection storage.
|
|
173
149
|
|
|
174
150
|
Parameters:
|
|
151
|
+
- `network` - - Network instance owning connection collections.
|
|
175
152
|
- `internalState` - - Runtime network internals used by connection pipeline.
|
|
176
|
-
- `
|
|
153
|
+
- `sourceNode` - - Source node used during connection creation.
|
|
154
|
+
- `targetNode` - - Target node used during connection creation.
|
|
155
|
+
- `createdConnections` - - Created low-level connection objects.
|
|
177
156
|
|
|
178
157
|
Returns: Nothing.
|
|
179
158
|
|
|
@@ -198,64 +177,64 @@ Parameters:
|
|
|
198
177
|
|
|
199
178
|
Returns: Nothing.
|
|
200
179
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### selectConnectionCollection
|
|
180
|
+
### shouldRejectConnectionForAcyclicMode
|
|
204
181
|
|
|
205
182
|
```ts
|
|
206
|
-
|
|
183
|
+
shouldRejectConnectionForAcyclicMode(
|
|
207
184
|
network: default,
|
|
185
|
+
internalState: ConnectNetworkInternals,
|
|
208
186
|
sourceNode: default,
|
|
209
187
|
targetNode: default,
|
|
210
|
-
):
|
|
188
|
+
): boolean
|
|
211
189
|
```
|
|
212
190
|
|
|
213
|
-
|
|
191
|
+
Determine whether an edge must be rejected to preserve acyclic ordering.
|
|
214
192
|
|
|
215
193
|
Parameters:
|
|
216
|
-
- `network` - - Network instance owning
|
|
217
|
-
- `
|
|
218
|
-
- `
|
|
194
|
+
- `network` - - Network instance owning node ordering.
|
|
195
|
+
- `internalState` - - Runtime network internals used by connection pipeline.
|
|
196
|
+
- `sourceNode` - - Candidate source node.
|
|
197
|
+
- `targetNode` - - Candidate target node.
|
|
219
198
|
|
|
220
|
-
Returns:
|
|
199
|
+
Returns: True when edge should be rejected.
|
|
221
200
|
|
|
222
|
-
|
|
201
|
+
## architecture/network/connect/network.connect.remove.utils.ts
|
|
202
|
+
|
|
203
|
+
### disconnectNodes
|
|
223
204
|
|
|
224
205
|
```ts
|
|
225
|
-
|
|
226
|
-
network: default,
|
|
227
|
-
candidateConnections: default[],
|
|
206
|
+
disconnectNodes(
|
|
228
207
|
sourceNode: default,
|
|
229
208
|
targetNode: default,
|
|
230
209
|
): void
|
|
231
210
|
```
|
|
232
211
|
|
|
233
|
-
|
|
212
|
+
Delegate per-node disconnect cleanup.
|
|
234
213
|
|
|
235
214
|
Parameters:
|
|
236
|
-
- `network` - - Network instance used for ungating.
|
|
237
|
-
- `candidateConnections` - - Candidate collection to search.
|
|
238
215
|
- `sourceNode` - - Source node.
|
|
239
216
|
- `targetNode` - - Target node.
|
|
240
217
|
|
|
241
218
|
Returns: Nothing.
|
|
242
219
|
|
|
243
|
-
###
|
|
220
|
+
### findConnectionIndex
|
|
244
221
|
|
|
245
222
|
```ts
|
|
246
|
-
|
|
223
|
+
findConnectionIndex(
|
|
224
|
+
candidateConnections: default[],
|
|
247
225
|
sourceNode: default,
|
|
248
226
|
targetNode: default,
|
|
249
|
-
):
|
|
227
|
+
): number
|
|
250
228
|
```
|
|
251
229
|
|
|
252
|
-
|
|
230
|
+
Find index of the first connection matching source and target nodes.
|
|
253
231
|
|
|
254
232
|
Parameters:
|
|
233
|
+
- `candidateConnections` - - Candidate collection to search.
|
|
255
234
|
- `sourceNode` - - Source node.
|
|
256
235
|
- `targetNode` - - Target node.
|
|
257
236
|
|
|
258
|
-
Returns:
|
|
237
|
+
Returns: Matching index or -1 when no edge is found.
|
|
259
238
|
|
|
260
239
|
### markStructureCachesDirty
|
|
261
240
|
|
|
@@ -272,40 +251,61 @@ Parameters:
|
|
|
272
251
|
|
|
273
252
|
Returns: Nothing.
|
|
274
253
|
|
|
275
|
-
###
|
|
254
|
+
### removeConnectionAtIndex
|
|
276
255
|
|
|
277
256
|
```ts
|
|
278
|
-
|
|
257
|
+
removeConnectionAtIndex(
|
|
258
|
+
network: default,
|
|
259
|
+
candidateConnections: default[],
|
|
260
|
+
targetConnectionIndex: number,
|
|
261
|
+
): void
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Remove one connection by index, ungating first if required.
|
|
265
|
+
|
|
266
|
+
Parameters:
|
|
267
|
+
- `network` - - Network instance used for ungating.
|
|
268
|
+
- `candidateConnections` - - Candidate collection containing target index.
|
|
269
|
+
- `targetConnectionIndex` - - Index to remove.
|
|
270
|
+
|
|
271
|
+
Returns: Nothing.
|
|
272
|
+
|
|
273
|
+
### removeFirstMatchingConnection
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
removeFirstMatchingConnection(
|
|
277
|
+
network: default,
|
|
279
278
|
candidateConnections: default[],
|
|
280
279
|
sourceNode: default,
|
|
281
280
|
targetNode: default,
|
|
282
|
-
):
|
|
281
|
+
): void
|
|
283
282
|
```
|
|
284
283
|
|
|
285
|
-
|
|
284
|
+
Remove first connection that matches source and target nodes.
|
|
286
285
|
|
|
287
286
|
Parameters:
|
|
287
|
+
- `network` - - Network instance used for ungating.
|
|
288
288
|
- `candidateConnections` - - Candidate collection to search.
|
|
289
289
|
- `sourceNode` - - Source node.
|
|
290
290
|
- `targetNode` - - Target node.
|
|
291
291
|
|
|
292
|
-
Returns:
|
|
292
|
+
Returns: Nothing.
|
|
293
293
|
|
|
294
|
-
###
|
|
294
|
+
### selectConnectionCollection
|
|
295
295
|
|
|
296
296
|
```ts
|
|
297
|
-
|
|
297
|
+
selectConnectionCollection(
|
|
298
298
|
network: default,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
):
|
|
299
|
+
sourceNode: default,
|
|
300
|
+
targetNode: default,
|
|
301
|
+
): default[]
|
|
302
302
|
```
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
Select the relevant collection to search for the edge.
|
|
305
305
|
|
|
306
306
|
Parameters:
|
|
307
|
-
- `network` - - Network instance
|
|
308
|
-
- `
|
|
309
|
-
- `
|
|
307
|
+
- `network` - - Network instance owning connection collections.
|
|
308
|
+
- `sourceNode` - - Source node.
|
|
309
|
+
- `targetNode` - - Target node.
|
|
310
310
|
|
|
311
|
-
Returns:
|
|
311
|
+
Returns: Candidate connection collection.
|