Hi Anton,<br><br>Again sorry for late reply. My college restarted, I got busy with some academic work. Anyways, I looked back again into the code and the NOTICE commands helped a lot. The problem was that boost warshall algorithm expects the vertex ids in sequence starting from 0 (according to the example in their docs) and the node ids in database were random.I worked around it and I am now able to see output.<br>
<br>Another problem is that the warshall algorithm expects distances between nodes to be integers (again according to tutorial). So, I have converted the float8 cost values to integers by multiplying by 10000000 as a temporary fix, since all cost values in ways table seem to be much less than 1. <br>
<br>Can you suggest any better way of handling this? (May be a deeper look in boost documentation can help!)<br><br>Also, there are negative costs to edges. How should we handle that scenario?<br><br>I will try and commit the code in the the gitHub repo i have forked here <a href="https://github.com/jay-mahadeokar/pgrouting">https://github.com/jay-mahadeokar/pgrouting</a> in next few days. (Still not learned git commands! )<br>
<br>Regards,<br><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 11:45 AM, Anton Patrushev <span dir="ltr">&lt;<a href="mailto:anton.patrushev@georepublic.de">anton.patrushev@georepublic.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Jay,<br>
<br>
Sorry for such late reply - some parts of our world still live offline :)<br>
<br>
It is quite difficult to debug PostgreSQL stored procedures. I use<br>
debug messages (NOTICE command) in pl/pgsql and same approach for C<br>
(good old print). It is possible to debug it with gdb and Valgrind<br>
(try to google for some tutorials - there must be few of them).<br>
<font color="#888888"><br>
Anton.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>-Jay Mahadeokar<br><br>