Skip to content

Commit 87b641d

Browse files
sbeitzelCopilot
andauthored
Update Sources/SwiftGraph/Graph.swift
Update documentation as suggested. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f5631f0 commit 87b641d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftGraph/Graph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ extension Graph {
364364
/// - parameter fromIndex: the index of the starting vertex
365365
/// - parameter toIndex: the index of the destination vertex
366366
/// - parameter visited: a set of vertex indices which will be considered to have been visited already
367-
/// - parameter reachability: a dictionary where the key is a vertex index and the value is whether or not a path exists from that vertex to the destination
367+
/// - parameter reachability: a dictionary mapping vertex indices to a Boolean indicating whether a path exists (`true`) or does not exist (`false`) from that vertex to the destination
368368
/// - returns: the number of paths that exist going from the start to the destinatin
369369
func countPaths(fromIndex startIndex: Int,
370370
toIndex endIndex: Int,

0 commit comments

Comments
 (0)