Refactored code -- graph wasn't being fully computed before being referenced.