lemon/color.cc
author deba
Tue, 17 Oct 2006 10:50:57 +0000
changeset 2247 269a0dcee70b
child 2391 14a343be7a5a
permissions -rw-r--r--
Update the Path concept
Concept check for paths

DirPath renamed to Path
The interface updated to the new lemon interface
Make difference between the empty path and the path from one node
Builder interface have not been changed
// I wanted but there was not accordance about it

UPath is removed
It was a buggy implementation, it could not iterate on the
nodes in the right order
Right way to use undirected paths => path of edges in undirected graphs

The tests have been modified to the current implementation
alpar@2174
     1
 /* -*- C++ -*-
alpar@2174
     2
 *
alpar@2174
     3
 * This file is a part of LEMON, a generic C++ optimization library
alpar@2174
     4
 *
alpar@2174
     5
 * Copyright (C) 2003-2006
alpar@2174
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@2174
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@2174
     8
 *
alpar@2174
     9
 * Permission to use, modify and distribute this software is granted
alpar@2174
    10
 * provided that this copyright notice appears in all copies. For
alpar@2174
    11
 * precise terms see the accompanying LICENSE file.
alpar@2174
    12
 *
alpar@2174
    13
 * This software is provided "AS IS" with no warranty of any kind,
alpar@2174
    14
 * express or implied, and with no claim as to its suitability for any
alpar@2174
    15
 * purpose.
alpar@2174
    16
 *
alpar@2174
    17
 */
alpar@2174
    18
alpar@2174
    19
///\file
alpar@2174
    20
///\brief Color constants
alpar@2174
    21
alpar@2174
    22
#include<lemon/color.h>
alpar@2174
    23
alpar@2174
    24
namespace lemon {
alpar@2174
    25
alpar@2174
    26
  const Color WHITE(1,1,1);
alpar@2174
    27
  
alpar@2174
    28
  const Color BLACK(0,0,0);
alpar@2174
    29
  const Color RED(1,0,0);
alpar@2174
    30
  const Color GREEN(0,1,0);
alpar@2174
    31
  const Color BLUE(0,0,1);
alpar@2174
    32
  const Color YELLOW(1,1,0);
alpar@2174
    33
  const Color MAGENTA(1,0,1);
alpar@2174
    34
  const Color CYAN(0,1,1);
alpar@2174
    35
alpar@2174
    36
  const Color GREY(0,0,0);
alpar@2174
    37
  const Color DARK_RED(.5,0,0);
alpar@2174
    38
  const Color DARK_GREEN(0,.5,0);
alpar@2174
    39
  const Color DARK_BLUE(0,0,.5);
alpar@2174
    40
  const Color DARK_YELLOW(.5,.5,0);
alpar@2174
    41
  const Color DARK_MAGENTA(.5,0,.5);
alpar@2174
    42
  const Color DARK_CYAN(0,.5,.5);
alpar@2174
    43
    
alpar@2174
    44
} //namespace lemon