few graph algos