<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>You might want to read the visitor concept of the boost libraries<br><a href="http://www.boost.org/doc/libs/1_59_0/libs/graph/doc/visitor_concepts.html" target="_blank">http://www.boost.org/doc/libs/1_59_0/libs/graph/doc/visitor_concepts.html</a><br><br>but the general idea is that an algorithm has several places that can be visited:<br>hope this  pseudo code helps:<br><br>foo_algorithm()<br>1  do_a()<br>2  do_users_visitors_code_0()<br>3  if (cond) then<br>4     do_c()<br>5     do_users_visitor_code_1()<br>6  else<br>7     do_d()<br>8     do_users_visitor_code_2()<br>9  endif<br><br><div>> Date: Mon, 24 Aug 2015 23:02:14 +0530<br>> From: rohith.reddy@research.iiit.ac.in<br>> To: pgrouting-dev@lists.osgeo.org<br>> Subject: [pgrouting-dev] Regarding BFS Visitor<br>> <br>> Hello there,<br>>      Recently I started using pgrouting,and was curious to know about how different algorithms were being implemented.While going through the source code of breadth_first_search.hpp(http://www.boost.org/doc/libs/1_58_0/boost/graph/breadth_first_search.hpp),I came across the class named bfs_visitor.In every function of the visitor class I noticed a function named invoke_visitors().I explored about this,but couldnt understand,what this function does and how it was being implemented.Can anyone help me with this?<br>> <br>> Thanks in advance.<br>> _______________________________________________<br>> pgrouting-dev mailing list<br>> pgrouting-dev@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev<br></div>                                     </div></body>
</html>