Changed Xpregel APIs