Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Const mapToKeyValueNumber

  • mapToKeyValueNumber<a, b>(map: ColoredGraphObject<a, b>): ColoredGraph<number, a, b>
  • If the key to the ColoredGraph map is a number in the Haskell backend, Haskell will spit out an object instead of a key-value-list. This function transforms such objects to key-value-lists.

    Type parameters

    • a

      The type of value on vertices.

    • b

      The type of value on edges.

    Parameters

    • map: ColoredGraphObject<a, b>

      The object given by the Haskell backend.

    Returns ColoredGraph<number, a, b>

Const mapToKeyValueString

  • mapToKeyValueString<a, b>(map: ColoredGraphObject<a, b>): ColoredGraph<string, a, b>
  • If the key to the ColoredGraph map is a string in the Haskell backend, Haskell will spit out an object instead of a key-value-list. This function transforms such objects to key-value-lists.

    Type parameters

    • a

      The type of value on vertices.

    • b

      The type of value on edges.

    Parameters

    • map: ColoredGraphObject<a, b>

      The object given by the Haskell backend.

    Returns ColoredGraph<string, a, b>

Generated using TypeDoc