给定一个图。如何求出所有点双联通分量,并且输出这些点双连通分量内的所有点和边的编号?
input 5 6 1 2 1 3 2 3 3 4 3 5 4 5
output 2 Node: 1 2 3 3 4 5 Edge: 1 2 3 4 5 6