| Modifier and Type | Field and Description |
|---|---|
protected Double |
directed_value |
protected Double |
undirected_value |
| Constructor and Description |
|---|
ConstantDirectionalEdgeValueTransformer(double undirected,
double directed) |
| Modifier and Type | Method and Description |
|---|---|
Number |
apply(Context<Graph<V,E>,E> context) |
void |
setDirectedValue(double value)
Sets the value returned for directed edges to
value. |
void |
setUndirectedValue(double value)
Sets the value returned for undirected edges to
value. |
protected Double undirected_value
protected Double directed_value
public ConstantDirectionalEdgeValueTransformer(double undirected,
double directed)
undirected - the value to return if the edge is undirecteddirected - the value to return if the edge is directedpublic void setUndirectedValue(double value)
value.value - the new value to return for undirected edgespublic void setDirectedValue(double value)
value.value - the new value to return for directed edgesCopyright © 2016. All rights reserved.