de.uni_leipzig.mcl.cluster
Class SparseMatrixLabeled

java.lang.Object
  extended by de.uni_leipzig.mcl.cluster.SparseMatrixLabeled

public class SparseMatrixLabeled
extends java.lang.Object

Author:
an, rspeck
 

Field Summary
 SparseMatrix _mat
           
(package private)  java.util.ArrayList<java.lang.String> indexes
           
 
Constructor Summary
SparseMatrixLabeled()
          Creates a new instance of SparseMatrixLabeled
 
Method Summary
 double add(java.lang.String source, java.lang.String target, double value)
          Add an edge to matrix and index
 java.util.ArrayList<java.util.TreeSet<java.lang.String>> getCluster()
          gets all cluster in a List of TreeSet
 SparseMatrix getMatrix()
           
static SparseMatrixLabeled loadMatrix(java.lang.String file, java.lang.String separator)
          reads in a file.
 void setMatrix(SparseMatrix a)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_mat

public SparseMatrix _mat

indexes

java.util.ArrayList<java.lang.String> indexes
Constructor Detail

SparseMatrixLabeled

public SparseMatrixLabeled()
Creates a new instance of SparseMatrixLabeled

Method Detail

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