<div dir="ltr"><div>I have a city roads data base witch is returning different values from this 'selects'.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>select sum(cost) from pgr_Dijkstra('SELECT id, source, target, cost, reverse_cost FROM ruas',<span style="white-space:pre"> </span>3423, 3839, true, true);</div>
<div><br></div><div>select sum(cost) from pgr_kdijkstraPath('SELECT id, source, target, cost, reverse_cost FROM ruas',<span style="white-space:pre"> </span>3423, array[3839], true, true);</div><div><br></div><div>
select sum(cost) from pgr_ksp('SELECT id, source, target, cost, reverse_cost FROM ruas', 3423, 3839, 1, true);</div></blockquote><div><br></div><div>Manually I have seen that the pgr_Dijkstra has the correct path.</div>
<div><br></div><div>And the others has passed from edges who is not the shortest path. </div><div><br></div><div>Is it an alghorithm error?</div><div>..<br><b><font face="'arial black', sans-serif">Omar Fernando Pessôa</font></b><br>
<a href="http://www.opessoa.com" target="_blank">http://www.opessoa.com</a><br>Desenvolvedor de sistemas<br>Programador C# e C++</div>
</div>