Proper graph initialization added.