C++模板实现的图的遍历算法

上传者: yan234280533 | 上传时间: 2023-01-11 11:51:49 | 文件大小: 682KB | 文件类型: RAR
基于C++模板,用邻接矩阵的方式,实现了基本的Graph(map)的构建,并实现了深度优先搜索和广度优先搜索,同时加入了测试用的数据读入和写入函数,便于调试和在本代码基础上进行进一步扩充。

文件下载

资源详情

[{"title":"( 23 个子文件 682KB ) C++模板实现的图的遍历算法","children":[{"title":"graph(linjiejuzhen)","children":[{"title":"test_map","children":[{"title":"main.cpp <span style='color:#111;'> 246B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"test_map.exe.intermediate.manifest <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"vc90.idb <span style='color:#111;'> 195.00KB </span>","children":null,"spread":false},{"title":"test_map.exe.embed.manifest <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"test_map.exe.embed.manifest.res <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 6.24KB </span>","children":null,"spread":false},{"title":"MGraph.obj <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 133.66KB </span>","children":null,"spread":false},{"title":"vc90.pdb <span style='color:#111;'> 244.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"MGraph.cpp <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_map.vcproj.FOUNDERT-D0E8B4.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"test_map.vcproj <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"MGraph.h <span style='color:#111;'> 4.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"test_map.ncb <span style='color:#111;'> 2.25MB </span>","children":null,"spread":false},{"title":"test_map.sln <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"1.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_map.ilk <span style='color:#111;'> 571.61KB </span>","children":null,"spread":false},{"title":"test_map.exe <span style='color:#111;'> 58.50KB </span>","children":null,"spread":false},{"title":"test_map.pdb <span style='color:#111;'> 739.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"test_map.suo <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"测试数据.doc <span style='color:#111;'> 84.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明