use

    for (auto & mapval : _graph->node_map_){

or, when applicable

    for (auto const & mapval : _graph->node_map_){