Undirected graph utilities. No real use for it yet, but wanted to do it.