Change Pregel to EdgeDirection.Either