addadded outline for graph algos