Adds a data sctructure for graph type data.