Added graph algorithms