Auto Arrange of diagram

See Is it possible to auto arrange all the links present between two Nodes - #4 by Rishabh