now the graph is directed