Safe Haskell | None |
---|---|
Language | GHC2021 |
Internal CSR for MinCostFlow
.
Since: 1.0.0
Synopsis
- data Csr s cap cost = Csr {}
- build :: (HasCallStack, Num cap, Unbox cap, Unbox cost, Num cost, PrimMonad m) => Int -> Vector (Int, Int, cap, cap, cost) -> m (Vector Int, Csr (PrimState m) cap cost)
- adj :: (HasCallStack, Num cap, Unbox cap, Unbox cost) => Csr s cap cost -> Int -> Vector (Int, Int, cost)