Add graph structure