Skip to content

Commit 1951e8c

Browse files
authored
Merge pull request #595 from remlostime/tree-swift
[Swift 4] Update Minimum Spanning Tree(unweighted)
2 parents 7ff4c85 + c7d2584 commit 1951e8c

File tree

1 file changed

+5
-0
lines changed
  • Minimum Spanning Tree (Unweighted)/MinimumSpanningTree.playground/Pages/Minimum spanning tree example.xcplaygroundpage

1 file changed

+5
-0
lines changed

Minimum Spanning Tree (Unweighted)/MinimumSpanningTree.playground/Pages/Minimum spanning tree example.xcplaygroundpage/Contents.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// last checked with Xcode 9.0b4
2+
#if swift(>=4.0)
3+
print("Hello, Swift 4!")
4+
#endif
5+
16
func breadthFirstSearchMinimumSpanningTree(_ graph: Graph, source: Node) -> Graph {
27
let minimumSpanningTree = graph.duplicate()
38

0 commit comments

Comments
 (0)