GRAPH THEORY

In 1736 Euler answered a strolling puzzle posed by the people of Königsberg and accidentally founded an entire branch of mathematics. Those seven bridges cannot be walked once each, because all four landmasses meet an odd number of bridges, whereas a single-stroke route tolerates at most two odd vertices. From that parity remark grew a whole family of problems: colouring regions so no two neighbours match, BFS spreading in distance layers while DFS plunges down one branch and backtracks, and Kruskal picking the cheapest edges that close no cycle to build a minimum spanning tree.

▸ Placing the vertices…
▸ Connecting edges & counting degrees
▸ Loading the Seven Bridges of Königsberg
▸ Calibrating Euler · BFS/DFS · coloring
▸ Building the spanning tree & bipartite graph
▸ Ready — Online. ✅
0%
⌂ Mathematics

Simulation room Graph theory

Graph Theory
Online
V · E · degree · Euler
Structure & metrics
🕸️ Sample graph
number of odd-degree vertices
Vertices |V|—
Edges |E|—
Odd-degree vertices—
Maximum degree—
Eulerian path?—
Colors (χ)—
Tip
Each dot is a vertex, each line is an edge. The number on a vertex's shoulder = its degree (green = even, red = odd). Traversing every edge "in one stroke" (an Eulerian path) is only possible with 0 or 2 odd-degree vertices.
—
Click a vertex to see its degree · pick a scenario on the right to run an algorithm
Your browser has canvas disabled.
|V| · |E| · odd-degree vertex count over time |E||V|odd vertices
About Graph Theory

In 1736 Euler answered a strolling puzzle posed by the people of Königsberg and accidentally founded an entire branch of mathematics. Those seven bridges cannot be walked once each, because all four landmasses meet an odd number of bridges, whereas a single-stroke route tolerates at most two odd vertices. From that parity remark grew a whole family of problems: colouring regions so no two neighbours match, BFS spreading in distance layers while DFS plunges down one branch and backtracks, and Kruskal picking the cheapest edges that close no cycle to build a minimum spanning tree.

Related topics in Mathematics