摘要:
//深度优先搜索 从一条路径的起始顶点开始追溯到达最后一个顶点,然后回溯继续追溯下一条路径,直到最后一个顶点,如此N次,直到没有路径为止。//创建图function Graph(v) { this.vertices = v; this.edges = 0; this.adj = []; for (v... 阅读全文
posted @ 2014-11-13 12:16
yuzhongwusan
阅读(789)
评论(0)
推荐(0)
浙公网安备 33010602011771号