• Main Page
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

BipartiteGraphBicoloring/BipartiteGraphInputOutput.h

Go to the documentation of this file.
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 BIPARTITEGRAPHINPUTOUTPUT_H
00024 #define BIPARTITEGRAPHINPUTOUTPUT_H
00025 
00026 namespace ColPack
00027 {
00036         class BipartiteGraphInputOutput : public BipartiteGraphCore
00037         {
00038         public: //DOCUMENTED
00039 
00041 
00065                 int ReadBipartiteGraph(string  s_InputFile, string s_fileFormat="AUTO_DETECTED");
00066 
00068 
00075                 int BuildBPGraphFromRowCompressedFormat(unsigned int ** uip2_JacobianSparsityPattern, int i_RowCount, int i_ColumnCount);
00076 
00078 
00085                 int RowCompressedFormat2BipartiteGraph(unsigned int ** uip2_JacobianSparsityPattern, int i_RowCount, int i_ColumnCount);
00086 
00088 
00096                 int BipartiteGraph2RowCompressedFormat(unsigned int *** uip3_JacobianSparsityPattern, unsigned int * uip1_RowCount, unsigned int * uip1_ColumnCount);
00097 
00098                 //Public Function 2258;3258
00099 
00101 
00120                 int ReadGenericMatrixBipartiteGraph(string s_InputFile);
00121 
00122                 //Public Function 2259;3259
00124 
00135                 int ReadGenericSquareMatrixBipartiteGraph(string s_InputFile);
00136 
00137 
00138         private:
00139 
00140                 //Private Function 2201;3201
00141                 void CalculateVertexDegrees();
00142 
00143         public:
00144 
00145                 //Public Constructor 2251;3251
00146                 BipartiteGraphInputOutput();
00147 
00148                 //Public Destructor 2252;3252
00149                 ~BipartiteGraphInputOutput();
00150 
00151                 //Virtual Function 2253;3254
00152                 //??? What is the purpose of this function? TO BE IMPLEMENTED
00153                 virtual void Initialize();
00154 
00155                 //Virtual Function 2254;3254
00156                 virtual void Clear();
00157 
00158                 //Public Function 2255;3255
00160                 int ReadMatrixMarketBipartiteGraph(string s_InputFile);
00161 
00162                 //Public Function 2256;3256
00164                 int ReadMeTiSBipartiteGraph(string s_InputFile);
00165 
00166                 //Public Function 2257;3257
00168                 int ReadHarwellBoeingBipartiteGraph(string s_InputFile);
00169 
00170                 //Public Function 2260;3260
00171                 void PrintBipartiteGraph();
00172 
00173                 //Public Function 2261;3261
00174                 void PrintVertexDegrees();
00175         };
00176 }
00177 #endif

Generated on Tue Sep 7 2010 15:28:10 for ColPack by  doxygen 1.7.1