org.knowceans.mcl
Class MatrixLoader

java.lang.Object
  extended by org.knowceans.mcl.MatrixLoader

public class MatrixLoader
extends java.lang.Object

MatrixLoader loads matrices in simple sparse and dense formats.

Author:
gregor :: arbylon . net

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

MatrixLoader

public MatrixLoader()
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: