コード例 #1
0
ファイル: measures.py プロジェクト: omerch/pyconto
def number_of_edges_dir(cmatrix):
    """ Returns the number of edges in a directed 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_dir(m)
    bct.gsl_free(m)
    return n
コード例 #2
0
ファイル: measures.py プロジェクト: aestrivex/pyconto
def number_of_edges_dir(cmatrix):
    """ Returns the number of edges in a directed 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_dir(m)
    bct.gsl_free(m)
    return n
コード例 #3
0
ファイル: bct.py プロジェクト: aestrivex/pyconto
def number_of_edges_dir(*args):
  return _bct.number_of_edges_dir(*args)
コード例 #4
0
def number_of_edges_dir(*args):
    return _bct.number_of_edges_dir(*args)
コード例 #5
0
ファイル: bct.py プロジェクト: aestrivex/pyconto
def number_of_edges_dir(*args):
  """number_of_edges_dir(gsl_matrix m) -> int"""
  return _bct.number_of_edges_dir(*args)
コード例 #6
0
ファイル: bct.py プロジェクト: omerch/pyconto
def number_of_edges_dir(*args):
    """number_of_edges_dir(gsl_matrix m) -> int"""
    return _bct.number_of_edges_dir(*args)