Support Directed and Undirected Graphs