section ‹General DFS with Hooks› theory Param_DFS imports CAVA_Base.CAVA_Base CAVA_Automata.Digraph "Misc/DFS_Framework_Refine_Aux" begin text ‹ We define a general DFS algorithm, which is parameterized over hook functions at certain events during the DFS. › subsection ‹State and Parameterization› (* A DFS with timing and a stack, phrased iteratively *) text ‹The state of the general DFS. Users may inherit from this state using the record package's inheritance support. ›