MCPcopy Create free account
hub / github.com/codemix/graph / getVerticesByIds

Method getVerticesByIds

packages/graph/src/GraphStorage.ts:190–197  ·  view source on GitHub ↗
(ids: Iterable<ElementId>)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected