Graph-based Approximate Message Passing Iterations