Renamed the private graph iterators to attune for upcoming changes

This commit is contained in:
2026-05-07 18:01:16 +02:00
parent a7be995e34
commit 4e47573290
2 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -23,12 +23,12 @@ struct IncidenceEntry {
adjacent: Vertex,
}
struct VertexAdjacenceIterator<'a> {
struct AdjacentVertexIterator<'a> {
graph: &'a AppendGraph,
incidence: Option<Incidence>,
}
impl<'a> Iterator for VertexAdjacenceIterator<'a> {
impl<'a> Iterator for AdjacentVertexIterator<'a> {
type Item = Vertex;
fn next(&mut self) -> Option<Self::Item> {
@@ -113,7 +113,7 @@ impl GraphTopology for AppendGraph {
}
fn adjacent_vertices(&self, v: Self::Vertex) -> impl Iterator<Item = Self::Vertex> {
VertexAdjacenceIterator {
AdjacentVertexIterator {
graph: self,
incidence: self.vertices[v.0].first_incidence,
}