lemon/hypercube_graph.h
changeset 2207 75a29ac69c19
parent 2111 ea1fa1bc3f6d
child 2223 590c1b663a27
equal deleted inserted replaced
12:e91f5d7c503a 13:621731c30212
   273     /// should be the dimension number of the graph.
   273     /// should be the dimension number of the graph.
   274     /// 
   274     /// 
   275     ///\code
   275     ///\code
   276     /// const int DIM = 3;
   276     /// const int DIM = 3;
   277     /// HyperCubeGraph graph(DIM);
   277     /// HyperCubeGraph graph(DIM);
   278     /// xy<double> base[DIM];
   278     /// dim2::Point<double> base[DIM];
   279     /// for (int k = 0; k < DIM; ++k) {
   279     /// for (int k = 0; k < DIM; ++k) {
   280     ///   base[k].x = rand() / (RAND_MAX + 1.0);
   280     ///   base[k].x = rand() / (RAND_MAX + 1.0);
   281     ///   base[k].y = rand() / (RAND_MAX + 1.0);
   281     ///   base[k].y = rand() / (RAND_MAX + 1.0);
   282     /// } 
   282     /// } 
   283     /// HyperCubeGraph::HyperMap<xy<double> > 
   283     /// HyperCubeGraph::HyperMap<dim2::Point<double> > 
   284     ///   pos(graph, base, base + DIM, xy<double>(0.0, 0.0));
   284     ///   pos(graph, base, base + DIM, dim2::Point<double>(0.0, 0.0));
   285     ///\endcode
   285     ///\endcode
   286     ///
   286     ///
   287     /// \see HyperCubeGraph
   287     /// \see HyperCubeGraph
   288     template <typename T, typename BF = std::plus<T> >
   288     template <typename T, typename BF = std::plus<T> >
   289     class HyperMap {
   289     class HyperMap {