feat: add Swift codes for graph_traversal article (#378)

* feat: add Swift codes for graph_traversal article

* refactor: rename parameters

* Update graph_dfs.swift

---------

Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
nuomi1
2023-02-22 19:41:31 +08:00
committed by GitHub
parent f2d2cca5f1
commit c6c4c9d997
7 changed files with 136 additions and 13 deletions

View File

@ -79,7 +79,7 @@ BFS 常借助「队列」来实现。队列具有“先入先出”的性质,
=== "Swift"
```swift title="graph_bfs.swift"
[class]{}-[func]{graphBFS}
```
=== "Zig"
@ -196,7 +196,9 @@ BFS 常借助「队列」来实现。队列具有“先入先出”的性质,
=== "Swift"
```swift title="graph_dfs.swift"
[class]{}-[func]{dfs}
[class]{}-[func]{graphDFS}
```
=== "Zig"