usethiserror::Error;/// Errors returned when building a [`Graph`](crate::Graph).
#[derive(Debug, Error)]pubenumGraphError{#[error("graph is empty")]
EmptyGraph,#[error("cycle detected")]
CycleDetected,#[error("node depends on itself: {0}")]
SelfDependency(String),}