Graph processing engine for hybrid CPU and GPU systems