mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Add code source blocks to the chapter Graph.
Fix "函数" and "方法"
This commit is contained in:
@@ -15,7 +15,7 @@ class Vertex {
|
||||
/* 基于邻接表实现的无向图类 */
|
||||
class GraphAdjList {
|
||||
adjList;
|
||||
/* 构造函数 */
|
||||
/* 构造方法 */
|
||||
constructor(edges) {
|
||||
this.adjList = new Map();
|
||||
// 添加所有顶点和边
|
||||
|
||||
Reference in New Issue
Block a user