set local graph variable
added local variable graph