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

Method getOutgoingEdges

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

Source from the content-addressed store, hash-verified

329 }
330
331 public getOutgoingEdges(vertexId: ElementId): Iterable<StoredEdge> {
332 const existing = this.#outgoingEdges.get(vertexId);
333 if (existing != null) {
334 return existing;
335 }
336 const edges = [] as StoredEdge[];
337 this.#outgoingEdges.set(vertexId, edges);
338 return edges;
339 }
340
341 public updateProperty(id: ElementId, key: string, value: any): void {
342 const element = this.#vertices.get(id) ?? this.#edges.get(id);

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected