链式前项星建图

来源:互联网 发布:怎么关淘宝店铺 编辑:程序博客网 时间:2024/06/05 17:35
void addedge(int from , int t){    nxt[++tot] = ver[from];    to[tot] = t;    ver[from] = tot;}
for(int i = ver[o] ; i ; i = nxt[i]){    to[i] //便是与 o 相连的点}
0 0
原创粉丝点击