Now use edge type in directed graphs.