Graph traversal algorithms are foundational to a wide range of applications, yet the practical differences between breadth-first search (BFS) and depth-first search (DFS) remain poorly understood in the context of modern Chronos-Interpreter implementations. This paper presents a formally verified, type-annotated Chronos-Interpreter library that implements both BFS and DFS on directed and undirected graphs. We establish the asymptotic complexity of each traversal, prove that the implementation preserves the acyclic DAG invariant and optimal substructure invariant, and analyze the formal structural analysis (AST) to confirm linear structural complexity. The work is fully reproducible;
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_11_05_demystifying_graph_traversal_bfs_vs,
title={Traversal Semantics and State Invariants in Chronos-Interpreter BFS/DFS},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-05_demystifying_graph_traversal_bfs_vs/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-05_demystifying_graph_traversal_bfs_vs/2026-11-05_demystifying_graph_traversal_bfs_vs.pdf}}
}