state for graph