Esempio n. 1
0
def number_of_edges_und(cmatrix):
    """ Returns the number of edges in an undirected graph.
    
    No checking of the edgetype of the cmatrix.
    
    Parameters
    ----------
    cmatrix : connection/adjacency matrix
    
    """
    m = bct.to_gslm(cmatrix.tolist())
    n = bct.number_of_edges_und(m)
    bct.gsl_free(m)
    return n
Esempio n. 2
0
def number_of_edges_und(cmatrix):
    """ Returns the number of edges in an undirected graph.
    
    No checking of the edgetype of the cmatrix.
    
    Parameters
    ----------
    cmatrix : connection/adjacency matrix
    
    """
    m = bct.to_gslm(cmatrix.tolist())
    n = bct.number_of_edges_und(m)
    bct.gsl_free(m)
    return n
Esempio n. 3
0
def number_of_edges_und(*args):
  return _bct.number_of_edges_und(*args)
Esempio n. 4
0
def number_of_edges_und(*args):
    return _bct.number_of_edges_und(*args)
Esempio n. 5
0
def number_of_edges_und(*args):
  """number_of_edges_und(gsl_matrix m) -> int"""
  return _bct.number_of_edges_und(*args)
Esempio n. 6
0
def number_of_edges_und(*args):
    """number_of_edges_und(gsl_matrix m) -> int"""
    return _bct.number_of_edges_und(*args)