public class DelegateToEdgeTransformer<V,E> extends Object implements com.google.common.base.Function<VEPair<V,E>,Number>
Transformer<VEPair,Number
that delegates its operation to a
Transformer<E,Number>
. Mainly useful for technical reasons inside
AbstractIterativeScorer; in essence it allows the edge weight instance
variable to be of type VEPair,W
even if the edge weight
Transformer
only operates on edges.Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Function<? super E,? extends Number> |
delegate
The Function to which this instance delegates its function.
|
Constructor and Description |
---|
DelegateToEdgeTransformer(com.google.common.base.Function<? super E,? extends Number> delegate)
Creates an instance with the specified delegate Function.
|
Copyright © 2015. All rights reserved.