26 #ifndef MLN_GRAPH_COMPUTE_HH
27 # define MLN_GRAPH_COMPUTE_HH
36 # include <mln/core/concept/graph.hh>
37 # include <mln/canvas/browsing/depth_first_search.hh>
38 # include <mln/util/array.hh>
54 template <
typename G,
typename F>
56 compute(const Graph<G>& g_, F& functor);
59 # ifndef MLN_INCLUDE_ONLY
61 template <
typename G,
typename F>
65 trace::entering(
"graph::compute");
66 const G& g = exact(g_);
67 mln_precondition(g.is_valid());
69 canvas::browsing::depth_first_search(g, functor);
71 trace::exiting(
"graph::compute");
75 # endif // ! MLN_INCLUDE_ONLY
82 #endif // ! MLN_GRAPH_COMPUTE_HH