Than you should create randome vertices, for that you can use rand function. tip: the bool for visited should be a flag on DFS.
確定! 回上一頁