Skip to main content

Function: addValidatedEdge()

addValidatedEdge(graph, source, target, weight?): boolean
Defined in: graph.ts:676 Validates and adds an edge using Effect Schema (for string graphs)

Parameters

graph

Graph<string>

source

string

target

string

weight?

number = 1

Returns

boolean True if edge was added successfully