C++ boost graph implement