Graph class supports directed graphs.