Skip to main content

BeforeConnectInterceptor

BeforeConnectInterceptor = (source, target, payload?, userInstigated?) => any

Definition of a function to use as a beforeConnect interceptor.

Parameters

source

Vertex

The source vertex for the new edge

target

Vertex

The target vertex for the new edge

payload?

ObjectData

optional initial data for the edge, which would have

userInstigated?

boolean

If true, the new edge came from user activity, with a pointer device or touch input. This will be false whenever the edge is added programmatically, either during a data load or via the addEdge method of the model.

Returns

any