K
- the vertex ID typepublic static final class Spanner.UpdateLocal<K extends Comparable<K>,EV> extends Object implements EdgeFoldFunction<K,EV,AdjacencyListGraph<K>>
Constructor and Description |
---|
UpdateLocal() |
Modifier and Type | Method and Description |
---|---|
AdjacencyListGraph<K> |
foldEdges(AdjacencyListGraph<K> g,
K src,
K trg,
EV value)
Combines two edge values into one value of the same type.
|
public AdjacencyListGraph<K> foldEdges(AdjacencyListGraph<K> g, K src, K trg, EV value)
EdgeFoldFunction
foldEdges
in interface EdgeFoldFunction<K extends Comparable<K>,EV,AdjacencyListGraph<K extends Comparable<K>>>
g
- the initial value and accumulatorsrc
- the vertex IDtrg
- the neighbor's IDvalue
- the edge valueCopyright © 2020. All rights reserved.