<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hey Renaud,<br>
      <br>
      indeed these first 3 lines are no longer necessary after I
      separated setFlags and writing the edge. I'll fix.<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      <br>
    </div>
    <blockquote cite="mid:5326B82D.3070004@cetic.be" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi Peter, <br>
      <br>
      I was reading the source code of GraphHopperStorage.EdgeIterable<br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/storage/GraphHopperStorage.java">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/storage/GraphHopperStorage.java</a><br>
      <br>
      I'v seen a fragment of code I do not understand, <br>
      and I wonder if it has some hidden consequences on my
      understanding on the storages of GraphHopper. <br>
      <br>
      It is the method "EdgeIterable.setFlags". In this method, the
      flags of the edges are indeed set, <br>
      but the edge is also written again on the storage through a call
      to writeEdge. <br>
      <br>
        @Override<br>
              public final EdgeIteratorState setFlags( long fl )<br>
              {<br>
                  int nep = edges.getInt(getLinkPosInEdgeArea(baseNode,
      node, edgePointer));<br>
                  int neop = edges.getInt(getLinkPosInEdgeArea(node,
      baseNode, edgePointer));<br>
                  writeEdge(getEdge(), baseNode, node, nep, neop);<br>
                  GraphHopperStorage.this.setFlags(edgePointer,
      baseNode, node, fl);<br>
                  return this;<br>
              }<br>
      <br>
      Can you help me?<br>
      thank you very much. <br>
      <br>
      <div class="moz-signature">-- <br>
        <table cellspacing="0" width="400">
          <tbody>
            <tr>
              <td colspan="2" style="border-left: 1px solid rgb(0, 102,
                0); background-color: rgb(255, 255, 255); font-family:
                arial; font-style: normal; font-variant: normal;
                font-weight: normal; font-size: 14px; line-height:
                normal; font-size-adjust: none; font-stretch: normal;
                vertical-align: top;"> <b>Renaud De Landtsheer, Ir, Phd</b>
              </td>
            </tr>
            <tr>
              <td colspan="2" style="border-left: 1px solid rgb(0, 102,
                0); background-color: rgb(255, 255, 255); font-family:
                arial; font-style: italic; font-variant: normal;
                font-weight: normal; font-size: 14px; line-height:
                normal; font-size-adjust: none; font-stretch: normal;
                vertical-align: top;">Senior R&D Expert</td>
            </tr>
            <tr>
              <td colspan="2" style="border-left: 1px solid rgb(0, 102,
                0); background-color: rgb(255, 255, 255); font-family:
                arial; font-style: normal; font-variant: small-caps;
                font-weight: normal; font-size: 14px; line-height:
                normal; font-size-adjust: none; font-stretch: normal;
                vertical-align: top;"> CETIC <br>
                Rue des Frères Wright, 29/3 <br>
                B-6041 Charleroi <br>
                Phone: +32 71 490 754 </td>
            </tr>
            <tr>
              <td colspan="2" style="border-top: 1px solid rgb(0, 102,
                0); background-color: rgb(255, 255, 255); font-family:
                arial; font-style: italic; font-variant: normal;
                font-weight: normal; font-size: 12px; line-height:
                normal; font-size-adjust: none; font-stretch: normal;
                vertical-align: top;" align="top">
                <p><br>
                </p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>