Initialization of BA model changed to avoid disconnected nodes