Ejemplo n.º 1
0
def getKCliqueNet(net, k):
    """
    Returns a network of k-cliques in the network given as a parameter.
    Two k-cliques are adjacent if they share a (k-1)-clique.
    """
    kbinet, kcliques, krcliques = getKCliqueBipartiteNet(net, k)
    return transforms.collapseBipartiteNet(kbinet, krcliques)
Ejemplo n.º 2
0
def getKCliqueNet(net,k):
    """
    Returns a network of k-cliques in the network given as a parameter.
    Two k-cliques are adjacent if they share a (k-1)-clique.
    """
    kbinet,kcliques,krcliques=getKCliqueBipartiteNet(net,k)
    return transforms.collapseBipartiteNet(kbinet,krcliques)
Ejemplo n.º 3
0
def collapseBiNet(net,nodesToRemove):
    return transforms.collapseBipartiteNet(net,nodesToRemove)
Ejemplo n.º 4
0
def collapseBiNet(net, nodesToRemove):
    return transforms.collapseBipartiteNet(net, nodesToRemove)