Returns True if the graph contains the vertex, False otherwise.
(self, vertex: T)
| 163 | ) |
| 164 | |
| 165 | def contains_vertex(self, vertex: T) -> bool: |
| 166 | """ |
| 167 | Returns True if the graph contains the vertex, False otherwise. |
| 168 | """ |
| 169 | return vertex in self.vertex_to_index |
| 170 | |
| 171 | def contains_edge(self, source_vertex: T, destination_vertex: T) -> bool: |
| 172 | """ |
no outgoing calls