org.psjava.algo.graph.flownetwork.MinimumResidualOnPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of psjava Show documentation
Show all versions of psjava Show documentation
Problem Solving Library for Java
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