AdjacencyList

public struct AdjacencyList<Node> where Node : Hashable

Undocumented

Instance Properties

  • Undocumented

    Declaration

    Swift

    public let adjacencies: [Node : Set<Node>]

Initializers

  • Undocumented

    Declaration

    Swift

    public init(_ adjacencies: [Node : Set<Node>])
  • Undocumented

    Declaration

    Swift

    public init(safe adjacencies: [Node : Set<Node>])

Instance Methods

  • Undocumented

    Declaration

    Swift

    public func DAGify() -> AdjacencyList<Set<Node>>
  • Undocumented

    Declaration

    Swift

    public func containsCycle() -> Bool