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

Method addEdge

packages/graph/src/Graph.ts:201–201  ·  view source on GitHub ↗

* Add an edge between two vertices. * @param outV The source vertex (where the edge originates from). * @param label The label of the edge. * @param inV The target vertex (where the edge points to). * @param properties The properties of the edge.

(
    outV: ElementId | Vertex<TSchema, any>,
    label: TEdgeLabel,
    inV: ElementId | Vertex<TSchema, any>,
    properties: EdgeProperties<TSchema, TEdgeLabel>,
  )

Source from the content-addressed store, hash-verified

199 * @param properties The properties of the edge.
200 */
201 addEdge<TEdgeLabel extends EdgeLabel<TSchema>>(
202 outV: ElementId | Vertex<TSchema, any>,
203 label: TEdgeLabel,
204 inV: ElementId | Vertex<TSchema, any>,

Callers 15

pushMethod · 0.65
handleAsyncTransactionFunction · 0.65
createDemoGraphFunction · 0.65
traverseMethod · 0.65
traverseMethod · 0.65
addEdgeMethod · 0.65

Implementers 3

Graphpackages/graph/src/Graph.ts
InMemoryGraphStoragepackages/graph/src/GraphStorage.ts
YGraphStoragepackages/y-graph-storage/src/YGraphSto

Calls

no outgoing calls

Tested by 1

createGraphFunction · 0.52