Archived
0

fix reuse vertex on paths finding

This commit is contained in:
iMoHax
2014-08-22 10:43:03 +04:00
parent c7ee010c4c
commit c44151f859
3 changed files with 15 additions and 9 deletions

View File

@@ -127,7 +127,6 @@ public class Graph<T extends Connectable<T>> {
LOG.trace("Search around");
for (Edge<T> next : source.getEdges()) {
if (withRefill && Math.min(limit, maxDistance) < next.getLength() && !source.getEntry().canRefill()) continue;
if (head.isConnect(next.getTarget())) continue;
// target already added if source consist edge
if (next.isConnect(target)) continue;
Path<T> path = head.connectTo(next.getTarget(), limit < next.getLength());