Skip to content

Commit 5bf63ef

Browse files
authored
Merge pull request kodecocodes#613 from remlostime/dijkstra-swift
[Swift 4] Update Dijkstra
2 parents 1e026d7 + 557d208 commit 5bf63ef

File tree

4 files changed

+64
-6
lines changed

4 files changed

+64
-6
lines changed

Dijkstra Algorithm/Dijkstra.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
//: Playground - noun: a place where people can play
22
import Foundation
33

4+
// last checked with Xcode 9.0b4
5+
#if swift(>=4.0)
6+
print("Hello, Swift 4!")
7+
#endif
8+
49
var vertices: Set<Vertex> = Set()
510

611
func createNotConnectedVertices() {

Dijkstra Algorithm/VisualizedDijkstra.playground/Contents.swift

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
*/
99
import UIKit
1010
import PlaygroundSupport
11+
12+
// last checked with Xcode 9.0b4
13+
#if swift(>=4.0)
14+
print("Hello, Swift 4!")
15+
#endif
16+
1117
/*:
1218
First of all, let's set up colors for our window and graph. The visited color will be applied to visited vertices. The checking color will be applied to an edge and an edge neighbor every time the algorithm is checking some vertex neighbors. And default colors are just initial colors for elements.
1319
*/

Dijkstra Algorithm/VisualizedDijkstra.playground/timeline.xctimeline

-6
This file was deleted.

swift-algorithm-club.xcworkspace/contents.xcworkspacedata

+53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)