added more methods to Digraph