图的存储——邻接表

图例: 代码: #include <bits/stdc++.h> using namespace std; #define maxn 100 //边的定义 typedef struct ENode { int start; int end; int weight; //权重 }*Edge; //邻接点 typedef struct AdjVNode { int AdjV; //点下标
相关文章
相关标签/搜索