-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindexDfs.html
More file actions
43 lines (36 loc) · 1.34 KB
/
indexDfs.html
File metadata and controls
43 lines (36 loc) · 1.34 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DFS Algorithm Visualizer</title>
<link rel="stylesheet" href="styleDfs.css">
</head>
<body>
<div class="container">
<h1>DFS Algorithm Visualizer</h1>
<label for="node-count">Enter number of nodes (1-7):</label>
<input type="number" id="node-count" min="1" max="7">
<button id="create-graph-button">Create BTree</button>
<div id="node-values-input" style="display: none;">
<h3>Enter node values and connections:</h3>
<div id="node-values-container"></div>
<button id="submit-values-button">Submit</button>
</div>
<div id="svg-container">
<svg id="graph-svg" width="600" height="400"></svg>
</div>
<div id="stack-section">
<h3>Queue:</h3>
<div id="stack-display"></div>
</div>
<div id="traversed-section">
<h3>Traversed Nodes:</h3>
<div id="traversed-display"></div>
</div>
<button id="start-button" style="display: none;">Start DFS</button>
<button id="reset-button">Reset Graph</button>
</div>
<script src="scriptDfs.js"></script>
</body>
</html>