The edges that connect the same nodes as this edge. Direction is taken into account.
Use the data object for JSON serializable data. For temporary or non-serializable data, use BaseEdge.Class.scratchData.
the data object associated with this edge.
the unique identifier of this edge.
whether this edge is a loop (source and target are the same node).
whether this edge has been removed from the graph.
The edges that connect the same nodes as this edge. Direction is not taken into account.
Use the scratch data object for temporary or non-serializable data. For JSON serializable data, use BaseEdge.Class.data.
The scratch data is stored under the @specs-feup/flow namespace.
the scratch data object associated with this edge.
Changes the functionality class of the current edge. This is only possible if the data and scratch data are compatible with the new class. To assert that, use BaseEdge.Class.is.
The same edge, wrapped in the new functionality class.
Changes the functionality class of the current edge. Should only be used when it is known (but not statically provable) that the edge is compatible with the new class. If not, an error will be thrown.
It is bad practice to try and catch the error thrown by this function. For such cases, combine BaseEdge.Class.is with BaseEdge.Class.as, or use BaseEdge.Class.switch instead.
The edge, wrapped in the new functionality class.
LaraFlowError if the edge is not compatible with the type. This error should be seen as a logic error and not catched.
Initializes the edge with the information of a builder. This is effectively extends the type of the edge to include the data and scratch data of the builder.
The same edge may simultaneously be of multiple types, as long as the data and scratch data are compatible with the types. The builder methods may overwrite data and scratch data fields with names that collide with its type's fields.
The same edge, with the data and scratch data of the builder. The edge is downcasted to BaseEdge.Class because the builder may overwrite the data and scratch data fields, invalidating the current type.
Restores this edge if it has been removed. See BaseEdge.Class.remove.
Checks if the type of the edge is compatible with several types, calling a callback for the first match. See Edge.Case for the syntax of each case.
For a default case, match with BaseEdge, which will always be compatible with any edge type.
Rest
...cases: _Case<BaseEdge.Data, BaseEdge.ScratchData, BaseEdge.Class<BaseEdge.Data, BaseEdge.ScratchData>>[]The cases to match against.
Tries to change the functionality class of the current edge. If the edge is not compatible with the new class, undefined is returned.
The edge, wrapped in the new functionality class, or undefined if the edge is not compatible with the type.
The class with functionality for the base edge type.