add 2 graph problems