5

有向图无向图

 3 years ago
source link: https://zwkang.com/?p=85
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

画出下面无向图的邻接矩阵和邻接表(参考课件),列出该图的广度优先遍历和深度优先遍历结果。(选定A为出发点进行遍历)

广度优先遍历结果:ABCDE
深度优先遍历结果:ABEDC

Comments

发表评论 取消回复

电子邮件地址不会被公开。 必填项已用*标注

评论

姓名 *

电子邮件 *

站点

在此浏览器中保存我的名字、电邮和网站。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK