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

Method getIncomingEdges

packages/graph/src/GraphStorage.ts:321–329  ·  view source on GitHub ↗
(vertexId: ElementId)

Source from the content-addressed store, hash-verified

319 }
320
321 public getIncomingEdges(vertexId: ElementId): Iterable<StoredEdge> {
322 const existing = this.#incomingEdges.get(vertexId);
323 if (existing != null) {
324 return existing;
325 }
326 const edges = [] as StoredEdge[];
327 this.#incomingEdges.set(vertexId, edges);
328 return edges;
329 }
330
331 public getOutgoingEdges(vertexId: ElementId): Iterable<StoredEdge> {
332 const existing = this.#outgoingEdges.get(vertexId);

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected