WeightedEdge
public struct WeightedEdge<W> : Edge, CustomStringConvertible, Equatable where W : Decodable, W : Encodable, W : Equatable
A weighted edge, who’s weight subscribes to Comparable.
-
Declaration
Swift
public var u: Int -
Declaration
Swift
public var v: Int -
Undocumented
Declaration
Swift
public var directed: Bool -
Undocumented
Declaration
Swift
public var weight: W -
Undocumented
Declaration
Swift
public init(u: Int, v: Int, directed: Bool, weight: W) -
Undocumented
Declaration
Swift
public func reversed() -> WeightedEdge<W> -
Declaration
Swift
public var description: String { get }
-
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
-
Declaration
Swift
public static func < (lhs: WeightedEdge, rhs: WeightedEdge) -> Bool
View on GitHub
WeightedEdge Structure Reference