- All Implemented Interfaces:
com.google.common.base.Function<VEPair<V,E>,java.lang.Double>
, java.util.function.Function<VEPair<V,E>,java.lang.Double>
public class UniformInOut<V,E>
extends java.lang.Object
implements com.google.common.base.Function<VEPair<V,E>,java.lang.Double>
Assigns weights to directed edges (the edge of the vertex/edge pair) depending on
whether the vertex is the edge's source or its destination.
If the vertex v is the edge's source, assigns 1/outdegree(v).
Otherwise, assigns 1/indegree(w).
Throws IllegalArgumentException
if the edge is not directed.