Implemented disconnected graph generator