Add an undirected graph implementation.