graph-dfs
A minimal, dependency-free crate to compute connected components via iterative DFS on any CSR-style graph.
Features
- Generic
GraphAccesstrait for plugging in your own graph type - True O(V + E) connected-component labeling via iterative DFS
- No dependencies beyond
std– works inno_stdcontexts - Zero allocations during traversal aside from the output buffer
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Quick Example
use ;
/// A simple CSR-style graph:
Documentation
See the full API docs on docs.rs.
License
See the LICENSE file for details.