GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 6 / 0 / 6
Functions: 100.0% 2 / 0 / 2
Branches: 100.0% 2 / 0 / 2

src/graph/make_graphr/lib.hpp
Line Branch Exec Source
1 #pragma once
2
3 #include "../ds/graph_c/lib.hpp"
4
5 namespace tifa_libs {
6
7 template <graph_c G>
8 36 CEXP auto make_graphr(G CR g) NE {
9 36 cu32 n = g.vsize();
10 36 G ret(n);
11
2/2
✓ Branch 2 taken 4550793 times.
✓ Branch 3 taken 36 times.
8864080 flt_ (u32, u, 0, n) g.foreach(u, [&](u32 v, auto&&... args) NE { ret.add_arc(v, u, std::forward<decltype(args)>(args)...); });
12 36 ret.build();
13 36 return ret;
14 }
15
16 } // namespace tifa_libs
17