update class: Digraph