SwiftstructShaderGraph

struct ShaderGraph.DirectedGraph

Members 20

  1. fieldvar adjacents: [ShaderGraph.DirectedGraph<A, B>.Adjacent]+0x8
  2. fieldvar edges: [ShaderGraph.DirectedGraph<A, B>.Edge]+0x0
  3. funcbreathFirstIterator() -> IteratorProtocol
  4. funccompact() -> ()
  5. funcconnect(_: Int, _: Int, value: B) -> ()
  6. funcdepthFirstIterator() -> IteratorProtocol
  7. funcdisconnect(_: Int, _: Int, value: B) -> ()
  8. funcedge(at: ShaderGraph.DirectedGraph<A, B>.EdgeIndex) -> ShaderGraph.DirectedGraph<A, B>.Edge
  9. funcedges(to: Int) -> [ShaderGraph.DirectedGraph<A, B>.Edge]
  10. funcedges(from: Int) -> [ShaderGraph.DirectedGraph<A, B>.Edge]
  11. funcinsert([A]) -> [Int]
  12. funcinsert(A) -> Int
  13. funcinteriorNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node]
  14. funcprintEdges() -> ()
  15. funcsinkNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node]
  16. funcsourceNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node]
  17. functopologicalSequence() -> ShaderGraph.DirectedGraph<A, B>.DepthFirstSequence
  18. initinit() -> ShaderGraph.DirectedGraph<A, B>
  19. subscriptsubscript.getter : (Int) -> A?
  20. varvar nodes: [ShaderGraph.DirectedGraph<A, B>.Node] { get }
struct DirectedGraph<A, B> where B: Swift.Hashable {
    struct Node {
        let index: Swift.Int
        var value: A

        init(index: Swift.Int, value: A)
    }
    struct Edge {
        let source: Swift.Int
        let destination: Swift.Int
        let value: B

        init(source: Swift.Int, destination: Swift.Int, value: B)
    }
    struct EdgeIndex {
        let index: Swift.Int

        init(_: Swift.Int)
    }
    struct Adjacent {
        var element: A?
        let index: Swift.Int
        var outgoing: [ShaderGraph.DirectedGraph<A, B>.EdgeIndex]
        var incoming: [ShaderGraph.DirectedGraph<A, B>.EdgeIndex]

        init(_: A, _: Swift.Int)

        var node: ShaderGraph.DirectedGraph<A, B>.Node? {
            get
        }
    }
    struct DepthFirstSequence {
        struct Context {
            var stack: [Swift.Int]
            var discovered: CollectionsInternal.OrderedSet<Swift.Int>
            var inputMap: CollectionsInternal.OrderedDictionary<Swift.Int, Swift.IndexingIterator<[Swift.Int]>>

            init(stack: [Swift.Int], discovered: CollectionsInternal.OrderedSet<Swift.Int>, inputMap: CollectionsInternal.OrderedDictionary<Swift.Int, Swift.IndexingIterator<[Swift.Int]>>)
        }
        var context: ShaderGraph.DirectedGraph<A, B>.DepthFirstSequence.Context
        let graph: ShaderGraph.DirectedGraph<A, B>

        init(graph: ShaderGraph.DirectedGraph<A, B>, startingWith: [ShaderGraph.DirectedGraph<A, B>.Node])

        func inboundEdgeIterator(for: Swift.Int) -> Swift.IndexingIterator<[Swift.Int]>
        func next() -> ShaderGraph.DirectedGraph<A, B>.Node?
    }
    var edges: [ShaderGraph.DirectedGraph<A, B>.Edge]
    var adjacents: [ShaderGraph.DirectedGraph<A, B>.Adjacent]

    init()

    var nodes: [ShaderGraph.DirectedGraph<A, B>.Node] {
        get
    }

    func disconnect(_: Swift.Int, _: Swift.Int, value: B)
    func printEdges()
    func sourceNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node]
    func interiorNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node]
    func depthFirstIterator() -> any Swift.IteratorProtocol
    func breathFirstIterator() -> any Swift.IteratorProtocol
    func topologicalSequence() -> ShaderGraph.DirectedGraph<A, B>.DepthFirstSequence
    func edge(at: ShaderGraph.DirectedGraph<A, B>.EdgeIndex) -> ShaderGraph.DirectedGraph<A, B>.Edge
    func edges(to: Swift.Int) -> [ShaderGraph.DirectedGraph<A, B>.Edge]
    func edges(from: Swift.Int) -> [ShaderGraph.DirectedGraph<A, B>.Edge]
    func insert(_: [A]) -> [Swift.Int]
    func insert(_: A) -> Swift.Int
    func compact()
    func connect(_: Swift.Int, _: Swift.Int, value: B)
    func sinkNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node]

    subscript(_: Swift.Int) -> A? {
        get
        set
    }
}