trying out some graph problems