use always modify ucs for search
This commit is contained in:
@@ -150,12 +150,8 @@ 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 = ucs(start(s), maxDeep, count);
|
|
||||||
} else {
|
|
||||||
found = ucs2(start(s), maxDeep, count);
|
found = ucs2(start(s), maxDeep, count);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
LOG.debug("Found {} paths", found);
|
LOG.debug("Found {} paths", found);
|
||||||
callback.endSearch();
|
callback.endSearch();
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user