add dedup comment

This commit is contained in:
jacekpoz 2024-06-22 17:07:44 +02:00
parent b9e8f74bb0
commit 9c9b46d31d
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -164,6 +164,7 @@ impl Graph {
// Return F, which specifically includes the corresponding edges in E
forest.iter()
.map(|i| min_edges[i.index])
// deduplication
.collect::<HashSet<_>>()
.iter()
.map(|e| *e)