Graph Theory37 sections · 1633 units
Open in Course

Mail Delivery - Lessons

What you learned from this problem.

Lessons learned:

1.1. Check conditions first: Don't run Hierholzer without verifying even degrees and connectivity.

2.2. Handle undirected edges carefully: Mark both directions when using an edge.

3.3. Edge indexing: Using edge indices makes it easy to mark edges as used.

4.4. Connectivity check: A graph with isolated vertices can still have an Euler circuit among the connected vertices, but you must start from a vertex with edges.

This is the canonical Euler circuit problem. The pattern appears in many variations.