c++11 graph algorithms