mirror of
https://github.com/oxyanyano/2022-WangDao-CS-DS-Notes.git
synced 2026-02-02 18:29:00 +08:00
Update 6.2图的存储结构.md
This commit is contained in:
12
6.2图的存储结构.md
12
6.2图的存储结构.md
@@ -7,7 +7,7 @@
|
||||
③十字链表:链式存储(存储有向图)
|
||||
④邻接多重表:链式存储(存储无向图)
|
||||
|
||||

|
||||

|
||||
|
||||
### 二、邻接矩阵法
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#### 1.1普通图的领接矩阵法:
|
||||
|
||||

|
||||

|
||||
|
||||
```c
|
||||
#define MaxVertexNum 100 //顶点数目最大值
|
||||
@@ -51,7 +51,7 @@ typedef struct{
|
||||
|
||||
#### 2.带权图的领接矩阵法
|
||||
|
||||

|
||||

|
||||
|
||||
```c
|
||||
#define MaxVertexNum 100 //顶点数目最大值
|
||||
@@ -78,7 +78,7 @@ typedef struct{
|
||||
|
||||
与树的孩子表示法很像
|
||||
|
||||

|
||||

|
||||
|
||||
```c
|
||||
#define MaxVertexNum 100 //顶点数目最大值
|
||||
@@ -106,7 +106,7 @@ typedef struct{
|
||||
|
||||
解决了邻接表法的找入边难的问题。
|
||||
|
||||

|
||||

|
||||
|
||||
### 五、邻接多重表
|
||||
|
||||
@@ -116,5 +116,5 @@ typedef struct{
|
||||
|
||||
删除边、删除结点等操作很方便。
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user