add adj_matrix and repre_nodes