fixed graph.hpp test error (not undirected graph)