lib/sbm.js
function(n) {
    n = _.isInteger(n) ? n : 0

    return {
      x: n,
      y: n,
      data: _.map(_.range(n), function (num) {
        return [num]
      })
    }
  }
function(n) {
    n = _.isInteger(n) ? n : 0

    return {
      x: n,
      y: n,
      data: _.map(_.range(n), function (num) {
        return [num]
      })
    }
  }
function ( n ) { n = _ . isInteger ( n ) ? n : 0 return { x : n , y : n , data : _ . map ( _ . range ( n ) , function ( num ) { return [ num ] } ) } }
returns the identity matrix for a given dimension
returns the identity matrix for a given dimension