|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.knowceans.mcl.MatrixLoader
public class MatrixLoader
MatrixLoader loads matrices in simple sparse and dense formats.
| Constructor Summary | |
|---|---|
MatrixLoader()
|
|
| Method Summary | |
|---|---|
static double[][] |
loadDense(java.lang.String file)
read a graph with the elements of the adjacency matrix in each line. |
static SparseMatrix |
loadSparse(java.lang.String file)
read a graph with line format labelfrom labelto weight |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixLoader()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static SparseMatrix loadSparse(java.lang.String file)
string - public static double[][] loadDense(java.lang.String file)
file -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||