add graph head file