From 387144c8339abef0caca73cfce27238db690428e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Fri, 20 Nov 2020 13:17:58 -0500 Subject: [PATCH] simplify final loop --- src/forcedirected.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/forcedirected.jl b/src/forcedirected.jl index d154f06..061ea50 100644 --- a/src/forcedirected.jl +++ b/src/forcedirected.jl @@ -128,7 +128,8 @@ function position!(LA::ForceDirectedLayout, L::Dict{K,NodePosition}, N::T) where end end - for (i,s) in enumerate(species(N)) + for s in species(N) update!(LA, L[s]) end + end