DirectedGraph
public struct DirectedGraph<Node> : UnweightedGraphProtocol, DirectedGraphProtocol where Node : Hashableextension DirectedGraph: Equatableextension DirectedGraph: HashableUnweighted, directed graph.
- 
                  
                  All of the nodes contained herein. A Nodeis anyHashable-conforming value.DeclarationSwift public var nodes: Set<Node>
- 
                  
                  All of the edges contained herein. An Edgeis anOrderedPairofNodevalues.DeclarationSwift public var edges: Set<Edge>
- 
                  
                  The type of edges which connect nodes. DeclarationSwift public typealias Edge = OrderedPair<Node>
- 
                  
                  Creates a DirectedGraphwith the given set of nodes, with no edges between the nodes.DeclarationSwift @inlinable public init(_ nodes: Set<Node> = [])
- 
                  
                  Creates a DirectedGraphwith the given set of nodes and the given set of edges connecting the nodes.DeclarationSwift @inlinable public init(_ nodes: Set<Node> = [], _ edges: Set<Edge> = [])
- 
                  
                  Creates a DirectedGraphwhich is composed a path of nodes.DeclarationSwift @inlinable public init<C>(path: C) where Node == C.Element, C : Collection
- 
                  
                  Creates a DirectedGraphwith enough memory to store the givenminimumNodesCapacityandminimumEdgesCapacity.DeclarationSwift public init(minimumNodesCapacity: Int, minimumEdgesCapacity: Int)
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           DirectedGraph Structure Reference
      DirectedGraph Structure Reference