add graph ds, algorithms and related test cases