链式前向星可以这样写吗?
void addedge(int u, int v) { edge[cnt].v = v; edge[cnt].nxt = head[u]; head[u] = cnt++; }