VX(Li): Move the directed flag at graph level.