1
0
Fork 0

Made the depth always unsigned.

This commit is contained in:
Michael Hackstein 2015-05-28 16:05:29 -07:00
parent 6a7dae216d
commit e28eedf706
1 changed files with 4 additions and 3 deletions

View File

@ -421,7 +421,7 @@ static void inboundNeighbors (
unordered_set<VertexId>& visited,
unordered_set<VertexId>& distinct,
vector<VertexId>& result,
int depth = 1) {
uint64_t depth = 1) {
TRI_edge_direction_e dir = TRI_EDGE_IN;
unordered_set<VertexId> nextDepth;
for (auto col : collectionInfos) {
@ -467,7 +467,7 @@ static void outboundNeighbors (
unordered_set<VertexId>& visited,
unordered_set<VertexId>& distinct,
vector<VertexId>& result,
int depth = 1) {
uint64_t depth = 1) {
TRI_edge_direction_e dir = TRI_EDGE_OUT;
unordered_set<VertexId> nextDepth;
for (auto col : collectionInfos) {
@ -513,7 +513,7 @@ static void anyNeighbors (
unordered_set<VertexId>& visited,
unordered_set<VertexId>& distinct,
vector<VertexId>& result,
int depth = 1) {
uint64_t depth = 1) {
TRI_edge_direction_e dir = TRI_EDGE_OUT;
unordered_set<VertexId> nextDepth;
for (auto col : collectionInfos) {
@ -572,6 +572,7 @@ static void anyNeighbors (
anyNeighbors(collectionInfos, opts, nextDepth, visited, distinct, result, depth + 1);
}
}
////////////////////////////////////////////////////////////////////////////////
/// @brief Execute a search for neighboring vertices
////////////////////////////////////////////////////////////////////////////////