Add an implementation of undirected graph