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>
63 compute(const Graph<G>& g_, F& functor)
65 mln_trace(
"graph::compute");
66 const G& g =
exact(g_);
67 mln_precondition(g.is_valid());
74 # endif // ! MLN_INCLUDE_ONLY
81 #endif // ! MLN_GRAPH_COMPUTE_HH