Some basic graph algs.