Protocols

The following protocols are available globally.

  • This protocol declares the requirements for optimal pathfinding in a directed graph of nodes and implements the A* algorithm via an extension.

    See more

    Declaration

    Swift

    public protocol Graph
  • A simplified version of the Graph protocol that allows optimal path finding between nodes without the need of a containing Graph type.

    Use this protocol instead of Graph if your nodes store their outgoing edges.

    When your nodes do not store edge information, consider using the Graph protocol.

    See more

    Declaration

    Swift

    public protocol GraphNode : Graph, Hashable