tools/dim_to_lgf.cc
changeset 2491 b63ae56979ef
parent 2417 113d381c9160
child 2553 bfced05fa852
equal deleted inserted replaced
3:302d21cc6abe 4:454d73230ace
    14  * express or implied, and with no claim as to its suitability for any
    14  * express or implied, and with no claim as to its suitability for any
    15  * purpose.
    15  * purpose.
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 ///\ingroup demos
    19 ///\ingroup tools
    20 ///\file
    20 ///\file
    21 ///\brief DIMACS to LGF converter.
    21 ///\brief DIMACS to LGF converter.
    22 ///
    22 ///
    23 /// This program converts various DIMACS formats to the LEMON Graph Format
    23 /// This program converts various DIMACS formats to the LEMON Graph Format
    24 /// (LGF).
    24 /// (LGF).
    25 ///
    25 ///
    26 /// \include dim_to_lgf.cc
    26 ///\verbatim
       
    27 ///Usage:
       
    28 ///  ./tools/dim_to_lgf
       
    29 ///     --mincostflow|-mcf|--maxflow|-mf|--shortestpath|-sp|--capacitated|-cap|--plain|-pl
       
    30 ///     [--help|-h|-help] [--input|-i str] [--output|-o str] [--version|-v]
       
    31 ///Where:
       
    32 ///  --capacitated|-cap
       
    33 ///     set the type of the graph to "capacitated" graph
       
    34 ///  --help|-h|-help
       
    35 ///     Print a short help message
       
    36 ///  --input|-i str
       
    37 ///     use FILE as input instead of standard input
       
    38 ///  --maxflow|-mf
       
    39 ///     set the type of the graph to "maxflow" graph
       
    40 ///  --mincostflow|-mcf
       
    41 ///     set the type of the graph to "mincostflow" graph
       
    42 ///  --output|-o str
       
    43 ///     use FILE as output instead of standard output
       
    44 ///  --plain|-pl
       
    45 ///     set the type of the graph to "plain" graph
       
    46 ///  --shortestpath|-sp
       
    47 ///     set the type of the graph to "shortestpath" graph
       
    48 ///  --version|-v
       
    49 ///     show version information
       
    50 ///\endverbatim
       
    51 ///
    27 
    52 
    28 #include <iostream>
    53 #include <iostream>
    29 #include <fstream>
    54 #include <fstream>
    30 #include <cstring>
    55 #include <cstring>
    31 
    56