Added some undirected graph methods.