Build Information
Failed to build Graphs, reference main (4fe2af), with Swift 6.3 for Android on 17 Apr 2026 08:44:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
40 | _vertices
41 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:16:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
14 | /// efficient lookup and iteration. It's commonly used as the default
15 | /// vertex storage for adjacency list graphs.
16 | public struct OrderedVertexStorage: VertexStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<OrderedVertexStorage.Vertex>')
17 | /// A vertex in the ordered vertex storage.
18 | public struct Vertex: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:34:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | @inlinable
33 | public var vertexCount: Int {
34 | _vertices.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | }
36 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:49:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
47 | @inlinable
48 | public func contains(_ vertex: Vertex) -> Bool {
49 | _vertices.contains(vertex)
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
50 | }
51 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:59:19: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | let vertex = Vertex(_id: _nextId)
58 | _nextId &+= 1
59 | _vertices.updateOrAppend(vertex)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
60 | return vertex
61 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:68:19: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | @inlinable
67 | public mutating func remove(vertex: Vertex) {
68 | _vertices.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | }
70 |
[759/760] Compiling Graphs SerializableProperty.swift
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyList.swift:96:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
94 | extension AdjacencyList: VertexListGraph {}
95 | extension AdjacencyList: EdgeListGraph {}
96 | extension AdjacencyList: AdjacencyGraph {}
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<VertexStore.Vertex>')
97 | extension AdjacencyList: MutableGraph {}
98 | extension AdjacencyList: PropertyGraph {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:16:18: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
14 | internal var matrix: [[Bool]] = []
15 | @usableFromInline
16 | internal var verticesStore: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
17 | @usableFromInline
18 | internal var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:18:18: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
16 | internal var verticesStore: OrderedSet<Vertex> = []
17 | @usableFromInline
18 | internal var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
19 | // Performance optimization: O(1) edge lookup by (source, destination) pair
20 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:68:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | extension AdjacencyMatrix: VertexListGraph {
67 | @inlinable
68 | public func vertices() -> OrderedSet<Vertex> { verticesStore }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 |
70 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:66:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
64 | }
65 |
66 | extension AdjacencyMatrix: VertexListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<AdjacencyMatrix.Vertex>')
67 | @inlinable
68 | public func vertices() -> OrderedSet<Vertex> { verticesStore }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:76:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | extension AdjacencyMatrix: EdgeListGraph {
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:74:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
72 | }
73 |
74 | extension AdjacencyMatrix: EdgeListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:84:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | extension AdjacencyMatrix: IncidenceGraph {
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:82:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
80 | }
81 |
82 | extension AdjacencyMatrix: IncidenceGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.OutgoingEdges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:107:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | extension AdjacencyMatrix: BidirectionalGraph {
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:105:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
103 | }
104 |
105 | extension AdjacencyMatrix: BidirectionalGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.IncomingEdges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:225:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | extension AdjacencyMatrix: AdjacencyGraph {
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:223:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
221 | }
222 |
223 | extension AdjacencyMatrix: AdjacencyGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<AdjacencyMatrix.Vertex>')
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:71:49: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 |
70 | @inlinable
71 | public var vertexCount: Int { verticesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | }
73 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:76:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | extension AdjacencyMatrix: EdgeListGraph {
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:79:44: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
79 | public var edgeCount: Int { edgesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
80 | }
81 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:85:55: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
86 | var result: OrderedSet<Edge> = []
87 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:86:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:86:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:89:51: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
89 | if let e = edge(from: vertex, to: verticesStore[j]) { result.updateOrAppend(e) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
90 | }
91 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:89:78: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
89 | if let e = edge(from: vertex, to: verticesStore[j]) { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
90 | }
91 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:96:52: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 |
95 | @inlinable
96 | public func source(of edge: Edge) -> Vertex? { edgesStore[edge]?.source }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 |
98 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:99:57: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 |
98 | @inlinable
99 | public func destination(of edge: Edge) -> Vertex? { edgesStore[edge]?.destination }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 |
101 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:102:81: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 |
101 | @inlinable
102 | public func outDegree(of vertex: Vertex) -> Int { outgoingEdges(of: vertex).count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:108:55: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
109 | var result: OrderedSet<Edge> = []
110 | for i in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:109:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:109:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:112:39: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
112 | if let e = edge(from: verticesStore[i], to: vertex) { result.updateOrAppend(e) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
113 | }
114 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:112:78: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
112 | if let e = edge(from: verticesStore[i], to: vertex) { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
113 | }
114 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:119:80: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
117 |
118 | @inlinable
119 | public func inDegree(of vertex: Vertex) -> Int { incomingEdges(of: vertex).count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
120 | }
121 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:134:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
132 | let e = Edge(_id: nextEdgeId)
133 | nextEdgeId &+= 1
134 | edgesStore[e] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | // Update the O(1) lookup table
136 | edgeLookup[source, default: [:]][destination] = e
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:143:35: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
141 | @inlinable
142 | public mutating func remove(edge: consuming Edge) {
143 | guard let ep = edgesStore.removeValue(forKey: edge) else { return }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
144 | if let i = index(of: ep.source), let j = index(of: ep.destination) { matrix[i][j] = false }
145 | // Update the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:168:23: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
166 | let v = Vertex(_id: nextVertexId)
167 | nextVertexId &+= 1
168 | verticesStore.updateOrAppend(v)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
169 | // Grow matrix
170 | let n = verticesStore.count
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:170:31: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
168 | verticesStore.updateOrAppend(v)
169 | // Grow matrix
170 | let n = verticesStore.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
171 | for i in 0 ..< matrix.count { matrix[i].append(false) }
172 | matrix.append(Array(repeating: false, count: n))
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:57: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:57: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:196:23: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
194 | matrix.remove(at: idx)
195 | for i in 0 ..< matrix.count { matrix[i].remove(at: idx) }
196 | verticesStore.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
197 | }
198 | #else
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:226:57: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
227 | var result: OrderedSet<Vertex> = []
228 | // Outgoing neighbors: row scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:227:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:227:42: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:230:40: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
230 | if matrix[idx][j] { result.updateOrAppend(verticesStore[j]) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
231 | }
232 | // Incoming neighbors: column scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:230:55: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
230 | if matrix[idx][j] { result.updateOrAppend(verticesStore[j]) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
231 | }
232 | // Incoming neighbors: column scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:234:40: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
232 | // Incoming neighbors: column scan
233 | for i in 0 ..< matrix.count {
234 | if matrix[i][idx] { result.updateOrAppend(verticesStore[i]) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
235 | }
236 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:234:55: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
232 | // Incoming neighbors: column scan
233 | for i in 0 ..< matrix.count {
234 | if matrix[i][idx] { result.updateOrAppend(verticesStore[i]) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
235 | }
236 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:28:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
26 | /// Internal storage: maps each vertex to its outgoing edges
27 | @usableFromInline
28 | var adjacency: OrderedDictionary<Vertex, [Edge]>
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
29 |
30 | /// Creates an empty inline graph.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:205:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
203 | extension InlineGraph: VertexListGraph {
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
206 | OrderedSet(adjacency.keys)
207 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:203:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
201 | }
202 |
203 | extension InlineGraph: VertexListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<Vertex>')
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:33:26: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public init() {
33 | self.adjacency = OrderedDictionary()
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:33:26: error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public init() {
33 | self.adjacency = OrderedDictionary()
| `- error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:43:26: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | @inlinable
42 | public init<Edges: Collection<Edge>>(edges: Edges) {
43 | self.adjacency = OrderedDictionary()
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | for edge in edges {
45 | adjacency[edge.source, default: []].append(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:43:26: error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | @inlinable
42 | public init<Edges: Collection<Edge>>(edges: Edges) {
43 | self.adjacency = OrderedDictionary()
| `- error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | for edge in edges {
45 | adjacency[edge.source, default: []].append(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:45:13: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
43 | self.adjacency = OrderedDictionary()
44 | for edge in edges {
45 | adjacency[edge.source, default: []].append(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | // Ensure destination vertex exists even if it has no outgoing edges
47 | if adjacency[edge.destination] == nil {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:47:16: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
45 | adjacency[edge.source, default: []].append(edge)
46 | // Ensure destination vertex exists even if it has no outgoing edges
47 | if adjacency[edge.destination] == nil {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
48 | adjacency[edge.destination] = []
49 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:48:17: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | // Ensure destination vertex exists even if it has no outgoing edges
47 | if adjacency[edge.destination] == nil {
48 | adjacency[edge.destination] = []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | }
50 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:94:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | @inlinable
93 | public mutating func addEdge(_ edge: Edge) -> Edge {
94 | adjacency[edge.source, default: []].append(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | // Ensure destination vertex exists even if it has no outgoing edges
96 | if adjacency[edge.destination] == nil {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:96:12: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | adjacency[edge.source, default: []].append(edge)
95 | // Ensure destination vertex exists even if it has no outgoing edges
96 | if adjacency[edge.destination] == nil {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 | adjacency[edge.destination] = []
98 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:97:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | // Ensure destination vertex exists even if it has no outgoing edges
96 | if adjacency[edge.destination] == nil {
97 | adjacency[edge.destination] = []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
98 | }
99 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:108:24: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | @inlinable
107 | public mutating func remove(edge: consuming Edge) {
108 | if let edges = adjacency[edge.source] {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
109 | adjacency[edge.source] = edges.filter { $0 != edge }
110 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:109:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public mutating func remove(edge: consuming Edge) {
108 | if let edges = adjacency[edge.source] {
109 | adjacency[edge.source] = edges.filter { $0 != edge }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | }
111 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:137:26: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | @inlinable
136 | public init() {
137 | self.adjacency = OrderedDictionary()
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
138 | }
139 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:137:26: error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | @inlinable
136 | public init() {
137 | self.adjacency = OrderedDictionary()
| `- error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
138 | }
139 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:184:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
182 | @inlinable
183 | public func outgoingEdges(of vertex: Vertex) -> [Edge] {
184 | adjacency[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
185 | }
186 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:199:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
197 | @inlinable
198 | public func outDegree(of vertex: Vertex) -> Int {
199 | adjacency[vertex]?.count ?? 0
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
200 | }
201 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:206:9: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
206 | OrderedSet(adjacency.keys)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
207 | }
208 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:206:9: error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
206 | OrderedSet(adjacency.keys)
| `- error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
207 | }
208 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:206:30: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
206 | OrderedSet(adjacency.keys)
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
207 | }
208 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:211:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
209 | @inlinable
210 | public var vertexCount: Int {
211 | adjacency.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
212 | }
213 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:19: error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:26: error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:19: error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:26: error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:36: error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:36: error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:36: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:239:12: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
237 | @inlinable
238 | public mutating func addVertex(_ vertex: Vertex) -> Vertex {
239 | if adjacency[vertex] == nil {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
240 | adjacency[vertex] = []
241 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:240:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
238 | public mutating func addVertex(_ vertex: Vertex) -> Vertex {
239 | if adjacency[vertex] == nil {
240 | adjacency[vertex] = []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
241 | }
242 | return vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:253:19: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
251 | @inlinable
252 | public mutating func remove(vertex: consuming Vertex) {
253 | adjacency.removeValue(forKey: vertex)
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:255:30: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
253 | adjacency.removeValue(forKey: vertex)
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
256 | adjacency[key]?.removeAll { edge in
257 | edge.destination == vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:255:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
253 | adjacency.removeValue(forKey: vertex)
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
256 | adjacency[key]?.removeAll { edge in
257 | edge.destination == vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:255:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
253 | adjacency.removeValue(forKey: vertex)
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
256 | adjacency[key]?.removeAll { edge in
257 | edge.destination == vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:256:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
256 | adjacency[key]?.removeAll { edge in
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
257 | edge.destination == vertex
258 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:74:30: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | var graph = AdjacencyList()
73 |
74 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:74:30: error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | var graph = AdjacencyList()
73 |
74 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:74:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | var graph = AdjacencyList()
73 |
74 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:77:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
77 | for vertex in uniqueVertices {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
78 | vertexMapping[vertex] = graph.addVertex()
79 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:77:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
77 | for vertex in uniqueVertices {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
78 | vertexMapping[vertex] = graph.addVertex()
79 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:3:1: error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
1 | import Collections
2 |
3 | extension EdgeStorage where Edges == OrderedSet<Edge> {
| `- error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
4 | /// Creates a caching wrapper that provides O(1) access to incoming and outgoing edges.
5 | ///
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:44:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 |
43 | @usableFromInline
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:44:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 |
43 | @usableFromInline
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:46:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
47 |
48 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:46:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
47 |
48 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:53:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
51 | /// - Returns: A set of edges originating from the vertex
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | _outgoingEdges[vertex] ?? []
55 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:71:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | /// - Returns: A set of edges terminating at the vertex
70 | @inlinable
71 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | _incomingEdges[vertex] ?? []
73 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:18:15: error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
16 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
17 | /// query the incidence structure of a graph.
18 | public struct CacheInOutEdges<
| `- error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
19 | Base: EdgeStorage
20 | >: EdgeStorage where
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:18:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
16 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
17 | /// query the incidence structure of a graph.
18 | public struct CacheInOutEdges<
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<Base.Edge>')
19 | Base: EdgeStorage
20 | >: EdgeStorage where
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | self.base = base
34 | // Hydrate caches for pre-populated storages
35 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | self.base = base
34 | // Hydrate caches for pre-populated storages
35 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:37:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | for edge in base.edges() {
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:37:49: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | for edge in base.edges() {
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:37:53: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | for edge in base.edges() {
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:38:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:38:54: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:38:58: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:54:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
54 | _outgoingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | }
56 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:54:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
54 | _outgoingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | }
56 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:63:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
61 | @inlinable
62 | public func outDegree(of vertex: Vertex) -> Int {
63 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
64 | }
65 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:72:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | @inlinable
71 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
72 | _incomingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | }
74 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:72:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | @inlinable
71 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
72 | _incomingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | }
74 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:81:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | @inlinable
80 | public func inDegree(of vertex: Vertex) -> Int {
81 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | }
83 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:93:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
95 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:93:41: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
95 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:93:45: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
95 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:94:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | return edge
96 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:94:46: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | return edge
96 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:94:50: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | return edge
96 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:104:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | public mutating func remove(edge: Edge) {
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | _incomingEdges[destination]?.remove(edge)
106 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:104:37: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | public mutating func remove(edge: Edge) {
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | _incomingEdges[destination]?.remove(edge)
106 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:105:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
105 | _incomingEdges[destination]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | }
107 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:105:42: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
105 | _incomingEdges[destination]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | }
107 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:26:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
24 |
25 | @usableFromInline
26 | var _edges: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
27 | @usableFromInline
28 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:38:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | /// Returns all edges in storage.
37 | @inlinable
38 | public func edges() -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | _edges.keys
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:56:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | /// - Returns: A set of edges originating from the vertex
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | _edges.filter { $0.value.source == vertex }.keys
58 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:74:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | /// - Returns: A set of edges terminating at the vertex
73 | @inlinable
74 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | _edges.filter { $0.value.destination == vertex }.keys
76 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:16:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
14 | /// efficient lookup and iteration. It's commonly used as the default
15 | /// edge storage for adjacency list graphs.
16 | public struct OrderedEdgeStorage<Vertex: Hashable>: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<OrderedEdgeStorage<Vertex>.Edge>')
17 | /// An edge in the ordered edge storage.
18 | public struct Edge: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:33:16: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public var edgeCount: Int {
33 | _edges.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:39:16: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
37 | @inlinable
38 | public func edges() -> OrderedSet<Edge> {
39 | _edges.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 | }
41 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:48:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | @inlinable
47 | public func endpoints(of edge: Edge) -> (source: Vertex, destination: Vertex)? {
48 | _edges[edge]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | }
50 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:57:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
57 | _edges.filter { $0.value.source == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | }
59 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:57:53: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
57 | _edges.filter { $0.value.source == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | }
59 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:66:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
64 | @inlinable
65 | public func outDegree(of vertex: Vertex) -> Int {
66 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 | }
68 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:75:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | @inlinable
74 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
75 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | }
77 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:75:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | @inlinable
74 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
75 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | }
77 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:84:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | @inlinable
83 | public func inDegree(of vertex: Vertex) -> Int {
84 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
85 | }
86 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:97:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | let edge = Edge(_id: _nextId)
96 | _nextId &+= 1
97 | _edges[edge] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
98 | return edge
99 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:106:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
104 | @inlinable
105 | public mutating func remove(edge: Edge) {
106 | _edges[edge] = nil
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | }
108 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:27:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
25 |
26 | @usableFromInline
27 | var _vertices: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
28 | @usableFromInline
29 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:39:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
37 | /// Returns all vertices in storage.
38 | @inlinable
39 | public func vertices() -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 | _vertices
41 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:16:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
14 | /// efficient lookup and iteration. It's commonly used as the default
15 | /// vertex storage for adjacency list graphs.
16 | public struct OrderedVertexStorage: VertexStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<OrderedVertexStorage.Vertex>')
17 | /// A vertex in the ordered vertex storage.
18 | public struct Vertex: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:34:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | @inlinable
33 | public var vertexCount: Int {
34 | _vertices.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | }
36 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:49:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
47 | @inlinable
48 | public func contains(_ vertex: Vertex) -> Bool {
49 | _vertices.contains(vertex)
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
50 | }
51 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:59:19: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | let vertex = Vertex(_id: _nextId)
58 | _nextId &+= 1
59 | _vertices.updateOrAppend(vertex)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
60 | return vertex
61 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:68:19: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | @inlinable
67 | public mutating func remove(vertex: Vertex) {
68 | _vertices.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | }
70 |
[760/760] Compiling Graphs SerializationFormat.swift
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyList.swift:96:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
94 | extension AdjacencyList: VertexListGraph {}
95 | extension AdjacencyList: EdgeListGraph {}
96 | extension AdjacencyList: AdjacencyGraph {}
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<VertexStore.Vertex>')
97 | extension AdjacencyList: MutableGraph {}
98 | extension AdjacencyList: PropertyGraph {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:16:18: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
14 | internal var matrix: [[Bool]] = []
15 | @usableFromInline
16 | internal var verticesStore: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
17 | @usableFromInline
18 | internal var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:18:18: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
16 | internal var verticesStore: OrderedSet<Vertex> = []
17 | @usableFromInline
18 | internal var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
19 | // Performance optimization: O(1) edge lookup by (source, destination) pair
20 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:68:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | extension AdjacencyMatrix: VertexListGraph {
67 | @inlinable
68 | public func vertices() -> OrderedSet<Vertex> { verticesStore }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 |
70 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:66:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
64 | }
65 |
66 | extension AdjacencyMatrix: VertexListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<AdjacencyMatrix.Vertex>')
67 | @inlinable
68 | public func vertices() -> OrderedSet<Vertex> { verticesStore }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:76:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | extension AdjacencyMatrix: EdgeListGraph {
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:74:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
72 | }
73 |
74 | extension AdjacencyMatrix: EdgeListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:84:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | extension AdjacencyMatrix: IncidenceGraph {
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:82:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
80 | }
81 |
82 | extension AdjacencyMatrix: IncidenceGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.OutgoingEdges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:107:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | extension AdjacencyMatrix: BidirectionalGraph {
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:105:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
103 | }
104 |
105 | extension AdjacencyMatrix: BidirectionalGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.IncomingEdges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:225:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | extension AdjacencyMatrix: AdjacencyGraph {
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:223:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
221 | }
222 |
223 | extension AdjacencyMatrix: AdjacencyGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<AdjacencyMatrix.Vertex>')
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:71:49: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 |
70 | @inlinable
71 | public var vertexCount: Int { verticesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | }
73 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:76:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | extension AdjacencyMatrix: EdgeListGraph {
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:79:44: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
79 | public var edgeCount: Int { edgesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
80 | }
81 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:85:55: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
86 | var result: OrderedSet<Edge> = []
87 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:86:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:86:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:89:51: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
89 | if let e = edge(from: vertex, to: verticesStore[j]) { result.updateOrAppend(e) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
90 | }
91 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:89:78: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
89 | if let e = edge(from: vertex, to: verticesStore[j]) { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
90 | }
91 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:96:52: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 |
95 | @inlinable
96 | public func source(of edge: Edge) -> Vertex? { edgesStore[edge]?.source }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 |
98 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:99:57: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 |
98 | @inlinable
99 | public func destination(of edge: Edge) -> Vertex? { edgesStore[edge]?.destination }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 |
101 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:102:81: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 |
101 | @inlinable
102 | public func outDegree(of vertex: Vertex) -> Int { outgoingEdges(of: vertex).count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:108:55: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
109 | var result: OrderedSet<Edge> = []
110 | for i in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:109:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:109:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:112:39: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
112 | if let e = edge(from: verticesStore[i], to: vertex) { result.updateOrAppend(e) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
113 | }
114 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:112:78: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
112 | if let e = edge(from: verticesStore[i], to: vertex) { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
113 | }
114 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:119:80: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
117 |
118 | @inlinable
119 | public func inDegree(of vertex: Vertex) -> Int { incomingEdges(of: vertex).count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
120 | }
121 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:134:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
132 | let e = Edge(_id: nextEdgeId)
133 | nextEdgeId &+= 1
134 | edgesStore[e] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | // Update the O(1) lookup table
136 | edgeLookup[source, default: [:]][destination] = e
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:143:35: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
141 | @inlinable
142 | public mutating func remove(edge: consuming Edge) {
143 | guard let ep = edgesStore.removeValue(forKey: edge) else { return }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
144 | if let i = index(of: ep.source), let j = index(of: ep.destination) { matrix[i][j] = false }
145 | // Update the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:168:23: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
166 | let v = Vertex(_id: nextVertexId)
167 | nextVertexId &+= 1
168 | verticesStore.updateOrAppend(v)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
169 | // Grow matrix
170 | let n = verticesStore.count
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:170:31: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
168 | verticesStore.updateOrAppend(v)
169 | // Grow matrix
170 | let n = verticesStore.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
171 | for i in 0 ..< matrix.count { matrix[i].append(false) }
172 | matrix.append(Array(repeating: false, count: n))
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:57: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:57: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:196:23: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
194 | matrix.remove(at: idx)
195 | for i in 0 ..< matrix.count { matrix[i].remove(at: idx) }
196 | verticesStore.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
197 | }
198 | #else
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:226:57: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
227 | var result: OrderedSet<Vertex> = []
228 | // Outgoing neighbors: row scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:227:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:227:42: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:230:40: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
230 | if matrix[idx][j] { result.updateOrAppend(verticesStore[j]) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
231 | }
232 | // Incoming neighbors: column scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:230:55: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
230 | if matrix[idx][j] { result.updateOrAppend(verticesStore[j]) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
231 | }
232 | // Incoming neighbors: column scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:234:40: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
232 | // Incoming neighbors: column scan
233 | for i in 0 ..< matrix.count {
234 | if matrix[i][idx] { result.updateOrAppend(verticesStore[i]) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
235 | }
236 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:234:55: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
232 | // Incoming neighbors: column scan
233 | for i in 0 ..< matrix.count {
234 | if matrix[i][idx] { result.updateOrAppend(verticesStore[i]) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
235 | }
236 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:28:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
26 | /// Internal storage: maps each vertex to its outgoing edges
27 | @usableFromInline
28 | var adjacency: OrderedDictionary<Vertex, [Edge]>
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
29 |
30 | /// Creates an empty inline graph.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:205:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
203 | extension InlineGraph: VertexListGraph {
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
206 | OrderedSet(adjacency.keys)
207 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:203:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
201 | }
202 |
203 | extension InlineGraph: VertexListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<Vertex>')
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:33:26: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public init() {
33 | self.adjacency = OrderedDictionary()
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:33:26: error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public init() {
33 | self.adjacency = OrderedDictionary()
| `- error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:43:26: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | @inlinable
42 | public init<Edges: Collection<Edge>>(edges: Edges) {
43 | self.adjacency = OrderedDictionary()
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | for edge in edges {
45 | adjacency[edge.source, default: []].append(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:43:26: error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | @inlinable
42 | public init<Edges: Collection<Edge>>(edges: Edges) {
43 | self.adjacency = OrderedDictionary()
| `- error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | for edge in edges {
45 | adjacency[edge.source, default: []].append(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:45:13: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
43 | self.adjacency = OrderedDictionary()
44 | for edge in edges {
45 | adjacency[edge.source, default: []].append(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | // Ensure destination vertex exists even if it has no outgoing edges
47 | if adjacency[edge.destination] == nil {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:47:16: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
45 | adjacency[edge.source, default: []].append(edge)
46 | // Ensure destination vertex exists even if it has no outgoing edges
47 | if adjacency[edge.destination] == nil {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
48 | adjacency[edge.destination] = []
49 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:48:17: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | // Ensure destination vertex exists even if it has no outgoing edges
47 | if adjacency[edge.destination] == nil {
48 | adjacency[edge.destination] = []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | }
50 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:94:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | @inlinable
93 | public mutating func addEdge(_ edge: Edge) -> Edge {
94 | adjacency[edge.source, default: []].append(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | // Ensure destination vertex exists even if it has no outgoing edges
96 | if adjacency[edge.destination] == nil {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:96:12: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | adjacency[edge.source, default: []].append(edge)
95 | // Ensure destination vertex exists even if it has no outgoing edges
96 | if adjacency[edge.destination] == nil {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 | adjacency[edge.destination] = []
98 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:97:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | // Ensure destination vertex exists even if it has no outgoing edges
96 | if adjacency[edge.destination] == nil {
97 | adjacency[edge.destination] = []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
98 | }
99 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:108:24: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | @inlinable
107 | public mutating func remove(edge: consuming Edge) {
108 | if let edges = adjacency[edge.source] {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
109 | adjacency[edge.source] = edges.filter { $0 != edge }
110 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:109:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public mutating func remove(edge: consuming Edge) {
108 | if let edges = adjacency[edge.source] {
109 | adjacency[edge.source] = edges.filter { $0 != edge }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | }
111 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:137:26: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | @inlinable
136 | public init() {
137 | self.adjacency = OrderedDictionary()
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
138 | }
139 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:137:26: error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | @inlinable
136 | public init() {
137 | self.adjacency = OrderedDictionary()
| `- error: initializer 'init()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
138 | }
139 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:184:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
182 | @inlinable
183 | public func outgoingEdges(of vertex: Vertex) -> [Edge] {
184 | adjacency[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
185 | }
186 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:199:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
197 | @inlinable
198 | public func outDegree(of vertex: Vertex) -> Int {
199 | adjacency[vertex]?.count ?? 0
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
200 | }
201 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:206:9: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
206 | OrderedSet(adjacency.keys)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
207 | }
208 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:206:9: error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
206 | OrderedSet(adjacency.keys)
| `- error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
207 | }
208 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:206:30: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
204 | @inlinable
205 | public func vertices() -> OrderedSet<Vertex> {
206 | OrderedSet(adjacency.keys)
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
207 | }
208 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:211:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
209 | @inlinable
210 | public var vertexCount: Int {
211 | adjacency.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
212 | }
213 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:19: error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:26: error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:220:34: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
218 | @inlinable
219 | public func edges() -> [Edge] {
220 | adjacency.values.flatMap { $0 }
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
221 | }
222 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:19: error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: property 'values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:26: error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: cannot use conformance of 'OrderedDictionary<Key, Value>.Values' to 'Sequence' here; 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:36: error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: type alias 'Element' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:36: error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: struct 'Values' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:225:36: error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | @inlinable
224 | public var edgeCount: Int {
225 | adjacency.values.reduce(0) { $0 + $1.count }
| `- error: generic struct 'OrderedDictionary' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | }
227 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:239:12: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
237 | @inlinable
238 | public mutating func addVertex(_ vertex: Vertex) -> Vertex {
239 | if adjacency[vertex] == nil {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
240 | adjacency[vertex] = []
241 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:240:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
238 | public mutating func addVertex(_ vertex: Vertex) -> Vertex {
239 | if adjacency[vertex] == nil {
240 | adjacency[vertex] = []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
241 | }
242 | return vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:253:19: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
251 | @inlinable
252 | public mutating func remove(vertex: consuming Vertex) {
253 | adjacency.removeValue(forKey: vertex)
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:255:30: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
253 | adjacency.removeValue(forKey: vertex)
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
256 | adjacency[key]?.removeAll { edge in
257 | edge.destination == vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:255:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
253 | adjacency.removeValue(forKey: vertex)
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
256 | adjacency[key]?.removeAll { edge in
257 | edge.destination == vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:255:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
253 | adjacency.removeValue(forKey: vertex)
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
256 | adjacency[key]?.removeAll { edge in
257 | edge.destination == vertex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/InlineGraph.swift:256:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
254 | // Remove all edges pointing to this vertex
255 | for key in adjacency.keys {
256 | adjacency[key]?.removeAll { edge in
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
257 | edge.destination == vertex
258 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:74:30: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | var graph = AdjacencyList()
73 |
74 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:74:30: error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | var graph = AdjacencyList()
73 |
74 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:74:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | var graph = AdjacencyList()
73 |
74 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:77:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
77 | for vertex in uniqueVertices {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
78 | vertexMapping[vertex] = graph.addVertex()
79 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:77:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
75 |
76 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
77 | for vertex in uniqueVertices {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
78 | vertexMapping[vertex] = graph.addVertex()
79 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:3:1: error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
1 | import Collections
2 |
3 | extension EdgeStorage where Edges == OrderedSet<Edge> {
| `- error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
4 | /// Creates a caching wrapper that provides O(1) access to incoming and outgoing edges.
5 | ///
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:44:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 |
43 | @usableFromInline
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:44:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 |
43 | @usableFromInline
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:46:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
47 |
48 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:46:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
45 | @usableFromInline
46 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
47 |
48 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:53:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
51 | /// - Returns: A set of edges originating from the vertex
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | _outgoingEdges[vertex] ?? []
55 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:71:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | /// - Returns: A set of edges terminating at the vertex
70 | @inlinable
71 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | _incomingEdges[vertex] ?? []
73 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:18:15: error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
16 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
17 | /// query the incidence structure of a graph.
18 | public struct CacheInOutEdges<
| `- error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
19 | Base: EdgeStorage
20 | >: EdgeStorage where
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:18:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
16 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
17 | /// query the incidence structure of a graph.
18 | public struct CacheInOutEdges<
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<Base.Edge>')
19 | Base: EdgeStorage
20 | >: EdgeStorage where
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | self.base = base
34 | // Hydrate caches for pre-populated storages
35 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | self.base = base
34 | // Hydrate caches for pre-populated storages
35 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:37:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | for edge in base.edges() {
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:37:49: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | for edge in base.edges() {
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:37:53: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | for edge in base.edges() {
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:38:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:38:54: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:38:58: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | if let (source, destination) = base.endpoints(of: edge) {
37 | _outgoingEdges[source, default: []].updateOrAppend(edge)
38 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:54:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
54 | _outgoingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | }
56 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:54:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
54 | _outgoingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | }
56 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:63:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
61 | @inlinable
62 | public func outDegree(of vertex: Vertex) -> Int {
63 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
64 | }
65 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:72:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | @inlinable
71 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
72 | _incomingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | }
74 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:72:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | @inlinable
71 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
72 | _incomingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | }
74 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:81:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | @inlinable
80 | public func inDegree(of vertex: Vertex) -> Int {
81 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | }
83 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:93:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
95 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:93:41: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
95 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:93:45: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
95 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:94:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | return edge
96 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:94:46: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | return edge
96 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:94:50: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | let edge = base.addEdge(from: source, to: destination)
93 | _outgoingEdges[source, default: []].updateOrAppend(edge)
94 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | return edge
96 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:104:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | public mutating func remove(edge: Edge) {
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | _incomingEdges[destination]?.remove(edge)
106 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:104:37: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | public mutating func remove(edge: Edge) {
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | _incomingEdges[destination]?.remove(edge)
106 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:105:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
105 | _incomingEdges[destination]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | }
107 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:105:42: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | if let (source, destination) = endpoints(of: edge) {
104 | _outgoingEdges[source]?.remove(edge)
105 | _incomingEdges[destination]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | }
107 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:26:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
24 |
25 | @usableFromInline
26 | var _edges: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
27 | @usableFromInline
28 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:38:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | /// Returns all edges in storage.
37 | @inlinable
38 | public func edges() -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | _edges.keys
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:56:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | /// - Returns: A set of edges originating from the vertex
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | _edges.filter { $0.value.source == vertex }.keys
58 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:74:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | /// - Returns: A set of edges terminating at the vertex
73 | @inlinable
74 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | _edges.filter { $0.value.destination == vertex }.keys
76 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:16:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
14 | /// efficient lookup and iteration. It's commonly used as the default
15 | /// edge storage for adjacency list graphs.
16 | public struct OrderedEdgeStorage<Vertex: Hashable>: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<OrderedEdgeStorage<Vertex>.Edge>')
17 | /// An edge in the ordered edge storage.
18 | public struct Edge: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:33:16: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public var edgeCount: Int {
33 | _edges.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:39:16: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
37 | @inlinable
38 | public func edges() -> OrderedSet<Edge> {
39 | _edges.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 | }
41 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:48:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | @inlinable
47 | public func endpoints(of edge: Edge) -> (source: Vertex, destination: Vertex)? {
48 | _edges[edge]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | }
50 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:57:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
57 | _edges.filter { $0.value.source == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | }
59 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:57:53: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
57 | _edges.filter { $0.value.source == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | }
59 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:66:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
64 | @inlinable
65 | public func outDegree(of vertex: Vertex) -> Int {
66 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 | }
68 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:75:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | @inlinable
74 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
75 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | }
77 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:75:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | @inlinable
74 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
75 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | }
77 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:84:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | @inlinable
83 | public func inDegree(of vertex: Vertex) -> Int {
84 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
85 | }
86 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:97:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
95 | let edge = Edge(_id: _nextId)
96 | _nextId &+= 1
97 | _edges[edge] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
98 | return edge
99 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:106:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
104 | @inlinable
105 | public mutating func remove(edge: Edge) {
106 | _edges[edge] = nil
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | }
108 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:27:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
25 |
26 | @usableFromInline
27 | var _vertices: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
28 | @usableFromInline
29 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:39:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
37 | /// Returns all vertices in storage.
38 | @inlinable
39 | public func vertices() -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 | _vertices
41 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:16:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
14 | /// efficient lookup and iteration. It's commonly used as the default
15 | /// vertex storage for adjacency list graphs.
16 | public struct OrderedVertexStorage: VertexStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<OrderedVertexStorage.Vertex>')
17 | /// A vertex in the ordered vertex storage.
18 | public struct Vertex: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:34:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | @inlinable
33 | public var vertexCount: Int {
34 | _vertices.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | }
36 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:49:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
47 | @inlinable
48 | public func contains(_ vertex: Vertex) -> Bool {
49 | _vertices.contains(vertex)
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
50 | }
51 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:59:19: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | let vertex = Vertex(_id: _nextId)
58 | _nextId &+= 1
59 | _vertices.updateOrAppend(vertex)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
60 | return vertex
61 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:68:19: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | @inlinable
67 | public mutating func remove(vertex: Vertex) {
68 | _vertices.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | }
70 |
BUILD FAILURE 6.3 android