eccentricity function for graphs added.

bug in bfs_all for graphs fixed.