10:52 AM PT -- A source with direct knowledge tells us Graham was recently dropped off at a shelter, and was having behavioral issues -- mostly a biting problem. Vanderpump Dog Foundation got alerted to Graham's situation and worked out the reunion with James and his pooch.
Our sources say James has the dog in training classes, and they've seemed to work. We're told James is super happy to have Graham back.
Rachel Leviss is making some more big changes in her life ... she changed her name, and now, she's no longer a dog mom.
James Kennedy posted some photos with Graham, the dog he once shared with Leviss when they were dating, claiming the pup is back with him for good. Sources with direct knowledge tell us James found out through a mutual friend Raquel was trying to find a new home for Graham ... she didn't connect with him directly.
Clearly, the "Vanderpump Rules" star is thrilled to have his pooch back, kissing him in photos with the caption ... "Look who made his way back home, back into my life, I'll take care of you forever and I love you. ❤️"
It appears the images are from the 'VPR' trip to Lake Tahoe ... where some of the cast members are currently hanging out. James is with his girlfriend Ally Lewber in one of the pics, kissing the dog while on a boat.
Remember ... Leviss and James originally got Graham back when they were dating, but she took the pooch with her when they ultimately split.
Now, James has the dog ... and the timeline suggests Graham Cracker made his way back to James when Rachel went to the mental health facility she ended up calling home for 2 months.