-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.py
More file actions
26 lines (23 loc) · 695 Bytes
/
App.py
File metadata and controls
26 lines (23 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#coding:utf-8
"""
------------------------------------------------
@File Name : App
@Function :
@Author : Minux
@Date : 2018/10/28
@Revised Date : 2018/10/28
------------------------------------------------
"""
from algorithm_and_data_structure.DFS.Node import Node
from algorithm_and_data_structure.DFS.DepthFirstSearch import DFS
if __name__ == '__main__':
node_1 = Node('A')
node_2 = Node('B')
node_3 = Node('C')
node_4 = Node('D')
node_5 = Node('E')
node_1.adjcent_list.append(node_2)
node_1.adjcent_list.append(node_3)
node_2.adjcent_list.append(node_4)
node_4.adjcent_list.append(node_5)
DFS(node_1)