//! Traits for building reusable generators on top of `hpdg`.
//!
//! The traits in this module are intentionally lightweight: they are handy for your own
//! abstractions, but they stay out of the way if you prefer ad-hoc functions.
/// A simple trait for stateful generators that yield one value at a time.
/// A specialized trait for graph generators.
///
/// Closures returning [`crate::graph::Graph`] automatically implement this trait.