Simple greedy algorithms for fundamental multidimensional graph problems