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

Method getVertices

packages/graph/src/Graph.ts:433–439  ·  view source on GitHub ↗
(
    ...labels: TVertexLabel[]
  )

Source from the content-addressed store, hash-verified

431 }
432
433 public *getVertices<TVertexLabel extends VertexLabel<TSchema>>(
434 ...labels: TVertexLabel[]
435 ): Iterable<Vertex<TSchema, TVertexLabel>> {
436 for (const data of this.#config.storage.getVertices(labels)) {
437 yield this.instantiateVertex<TVertexLabel>(data);
438 }
439 }
440
441 /**
442 * Get an edge by its id.

Callers 1

toJSONMethod · 0.95

Calls 2

instantiateVertexMethod · 0.95
getVerticesMethod · 0.65

Tested by

no test coverage detected