Move edge_count() in method order

This commit is contained in:
2026-05-07 11:38:15 +02:00
parent 016cece626
commit e074fdf944
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -9,9 +9,9 @@ pub trait GraphTopology {
type Edge: Copy + Eq;
fn vertex_count(&self) -> usize;
fn edge_count(&self) -> usize;
fn vertex_capacity(&self) -> usize;
fn vertex_map<T: Clone>(&self, default: T) -> VertexMap<Self::Vertex, T>;
fn edge_count(&self) -> usize;
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>;