<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><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></div>