| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <tuple> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "task/include/task.hpp" | ||
| 8 | |||
| 9 | namespace vasiliev_m_bellman_ford_crs { | ||
| 10 | |||
| 11 | using WeightType = int; // веса ребер - целое число | ||
| 12 | |||
| 13 | ✗ | struct CRSGraph { | |
| 14 | std::vector<int> row_ptr; | ||
| 15 | std::vector<int> col_ind; | ||
| 16 | std::vector<WeightType> vals; | ||
| 17 | int source = 0; | ||
| 18 | }; | ||
| 19 | |||
| 20 | using InType = CRSGraph; | ||
| 21 | using OutType = std::vector<WeightType>; | ||
| 22 | using TestType = std::tuple<int, std::string>; | ||
| 23 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 24 | |||
| 25 | } // namespace vasiliev_m_bellman_ford_crs | ||
| 26 |