add graph data structure template