update basic graph alg post