ColPack
BipartiteGraphBicoloring/BipartiteGraphOrdering.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 BIPARTITEGRAPHORDERING_H
00024 #define BIPARTITEGRAPHORDERING_H
00025 
00026 using namespace std;
00027 
00028 namespace ColPack
00029 {
00037         class BipartiteGraphOrdering : public BipartiteGraphVertexCover
00038         {
00039         public:
00040 
00041                 int OrderVertices(string s_OrderingVariant);
00042 
00043         private:
00044 
00045                 //Private Function 3401
00046                 int CheckVertexOrdering(string s_VertexOrderingVariant);
00047 
00048         protected:
00049 
00050                 double m_d_OrderingTime;
00051 
00052                 string m_s_VertexOrderingVariant;
00053 
00054                 vector<int> m_vi_OrderedVertices;
00055 
00056         public:
00057 
00058                 BipartiteGraphOrdering();
00059 
00060                 ~BipartiteGraphOrdering();
00061 
00062                 virtual void Clear();
00063 
00064                 virtual void Reset();
00065 
00066                 int NaturalOrdering();
00067 
00068                 int RandomOrdering();
00069 
00070                 int LargestFirstOrdering();
00071 
00072                 int SmallestLastOrdering();
00073 
00074                 int IncidenceDegreeOrdering();
00075 
00076                 int DynamicLargestFirstOrdering();
00077 
00078                 int SelectiveLargestFirstOrdering();
00079 
00080                 int SelectiveSmallestLastOrdering();
00081 
00082                 int SelectiveIncidenceDegreeOrdering();
00083 
00084                 string GetVertexOrderingVariant();
00085 
00086                 void GetOrderedVertices(vector<int> &output);
00087 
00088                 void PrintVertexOrdering();
00089                 
00090                 double GetVertexOrderingTime();
00091         };
00092 }
00093 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines