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

Method getEdges

packages/graph/src/Graph.ts:468–474  ·  view source on GitHub ↗
(
    ...labels: TEdgeLabel[]
  )

Source from the content-addressed store, hash-verified

466 }
467
468 public *getEdges<TEdgeLabel extends EdgeLabel<TSchema>>(
469 ...labels: TEdgeLabel[]
470 ): Iterable<Edge<TSchema, TEdgeLabel>> {
471 for (const data of this.#config.storage.getEdges(labels)) {
472 yield this.instantiateEdge<TEdgeLabel>(data);
473 }
474 }
475
476 public *getIncomingEdges(vertexId: ElementId): Iterable<Edge<TSchema, any>> {
477 for (const data of this.#config.storage.getIncomingEdges(vertexId)) {

Callers 1

toJSONMethod · 0.95

Calls 2

instantiateEdgeMethod · 0.95
getEdgesMethod · 0.65

Tested by

no test coverage detected