Archived
0

use always modify ucs for search

This commit is contained in:
iMoHax
2015-08-20 17:33:52 +03:00
parent 3bc74482db
commit 2d6c0f8f9e

View File

@@ -150,11 +150,7 @@ public class Crawler<T> {
setTarget(target); setTarget(target);
int maxDeep = s.isEntry(target) ? maxSize - graph.getMinJumps() * 2 : graph.getMinLevel(); int maxDeep = s.isEntry(target) ? maxSize - graph.getMinJumps() * 2 : graph.getMinLevel();
if (maxDeep < 0) maxDeep = 0; if (maxDeep < 0) maxDeep = 0;
if (maxSize - maxDeep <= SPLIT_SIZE){ found = ucs2(start(s), maxDeep, count);
found = ucs(start(s), maxDeep, count);
} else {
found = ucs2(start(s), maxDeep, count);
}
} }
LOG.debug("Found {} paths", found); LOG.debug("Found {} paths", found);
callback.endSearch(); callback.endSearch();