(vertexId: ElementId)
| 319 | } |
| 320 | |
| 321 | public getIncomingEdges(vertexId: ElementId): Iterable<StoredEdge> { |
| 322 | const existing = this.#incomingEdges.get(vertexId); |
| 323 | if (existing != null) { |
| 324 | return existing; |
| 325 | } |
| 326 | const edges = [] as StoredEdge[]; |
| 327 | this.#incomingEdges.set(vertexId, edges); |
| 328 | return edges; |
| 329 | } |
| 330 | |
| 331 | public getOutgoingEdges(vertexId: ElementId): Iterable<StoredEdge> { |
| 332 | const existing = this.#outgoingEdges.get(vertexId); |