通过er_mutilayer方法来创建:
Generate multilayer Erdos-Renyi network. The produced multilayer network has a single aspect.
import pymnet # 构建一个包含两个层,每个层有10个节点的ER网络 net = pymnet.models.er_multilayer(10, 2, p=0.2) # 输出adjacency_matrix print("adjacency_matrix: ", net.get_supra_adjacency_matrix())