ColPack
|
00001 /************************************************************************************ 00002 Copyright (C) 2005-2008 Assefaw H. Gebremedhin, Arijit Tarafdar, Duc Nguyen, 00003 Alex Pothen 00004 00005 This file is part of ColPack. 00006 00007 ColPack is free software: you can redistribute it and/or modify 00008 it under the terms of the GNU Lesser General Public License as published 00009 by the Free Software Foundation, either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 ColPack is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License 00018 along with ColPack. If not, see <http://www.gnu.org/licenses/>. 00019 ************************************************************************************/ 00020 00021 using namespace std; 00022 00023 #ifndef BIPARTITEGRAPHPARTIALCOLORINGINTERFACE_H 00024 #define BIPARTITEGRAPHPARTIALCOLORINGINTERFACE_H 00025 00026 namespace ColPack 00027 { 00037 class BipartiteGraphPartialColoringInterface : public BipartiteGraphPartialColoring 00038 { 00039 public: //DOCUMENTED 00040 00042 00091 BipartiteGraphPartialColoringInterface(int i_type, ...); 00092 00094 00113 int PartialDistanceTwoColoring(string s_OrderingVariant = "NATURAL", string s_ColoringVariant = "COLUMN_PARTIAL_DISTANCE_TWO"); 00114 00116 00136 void GenerateSeedJacobian(double*** dp3_seed, int *ip1_SeedRowCount, int *ip1_SeedColumnCount, string s_OrderingVariant="NATURAL", string s_ColoringVariant = "COLUMN_PARTIAL_DISTANCE_TWO"); 00137 00138 00140 00143 void GenerateSeedJacobian_unmanaged(double*** dp3_seed, int *ip1_SeedRowCount, int *ip1_SeedColumnCount, string s_OrderingVariant="NATURAL", string s_ColoringVariant = "COLUMN_PARTIAL_DISTANCE_TWO"); 00144 00146 double** GetSeedMatrix(int* ip1_SeedRowCount, int* ip1_SeedColumnCount); 00147 00148 void GetOrderedVertices(vector<int> &output); 00149 private: 00150 00151 Timer m_T_Timer; 00152 00153 public: 00154 00155 //Public Destructor 2602 00156 ~BipartiteGraphPartialColoringInterface(); 00157 00158 //Public Function 2603 00159 void Clear(); 00160 00161 //Public Function 2604 00162 void Reset(); 00163 00164 }; 00165 } 00166 #endif 00167