|
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"/> |
5 | 5 | <title>DFS / BFS</title> |
| 6 | + <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> |
6 | 7 | <link rel="stylesheet" type="text/css" href="css/style.css"/> |
7 | 8 |
|
8 | | - <script>var algorithm = "DFS/BFS"; |
9 | | - var collapse = "YES"; </script> |
10 | 9 | <script src="js/jquery.min.js"></script> |
11 | 10 | <script src="js/bootstrap.min.js"></script> |
| 11 | + |
| 12 | + <script>var algorithm = "DFS/BFS"; |
| 13 | + var collapse = "YES"; </script> |
12 | 14 | <script src="js/graphStructureController.js"></script> |
13 | 15 | <script src="js/eventManager.js"></script> |
14 | 16 | <script src="js/adjacencyList.js"></script> |
|
22 | 24 | <svg id="edgeSvg" height="100%" width="100%"></svg> |
23 | 25 | </div> |
24 | 26 | <div id="queueUI"></div> |
| 27 | +<br> |
25 | 28 | <div id="buttonDiv" class="bottom-container left-bottom"> |
26 | | - <button id="dfs" class="my-button" onclick="startDfs(0);">DFS</button> |
27 | | - <button id="bfs" class="my-button" onclick="startBfs(0);">BFS</button> |
28 | | - <button id="reset" class="my-button" onclick="resetAll();">Reset</button> |
| 29 | + <button id="dfs" class="btn btn-primary" onclick="helpStartDfs();">DFS</button> |
| 30 | + <button id="bfs" class="btn btn-primary" onclick="helpStartBfs();">BFS</button> |
| 31 | + <button id="reset" class="btn btn-primary" onclick="resetAll();">Reset</button> |
| 32 | + <br> |
| 33 | + <br> |
| 34 | + <button id="backward" class="btn btn-primary" onclick="manager.previous();">Previous</button> |
| 35 | + <button id="forward" class="btn btn-primary" onclick="manager.next();">Next</button> |
| 36 | + <button id="Test1" class="btn btn-primary" onclick="exampleGraphStar();">Example1</button> |
| 37 | + <button id="Test2" class="btn btn-primary" onclick="exampleGraphAllConnected();">Example2</button> |
29 | 38 | <br> |
30 | 39 | <br> |
31 | | - <button id="prev" class="my-button" onclick="manager.previous();">Previous</button> |
32 | | - <button id="next" class="my-button" onclick="manager.next();">Next</button> |
33 | | - <button id="Test1" class="my-button" onclick="exampleGraphStar();">Example1</button> |
34 | | - <button id="Test2" class="my-button" onclick="exampleGraphAllConnected();">Example2</button> |
| 40 | + <button id="slow" class="btn btn-success" onclick="manager.slow()">Slow</button> |
| 41 | + <button id="medium" class="btn btn-success" onclick="manager.medium()">Medium</button> |
| 42 | + <button id="fast" class="btn btn-success" onclick="manager.fast()">Fast</button> |
35 | 43 |
|
36 | 44 | </div> |
37 | 45 | <div id="bottomRight" class="bottom-container right-bottom"> |
|
0 commit comments