()
| 248 | } |
| 249 | |
| 250 | private clone(): GraphNode { |
| 251 | const cloned = Object.create(GraphNode.prototype) as GraphNode; |
| 252 | Object.assign(cloned, this); |
| 253 | cloned._data = { ...this._data }; |
| 254 | return cloned; |
| 255 | } |
| 256 | |
| 257 | toJSON(): Record<string, unknown> { |
| 258 | return { |
no test coverage detected