Graph Traversals as Universal Constructions
Siddharth Bhaskar, Robin Kaarsgaard

TL;DR
This paper provides a categorical framework for understanding depth-first and breadth-first graph traversals as universal constructions, offering a new perspective on their theoretical foundations.
Contribution
It introduces functors from categories of edge-ordered directed graphs to categories of transitively closed graphs, characterizing traversals as compositions of universal constructions.
Findings
Categorical characterization of DFS and BFS as universal constructions
Functors from edge-ordered graphs to transitively closed graphs
Recovery of linear vertex orders via inclusion functors
Abstract
We exploit a decomposition of graph traversals to give a novel characterization of depth-first and breadth-first traversals as universal constructions. Specifically, we introduce functors from two different categories of edge-ordered directed graphs into two different categories of transitively closed edge-ordered graphs; one defines the lexicographic depth-first traversal and the other the lexicographic breadth-first traversal. We show that each functor factors as a composition of universal constructions, and that the usual presentation of traversals as linear orders on vertices can be recovered with the addition of an inclusion functor. Finally, we raise the question of to what extent we can recover search algorithms from the categorical description of the traversal they compute.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
