parameters: (mat, onlyOnes=0)
return_statement: return res
docstring: *Internal Use Only*
  
    this is just a row sum of the matrix... simple, neh?
docstring_summary: *Internal Use Only*
docstring_tokens: * Internal Use Only *
function: def _VertexDegrees(mat, onlyOnes=0):
    """  *Internal Use Only*
  
    this is just a row sum of the matrix... simple, neh?
  
    """
    if not onlyOnes:
      res = sum(mat)
    else:
      res = sum(numpy.equal(mat, 1))
    return res
function_tokens: def _VertexDegrees ( mat , onlyOnes = 0 ) : if not onlyOnes : res = sum ( mat ) else : res = sum ( numpy . equal ( mat , 1 ) ) return res