(ids: Iterable<ElementId>)
| 188 | } |
| 189 | |
| 190 | public *getVerticesByIds(ids: Iterable<ElementId>): Iterable<StoredVertex> { |
| 191 | for (const id of ids) { |
| 192 | const vertex = this.#vertices.get(id); |
| 193 | if (vertex !== undefined) { |
| 194 | yield vertex; |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | public getEdgeById(id: ElementId): StoredEdge | undefined { |
| 200 | return this.#edges.get(id); |