SPeCS Packages Documentation
    Preparing search index...

    The class with functionality for the base edge type.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Accessors

    • get isLoop(): boolean

      Returns boolean

      whether this edge is a loop (source and target are the same node).

    • get isRemoved(): boolean

      Returns boolean

      whether this edge has been removed from the graph.

    Methods

    • 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.

      Type Parameters

      Parameters

      Returns BaseEdge.Class<D2, S2>

      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.