public class RealMatrixElementOperations<E> extends Object implements MatrixElementOperations<E>
| Constructor and Description |
|---|
RealMatrixElementOperations(Map<E,Number> edgeData)
Creates an instance using the specified edge values.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
computePathData(E e1,
E e2)
If either e1 or e2 is null, the Object reference returned should be null.
|
Map<E,Number> |
getEdgeData()
Returns a map from edges to values.
|
void |
mergePaths(E e,
Object pathData)
If either e or pathData is null, the effect of mergePaths() is
implementation-dependent.
|
public void mergePaths(E e, Object pathData)
MatrixElementOperationsmergePaths in interface MatrixElementOperations<E>e - (possibly) existing edge in the output graph which
represents a path in the input graph(s)pathData - data (which represents another path with the same source
and destination as e in the input graphs) which is to be merged into eMatrixElementOperations.mergePaths(Object, Object)public Number computePathData(E e1, E e2)
MatrixElementOperationscomputePathData in interface MatrixElementOperations<E>e1 - first edge from 2-edge path in input graph(s)e2 - second edge from 2-edge path in input graph(s)MatrixElementOperations.computePathData(Object, Object)public Map<E,Number> getEdgeData()
MatrixElementOperationsgetEdgeData in interface MatrixElementOperations<E>Copyright © 2015. All rights reserved.