diff --git a/README.md b/README.md index 830e845..00d75c4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # clrs -![Rust workflow](https://github.com/aradwann/clrs/actions/workflows/rust.yml/badge.svg) +![Rust workflow](https://github.com/aradwann/algorithms-illuminated/actions/workflows/rust.yml/badge.svg) my notes and implementation (in rust) of some algorithms in: -CLRS +[Algorithms Illuminated](https://www.algorithmsilluminated.org/) ### Sort 1. [merge sort](./src/sort/merge.rs) diff --git a/src/graph/undirected_graph.rs b/src/graph/undirected_graph.rs index ef2dba4..db73c92 100644 --- a/src/graph/undirected_graph.rs +++ b/src/graph/undirected_graph.rs @@ -170,6 +170,12 @@ impl UndirectedGraph { } } +impl Default for UndirectedGraph { + fn default() -> Self { + Self::new() + } +} + #[cfg(test)] mod tests { use super::*; @@ -218,9 +224,3 @@ mod tests { assert_eq!(graph.vertices.len(), 6); } } - -impl Default for UndirectedGraph { - fn default() -> Self { - Self::new() - } -}