Add Copy and Eq traits to GraphTopology::Edge

This commit is contained in:
2026-05-05 22:37:32 +02:00
parent feaca335b1
commit 18245b9955
+1 -1
View File
@@ -5,7 +5,7 @@
// TODO: Split out GraphTopologyAddition trait. // TODO: Split out GraphTopologyAddition trait.
pub trait GraphTopology { pub trait GraphTopology {
type Vertex: Copy + Eq; type Vertex: Copy + Eq;
type Edge; type Edge: Copy + Eq;
fn vertex_count(&self) -> usize; fn vertex_count(&self) -> usize;
fn edge_count(&self) -> usize; fn edge_count(&self) -> usize;