equal
deleted
inserted
replaced
25 #include <lemon/utility.h> |
25 #include <lemon/utility.h> |
26 #include <lemon/error.h> |
26 #include <lemon/error.h> |
27 |
27 |
28 #include <lemon/bits/iterable_graph_extender.h> |
28 #include <lemon/bits/iterable_graph_extender.h> |
29 #include <lemon/bits/alteration_notifier.h> |
29 #include <lemon/bits/alteration_notifier.h> |
30 #include <lemon/bits/default_map.h> |
30 #include <lemon/bits/static_map.h> |
31 #include <lemon/bits/graph_extender.h> |
31 #include <lemon/bits/graph_extender.h> |
32 |
32 |
33 ///\ingroup graphs |
33 ///\ingroup graphs |
34 ///\file |
34 ///\file |
35 ///\brief HyperCubeGraph class. |
35 ///\brief HyperCubeGraph class. |
310 /// where the node's index is one. |
310 /// where the node's index is one. |
311 template <typename It> |
311 template <typename It> |
312 HyperMap(const Graph& graph, It begin, It end, |
312 HyperMap(const Graph& graph, It begin, It end, |
313 T fv = 0.0, const BF& bf = BF()) |
313 T fv = 0.0, const BF& bf = BF()) |
314 : _graph(graph), _values(begin, end), _first_value(fv), _bin_func(bf) { |
314 : _graph(graph), _values(begin, end), _first_value(fv), _bin_func(bf) { |
315 LEMON_ASSERT(_values.size() != graph.dimension(), |
315 LEMON_ASSERT(_values.size() == graph.dimension(), |
316 "Wrong size of dimension"); |
316 "Wrong size of dimension"); |
317 } |
317 } |
318 |
318 |
319 /// \brief Gives back the partial accumulated value. |
319 /// \brief Gives back the partial accumulated value. |
320 /// |
320 /// |