Update graph_adjacency_list.java, .cs

This commit is contained in:
krahets
2023-02-15 21:45:35 +08:00
parent 1209261bdd
commit 0fa78e4b3b
3 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ namespace hello_algo.chapter_graph;
/* 基于邻接表实现的无向图类 */
class GraphAdjList
{
// 邻接表 adjList 中的元素是 Vertex 对象
// 邻接表key: 顶点value该顶点的所有邻接结点
Dictionary<Vertex, List<Vertex>> adjList;
/* 构造函数 */