Protocols

The following protocols are available globally.

  • The protocol for all graphs. You should generally use one of its two canonical class implementations, UnweightedGraph and WeightedGraph

    See more

    Declaration

    Swift

    public protocol Graph : Collection, CustomStringConvertible, Decodable, Encodable
  • A protocol that all edges in a graph must conform to.

    See more

    Declaration

    Swift

    public protocol Edge : CustomStringConvertible, Decodable, Encodable
  • Undocumented

    See more

    Declaration

    Swift

    public protocol WeightedEdgeProtocol