directed graph analysis