update class Graph, Digraph
update