All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.psjava.algo.graph.flownetwork.MinimumResidualOnPath Maven / Gradle / Ivy

There is a newer version: 0.1.19
Show newest version
package org.psjava.algo.graph.flownetwork;

import org.psjava.ds.graph.FlowNetworkEdge;
import org.psjava.ds.numbersystrem.AddableNumberSystem;
import org.psjava.formula.MinInIterable;
import org.psjava.util.ConvertedDataIterable;
import org.psjava.util.DataConverter;

public class MinimumResidualOnPath {

	public static > F find(Iterable path, final AddableNumberSystem ns) {
		return MinInIterable.min(ConvertedDataIterable.create(path, new DataConverter() {
			@Override
			public F convert(FE e) {
				return Residual.calc(e, ns);
			}
		}), ns);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy