COIN-OR::LEMON - Graph Library

Changeset 1554:572bc7d0d3e2 in lemon-0.x for demo


Ignore:
Timestamp:
07/13/05 16:17:13 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2050
Message:

Demo displays information on the screen
Added to Makefile.am

Location:
demo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • demo/Makefile.am

    r1528 r1554  
    1313        hello_lemon \
    1414        sub_graph_adaptor_demo \
     15        descriptor_map_demo \
    1516        coloring
    1617
     
    4950lp_maxflow_demo_SOURCES = lp_maxflow_demo.cc
    5051lp_maxflow_demo_CXXFLAGS = $(GLPK_CFLAGS) $(CPLEX_CFLAGS)
     52
     53descriptor_map_demo_SOURCES = descriptor_map_demo.cc
  • demo/descriptor_map_demo.cc

    r1553 r1554  
     1/* -*- C++ -*-
     2 * demo/descriptor_map_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
    117#include <lemon/list_graph.h>
    218#include <lemon/graph_utils.h>
     19#include <lemon/graph_writer.h>
    320#include <lemon/xy.h>
     21#include <lemon/graph_to_eps.h>
    422
    5 #include <lemon/graph_to_eps.h>
     23#include <iostream>
    624
    725#include <cstdlib>
     
    5169 
    5270  // Generating a graph
    53  
     71
     72  std::cout << "Generating graph: " << std::endl;
     73
    5474  Graph graph;
    5575 
     
    7999  }
    80100
     101  GraphWriter<Graph>(std::cout, graph).run();
     102
     103  std::cout << std::endl;
     104  std::cout << "Postscript file: descriptor_map_demo.eps" << std::endl;
     105
    81106  // Make postscript from the graph.
    82107   
Note: See TracChangeset for help on using the changeset viewer.