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

Method getVertexById

packages/graph/src/Graph.ts:246–251  ·  view source on GitHub ↗
(
    _id: ElementId,
    _options?: { throwIfNotFound?: boolean },
  )

Source from the content-addressed store, hash-verified

244 _options?: { throwIfNotFound?: false },
245 ): Vertex<TSchema, TVertexLabel> | undefined;
246 public getVertexById<TVertexLabel extends VertexLabel<TSchema>>(
247 _id: ElementId,
248 _options?: { throwIfNotFound?: boolean },
249 ): Vertex<TSchema, TVertexLabel> | undefined {
250 throw new Error("Cannot get vertex by id from an empty graph source.");
251 }
252 public getVertices<TVertexLabel extends VertexLabel<TSchema>>(
253 ..._labels: TVertexLabel[]
254 ): Iterable<Vertex<TSchema, TVertexLabel>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected