Skip to content

Commit eea0b2a

Browse files
authored
Merge pull request #157 from NotLeonian/feature/add-clone-debug-internal-scc
Implement `Clone` and `Debug` for `internal_scc::SccGraph` and `Debug` for `_Edge`
2 parents a13e68f + 6741b1a commit eea0b2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal_scc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ where
2727
}
2828
}
2929

30-
#[derive(Copy, Clone)]
30+
#[derive(Copy, Clone, Debug)]
3131
struct _Edge {
3232
to: usize,
3333
}
3434

3535
/// Reference:
3636
/// R. Tarjan,
3737
/// Depth-First Search and Linear Graph Algorithms
38+
#[derive(Clone, Debug)]
3839
pub struct SccGraph {
3940
n: usize,
4041
edges: Vec<(usize, _Edge)>,

0 commit comments

Comments
 (0)