include egdes in return value, resolve #2335