()
| 224 | } |
| 225 | |
| 226 | finishSetup() { |
| 227 | const from = this.from; |
| 228 | const to = this.to; |
| 229 | if (to?.time < from?.time) { |
| 230 | // This happens for map deprecation where the transition tree is converted |
| 231 | // in reverse order. |
| 232 | console.warn('Invalid time order'); |
| 233 | } |
| 234 | if (from) from.addEdge(this); |
| 235 | if (to === undefined) return; |
| 236 | to.edge = this; |
| 237 | if (from === undefined) return; |
| 238 | if (to === from) throw 'From and to must be distinct.'; |
| 239 | let newDepth = from.depth + 1; |
| 240 | if (to.depth > 0 && to.depth != newDepth) { |
| 241 | console.warn('Depth has already been initialized'); |
| 242 | } |
| 243 | to.depth = newDepth; |
| 244 | } |
| 245 | |
| 246 | chunkIndex(chunks) { |
| 247 | // Did anybody say O(n)? |
no test coverage detected