You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Renamed
- The `algorithm::detail` namespace to `algorithm::impl`
- The `{bds/dfs}_impl` functions to `{bfs/dfs}`
- `destination` to `target` in the context of vertices
- Aligned the documentation
Copy file name to clipboardExpand all lines: docs/algoithms.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ This section covers the specific types and type traits used for the algorithm im
161
161
-`post_visit: const PostVisitCallback&` (default = `{}`) - The callback function to be called after visiting a vertex.
162
162
163
163
-*Return type*:
164
-
-`detail::alg_return_graph_type<SearchTreeType>` - If `SearchTreeType` is not `types::no_return`, returns a search tree of type `SearchTreeType`. Otherwise, the return type is `void`.
164
+
-`impl::alg_return_graph_type<SearchTreeType>` - If `SearchTreeType` is not `types::no_return`, returns a search tree of type `SearchTreeType`. Otherwise, the return type is `void`.
@@ -190,7 +190,7 @@ This section covers the specific types and type traits used for the algorithm im
190
190
-`post_visit: const PostVisitCallback&` (default = `{}`) - The callback function to be called after visiting a vertex.
191
191
192
192
-*Return type*:
193
-
-`detail::alg_return_graph_type<SearchTreeType>` - If `SearchTreeType` is not `types::no_return`, returns a search tree of type `SearchTreeType`. Otherwise, the return type is `void`.
193
+
-`impl::alg_return_graph_type<SearchTreeType>` - If `SearchTreeType` is not `types::no_return`, returns a search tree of type `SearchTreeType`. Otherwise, the return type is `void`.
@@ -352,14 +352,14 @@ This section covers the specific types and type traits used for the algorithm im
352
352
353
353
To write custom graph algorithms you can use the types and concepts described in the [Algorithm-specific types and concepts](#algorithm-specific-types-and-concepts) as well as the general graph utility described in the [graph class documentation page](/docs/graph.md#additional-utility).
354
354
355
-
Additionaly you can use the depth-first/breadth-first search algorithm templates which are defined in the `gl::algorithm::detail` namespace:
355
+
Additionaly you can use the depth-first/breadth-first search algorithm templates which are defined in the `gl::algorithm::impl` namespace:
356
356
357
357
### Depth-first search templates
358
358
359
359
> [!NOTE]
360
-
> The DFS algorithm templates are defined in the [gl/algorithm/detail/dfs_impl.hpp](/include/gl/algorithm/detail/dfs_impl.hpp) file.
360
+
> The DFS algorithm templates are defined in the [gl/algorithm/impl/dfs.hpp](/include/gl/algorithm/impl/dfs.hpp) file.
-*Description*: Adds multiple edges from a specified source vertex to a range of target vertices (specified by references).
334
334
-*Template parameters*:
335
335
-`VertexRefRange: type_traits::c_sized_range_of<types::const_ref_wrap<vertex_type>>` – a range of vertex references that must satisfy the size and type constraints.
336
336
-*Parameters*:
337
337
-`source: const vertex_type&` – the source vertex.
338
-
-`destination_range: const VertexRefRange&` – a range of destination vertex references to connect to the source vertex.
338
+
-`target_range: const VertexRefRange&` – a range of target vertex references to connect to the source vertex.
339
339
-*Return type*: `void`
340
340
341
341
> [!IMPORTANT]
342
342
> Behaviour of adding an edge between `first` and `second`:
343
343
>
344
-
> - for *directed* graphs: adds a one-directional edge where `first` is the source vertex and `second` is the destination vertex
345
-
> - for *undirected* graphs: adds a bidirectional edge where both vertices are source and destination vertices
344
+
> - for *directed* graphs: adds a one-directional edge where `first` is the source vertex and `second` is the target vertex
345
+
> - for *undirected* graphs: adds a bidirectional edge where both vertices are source and target vertices
346
346
347
347
-**`graph.has_edge(first_id, second_id) const`**:
348
348
-*Description*: Returns true if there is an edge between the vertices with the specified IDs.
0 commit comments