- All Implemented Interfaces:
- org.apache.commons.collections4.Transformer<VEPair<V,E>,java.lang.Double>
public class UniformInOut<V,E>
extends java.lang.Object
implements org.apache.commons.collections4.Transformer<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.