demo/dim_to_lgf.cc
changeset 1638 4e50ed042394
parent 1435 8e85e6bbefdf
child 1641 77f6ab7ad66f
equal deleted inserted replaced
0:b0dd19362fcd 1:e4fe3de658a9
       
     1 /* -*- C++ -*-
       
     2  * demo/dim_to_lgf.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 DIMACS to LGF converter (demo).
       
    20 ///
       
    21 /// This program converts various DIMACS formats to the LEMON Graph Format
       
    22 /// (LGF).
       
    23 
     1 #include <iostream>
    24 #include <iostream>
     2 #include <fstream>
    25 #include <fstream>
     3 #include <cstring>
    26 #include <cstring>
     4 
    27 
     5 #include <lemon/smart_graph.h>
    28 #include <lemon/smart_graph.h>
    11 
    34 
    12 const char* versionString =
    35 const char* versionString =
    13 "dim_to_lgf - part of lemon library\n";
    36 "dim_to_lgf - part of lemon library\n";
    14 
    37 
    15 const char* helpString =
    38 const char* helpString =
    16 "Dimacs to LGF converter\n"
    39 "DIMACS to LGF converter\n"
    17 "Usage: dim_to_lgf [OPTIONS]\n"
    40 "Usage: dim_to_lgf [OPTIONS]\n"
    18 "\n"
    41 "\n"
    19 "Examples:\n"
    42 "Examples:\n"
    20 "  dim_to_lgf --type shortestpath --input graph.dim --output graph.lgf\n"
    43 "  dim_to_lgf --type shortestpath --input graph.dim --output graph.lgf\n"
    21 "\n"
    44 "\n"