<div dir="ltr">does changing to <div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">edges.map(edge => router.edge(</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">

<font face="courier new, monospace">      edge.head,</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">      edge.tail, 1, false))</font></div></div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<font face="courier new, monospace"><br></font></div><div style="font-size:12.727272033691406px"><font face="courier new, monospace">is enough ? if it is sorry for having disturbed</font></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Feb 14, 2014 at 9:52 AM, Alexandre Vallette <span dir="ltr"><<a href="mailto:alexandre.vallette@snips.net" target="_blank">alexandre.vallette@snips.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hello,<div><br></div><div>i've been surprised to see that the routing created by the following code is not oriented (the computed path goes through some edges in the opposite direction). I have a list of nodes and edges (n1 -> n2)</div>


<div><br></div><div><div><font face="courier new, monospace">    val ram = new RAMDirectory("mygraph.graph", true)</font></div><div><font face="courier new, monospace">    val encodingmanager = new EncodingManager("CAR")</font></div>


<div><font face="courier new, monospace">    val carEncoder = encodingmanager.getEncoder("CAR")</font></div><div><font face="courier new, monospace">    val weighting = new ShortestWeighting()</font></div><div>

<font face="courier new, monospace">    val router = new LevelGraphStorage(ram, encodingmanager)</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">    //Create router</font></div><div><font face="courier new, monospace">    router.create(nodes.size)</font></div><div><font face="courier new, monospace"><br>


</font></div><div><font face="courier new, monospace">    //Compute graph edges</font></div><div><font face="courier new, monospace">    edges.map(edge => router.edge(</font></div><div><font face="courier new, monospace">      edge.head,</font></div>


<div><font face="courier new, monospace">      edge.tail, 1, true))</font></div><div><br></div><div>what am my doing wrong ?</div><div>thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr">

<span style="font-family:arial;font-size:small"><font color="#444444">Dr Alexandre Vallette, PhD</font></span><br>
<div dir="ltr"><div style="color:rgb(136,136,136);font-size:small;font-family:arial"><a href="http://www.snips.net" target="_blank">www.snips.net</a></div><div style="font-size:small;font-family:arial"><font color="#000000">co-founder</font></div>


<br style="font-size:small;font-family:arial"><span style="font-size:small;font-family:arial"><font color="#000000"><a href="tel:%2B%2033%20%280%29%206%2071358943" value="+33671358943" target="_blank">+ 33 (0) 6 71358943</a></font></span><br style="font-size:small;font-family:arial">

<font style="color:rgb(136,136,136)"><a href="mailto:alexandre.vallette@snips.net" style="color:rgb(17,85,204)" target="_blank">alexandre.vallette@snips.net</a></font><br style="font-size:small;font-family:arial">
<span style="font-size:small;font-family:arial"><font color="#000000">skype: vallettea</font></span></div><div dir="ltr"><font color="#000000"><span style="font-size:small;font-family:arial">twitter: @vallettea</span><br>


</font></div><div dir="ltr"><div><div style="font-size:small;font-family:arial"><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><font color="#000000">linkedIn:</font><font color="#888888"> </font></span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.800000190734863px"><a href="http://fr.linkedin.com/in/vallettea/" target="_blank">fr.linkedin.com/in/vallettea/</a></span></div>


</div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:arial;font-size:small"><font color="#444444">Dr Alexandre Vallette, PhD</font></span><br><div dir="ltr"><div style="color:rgb(136,136,136);font-size:small;font-family:arial">

<a href="http://www.snips.net" target="_blank">www.snips.net</a></div><div style="font-size:small;font-family:arial"><font color="#000000">co-founder</font></div><br style="font-size:small;font-family:arial"><span style="font-size:small;font-family:arial"><font color="#000000">+ 33 (0) 6 71358943</font></span><br style="font-size:small;font-family:arial">

<font style="color:rgb(136,136,136)"><a href="mailto:alexandre.vallette@snips.net" style="color:rgb(17,85,204)" target="_blank">alexandre.vallette@snips.net</a></font><br style="font-size:small;font-family:arial"><span style="font-size:small;font-family:arial"><font color="#000000">skype: vallettea</font></span></div>

<div dir="ltr"><font color="#000000"><span style="font-size:small;font-family:arial">twitter: @vallettea</span><br></font></div><div dir="ltr"><div><div style="font-size:small;font-family:arial"><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><font color="#000000">linkedIn:</font><font color="#888888"> </font></span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.800000190734863px"><a href="http://fr.linkedin.com/in/vallettea/" target="_blank">fr.linkedin.com/in/vallettea/</a></span></div>

</div></div></div>
</div>