Skip to content
Permalink
Browse files

Updated MST to Swift 4.2

  • Loading branch information...
inickt committed Oct 12, 2018
1 parent af10fe9 commit acb21c32df8cc6c2ba8c153497902c24a661fff4
@@ -3,11 +3,6 @@
Kruskal's and Prim's algorithms.
*/

// last checked with Xcode 9.0b4
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

func minimumSpanningTreeKruskal<T>(graph: Graph<T>) -> (cost: Int, tree: Graph<T>) {
var cost: Int = 0
var tree = Graph<T>()
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

0 comments on commit acb21c3

Please sign in to comment.
You can’t perform that action at this time.