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

Method getEdgesByIds

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected