1. Fixing structure of graphs code to make a class out of it
2. Code for finding number of connected componenets in graph