<div dir="ltr">Thank you very much, that's exactly what I needed!</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 7:37 PM, Rafael Arakaki <span dir="ltr"><<a href="mailto:rafaelkendyarakaki@gmail.com" target="_blank">rafaelkendyarakaki@gmail.com</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>In the build method you need to pass a template containing all the arcs the graph have. This template will have a bunch of pair <int,int> elements.<br>Each element have two integers: the first and the second. What the statement says is that your template need to have these arcs ordered by the first "int" of the pair in a non-decreasing order, like (1,2), (4,3), (9, 5), (9,2) -> look, only the first integer matters in this ordering.</div><div>You can use for example the STL list, insert the pairs in any order, then use the method sort (it'll sort by the first element - <a href="http://www.cplusplus.com/reference/list/list/sort/" target="_blank">http://www.cplusplus.com/reference/list/list/sort/</a>), then send it to <span style="font-size:12.8px">StaticDigraphBase::build.</span><br><br></div><div>Hope it helps.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2016-02-27 16:05 GMT-03:00 John Lagerquist <span dir="ltr"><<a href="mailto:john@rallytronics.com" target="_blank">john@rallytronics.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I am confused by this statement:<div><br></div><div><div><i><b>The pairs must be in a non-decreasing order with respect to their first values.</b></i></div></div><div><br></div><div>with respect to the StaticDigraphBase::build member function.</div><div><br></div><div>Can someone please clarify?</div><div><div><div><div><br></div><div><br></div></div></div>
</div></div>
<br></div></div>_______________________________________________<br>
Lemon-user mailing list<br>
<a href="mailto:Lemon-user@lemon.cs.elte.hu" target="_blank">Lemon-user@lemon.cs.elte.hu</a><br>
<a href="http://lemon.cs.elte.hu/mailman/listinfo/lemon-user" rel="noreferrer" target="_blank">http://lemon.cs.elte.hu/mailman/listinfo/lemon-user</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><span><font color="#888888"><i style="color:rgb(153,153,153);background-color:rgb(255,255,255)">Rafael Kendy Arakaki</i><br style="color:rgb(153,153,153);background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Mestrando em Ciência da Computação</span><br style="color:rgb(153,153,153);background-color:rgb(255,255,255)"><font color="#999999">Universidade Estadual de Campinas - Instituto de Computação</font></font></span></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">John Lagerquist<div>Chief Engineer<br><div>RallyTronics LLC</div><div>801-866-5981</div><div><br></div><div><br></div></div></div>
</div>