链式向前星

转自一位优秀学姐 很多图论的算法都有一个函数 struct Edge { int to; int w; int next; } edge[N * 2]; int cnt_edge = 0; void add_edge(int from, int to, int w) { edge[cnt_edge].to = to; edge[cnt_edge].w
相关文章
相关标签/搜索