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
-*Description*: Returns a reference to the first vertex of the edge.
145
137
-*Returned value*: $u$
146
-
-*Return type*: `const vertex_type&`
138
+
-*Return type*: `types::id_type`
147
139
148
140
-**`second() const`**:
149
141
-*Description*: Returns a reference to the second vertex of the edge.
150
142
-*Returned value*: $v$
151
-
-*Return type*: `const vertex_type&`
143
+
-*Return type*: `const types::id_type`
152
144
153
-
-**`incident_vertex(vertex) const`**:
145
+
-**`incident_vertex(vertex_id) const`**:
154
146
-*Description*: Returns the vertex on the other end of the edge relative to the provided vertex. Throws an error if the provided vertex is not incident with the edge.
155
147
-*Returned value*:
156
-
- $v$ if $\text{vertex} = u$
157
-
- $u$ if $\text{vertex} = v$
148
+
- $v$ if $\text{vertex-id} = u$
149
+
- $u$ if $\text{vertex-id} = v$
158
150
- error otherwise
159
151
-*Parameters*:
160
-
-`vertex: const vertex_type&` – the vertex for which the opposite vertex is requested.
161
-
-*Return type*: `const vertex_type&`
162
-
163
-
-**`incident_vertex(vertex_id) const`**:
164
-
-*Description*: Returns the vertex on the other end of the edge relative to the provided vertex ID. Throws an error if the provided vertex ID is invalid.
165
-
-*Returned value*:
166
-
- $v$ if $\text{vertex-id} = u_{id}$
167
-
- $u$ if $\text{vertex-id} = v_{id}$
168
-
- error otherwise
169
-
-*Parameters*:
170
-
-`vertex_id: const types::id_type` – the vertex ID for which the opposite vertex ID is requested.
171
-
-*Return type*: `types::id_type`
172
-
173
-
-**`is_incident_with(vertex) const`**:
174
-
-*Description*: Returns `true` if the provided vertex is connected to the edge.
175
-
-*Returned value*: $\text{vertex} \in {u, v}$
176
-
-*Parameters*:
177
-
-`vertex: const vertex_type&` – the vertex to check for incidence with the edge.
178
-
-*Return type*: `bool`
152
+
-`vertex_id: const types::id_type` – the vertex for which the opposite vertex is requested.
153
+
-*Return type*: `const types::id_type`
179
154
180
155
-**`is_incident_with(vertex_id) const`**:
181
156
-*Description*: Returns `true` if a vertex with the given ID is connected to the edge.
0 commit comments