Skip to content

Commit 4f48685

Browse files
authored
Implement Clone and Debug for MinCostFlowGraph and _Edge (#162)
1 parent 2bb238f commit 4f48685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mincostflow.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub struct MinCostFlowEdge<T> {
88
pub cost: T,
99
}
1010

11+
#[derive(Clone, Debug)]
1112
pub struct MinCostFlowGraph<T> {
1213
pos: Vec<(usize, usize)>,
1314
g: Vec<Vec<_Edge<T>>>,
@@ -172,6 +173,7 @@ where
172173
}
173174
}
174175

176+
#[derive(Clone, Debug)]
175177
struct _Edge<T> {
176178
to: usize,
177179
rev: usize,

0 commit comments

Comments
 (0)