lemon/graph_reader.h
changeset 1721 c0f5e8401373
parent 1540 7d028a73d7f2
child 1744 51d5d41e15b1
equal deleted inserted replaced
3:5904e8a90656 4:899e9f96fe8b
   120 
   120 
   121     /// \brief Construct a new GraphReader.
   121     /// \brief Construct a new GraphReader.
   122     ///
   122     ///
   123     /// Construct a new GraphReader. It reads into the given graph
   123     /// Construct a new GraphReader. It reads into the given graph
   124     /// and it uses the given reader as the default skipper.
   124     /// and it uses the given reader as the default skipper.
   125     GraphReader(std::istream& _is, 
   125     GraphReader(std::istream& _is, Graph& _graph, 
   126 		typename SmartParameter<Graph>::Type _graph, 
       
   127 		const DefaultSkipper& _skipper = DefaultSkipper()) 
   126 		const DefaultSkipper& _skipper = DefaultSkipper()) 
   128       : reader(new LemonReader(_is)), own_reader(true), skipper(_skipper),
   127       : reader(new LemonReader(_is)), own_reader(true), skipper(_skipper),
   129 	nodeset_reader(*reader, _graph, std::string(), skipper),
   128 	nodeset_reader(*reader, _graph, std::string(), skipper),
   130 	edgeset_reader(*reader, _graph, nodeset_reader, 
   129 	edgeset_reader(*reader, _graph, nodeset_reader, 
   131 		       std::string(), skipper),
   130 		       std::string(), skipper),
   135 
   134 
   136     /// \brief Construct a new GraphReader.
   135     /// \brief Construct a new GraphReader.
   137     ///
   136     ///
   138     /// Construct a new GraphReader. It reads into the given graph
   137     /// Construct a new GraphReader. It reads into the given graph
   139     /// and it uses the given reader as the default skipper.
   138     /// and it uses the given reader as the default skipper.
   140     GraphReader(const std::string& _filename, 
   139     GraphReader(const std::string& _filename, Graph& _graph, 
   141 		typename SmartParameter<Graph>::Type _graph, 
       
   142 		const DefaultSkipper& _skipper = DefaultSkipper()) 
   140 		const DefaultSkipper& _skipper = DefaultSkipper()) 
   143       : reader(new LemonReader(_filename)), own_reader(true), 
   141       : reader(new LemonReader(_filename)), own_reader(true), 
   144 	skipper(_skipper),
   142 	skipper(_skipper),
   145 	nodeset_reader(*reader, _graph, std::string(), skipper),
   143 	nodeset_reader(*reader, _graph, std::string(), skipper),
   146 	edgeset_reader(*reader, _graph, nodeset_reader, 
   144 	edgeset_reader(*reader, _graph, nodeset_reader, 
   151 
   149 
   152     /// \brief Construct a new GraphReader.
   150     /// \brief Construct a new GraphReader.
   153     ///
   151     ///
   154     /// Construct a new GraphReader. It reads into the given graph
   152     /// Construct a new GraphReader. It reads into the given graph
   155     /// and it uses the given reader as the default skipper.
   153     /// and it uses the given reader as the default skipper.
   156     GraphReader(LemonReader& _reader, 
   154     GraphReader(LemonReader& _reader, Graph& _graph, 
   157 		typename SmartParameter<Graph>::Type _graph, 
       
   158 		const DefaultSkipper& _skipper = DefaultSkipper()) 
   155 		const DefaultSkipper& _skipper = DefaultSkipper()) 
   159       : reader(_reader), own_reader(false), skipper(_skipper),
   156       : reader(_reader), own_reader(false), skipper(_skipper),
   160 	nodeset_reader(*reader, _graph, std::string(), skipper),
   157 	nodeset_reader(*reader, _graph, std::string(), skipper),
   161 	edgeset_reader(*reader, _graph, nodeset_reader, 
   158 	edgeset_reader(*reader, _graph, nodeset_reader, 
   162 		       std::string(), skipper),
   159 		       std::string(), skipper),