lemon/bits/vf2_internals.h
author Peter Madarasi <madarasip@caesar.elte.hu>
Tue, 19 Sep 2017 14:08:20 +0200
changeset 1405 3feba0ea1bda
child 1407 76349d8212d3
permissions -rw-r--r--
Vf2 improvements and Vf2pp implementation (#597)
madarasip@1405
     1
/* -*- mode: C++; indent-tabs-mode: nil; -*-
madarasip@1405
     2
 *
madarasip@1405
     3
 * This file is a part of LEMON, a generic C++ optimization library.
madarasip@1405
     4
 *
madarasip@1405
     5
 * Copyright (C) 2015-2017
madarasip@1405
     6
 * EMAXA Kutato-fejleszto Kft. (EMAXA Research Ltd.)
madarasip@1405
     7
 *
madarasip@1405
     8
 * Permission to use, modify and distribute this software is granted
madarasip@1405
     9
 * provided that this copyright notice appears in all copies. For
madarasip@1405
    10
 * precise terms see the accompanying LICENSE file.
madarasip@1405
    11
 *
madarasip@1405
    12
 * This software is provided "AS IS" with no warranty of any kind,
madarasip@1405
    13
 * express or implied, and with no claim as to its suitability for any
madarasip@1405
    14
 * purpose.
madarasip@1405
    15
 *
madarasip@1405
    16
 */
madarasip@1405
    17
madarasip@1405
    18
#ifndef VF2_INTERNALS_H
madarasip@1405
    19
#define VF2_INTERNALS_H
madarasip@1405
    20
madarasip@1405
    21
madarasip@1405
    22
///\ingroup graph_properties
madarasip@1405
    23
///\file
madarasip@1405
    24
///\brief Mapping types for graph matching algorithms.
madarasip@1405
    25
madarasip@1405
    26
namespace lemon {
madarasip@1405
    27
  ///\ingroup graph_isomorphism
madarasip@1405
    28
  ///The \ref Vf2 "VF2" algorithm is capable of finding different kind of
madarasip@1405
    29
  ///embeddings, this enum specifies its type.
madarasip@1405
    30
  ///
madarasip@1405
    31
  ///See \ref graph_isomorphism for a more detailed description.
madarasip@1405
    32
  enum MappingType {
madarasip@1405
    33
    /// Subgraph isomorphism
madarasip@1405
    34
    SUBGRAPH = 0,
madarasip@1405
    35
    /// Induced subgraph isomorphism
madarasip@1405
    36
    INDUCED = 1,
madarasip@1405
    37
    /// Graph isomorphism
madarasip@1405
    38
madarasip@1405
    39
    /// If the two graph has the same number of nodes, than it is
madarasip@1405
    40
    /// equivalent to \ref INDUCED, and if they also have the same
madarasip@1405
    41
    /// number of edges, then it is also equivalent to \ref SUBGRAPH.
madarasip@1405
    42
    ///
madarasip@1405
    43
    /// However, using this setting is faster than the other two
madarasip@1405
    44
    /// options.
madarasip@1405
    45
    ISOMORPH = 2
madarasip@1405
    46
  };
madarasip@1405
    47
}
madarasip@1405
    48
#endif