Routine to remove dangling bonds in a system, i.e. atoms that only have one bond to
another atom of the solid. It also removes atoms that are completely disconnected from
the solid.
- Parameters:
system (System) – System to remove dangling bonds and disconnected atoms.
- Return type:
System
- Returns:
Cleaned system.