Moved from undirected to directed graph.