From 1185e3b66737f301130e356da0646e34d985411c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Thu, 27 Aug 2026 20:11:54 +0200 Subject: [PATCH] Add Default trait to GraphTopologyAddition --- src/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits.rs b/src/traits.rs index afb11ab..fda781a 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -178,7 +178,7 @@ pub trait GraphTopology { /// /// This trait provides methods for addition of vertices and edges, and capacity management in an /// undirected graph. -pub trait GraphTopologyAddition: GraphTopology { +pub trait GraphTopologyAddition: GraphTopology + Default { /// Returns the total number of vertices the graph can hold without reallocating. fn vertex_capacity(&self) -> usize;