Skip to content

Commit 710d7b9

Browse files
authored
Directed graph edge view revision (#64)
* edge_view * out_edge * in_edge * merged in/ou_view * added test, improve implementaion
1 parent c5854ca commit 710d7b9

File tree

3 files changed

+201
-196
lines changed

3 files changed

+201
-196
lines changed

include/osp/concepts/directed_graph_edge_desc_concept.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ inline edge_view<Graph_t> edges(const Graph_t &graph) {
8383
* @return An `out_edge_view` allowing iteration over outgoing edges from `u`.
8484
*/
8585
template<typename Graph_t>
86-
inline out_edge_view<Graph_t> out_edges(vertex_idx_t<Graph_t> u, const Graph_t &graph) {
87-
return out_edge_view(graph, u);
86+
inline OutEdgeView<Graph_t> out_edges(vertex_idx_t<Graph_t> u, const Graph_t &graph) {
87+
return OutEdgeView<Graph_t>(graph, u);
8888
}
8989

9090
/**
@@ -96,8 +96,8 @@ inline out_edge_view<Graph_t> out_edges(vertex_idx_t<Graph_t> u, const Graph_t &
9696
* @return An `in_edge_view` allowing iteration over incoming edges to `v`.
9797
*/
9898
template<typename Graph_t>
99-
inline in_edge_view<Graph_t> in_edges(vertex_idx_t<Graph_t> v, const Graph_t &graph) {
100-
return in_edge_view(graph, v);
99+
inline InEdgeView<Graph_t> in_edges(vertex_idx_t<Graph_t> v, const Graph_t &graph) {
100+
return InEdgeView<Graph_t>(graph, v);
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)