D-integral and D-integral graphs