//! Frontier management for DAG traversal.
use BTreeSet;
/// A frontier is a set of event IDs representing a boundary in the DAG.
///
/// During comparison, we maintain separate frontiers for subject and comparison,
/// walking them backward simultaneously until they converge or diverge.
pub