(ids: Iterable<ElementId>)
| 216 | } |
| 217 | |
| 218 | public *getEdgesByIds(ids: Iterable<ElementId>): Iterable<StoredEdge> { |
| 219 | for (const id of ids) { |
| 220 | const edge = this.#edges.get(id); |
| 221 | if (edge !== undefined) { |
| 222 | yield edge; |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | public addVertex(vertex: StoredVertex): void { |
| 228 | if (this.#vertices.has(vertex.id)) { |