<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, 17 May 2018 at 12:07, Vicky Vergara <<a href="mailto:vicky@georepublic.de">vicky@georepublic.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">So, one thing is the direction of the geometry which is a matter of postGIS, another is graph logic</div><div style="font-family:arial,helvetica,sans-serif">for the edge circled green if the geometry is "backwards" that is one thing, you fix with postGIS,</div><div style="font-family:arial,helvetica,sans-serif">I dont know your data, but suppose<br></div><div style="font-family:arial,helvetica,sans-serif">id = 1, source = A, target = B, cost > 0, reverse_cost = -1 and that vertex A is not reachable<br></div><div style="font-family:arial,helvetica,sans-serif">then "manually" would be:<br></div><div style="font-family:arial,helvetica,sans-serif">UPDATE TABLE foo set source = target, target = source WHERE source IS IN (<set of unreachable vertices>)</div><br clear="all"></div></blockquote><div><br></div><div>Great, I will try!! <br></div></div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="font-size:small">___________________</span><br></div><div dir="ltr"><span style="font-size:small"><br></span></div><div dir="ltr">Andrea Borruso<br>
website: <a href="https://medium.com/tantotanto" target="_blank">https://medium.com/tantotanto</a><br>38° 7' 48" N, 13° 21' 9" E, EPSG:4326<br><span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e cosa,<br>
in mezzo all’inferno, non è inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>