uedgeset is an alias for edgeset
authordeba
Fri, 24 Aug 2007 14:32:55 +0000
changeset 2464d4bdbc35c927
parent 2463 19651a04d056
child 2465 df09310da558
uedgeset is an alias for edgeset
lemon/lemon_reader.h
     1.1 --- a/lemon/lemon_reader.h	Tue Aug 21 13:22:21 2007 +0000
     1.2 +++ b/lemon/lemon_reader.h	Fri Aug 24 14:32:55 2007 +0000
     1.3 @@ -1124,12 +1124,14 @@
     1.4      ///
     1.5      /// It gives back true when the header line starts with \c \@edgeset,
     1.6      /// and the header line's name and the edgeset's name are the same.
     1.7 +    /// The sections with @uedgeset head line could be read with this
     1.8 +    /// section reader too.
     1.9      virtual bool header(const std::string& line) {
    1.10        std::istringstream ls(line);
    1.11        std::string command;
    1.12        std::string id;
    1.13        ls >> command >> id;
    1.14 -      return command == "@edgeset" && name == id;
    1.15 +      return (command == "@edgeset" || command == "@uedgeset") && name == id;
    1.16      }
    1.17  
    1.18      /// \brief Reader function of the section.
    1.19 @@ -1431,12 +1433,14 @@
    1.20      ///
    1.21      /// It gives back true when the header line starts with \c \@uedgeset,
    1.22      /// and the header line's name and the edgeset's name are the same.
    1.23 +    /// The sections with @edgeset head line could be read with this
    1.24 +    /// section reader too.
    1.25      virtual bool header(const std::string& line) {
    1.26        std::istringstream ls(line);
    1.27        std::string command;
    1.28        std::string id;
    1.29        ls >> command >> id;
    1.30 -      return command == "@uedgeset" && name == id;
    1.31 +      return (command == "@edgeset" || command == "@uedgeset") && name == id;
    1.32      }
    1.33  
    1.34      /// \brief Reader function of the section.