Commit from pc work: Directed graphs