@@ -155,9 +155,9 @@ class adjacency_list final {
155155 [[nodiscard]] std::optional<edge_type> get_edge (id_type source_id, id_type target_id) const
156156 requires(traits::c_has_empty_properties<edge_type>)
157157 {
158- const auto & incident_edges = this ->_list [to_idx (source_id)];
159- const auto item_it = std::ranges::find (incident_edges , target_id, &item_type::vertex_id);
160- if (item_it == incident_edges .cend ())
158+ const auto & out_edges = this ->_list [to_idx (source_id)];
159+ const auto item_it = std::ranges::find (out_edges , target_id, &item_type::vertex_id);
160+ if (item_it == out_edges .cend ())
161161 return std::nullopt ;
162162 return std::make_optional<edge_type>(item_it->edge_id , source_id, target_id);
163163 }
@@ -167,11 +167,11 @@ class adjacency_list final {
167167 ) const
168168 requires(traits::c_has_non_empty_properties<edge_type>)
169169 {
170- const auto & incident_edges = this ->_list [to_idx (source_id)];
171- const auto item_it = std::ranges::find (incident_edges , target_id, [](const auto & item) {
170+ const auto & out_edges = this ->_list [to_idx (source_id)];
171+ const auto item_it = std::ranges::find (out_edges , target_id, [](const auto & item) {
172172 return item.vertex_id ;
173173 });
174- if (item_it == incident_edges .cend ())
174+ if (item_it == out_edges .cend ())
175175 return std::nullopt ;
176176 return std::make_optional<edge_type>(
177177 item_it->edge_id , source_id, target_id, *edge_properties_map[to_idx (item_it->edge_id )]
@@ -209,15 +209,15 @@ class adjacency_list final {
209209 [[nodiscard]] gl_attr_force_inline auto incident_edges (id_type vertex_id) const
210210 requires(traits::c_has_empty_properties<edge_type>)
211211 {
212- return this -> out_edges ( vertex_id);
212+ return specialized_impl::incident_edges (* this , vertex_id);
213213 }
214214
215215 [[nodiscard]] gl_attr_force_inline auto incident_edges (
216216 id_type vertex_id, const auto & edge_properties_map
217217 ) const
218218 requires(traits::c_has_non_empty_properties<edge_type>)
219219 {
220- return this -> out_edges ( vertex_id, edge_properties_map);
220+ return specialized_impl::incident_edges (* this , vertex_id, edge_properties_map);
221221 }
222222
223223 [[nodiscard]] gl_attr_force_inline auto in_edges (id_type vertex_id) const
@@ -275,14 +275,14 @@ class adjacency_list final {
275275 [[nodiscard]] gl_attr_force_inline auto at (id_type vertex_id) const
276276 requires(traits::c_has_empty_properties<edge_type>)
277277 {
278- return this ->incident_edges (vertex_id);
278+ return this ->out_edges (vertex_id);
279279 }
280280
281281 [[nodiscard]] gl_attr_force_inline auto at (id_type vertex_id, const auto & edge_properties_map)
282282 const
283283 requires(traits::c_has_non_empty_properties<edge_type>)
284284 {
285- return this ->incident_edges (vertex_id, edge_properties_map);
285+ return this ->out_edges (vertex_id, edge_properties_map);
286286 }
287287
288288 // --- comparison ---
0 commit comments