Örnek
Şöyle yaparız.
Şöyle yaparız.
class my_dfs_visitor: public boost::default_dfs_visitor
{
public:
template<typename Vertex, typename Graph>
void discover_vertex(Vertex u, const Graph & g) const
{
std::cout << "at " << u << std::endl;
}
template<typename Edge, typename Graph>
void examine_edge(Edge e, const Graph& g) const
{
std::cout << "Examining edges " << e << std::endl;
}
};
Hiç yorum yok:
Yorum Gönder