graphtransliterator-ts


graphtransliterator-ts / updateEdgeData

Function: updateEdgeData()

updateEdgeData<T, N, E>(graph, head, tail, newData): DirectedGraph<T, N, E>

Defined in: Graphs.ts:314

In-place modification utility targeting structural weight attributes carried by directional edge keys. If the specified pathway connection coordinates do not exist, the context configuration payload is returned untouched.

Type Parameters

T

T

N

N

E

E

Parameters

graph

DirectedGraph<T, N, E>

tail

number

newData

E

Returns

DirectedGraph<T, N, E>