@@ -35,31 +35,32 @@ namespace gl {
3535// / > Instead, `vertex_descriptor` objects should be retrieved from the @ref gl::graph class instance that owns the given vertex.
3636// /
3737// / ### Example Usage
38- // / The following example demonstrates how to iterate over vertices in a graph,
39- // / accessing both their structural IDs and their underlying custom properties:
4038// / ```cpp
4139// / for (auto v : graph.vertices()) {
42- // / // Access the underlying structural ID
43- // / std::cout << "Node ID: " << v.id() << " | ";
44- // /
45- // / // Use the arrow operator to access/modify custom property fields
46- // / if (v->parent == gl::invalid_id)
40+ // / std::cout << "Node ID: " << v.id() << " | "; // (1)!
41+ // / if (v->parent == gl::invalid_id) // (2)!
4742// / std::cout << "ROOT | Level: " << v->level << "\n";
4843// / else
4944// / std::cout << "Parent: " << v->parent << " | Level: " << v->level << "\n";
5045// / }
5146// / ```
5247// /
48+ // / 1\. Access the underlying structural ID
49+ // /
50+ // / 2\. Use the arrow operator to access/modify custom property fields
51+ // /
5352// / @tparam Properties The type of property data attached to the vertex. Defaults to `empty_properties`.
53+ // / Must satisfy the @ref gl::traits::c_properites "c_properties" trait.
5454// / @tparam IdType The underlying integer type used for the vertex ID. Defaults to `default_id_type`.
55+ // / Must satisfy the @ref gl::traits::c_id_type "c_id_type" trait.
5556template <
5657 traits::c_properties Properties = empty_properties,
5758 traits::c_id_type IdType = default_id_type>
5859class vertex_descriptor final {
5960public:
6061 // / @brief Type alias for the vertex_descriptor itself.
6162 using type = std::type_identity_t <vertex_descriptor<Properties, IdType>>;
62- // / @brief The type used for vertex identifiers.
63+ // / @brief The vertex identifier type
6364 using id_type = IdType;
6465 // / @brief The type of properties associated with the vertex.
6566 using properties_type = Properties;
0 commit comments