(vertexId: ElementId)
| 329 | } |
| 330 | |
| 331 | public getOutgoingEdges(vertexId: ElementId): Iterable<StoredEdge> { |
| 332 | const existing = this.#outgoingEdges.get(vertexId); |
| 333 | if (existing != null) { |
| 334 | return existing; |
| 335 | } |
| 336 | const edges = [] as StoredEdge[]; |
| 337 | this.#outgoingEdges.set(vertexId, edges); |
| 338 | return edges; |
| 339 | } |
| 340 | |
| 341 | public updateProperty(id: ElementId, key: string, value: any): void { |
| 342 | const element = this.#vertices.get(id) ?? this.#edges.get(id); |