-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindexUcs.html
More file actions
39 lines (34 loc) · 1.29 KB
/
indexUcs.html
File metadata and controls
39 lines (34 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UCS Visualizer</title>
<link rel="stylesheet" href="styleUcs.css">
</head>
<body>
<div class="container">
<h1>UCS Visualizer with Directed Graph</h1>
<label for="node-count">Number of Nodes:</label>
<input type="number" id="node-count" min="2" max="10" placeholder="Enter nodes (2-10)">
<button id="create-graph-button">Create Graph</button>
<div id="node-inputs" style="display: none;">
<h2>Define Connections and Weights</h2>
<div id="node-connections-container"></div>
<button id="submit-graph-button">Submit Graph</button>
</div>
<svg id="graph-svg" class="graph"></svg>
<div class="controls">
<button id="start-ucs-button" style="display: none;">Start UCS</button>
<button id="reset-button">Reset</button>
</div>
<div class="output">
<h3>Priority Queue:</h3>
<p id="priority-queue"></p>
<h3>Visited Nodes:</h3>
<p id="visited-nodes"></p>
</div>
</div>
<script src="scriptUcs.js"></script>
</body>
</html>