Try one yEd's layout algorithms (e.g. "Layout" -> "Orthogonal" -> "UML Style") to achieve this.
If the above does not help, please explain in more detail what you are trying to achieve. GraphML files or images files of mockup for before and after states would be most helpful in this case.