Fixed directed input graph creation.