Type alias BeforeDetachInterceptor

BeforeDetachInterceptor: ((source, target, edge) => boolean)

A function to run before the given edge is detached from the given source vertex. If this method returns false, the detach will be aborted.

Type declaration

    • (source, target, edge): boolean
    • Parameters

      • source: Vertex

        Edge's source.

      • target: Vertex

        Candidate target for the edge

      • edge: Edge

        The edge that is being detached.

      Returns boolean