Changeset 956:141f9c0db4a3 in lemon for lemon/hao_orlin.h
- Timestamp:
- 03/06/10 15:35:12 (15 years ago)
- Branch:
- default
- Children:
- 957:f802439d2b58, 959:38213abd2911, 1041:f112c18bc304
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/hao_orlin.h
r934 r956 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2010 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 32 32 /// \brief Implementation of the Hao-Orlin algorithm. 33 33 /// 34 /// Implementation of the Hao-Orlin algorithm for finding a minimum cut 34 /// Implementation of the Hao-Orlin algorithm for finding a minimum cut 35 35 /// in a digraph. 36 36 … … 42 42 /// 43 43 /// This class implements the Hao-Orlin algorithm for finding a minimum 44 /// value cut in a directed graph \f$D=(V,A)\f$. 44 /// value cut in a directed graph \f$D=(V,A)\f$. 45 45 /// It takes a fixed node \f$ source \in V \f$ and 46 46 /// consists of two phases: in the first phase it determines a … … 59 59 /// For an undirected graph you can run just the first phase of the 60 60 /// algorithm or you can use the algorithm of Nagamochi and Ibaraki, 61 /// which solves the undirected problem in \f$ O(nm + n^2 \log n) \f$ 61 /// which solves the undirected problem in \f$ O(nm + n^2 \log n) \f$ 62 62 /// time. It is implemented in the NagamochiIbaraki algorithm class. 63 63 /// … … 77 77 class HaoOrlin { 78 78 public: 79 79 80 80 /// The digraph type of the algorithm 81 81 typedef GR Digraph; … … 865 865 /// 866 866 /// This function initializes the internal data structures. It creates 867 /// the maps and some bucket structures for the algorithm. 867 /// the maps and some bucket structures for the algorithm. 868 868 /// The given node is used as the source node for the push-relabel 869 869 /// algorithm. … … 945 945 /// \brief Run the algorithm. 946 946 /// 947 /// This function runs the algorithm. It uses the given \c source node, 947 /// This function runs the algorithm. It uses the given \c source node, 948 948 /// finds a proper \c target node and then calls the \ref init(), 949 949 /// \ref calculateOut() and \ref calculateIn(). … … 959 959 /// The result of the %HaoOrlin algorithm 960 960 /// can be obtained using these functions.\n 961 /// \ref run(), \ref calculateOut() or \ref calculateIn() 961 /// \ref run(), \ref calculateOut() or \ref calculateIn() 962 962 /// should be called before using them. 963 963 … … 968 968 /// This function returns the value of the minimum cut. 969 969 /// 970 /// \pre \ref run(), \ref calculateOut() or \ref calculateIn() 970 /// \pre \ref run(), \ref calculateOut() or \ref calculateIn() 971 971 /// must be called before using this function. 972 972 Value minCutValue() const { … … 987 987 /// \return The value of the minimum cut. 988 988 /// 989 /// \pre \ref run(), \ref calculateOut() or \ref calculateIn() 989 /// \pre \ref run(), \ref calculateOut() or \ref calculateIn() 990 990 /// must be called before using this function. 991 991 template <typename CutMap>
Note: See TracChangeset
for help on using the changeset viewer.