Implimentation of some important graph algorithms