Interface AdjacencyMatrix

All Known Implementing Classes:
AdjacencyDoubleMatrix

public interface AdjacencyMatrix
A social network adjacency matrix. This is used as an itermediary data structure when moving between Simphony networks. and other kinds of network representations. The matrix is assumed to be square and that the rows and columns refer to the same nodes.
Author:
Nick Collier
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of columns in the matrix.
    double
    get(int row, int col)
    Gets the value at row, col.
    Gets the node labels, if any, for this matrix.
    Gets the label for this matrix.
    cern.colt.matrix.impl.DenseDoubleMatrix1D
    getRow(int row)
    Gets the specified row of data for this matrix.
    Returns a String representation of only the actual data matrix.
    int
    Returns the number of rows in this matrix.
  • Method Details

    • getMatrixLabel

      String getMatrixLabel()
      Gets the label for this matrix.
      Returns:
      the label for this matrix.
    • getLabels

      List<String> getLabels()
      Gets the node labels, if any, for this matrix.
      Returns:
      the node labels, if any, for this matrix.
    • getRow

      cern.colt.matrix.impl.DenseDoubleMatrix1D getRow(int row)
      Gets the specified row of data for this matrix.
      Parameters:
      row - the index of the row to get
      Returns:
      the specified row of data for this matrix.
    • get

      double get(int row, int col)
      Gets the value at row, col.
      Parameters:
      row - the row index (i)
      col - the col index (j)
      Returns:
      the double value at row, col (ij)
    • rows

      int rows()
      Returns the number of rows in this matrix.
      Returns:
      the row count
    • columns

      int columns()
      Returns the number of columns in the matrix.
      Returns:
      the column count
    • matrixToString

      String matrixToString()
      Returns a String representation of only the actual data matrix.
      Returns:
      a String representation of only the actual data matrix.