Algorithm:Graph