摘要: // // main.cpp // BFS_cursive // // Created by 韩雪滢 on 10/23/16. // Copyright © 2016 韩雪滢. All rights reserved. // #include #include #define NUM_VERTEX 10 struct Vertex { char name; i... 阅读全文
posted @ 2016-10-23 19:58 ShellHan 阅读(254) 评论(0) 推荐(0)
摘要: 我只是做了一点微小的工作,比如看了大神的代码然后加了注释,大神的原博客http://www.cnblogs.com/suncoolcat/p/3339508.html 阅读全文
posted @ 2016-10-23 16:20 ShellHan 阅读(227) 评论(0) 推荐(0)
摘要: #include typedef struct node { struct node *next; int vertex; }node; node *G[20]; //heads of linked list int visited[20]; int n; void read_graph(); //create adjacency list void insert... 阅读全文
posted @ 2016-10-23 11:43 ShellHan 阅读(192) 评论(0) 推荐(0)
摘要: // // main.c // BFS // // Created by 韩雪滢 on 10/23/16. // Copyright © 2016 韩雪滢. All rights reserved. // #include #include #define MAX 100 #define initial 1 #define waiting 2 #define visited 3 ... 阅读全文
posted @ 2016-10-23 11:35 ShellHan 阅读(253) 评论(0) 推荐(0)