Graph: fix changegroup implementation