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

Method getVertexById

packages/graph/src/GraphStorage.ts:171–173  ·  view source on GitHub ↗
(id: ElementId)

Source from the content-addressed store, hash-verified

169 }
170
171 public getVertexById(id: ElementId): StoredVertex | undefined {
172 return this.#vertices.get(id);
173 }
174
175 public *getVertices(labels: string[]): Iterable<StoredVertex> {
176 // Snapshot keys to prevent infinite loops when vertices are added during iteration.

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected