Simplify GraphImpl internals