uchicago.src.sim.network
Class AdjacencyMatrixFactory

java.lang.Object
  extended by uchicago.src.sim.network.AdjacencyMatrixFactory

public class AdjacencyMatrixFactory
extends java.lang.Object


Method Summary
static AdjacencyMatrix createAdjacencyMatrix(int rows, int cols, int type)
          Returns an AdjacencyMatrix of the appropriate type.
static AdjacencyMatrix createAdjacencyMatrix(java.util.List labels, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAdjacencyMatrix

public static AdjacencyMatrix createAdjacencyMatrix(int rows,
                                                    int cols,
                                                    int type)
Returns an AdjacencyMatrix of the appropriate type.

Parameters:
rows - the number of rows in the matrix
cols - the number of cols in the matrix
type - the type of the matrix. type refers to the size of the matrix elements (ij values) and can be one of NetworkConstants.BINARY, NetworkConstants.LARGE, NetworkConstants.SMALL

createAdjacencyMatrix

public static AdjacencyMatrix createAdjacencyMatrix(java.util.List labels,
                                                    int type)