File diff r27941:fbe336fa8b4e → r27942:f7389062d120
src/linkgraph/mcf.cpp
Show inline comments
 
@@ -108,10 +108,9 @@ public:
 

	
 
	/**
 
	 * Setup the node to start iterating at.
 
	 * @param source Unused.
 
	 * @param node Node to start iterating at.
 
	 */
 
	void SetNode(NodeID source, NodeID node)
 
	void SetNode(NodeID, NodeID node)
 
	{
 
		this->i = this->job[node].edges.cbegin();
 
		this->end = this->job[node].edges.cend();
 
@@ -197,7 +196,7 @@ public:
 
 * @return True if base + the new edge would be better than the path associated
 
 * with this annotation.
 
 */
 
bool DistanceAnnotation::IsBetter(const DistanceAnnotation *base, uint cap,
 
bool DistanceAnnotation::IsBetter(const DistanceAnnotation *base, uint,
 
		int free_cap, uint dist) const
 
{
 
	/* If any of the paths is disconnected, the other one is better. If both