-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
151 lines (143 loc) · 4.95 KB
/
Copy pathindex.html
File metadata and controls
151 lines (143 loc) · 4.95 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JGraphT algorithm visualizations</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<style>
:root {
--bg: #0f1115;
--panel: #161a22;
--panel-2: #1c2230;
--ink: #e6e8ef;
--muted: #8a93a6;
--accent: #6cb3ff;
--accent2: #8ee08e;
--warn: #f3c04a;
}
html, body {
background: var(--bg); color: var(--ink); margin: 0;
font: 14px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif;
min-height: 100vh;
}
header {
padding: 12px 18px; border-bottom: 1px solid #232838;
display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
header h1 { font-size: 15px; margin: 0; font-weight: 600; }
header .sub { color: var(--muted); font-size: 12px; }
main {
max-width: 980px; margin: 0 auto; padding: 32px 18px 48px;
}
.intro {
color: var(--muted); font-size: 14px; margin: 0 0 28px;
line-height: 1.6;
}
.intro a { color: var(--accent); text-decoration: none; }
.intro a:hover { text-decoration: underline; }
.grid {
display: grid; gap: 14px;
grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
.card {
display: block; text-decoration: none; color: var(--ink);
background: var(--panel); border: 1px solid #232838; border-radius: 12px;
padding: 18px 20px;
transition: border-color 0.15s, background 0.15s;
}
.card:hover {
border-color: var(--accent);
background: var(--panel-2);
}
.card.coming {
opacity: 0.55; cursor: default;
}
.card.coming:hover {
border-color: #232838; background: var(--panel);
}
.card h2 {
margin: 0 0 4px; font-size: 16px; font-weight: 600;
display: flex; align-items: center; gap: 10px;
}
.card .badge {
font-size: 10px; padding: 2px 8px; border-radius: 999px;
background: var(--panel-2); color: var(--muted);
font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
border: 1px solid #2c3447;
}
.card .badge.live { color: var(--accent2); border-color: #2d4a35; }
.card .badge.soon { color: var(--warn); border-color: #4a3c1f; }
.card .desc {
color: var(--muted); font-size: 13px; line-height: 1.55;
margin: 6px 0 10px;
}
.card .algos {
color: var(--muted); font-size: 12px; line-height: 1.7;
}
.card .algos code {
background: var(--panel-2); padding: 1px 6px; border-radius: 4px;
color: var(--ink); font-size: 11px;
}
footer {
text-align: center; padding: 24px 18px; color: var(--muted);
font-size: 11px; border-top: 1px solid #232838;
}
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted #4a5066; }
footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
</style>
</head>
<body>
<header>
<h1>JGraphT algorithm visualizations</h1>
<span class="sub">Step-by-step animations for selected algorithms in <a href="https://jgrapht.org/" style="color:var(--muted)">JGraphT</a></span>
</header>
<main>
<p class="intro">
Interactive teaching visualizations for graph algorithms implemented in
<a href="https://jgrapht.org/">JGraphT</a>. Each page is a single self-contained
HTML file with no external dependencies. Pick a topic below.
</p>
<div class="grid">
<a class="card" href="/shortest-paths/">
<h2>Shortest paths <span class="badge live">live</span></h2>
<p class="desc">
K-shortest paths, single-pair shortest path, and the all-paths
enumeration prune — three side-by-side modes comparing baseline vs.
optimized variants.
</p>
<div class="algos">
<code>Yen</code> · <code>Eppstein</code> ·
<code>Bounded-pruned Yen</code> · <code>Dijkstra</code> ·
<code>A*</code> · <code>AllDirectedPaths</code> +
forward pruning
</div>
</a>
<a class="card" href="/hamiltonian/">
<h2>Hamiltonian path <span class="badge live">live</span></h2>
<p class="desc">
Side-by-side comparison of exact NP solvers vs. the polynomial
DAG-restricted case. Vanilla backtracking vs. the JGraphT solver
(five necessary-condition prechecks, MRV ordering, reachability
prune) on the same input.
</p>
<div class="algos">
<code>Backtracking</code> (vanilla) ·
<code>Backtracking</code> + connectivity / degree / cut-vertex /
bridge-tree / SCC prechecks + MRV + reachability prune ·
<code>DAG longest-path</code> ·
<code>Held-Karp</code> (subset DP) <em>(coming)</em>
</div>
</a>
</div>
</main>
<footer>
<a href="https://github.com/jgrapht/jgrapht-algo-visualization">Source on GitHub</a>
·
<a href="https://groups.google.com/g/jgrapht-dev">Discussion (jgrapht-dev)</a>
·
Dual-licensed LGPL-2.1-or-later OR EPL-2.0
</footer>
</body>
</html>