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)
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)
def collapseBiNet(net,nodesToRemove): return transforms.collapseBipartiteNet(net,nodesToRemove)
def collapseBiNet(net, nodesToRemove): return transforms.collapseBipartiteNet(net, nodesToRemove)