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

Method getEdgesByIds

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

Source from the content-addressed store, hash-verified

152 }
153
154 public *getEdgesByIds(ids: ElementId[]): Iterable<StoredEdge> {
155 for (const id of ids) {
156 const edge = this.getEdgeById(id);
157 if (edge != null) {
158 yield edge;
159 }
160 }
161 }
162
163 public *getEdges(labels: string[]): Iterable<StoredEdge> {
164 if (labels.length === 0) {

Callers

nothing calls this directly

Calls 1

getEdgeByIdMethod · 0.95

Tested by

no test coverage detected