Generating random graph

Generate Random Graph and check it's connectivity using BFS.