lemon/graph_utils.h
changeset 2017 6064fd33807c
parent 2002 9ff31b5090bd
child 2020 332245399dc6
equal deleted inserted replaced
44:76880e0e07b7 45:ca23ad8d60f0
   454     }
   454     }
   455   }
   455   }
   456 
   456 
   457   /// \brief Class to copy a graph.
   457   /// \brief Class to copy a graph.
   458   ///
   458   ///
   459   /// Class to copy a graph to an other graph (duplicate a graph). The
   459   /// Class to copy a graph to another graph (duplicate a graph). The
   460   /// simplest way of using it is through the \c copyGraph() function.
   460   /// simplest way of using it is through the \c copyGraph() function.
   461   template <typename Target, typename Source>
   461   template <typename Target, typename Source>
   462   class GraphCopy {
   462   class GraphCopy {
   463   public: 
   463   public: 
   464     typedef typename Source::Node Node;
   464     typedef typename Source::Node Node;
   577 
   577 
   578     NodeRefMap nodeRefMap;
   578     NodeRefMap nodeRefMap;
   579     EdgeRefMap edgeRefMap;
   579     EdgeRefMap edgeRefMap;
   580   };
   580   };
   581 
   581 
   582   /// \brief Copy a graph to an other graph.
   582   /// \brief Copy a graph to another graph.
   583   ///
   583   ///
   584   /// Copy a graph to an other graph.
   584   /// Copy a graph to another graph.
   585   /// The usage of the function:
   585   /// The usage of the function:
   586   /// 
   586   /// 
   587   ///\code
   587   ///\code
   588   /// copyGraph(trg, src).nodeRef(nr).edgeCrossRef(ecr);
   588   /// copyGraph(trg, src).nodeRef(nr).edgeCrossRef(ecr);
   589   ///\endcode
   589   ///\endcode
   597     return GraphCopy<Target, Source>(target, source);
   597     return GraphCopy<Target, Source>(target, source);
   598   }
   598   }
   599 
   599 
   600   /// \brief Class to copy an undirected graph.
   600   /// \brief Class to copy an undirected graph.
   601   ///
   601   ///
   602   /// Class to copy an undirected graph to an other graph (duplicate a graph).
   602   /// Class to copy an undirected graph to another graph (duplicate a graph).
   603   /// The simplest way of using it is through the \c copyUGraph() function.
   603   /// The simplest way of using it is through the \c copyUGraph() function.
   604   template <typename Target, typename Source>
   604   template <typename Target, typename Source>
   605   class UGraphCopy {
   605   class UGraphCopy {
   606   public: 
   606   public: 
   607     typedef typename Source::Node Node;
   607     typedef typename Source::Node Node;
   789     NodeRefMap nodeRefMap;
   789     NodeRefMap nodeRefMap;
   790     EdgeRefMap edgeRefMap;
   790     EdgeRefMap edgeRefMap;
   791     UEdgeRefMap uEdgeRefMap;
   791     UEdgeRefMap uEdgeRefMap;
   792   };
   792   };
   793 
   793 
   794   /// \brief Copy a graph to an other graph.
   794   /// \brief Copy a graph to another graph.
   795   ///
   795   ///
   796   /// Copy a graph to an other graph.
   796   /// Copy a graph to another graph.
   797   /// The usage of the function:
   797   /// The usage of the function:
   798   /// 
   798   /// 
   799   ///\code
   799   ///\code
   800   /// copyGraph(trg, src).nodeRef(nr).edgeCrossRef(ecr);
   800   /// copyGraph(trg, src).nodeRef(nr).edgeCrossRef(ecr);
   801   ///\endcode
   801   ///\endcode