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
@@ -9,7 +9,7 @@ sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__))))
from include import *
""" 基于邻接表实现的无向图类 """
""" 基于邻接表实现的无向图类 """
class GraphAdjList:
# 邻接表,key: 顶点,value:该顶点的所有邻接结点
adj_list = {}