Skip to content

Commit 235019e

Browse files
committed
Match the implementations
1 parent cd64aff commit 235019e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

17.graph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct Grid<T> {
4949

5050
/// Precondition: v must be adjacent to u
5151
func edgeWeight( from u: Index, to v: Index) -> Int {
52-
if let d = at(u) as? Int {
52+
if let d = at(v) as? Int {
5353
return d
5454
}
5555
return 0

0 commit comments

Comments
 (0)