Remove DirectedGraph. Add IsDirected method to Graph. Other minor refactoring.