Graph algorithms in C++.