OverlaySingleEdge
Represents a single edge in an overlay graph structure, linking nodes with specific properties.
Parameters
The current node that the edge originates from or is associated with.
The optional target node of the edge.
The property representing a mutable collection of mirrored overlay edges.
A flag indicating whether the edge is outgoing (default is true).
Constructors
Initializes the OverlaySingleEdge instance with the provided parameters.
Properties
This computed property returns the common type in a Collection of Type objects. For example, if two types A
and B
both derive from the interface C`` then
C` would be returned.
Functions
This function returns the first node that matches the name on the supplied list of nodes.
A shortcut to call firstOrNull using the []
syntax.
A shortcut to call byNameOrNull using the []
syntax.
This function will be executed after the edge was added to the container. This can be used to propagate the edge to other properties or register additional handlers, e.g. a TypeObserver.
This function will be executed after an edge was removed from the container. This can be used to unregister additional handlers, e.g. a TypeObserver.
Removes all edges with the target node. The target is considered to be either the Edge.end or Edge.start depending on outgoing.
Converts this collection of edges into a collection of nodes for easier access to the "target" nodes.
Returns an UnwrappedEdgeCollection magic container which holds a structure that provides easy access to the "target" nodes without edge information, but is mutable and in-sync with this collection.