圖的存儲——鄰接表

圖例: 代碼: #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; //點下標
相關文章
相關標籤/搜索