added adjacency matrix to net conversion