@@ -106,19 +106,19 @@ using graph = struct Graph {
106106 */
107107CDouble maxCycleMeanYoungTarjanOrlin (MCMgraph& mcmGraph);
108108
109- /* *
110- * maxCycleMeanAndCriticalCycleYoungTarjanOrlin ()
111- * The function computes the maximum cycle mean of edge weight of
112- * an MCMgraph using Young-Tarjan-Orlin's algorithm.
113- * It returns both the MCM and a critical cycle
114- * The critical cycle is only returned if cycle and len are not NULL. Then *cycle points
115- * to an array of *MCMEdges of the critical cycle and *len indicates the length of the cycle.
116- * *cycle is a freshly allocated array and it is the caller's obligation to deallocate it
117- * in due time.
118- */
109+
110+ // / The function computes the maximum cycle mean of edge weight of
111+ // / an MCMgraph using Young-Tarjan-Orlin's algorithm.
112+ // / It returns both
113+ // / The critical cycle is only returned if cycle is not NULL. Then *cycle points
114+ // / to an array of *MCMEdges of the critical cycle.
115+ // / @param mcmGraph The graph to analyze
116+ // / @param cycle Pointer to the critical cycle
117+ // / @return the MCM and a critical cycle
119118CDouble
120119maxCycleMeanAndCriticalCycleYoungTarjanOrlin (MCMgraph& mcmGraph, std::shared_ptr<std::vector<const MCMedge*>> *cycle);
121120
121+
122122/* *
123123 * maxCycleRatioYoungTarjanOrlin ()
124124 * The function computes the maximum cycle ratio of edge weight over delay of
@@ -131,10 +131,8 @@ CDouble maxCycleRatioYoungTarjanOrlin(MCMgraph& mcmGraph);
131131 * The function computes the maximum cycle ratio of edge weight over delay of
132132 * an MCMgraph using Young-Tarjan-Orlin's algorithm.
133133 * It returns both the MCR and a critical cycle
134- * The critical cycle is only returned if cycle and len are not NULL. Then *cycle points
135- * to an array of *MCMEdges of the critical cycle and *len indicates the length of the cycle.
136- * *cycle is a freshly allocated array and it is the caller's obligation to deallocate it
137- * in due time.
134+ * The critical cycle is only returned if cycle is not NULL. Then *cycle points
135+ * to an array of *MCMEdges of the critical cycle/
138136 */
139137CDouble
140138maxCycleRatioAndCriticalCycleYoungTarjanOrlin (MCMgraph& mcmGraph, std::shared_ptr<std::vector<const MCMedge*>> *cycle);
@@ -151,10 +149,8 @@ CDouble minCycleRatioYoungTarjanOrlin(MCMgraph& mcmGraph);
151149 * The function computes the minimum cycle ratio of edge weight over delay of
152150 * an MCMgraph using Young-Tarjan-Orlin's algorithm.
153151 * It returns both the MCR and a critical cycle
154- * The critical cycle is only returned if cycle and len are not NULL. Then *cycle points
155- * to an array of *MCMEdges of the critical cycle and *len indicates the length of the cycle.
156- * *cycle is a freshly allocated array and it is the caller's obligation to deallocate it
157- * in due time.
152+ * The critical cycle is only returned if cycle is not NULL. Then *cycle points
153+ * to an array of *MCMEdges of the critical cycle.
158154 */
159155CDouble
160156minCycleRatioAndCriticalCycleYoungTarjanOrlin (MCMgraph& mcmGraph, std::shared_ptr<std::vector<const MCMedge*>> *cycle);
0 commit comments