SwiftstructShaderGraph
struct ShaderGraph.DirectedGraph
Members 20
- field
var adjacents: [ShaderGraph.DirectedGraph<A, B>.Adjacent]+0x8 - field
var edges: [ShaderGraph.DirectedGraph<A, B>.Edge]+0x0 - func
breathFirstIterator() -> IteratorProtocol - func
compact() -> () - func
connect(_: Int, _: Int, value: B) -> () - func
depthFirstIterator() -> IteratorProtocol - func
disconnect(_: Int, _: Int, value: B) -> () - func
edge(at: ShaderGraph.DirectedGraph<A, B>.EdgeIndex) -> ShaderGraph.DirectedGraph<A, B>.Edge - func
edges(to: Int) -> [ShaderGraph.DirectedGraph<A, B>.Edge] - func
edges(from: Int) -> [ShaderGraph.DirectedGraph<A, B>.Edge] - func
insert([A]) -> [Int] - func
insert(A) -> Int - func
interiorNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node] - func
printEdges() -> () - func
sinkNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node] - func
sourceNodes() -> [ShaderGraph.DirectedGraph<A, B>.Node] - func
topologicalSequence() -> ShaderGraph.DirectedGraph<A, B>.DepthFirstSequence - init
init() -> ShaderGraph.DirectedGraph<A, B> - subscript
subscript.getter : (Int) -> A? - var
var nodes: [ShaderGraph.DirectedGraph<A, B>.Node] { get }
Header
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 } }