Changeset 2200:2f2ac1b1ca1e in lemon0.x for lemon/graph_reader.h
 Timestamp:
 09/06/06 12:01:15 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2925
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/graph_reader.h
r2100 r2200 345 345 346 346 347 /// \brief Read a graph from the input.348 ///349 /// It is a helper function to read a graph from the given input350 /// stream. It gives back an GraphReader object and this object351 /// can read more maps, labeled nodes, edges and attributes.352 ///353 /// \warning Do not forget to call the \c run() function.354 ///355 /// \param is The input stream.356 /// \param g The graph.357 template<typename Graph>358 GraphReader<Graph> graphReader(std::istream& is, Graph &g) {359 return GraphReader<Graph>(is, g);360 }361 362 /// \brief Read a graph from the input.363 ///364 /// It is a helper function to read a graph from the given input365 /// file. It gives back an GraphReader object and this object366 /// can read more maps, labeled nodes, edges and attributes.367 ///368 /// \warning Do not forget to call the \c run() function.369 ///370 /// \param fn The input filename.371 /// \param g The graph.372 template<typename Graph>373 GraphReader<Graph> graphReader(const std::string& fn, Graph &g) {374 return GraphReader<Graph>(fn, g);375 }376 377 347 /// \brief The undirected graph reader class. 378 348 /// … … 756 726 }; 757 727 758 /// \brief Read an undirected graph from the input.759 ///760 /// It is a helper function to read an undirected graph from the given input761 /// stream. It gives back an UGraphReader object and this object762 /// can read more maps, labeled nodes, edges, undirected edges and763 /// attributes.764 ///765 /// \warning Do not forget to call the \c run() function.766 ///767 /// \param is The input stream.768 /// \param g The graph.769 template<typename Graph>770 UGraphReader<Graph> uGraphReader(std::istream& is, Graph &g) {771 return GraphReader<Graph>(is, g);772 }773 774 /// \brief Read an undirected graph from the input.775 ///776 /// It is a helper function to read an undirected graph from the given input777 /// file. It gives back an UGraphReader object and this object778 /// can read more maps, labeled nodes, edges, undirected edges and779 /// attributes.780 ///781 /// \warning Do not forget to call the \c run() function.782 ///783 /// \param fn The input filename.784 /// \param g The graph.785 template<typename Graph>786 UGraphReader<Graph> uGraphReader(const std::string& fn, Graph &g) {787 return GraphReader<Graph>(fn, g);788 }789 728 790 729 /// @}
Note: See TracChangeset
for help on using the changeset viewer.