added directed graph