Skip to content

Instantly share code, notes, and snippets.

@marciok
marciok / dijkstra.swift
Created June 22, 2016 21:15
Dijkstra's algorithm in Swift 3
/**
Dijkstra's algorithm in Swift 3
The idea is to create a more protocol oriented implementation.
Note: It could use some optimizations, if you wish to use in production.
*/
import Foundation