Function createGraphNodes

  • Namespace

    InternalUtils

    Creates and connects graph nodes based on the given connections array.

    Type Parameters

    • T

    Parameters

    • connections: Connection[]

      An array of tuples representing the connections between nodes (edges in the graph).

    • createDataFn: ((id) => T)
        • (id): T
        • Parameters

          • id: `${number},${number}`

          Returns T

    Returns GraphNodeMap<T>

    An array of connected graph nodes.

    Function

Generated using TypeDoc