updated the network to be undirected and symmetric