From 40627db23f73e4ab6db94ae980b939bf66d20e6d Mon Sep 17 00:00:00 2001 From: NotLeonian <75620009+NotLeonian@users.noreply.github.com> Date: Fri, 4 Apr 2025 21:36:30 +0900 Subject: [PATCH] Implement Clone and Debug for MinCostFlowGraph and _Edge --- src/mincostflow.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mincostflow.rs b/src/mincostflow.rs index d8e2c71..eb961d2 100644 --- a/src/mincostflow.rs +++ b/src/mincostflow.rs @@ -8,6 +8,7 @@ pub struct MinCostFlowEdge { pub cost: T, } +#[derive(Clone, Debug)] pub struct MinCostFlowGraph { pos: Vec<(usize, usize)>, g: Vec>>, @@ -172,6 +173,7 @@ where } } +#[derive(Clone, Debug)] struct _Edge { to: usize, rev: usize,