Undefine functions that defined in previous graph updating event
Merge pull request #144 from ke-yu/StableBranchWithTestcases

Undefine functions that defined in previous graph updating event