Add python code of Heap and Graph to docs.

This commit is contained in:
krahets
2023-02-23 20:23:49 +08:00
parent 1f4dba4845
commit 73c8920c6b
5 changed files with 64 additions and 19 deletions

View File

@ -43,7 +43,7 @@ BFS 常借助「队列」来实现。队列具有“先入先出”的性质,
=== "Python"
```python title="graph_bfs.py"
[class]{}-[func]{graph_bfs}
```
=== "Go"
@ -160,7 +160,9 @@ BFS 常借助「队列」来实现。队列具有“先入先出”的性质,
=== "Python"
```python title="graph_dfs.py"
[class]{}-[func]{dfs}
[class]{}-[func]{graph_dfs}
```
=== "Go"