de.uni_leipzig.mcl.cluster
Class SparseMatrixLabeled
java.lang.Object
de.uni_leipzig.mcl.cluster.SparseMatrixLabeled
public class SparseMatrixLabeled
- extends java.lang.Object
- Author:
- an, rspeck
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_mat
public SparseMatrix _mat
indexes
java.util.ArrayList<java.lang.String> indexes
SparseMatrixLabeled
public SparseMatrixLabeled()
- Creates a new instance of SparseMatrixLabeled
add
public double add(java.lang.String source,
java.lang.String target,
double value)
- Add an edge to matrix and index
getCluster
public java.util.ArrayList<java.util.TreeSet<java.lang.String>> getCluster()
- gets all cluster in a List of TreeSet
- Returns:
getMatrix
public SparseMatrix getMatrix()
loadMatrix
public static SparseMatrixLabeled loadMatrix(java.lang.String file,
java.lang.String separator)
- reads in a file.
- Parameters:
file
- separator
-
- Returns:
- matrix of LabeledSparseMatrix
setMatrix
public void setMatrix(SparseMatrix a)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object