change graph and digraph with suffix of _imperative