Fixed the violation of nodes ordering caused by nx.adj_matrix and nx.relabel_nodes.
Bug: The ordering of data(.csv format) columns is not always consistent with the ordering of nodes in nx.graph, thus causing an erroneous mapping. Sorting both lists before calling nx.adj_matrix and nx.relabel_nodes fixes the problem.
Also, nx.adj_matrix is deprecated and is replaced by nx.adjacency_matrix.
Fixed the violation of nodes ordering caused by nx.adj_matrix and nx.relabel_nodes. Bug: The ordering of data(.csv format) columns is not always consistent with the ordering of nodes in nx.graph, thus causing an erroneous mapping. Sorting both lists before calling nx.adj_matrix and nx.relabel_nodes fixes the problem. Also, nx.adj_matrix is deprecated and is replaced by nx.adjacency_matrix.