Added DiGraph class