Graph<D, S, G>: {
    Class: Graph.Class<D, S, G>;
    TypeGuard: Graph.TypeGuard<D, S>;
}

Represents a graph type. All graph types must be subtypes of BaseGraph. A graph type has 5 components:

Type Parameters

  • D extends BaseGraph.Data

    Type parameter for the data contained in the graph type.

  • S extends BaseGraph.ScratchData

    Type parameter for the scratch data contained in the graph type.

  • G extends BaseGraph.Class<D, S>

    Type parameter for the instance of the class with functionality for this graph type.

Type declaration