Change "neighbor" terminology to "adjacent vertex" throughout the code

This commit is contained in:
2026-05-07 17:34:20 +02:00
parent 726e7691ea
commit a7be995e34
5 changed files with 61 additions and 61 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ pub trait GraphTopology {
fn degree(&self, v: Self::Vertex) -> usize;
fn are_adjacent(&self, v1: Self::Vertex, v2: Self::Vertex) -> bool;
fn vertices(&self) -> impl Iterator<Item = Self::Vertex>;
fn neighbors(&self, v: Self::Vertex) -> impl Iterator<Item = Self::Vertex>;
fn adjacent_vertices(&self, v: Self::Vertex) -> impl Iterator<Item = Self::Vertex>;
fn edges(&self) -> impl Iterator<Item = Self::Edge>;
fn add_vertex(&mut self) -> Self::Vertex;
fn add_edge(&mut self, v1: Self::Vertex, v2: Self::Vertex) -> Self::Edge;