Updated attack functions and graph class functions.