Cyber attack - graphs

only one test case is not passing
ide: https://ide.codingblocks.com/s/245108

@Vishal123 What is the problem that you are facing?

except one all the tset cases are passsed