Implemented a copy constructor for the digraph.