Diameter, ConnectedComponents and getnumberOfVertices were implemented;
Diamenter and getNumberOfVertices are working good;
ConnectedComponents need adjusts;