medusa.georgios.ClusteringAlgorithms
Class MatrixLoader
- java.lang.Object
-
- medusa.georgios.ClusteringAlgorithms.MatrixLoader
-
public class MatrixLoader extends java.lang.ObjectMatrixLoader loads matrices in simple sparse and dense formats.
-
-
Constructor Summary
Constructors Constructor and Description MatrixLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static double[][]loadDense(java.lang.String file)read a graph with the elements of the adjacency matrix in each line.static SparseMatrixloadSparse(java.lang.String file)read a graph with line format labelfrom labelto weightstatic voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
loadSparse
public static SparseMatrix loadSparse(java.lang.String file)
read a graph with line format labelfrom labelto weight- Parameters:
string-
-
loadDense
public static double[][] loadDense(java.lang.String file)
read a graph with the elements of the adjacency matrix in each line.- Parameters:
file-- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG