Skip to content

Commit 27d92a6

Browse files
committed
Fix code snippet
1 parent 72cac4d commit 27d92a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graph/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public mutating func connect(sourceVertex: Vertex<T>, to destinationVertex: Vert
234234
adjacencyMatrix[sourceVertex.index][destinationVertex.index] = weight
235235
}
236236

237-
public func weightFrom(sourceVertex: GraphVertex<T>, toDestinationVertex: GraphVertex<T>) -> Double? {
237+
public func weightFrom(sourceVertex: Vertex<T>, toDestinationVertex: Vertex<T>) -> Double? {
238238
return adjacencyMatrix[sourceVertex.index][toDestinationVertex.index]
239239
}
240240
```

0 commit comments

Comments
 (0)