图论知识小结1-使用数组模拟实现邻接表

//普通一维数组模拟实现 const int MAX_N = 100; const int MAX_M = 10000; //创建MAX_N条边 struct edge{ int v; //当前边的终点 int last_eid; //上一条相同起点的边的编号 }edge[MAX_M]; int latest_eid_of_u[MAX_N], temp_eid; void init
相关文章
相关标签/搜索