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

Method getVerticesByIds

packages/y-graph-storage/src/YGraphStorage.ts:97–104  ·  view source on GitHub ↗
(ids: ElementId[])

Source from the content-addressed store, hash-verified

95 }
96
97 public *getVerticesByIds(ids: ElementId[]): Iterable<StoredVertex> {
98 for (const id of ids) {
99 const vertex = this.getVertexById(id);
100 if (vertex != null) {
101 yield vertex;
102 }
103 }
104 }
105
106 public *getVertices(labels: string[]): Iterable<StoredVertex> {
107 if (labels.length === 0) {

Callers

nothing calls this directly

Calls 1

getVertexByIdMethod · 0.95

Tested by

no test coverage detected