In the adjacency matrix there are two 1 for each edge at b[i][j] and b[j][i] . While creating the list you are adding two nodes to the adj list ...
確定! 回上一頁