Class RealMatrixElementOperations<E>
- java.lang.Object
-
- edu.uci.ics.jung.algorithms.matrix.RealMatrixElementOperations<E>
-
- All Implemented Interfaces:
MatrixElementOperations<E>
public class RealMatrixElementOperations<E> extends java.lang.Object implements MatrixElementOperations<E>
Implements the basic matrix operations on double-precision values. Assumes that the edges have a MutableDouble value.
-
-
Constructor Summary
Constructors Constructor Description RealMatrixElementOperations(java.util.Map<E,java.lang.Number> edgeData)Creates an instance using the specified edge values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.NumbercomputePathData(E e1, E e2)If either e1 or e2 is null, the Object reference returned should be null.java.util.Map<E,java.lang.Number>getEdgeData()Returns a map from edges to values.voidmergePaths(E e, java.lang.Object pathData)If either e or pathData is null, the effect of mergePaths() is implementation-dependent.
-
-
-
Constructor Detail
-
RealMatrixElementOperations
public RealMatrixElementOperations(java.util.Map<E,java.lang.Number> edgeData)
Creates an instance using the specified edge values.
-
-
Method Detail
-
mergePaths
public void mergePaths(E e, java.lang.Object pathData)
Description copied from interface:MatrixElementOperationsIf either e or pathData is null, the effect of mergePaths() is implementation-dependent.- Specified by:
mergePathsin interfaceMatrixElementOperations<E>- Parameters:
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 e- See Also:
MatrixElementOperations.mergePaths(Object, Object)
-
computePathData
public java.lang.Number computePathData(E e1, E e2)
Description copied from interface:MatrixElementOperationsIf either e1 or e2 is null, the Object reference returned should be null.- Specified by:
computePathDatain interfaceMatrixElementOperations<E>- Parameters:
e1- first edge from 2-edge path in input graph(s)e2- second edge from 2-edge path in input graph(s)- Returns:
- aggregation of data from the edges of the 2-edge path (from source of e1 to destination of e2) comprised of (e1, e2)
- See Also:
MatrixElementOperations.computePathData(Object, Object)
-
getEdgeData
public java.util.Map<E,java.lang.Number> getEdgeData()
Description copied from interface:MatrixElementOperationsReturns a map from edges to values.- Specified by:
getEdgeDatain interfaceMatrixElementOperations<E>- Returns:
- the edgeData
-
-