Skip to content

Commit 6741b1a

Browse files
committed
Implement Clone and Debug for internal_scc::SccGraph and Debug for _Edge
1 parent 89568c5 commit 6741b1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal_scc.rs

Lines changed: 2 additions & 1 deletion
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)