first graph code