evomatic.mutation.swap_elements(alloy: Alloy) → Alloy[source] Mutate an alloy composition by adding an element, taking constraints into account. Parameters¶ alloy: Alloy¶The alloy composition being mutated. Last update: Dec 07, 2022