File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import struct OrderedCollections.OrderedSet
25
25
///
26
26
/// - Complexity: O(v + e) where (v, e) are the number of vertices and edges
27
27
/// reachable from the input nodes via the relation.
28
- public func DFS < T: Hashable > (
28
+ public func depthFirstSearch < T: Hashable > (
29
29
_ nodes: [ T ] ,
30
30
successors: ( T ) throws -> [ T ] ,
31
31
onUnique: ( T ) -> Void ,
@@ -54,4 +54,4 @@ public func DFS<T: Hashable>(
54
54
}
55
55
}
56
56
}
57
- }
57
+ }
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ extension ModulesGraph {
69
69
var allNodes = [ GraphLoadingNode] ( )
70
70
71
71
// Cycles in dependencies don't matter as long as there are no target cycles between packages.
72
- DFS ( inputManifests. map { KeyedPair ( $0, key: $0. id) } ) {
72
+ depthFirstSearch ( inputManifests. map { KeyedPair ( $0, key: $0. id) } ) {
73
73
$0. item. requiredDependencies. compactMap { dependency in
74
74
manifestMap [ dependency. identity] . map { ( manifest, fileSystem) in
75
75
KeyedPair (
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import struct Basics.InternalError
16
16
import class Basics. ObservabilityScope
17
17
import struct Basics. SwiftVersion
18
18
import func Basics. temp_await
19
- import func Basics. DFS
19
+ import func Basics. depthFirstSearch
20
20
import class Basics. ThreadSafeKeyValueStore
21
21
import class Dispatch. DispatchGroup
22
22
import struct Dispatch. DispatchTime
@@ -533,7 +533,7 @@ extension Workspace {
533
533
}
534
534
535
535
var deduplication = [ PackageIdentity: Int] ( )
536
- try DFS (
536
+ try depthFirstSearch (
537
537
manifestGraphRoots,
538
538
successors: successorManifests
539
539
) { pair in
You can’t perform that action at this time.
0 commit comments