The function of converting the adjacency matrix into the topological layer.
layer_adj(true_adjace)Layer_true: a p * 2 matrix to store the information of layer. The first column is the node label, and the second column is the corresponding layer labels.
a p * p adjacency matrix
Mingyang Ren renmingyang17@mails.ucas.ac.cn.
Zhao, R., He X., and Wang J. (2022). Learning linear non-Gaussian directed acyclic graph with diverging number of nodes. Journal of Machine Learning Research.