Graph algorithms 1

Algorithms on graphs.