@@ -231,7 +231,7 @@ class csr_row_values<EV, void, GV, VId, EIndex, Alloc> {
231
231
using value_type = void ;
232
232
using size_type = size_t ; // VId;
233
233
234
- public: // Properties
234
+ public: // Properties
235
235
[[nodiscard]] constexpr size_type size () const noexcept { return 0 ; }
236
236
[[nodiscard]] constexpr bool empty () const noexcept { return true ; }
237
237
[[nodiscard]] constexpr size_type capacity () const noexcept { return 0 ; }
@@ -343,7 +343,7 @@ class csr_col_values<void, VV, GV, VId, EIndex, Alloc> {
343
343
using value_type = void ;
344
344
using size_type = size_t ; // VId;
345
345
346
- public: // Properties
346
+ public: // Properties
347
347
[[nodiscard]] constexpr size_type size () const noexcept { return 0 ; }
348
348
[[nodiscard]] constexpr bool empty () const noexcept { return true ; }
349
349
[[nodiscard]] constexpr size_type capacity () const noexcept { return 0 ; }
@@ -516,7 +516,7 @@ class compressed_graph_base
516
516
}
517
517
518
518
public:
519
- public: // Operations
519
+ public: // Operations
520
520
void reserve_vertices (size_type count) {
521
521
row_index_.reserve (count + 1 ); // +1 for terminating row
522
522
row_values_base::reserve (count);
@@ -803,13 +803,13 @@ class compressed_graph_base
803
803
private: // CPO properties
804
804
friend constexpr vertices_type vertices (compressed_graph_base& g) {
805
805
if (g.row_index_ .empty ())
806
- return vertices_type (g.row_index_ ); // really empty
806
+ return vertices_type (g.row_index_ ); // really empty
807
807
else
808
808
return vertices_type (g.row_index_ .begin (), g.row_index_ .end () - 1 ); // don't include terminating row
809
809
}
810
810
friend constexpr const_vertices_type vertices (const compressed_graph_base& g) {
811
811
if (g.row_index_ .empty ())
812
- return const_vertices_type (g.row_index_ ); // really empty
812
+ return const_vertices_type (g.row_index_ ); // really empty
813
813
else
814
814
return const_vertices_type (g.row_index_ .begin (), g.row_index_ .end () - 1 ); // don't include terminating row
815
815
}
@@ -826,15 +826,15 @@ class compressed_graph_base
826
826
friend constexpr edges_type edges (graph_type& g, vertex_type& u) {
827
827
static_assert (ranges::contiguous_range<row_index_vector>, " row_index_ must be a contiguous range to get next row" );
828
828
vertex_type* u2 = &u + 1 ;
829
- assert (static_cast <size_t >(u2 - &u) < g.row_index_ .size ()); // in row_index_ bounds?
829
+ assert (static_cast <size_t >(u2 - &u) < g.row_index_ .size ()); // in row_index_ bounds?
830
830
assert (static_cast <size_t >(u.index ) <= g.col_index_ .size () &&
831
831
static_cast <size_t >(u2->index ) <= g.col_index_ .size ()); // in col_index_ bounds?
832
832
return edges_type (g.col_index_ .begin () + u.index , g.col_index_ .begin () + u2->index );
833
833
}
834
834
friend constexpr const_edges_type edges (const graph_type& g, const vertex_type& u) {
835
835
static_assert (ranges::contiguous_range<row_index_vector>, " row_index_ must be a contiguous range to get next row" );
836
836
const vertex_type* u2 = &u + 1 ;
837
- assert (static_cast <size_t >(u2 - &u) < g.row_index_ .size ()); // in row_index_ bounds?
837
+ assert (static_cast <size_t >(u2 - &u) < g.row_index_ .size ()); // in row_index_ bounds?
838
838
assert (static_cast <size_t >(u.index ) <= g.col_index_ .size () &&
839
839
static_cast <size_t >(u2->index ) <= g.col_index_ .size ()); // in col_index_ bounds?
840
840
return const_edges_type (g.col_index_ .begin () + u.index , g.col_index_ .begin () + u2->index );
0 commit comments