WeightedEdge

public struct WeightedEdge<W> : Edge, CustomStringConvertible, Equatable where W : Decodable, W : Encodable, W : Equatable
extension WeightedEdge: WeightedEdgeProtocol
extension WeightedEdge: Comparable where W: Comparable

A weighted edge, who’s weight subscribes to Comparable.

Operator Overloads

  • Declaration

    Swift

    public static func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool where W : Decodable, W : Encodable, W : Equatable
  • Undocumented

    Declaration

    Swift

    public typealias Weight = W

Available where W: Comparable

  • Declaration

    Swift

    public static func < (lhs: WeightedEdge, rhs: WeightedEdge) -> Bool