Issue #16 - update graph instead of recreating it each time.