Changeset 1583:2b329fd595ef in lemon-0.x for demo/reader_writer_demo.cc
- Timestamp:
- 07/22/05 17:15:29 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2085
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/reader_writer_demo.cc
r1534 r1583 1 /* -*- C++ -*- 2 * demo/lp_maxflow_demo.cc - Part of LEMON, a generic C++ optimization library 3 * 4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 5 * (Egervary Research Group on Combinatorial Optimization, EGRES). 6 * 7 * Permission to use, modify and distribute this software is granted 8 * provided that this copyright notice appears in all copies. For 9 * precise terms see the accompanying LICENSE file. 10 * 11 * This software is provided "AS IS" with no warranty of any kind, 12 * express or implied, and with no claim as to its suitability for any 13 * purpose. 14 * 15 */ 16 17 ///\ingroup demos 18 ///\file 19 ///\brief Demonstrating graph input and output 20 /// 21 /// This simple demo program gives an example of how to read and write 22 /// a graph and additional maps (on the nodes or the edges) from/to a 23 /// stream. 24 25 1 26 #include <iostream> 2 27 #include <lemon/smart_graph.h> … … 19 44 20 45 std::cout << "Hello! We have read a graph from file " << filename<< 21 " and some maps on it: now we write thisto the standard output!" <<46 " and some maps on it:\n now we write it to the standard output!" << 22 47 std::endl; 23 48
Note: See TracChangeset
for help on using the changeset viewer.