Merge branch 'master' of ssh://github.com/tqchen/rabit

This commit is contained in:
tqchen 2014-12-01 16:57:33 -08:00
commit 2cde04867f

View File

@ -303,7 +303,8 @@ ShortestDist(const std::pair<bool, size_t> &node_value,
res = dist_in[i].first; size = dist_in[i].second;
}
}
return std::make_pair(res, size);
// add one hop
return std::make_pair(res + 1, size);
}
/*!
* \brief message passing function, used to decide the