iset_iso_check.h

来自「这是一个用于数据挖掘的常用算法的模板库(数据挖掘的C++模板库for UNIX)」· C头文件 代码 · 共 55 行

H
55
字号
/* *  Copyright (C) 2005 M.J. Zaki <zaki@cs.rpi.edu> Rensselaer Polytechnic Institute *  Written by parimi@cs.rpi.edu *  Updated by chaojv@cs.rpi.edu, alhasan@cs.rpi.edu, salems@cs.rpi.edu * *  This program is free software; you can redistribute it and/or *  modify it under the terms of the GNU General Public License *  as published by the Free Software Foundation; either version 2 *  of the License, or (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License along *  with this program; if not, write to the Free Software Foundation, Inc., *  59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */#ifndef _ISET_ISO_CHECK_H_#define _ISET_ISO_CHECK_H_#include "typedefs.h"template<class PP, class MP, class ST, template<typename, typename, typename, template <typename> class > class CC,         template <typename> class ALLOC >class pattern;class no_edges;template<class prop, class next_property>class proplist;/* * Method performs isomorphism checking for itemsets. * Also update the canonical code for the pattern. * * Method returns true to indicate that the pattern is canonical. For itemsets this is  * always true due to the manner in which we generate candidates.  */template<typename PP, class MP, class PAT_ST, template<class, typename, typename, template <typename> class > class CAN_CODE,          template <typename> class ALLOC >bool check_isomorphism(pattern<ISET_PROP, MP, PAT_ST, CAN_CODE, ALLOC>* const& cand_pat) {   // NOTE:  // The candidate generation process results in no isomorphism check for itemsets.  // Update canonical code.  cand_pat->_canonical_code.insert_vertex(cand_pat->rmost_vertex());  cand_pat->_is_canonical = true;  return true;}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?