updated graphing code
adding Sam fixes for C.g4