added adjacency_to_df() to convert adjacency matrix to data frame.