strongly_connected_components/internal/
node.rs

1/// Represents a single node of the graph.
2/// A node can be created by calling [`Graph::new_node()`](crate::Graph::new_node).
3#[derive(Copy, Clone, Eq, PartialEq, Hash)]
4pub struct Node {
5    pub(super) id: usize,
6}
7
8impl std::fmt::Debug for Node {
9    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10        write!(f, "Node({})", self.id)
11    }
12}