<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">I see. But in your case you can just
create your WeightCalculator class with the graph as argument
(which avoids also too frequent getGraph calls). At the moment I
don't see a big advantage of introducing such a back reference.<br>
<br>
Peter.<br>
<br>
</div>
<blockquote
cite="mid:CAL83n08K95YG6h40kyZc0qji-wD-MynBJX_pGj0xiZJivOuCsQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Let's say i implement a new routing weight calculator<br>
</div>
and i want to access the node via the given
EdgeIteratorState in getWeight(EdgeIteratorState iter).<br>
</div>
It is not possible to access the node via the graph, because
there is no graph given.<br>
</div>
That's why it would be more convenient if the iterator holds a
pointer to it's graph to have access to any information at any
time!<br>
<br>
</div>
Thanks for the fast answer!<br>
</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">2013/9/26 Peter K <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:peathal@yahoo.de"
target="_blank">peathal@yahoo.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Andreas,<br>
<div class="im"><br>
> Hi Peter,<br>
><br>
> Is it possible to access the latitude/longitude of
the base node or<br>
> adjacent node via a given edge?<br>
</div>
you can do<br>
graph.getLatitude(iter.getBaseNode())<br>
<div class="im"><br>
> Wouldn't it be convenient when the EdgeIterator knows
it's graph?<br>
<br>
</div>
Why would you need that?<br>
<br>
Regards,<br>
Peter.<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>