Skip to content

Commit 997a4e3

Browse files
authored
Implement Clone and Debug for MfGraph and _Edge (#159)
1 parent 5be42f0 commit 997a4e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/maxflow.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,14 @@ where
207207
}
208208
}
209209

210-
#[derive(Default)]
210+
#[derive(Clone, Debug, Default)]
211211
pub struct MfGraph<Cap> {
212212
_n: usize,
213213
pos: Vec<(usize, usize)>,
214214
g: Vec<Vec<_Edge<Cap>>>,
215215
}
216216

217+
#[derive(Clone, Debug)]
217218
struct _Edge<Cap> {
218219
to: usize,
219220
rev: usize,

0 commit comments

Comments
 (0)