Corrected shebang and graph generation