Пример #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)
Пример #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)
Пример #3
0
def collapseBiNet(net,nodesToRemove):
    return transforms.collapseBipartiteNet(net,nodesToRemove)
Пример #4
0
def collapseBiNet(net, nodesToRemove):
    return transforms.collapseBipartiteNet(net, nodesToRemove)