(edge)
| 214 | } |
| 215 | |
| 216 | updateFrom(edge) { |
| 217 | if (this.to !== edge.to || this.from !== edge.from) { |
| 218 | throw new Error('Invalid Edge updated', this, to); |
| 219 | } |
| 220 | this.type = edge.type; |
| 221 | this.name = edge.name; |
| 222 | this.reason = edge.reason; |
| 223 | this.time = edge.time; |
| 224 | } |
| 225 | |
| 226 | finishSetup() { |
| 227 | const from = this.from; |