打印出有向图中的所有环(C++)

上传者: Rucimafan1 | 上传时间: 2019-12-21 21:01:02 | 文件大小: 746KB | 文件类型: zip
该算法是实现打印出有向图中的所有环,图采用邻接表表示,然后用一个栈来遍历,用一个向量来查找是否有环……有点不足的是有些情况会出现重复的环……我把一个工程直接放在里面,顶点输入时按数字编号,如顶点0,1,2,3 如:输入顶点数:4,输入边数:2;输入边:1 2 2 3等两条边

文件下载

资源详情

[{"title":"( 20 个子文件 746KB ) 打印出有向图中的所有环(C++)","children":[{"title":"cycle","children":[{"title":"cycle.ncb <span style='color:#111;'> 2.24MB </span>","children":null,"spread":false},{"title":"cycle.suo <span style='color:#111;'> 11.00KB </span>","children":null,"spread":false},{"title":"cycle","children":[{"title":"main.cpp <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"realize.cpp <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"cycle.vcproj.Zhang-PC.Administrator.user <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"graph.h <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"cycle.vcproj <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"cycle.exe.embed.manifest.res <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"cycle.exe.embed.manifest <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"vc90.idb <span style='color:#111;'> 219.00KB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 7.38KB </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;'> 80.26KB </span>","children":null,"spread":false},{"title":"cycle.exe.intermediate.manifest <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"vc90.pdb <span style='color:#111;'> 244.00KB </span>","children":null,"spread":false},{"title":"realize.obj <span style='color:#111;'> 228.48KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"cycle.ilk <span style='color:#111;'> 1.22MB </span>","children":null,"spread":false},{"title":"cycle.pdb <span style='color:#111;'> 971.00KB </span>","children":null,"spread":false},{"title":"cycle.exe <span style='color:#111;'> 78.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"cycle.sln <span style='color:#111;'> 881B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • huangwwu :
    你这个没法找到所有的环
    2015-09-21
  • zxcvb_a :
    这个没有成功
    2014-04-16
  • u012758964 :
    写的很详细,不错
    2013-12-20
  • shyanyang :
    谢谢,找了很久才找到。
    2012-11-26
  • wyn_happy :
    很需要,谢谢~就是格式比较特殊,还需要下载软件来打开,比较麻烦~
    2012-02-23

免责申明

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