Added a Digraph class