Complement graph function
Complement graph function