Renamed the private graph iterators to attune for upcoming changes
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user