trying to address issues with GraphImpl being caught in closures.